/* ===== Suomen-Kalankasvatus Oy — design system ===== */

:root {
  --navy: #0e2438;
  --navy-deep: #0a1b2b;
  --navy-light: #1c3a54;
  --green: #8fac5c;
  --green-dark: #74914a;
  --cream: #f7f5f0;
  --white: #ffffff;
  --text: #1c2a33;
  --text-muted: #56646c;
  --border: #e3e0d7;
  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(10, 27, 43, 0.35);
  --container: 1180px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2, .section--navy h3 {
  color: var(--white);
}

.section--cream {
  background: var(--cream);
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.section--navy .eyebrow {
  color: var(--green);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-head p {
  color: var(--text-muted);
}

.section--navy .section-head p {
  color: #c7d4dd;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===== Header ===== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 22px 0;
}

.site-header.is-static {
  position: relative;
  background: var(--navy);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand img {
  width: 40px;
  height: 40px;
  color: var(--white);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a:not(.btn) {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--green);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 60;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(8, 20, 33, 0.7) 0%, rgba(8, 20, 33, 0.35) 45%, rgba(8, 20, 33, 0.85) 100%),
    linear-gradient(135deg, #17324a 0%, #0e2438 55%, #142a1f 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero--jarvi {
  background-image:
    linear-gradient(180deg, rgba(8, 20, 33, 0.65) 0%, rgba(8, 20, 33, 0.3) 45%, rgba(8, 20, 33, 0.88) 100%),
    url('../assets/images/hero-jarvi.jpg'),
    linear-gradient(135deg, #17324a 0%, #0e2438 55%, #142a1f 100%);
}

.hero--sivu {
  min-height: 380px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 40px;
  align-items: center;
}

.hero--sivu .hero-inner {
  grid-template-columns: 1fr;
  padding-top: 100px;
  padding-bottom: 50px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 620px;
}

.hero p.lead {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.hero-map {
  display: block;
}

/* ===== Icon strip ===== */

.icon-strip {
  background: var(--navy-deep);
  color: var(--white);
}

.icon-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.icon-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 22px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
}

.icon-strip-item:last-child {
  border-right: none;
}

.icon-strip-item svg {
  width: 26px;
  height: 26px;
  color: var(--green);
}

/* ===== Cards ===== */

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-body {
  padding: 22px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(143, 172, 92, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--green-dark);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--green-dark);
}

.card-media {
  aspect-ratio: 4 / 3;
  background:
    url('../assets/images/placeholder-fish.jpg') center/cover,
    linear-gradient(135deg, #24425c, #12283b);
}

/* ===== Fish species (Info) ===== */

.species-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.species-media {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #1c3a54;
}

.species-media--kuha {
  background-image: linear-gradient(180deg, rgba(10,20,30,0) 40%, rgba(10,20,30,.55) 100%), url('../assets/images/kuha.jpg'), linear-gradient(135deg, #23415a, #0f2233);
}

.species-media--siika {
  background-image: linear-gradient(180deg, rgba(10,20,30,0) 40%, rgba(10,20,30,.55) 100%), url('../assets/images/siika.jpg'), linear-gradient(135deg, #2c4c63, #123044);
}

.species-media--harjus {
  background-image: linear-gradient(180deg, rgba(10,20,30,0) 40%, rgba(10,20,30,.55) 100%), url('../assets/images/harjus.jpg'), linear-gradient(135deg, #274a3f, #0f2b24);
}

.species-body {
  padding: 22px;
}

.species-body h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.species-latin {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
  display: block;
}

.species-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.species-fact {
  font-size: 0.78rem;
}

.species-fact strong {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--navy);
  font-size: 0.78rem;
  margin-bottom: 3px;
}

.species-fact strong svg {
  width: 14px;
  height: 14px;
  color: var(--green-dark);
}

.species-fact span {
  color: var(--text-muted);
}

/* ===== Location map (stylised placeholder) ===== */

.location-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.08), transparent 45%),
    linear-gradient(135deg, #23422f 0%, #16281c 55%, #0f1c14 100%);
  aspect-ratio: 4 / 3;
}

.location-map svg.map-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.map-pin svg {
  width: 22px;
  height: 22px;
  color: #e2574c;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
}

.map-pin span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(10, 20, 15, 0.55);
  padding: 1px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.map-pin--kaavi { top: 28%; left: 58%; }
.map-pin--outokumpu { top: 44%; left: 34%; }
.map-pin--liperi { top: 58%; left: 66%; }
.map-pin--varkaus { top: 76%; left: 38%; }
.map-pin--footer { top: 40%; left: 50%; }

/* ===== Checklist ===== */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}

.checklist svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--green);
  margin-top: 2px;
}

/* ===== News / carousel ===== */

.news-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.news-card {
  scroll-snap-align: start;
  flex: 0 0 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.news-media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(10,20,30,0) 30%, rgba(10,20,30,.5) 100%), url('../assets/images/istutus.jpg'), linear-gradient(135deg, #1e3c52, #0e2233);
  background-size: cover;
  background-position: center;
}

.news-body {
  padding: 18px;
}

.news-date {
  font-size: 0.78rem;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.news-body h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.news-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ===== Contact ===== */

.contact-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  color: var(--green-dark);
}

.form-status.error {
  color: #b0392c;
}

/* ===== CTA band ===== */

.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.actions--start {
  justify-content: flex-start;
}

/* ===== Footer ===== */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-map {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== Utilities ===== */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.grid-center { align-items: center; }

.media-panel {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background:
    url('../assets/images/placeholder-fish.jpg') center/cover,
    linear-gradient(135deg, #24425c, #12283b);
}

/* ===== Responsive ===== */

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-map { display: none; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 100px 26px 30px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 50;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a:not(.btn) {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links .btn {
    margin-top: 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .icon-strip .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .icon-strip-item:nth-child(2) { border-right: none; }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    min-height: 560px;
  }

  .hero-inner {
    padding-top: 100px;
  }

  .contact-card {
    padding: 22px;
  }

  .cta-band .actions {
    flex-direction: column;
  }
}
