/* ============================================================
   Maatalous Priima Oy — style.css
   Fresh & stylish | Warm palette | Fully responsive
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #FDFAF5;
  color: #162010;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(13, 43, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 136, 42, 0.15);
}
.nav-logo { height: 44px; width: auto; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: rgba(253, 235, 200, 0.72); font-size: 13px; font-weight: 400;
  letter-spacing: 0.2px; transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover { color: #FDEBCC; }
.nav-cta {
  background: #C8882A !important; color: #fff !important;
  padding: 9px 20px; border-radius: 5px; font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #DA9A3A !important; }
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; background: none; border: none; padding: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: #FDEBCC; border-radius: 2px; transition: all 0.28s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-nav {
  display: none; position: fixed;
  top: 70px; left: 0; right: 0; z-index: 998;
  background: rgba(13, 43, 20, 0.98);
  backdrop-filter: blur(20px);
  padding: 0.25rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(200, 136, 42, 0.12);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; color: rgba(253, 235, 200, 0.8); font-size: 15px;
  padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; color: #C8882A; font-weight: 500; }

/* ── HERO ── */
.hero {
  position: relative; height: 100svh; min-height: 580px;
  display: flex; align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,28,12,0.90) 0%, rgba(8,28,12,0.32) 50%, rgba(8,28,12,0.05) 100%);
}
.hero-body {
  position: relative; z-index: 2;
  padding: 0 clamp(1.25rem, 5vw, 3rem) clamp(3rem, 6vw, 5rem);
  width: 100%; max-width: 860px;
}
.eyebrow-line {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.25rem;
}
.eyebrow-line span { display: block; width: 28px; height: 1px; background: #C8882A; }
.eyebrow-line p {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(253, 210, 140, 0.65); font-weight: 400;
}
.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 7vw, 68px);
  color: #FDFAF5; line-height: 1.04; font-weight: 400; margin-bottom: 1.1rem;
}
.hero h1 em { font-style: italic; color: rgba(255, 200, 100, 0.8); }
.hero-desc {
  font-size: clamp(14px, 2.2vw, 16px);
  color: rgba(253, 225, 175, 0.62); max-width: 480px; margin-bottom: 2.25rem;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2.5rem; }
.btn-primary {
  background: #FDFAF5; color: #162010; display: inline-block;
  padding: 13px 28px; border-radius: 5px; font-size: 14px; font-weight: 500; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
  border: 1.5px solid rgba(200, 136, 42, 0.55); color: #F5D490; display: inline-block;
  padding: 12px 24px; border-radius: 5px; font-size: 14px; transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(200, 136, 42, 0.14); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.stat {
  background: rgba(200, 136, 42, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 136, 42, 0.22);
  padding: 8px 18px; border-radius: 6px; text-align: center;
}
.stat strong {
  display: block; font-family: "Playfair Display", serif;
  font-size: 22px; color: #F5D490; font-weight: 400; line-height: 1;
}
.stat span { font-size: 10px; color: rgba(245, 205, 130, 0.5); }

/* ── STRIP ── */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: clamp(160px, 20vw, 240px); gap: 3px; background: #0D2B14;
}
.strip-item { overflow: hidden; }
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.strip-item:hover img { transform: scale(1.07); }

/* ── HELPERS ── */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }
.eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: #8A5E38; font-weight: 500; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; display: block; width: 24px; height: 1px; background: #C8882A; }
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 4.5vw, 44px); color: #162010;
  font-weight: 400; margin-bottom: 1.25rem; line-height: 1.1;
}
.lead { font-size: clamp(15px, 2vw, 17px); line-height: 1.8; color: #5A4228; max-width: 580px; }

/* ── INTRO GRID ── */
.intro { background: #FDFAF5; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.intro-img-wrap { position: relative; }
.intro-img-wrap img { width: 100%; border-radius: 4px; }
.intro-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: #0D2B14; color: #F5D490;
  padding: 1.25rem 1.5rem; border-radius: 4px; text-align: center;
  font-family: "Playfair Display", serif;
}
.intro-badge strong { display: block; font-size: 32px; font-weight: 400; line-height: 1; }
.intro-badge small { font-size: 10px; color: rgba(245, 205, 130, 0.55); letter-spacing: 1.5px; text-transform: uppercase; }

/* ── PIHATTO SPLIT ── */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-img { overflow: hidden; min-height: 440px; }
.split-img img { width: 100%; height: 100%; object-fit: cover; min-height: 440px; transition: transform 0.7s; }
.split-img:hover img { transform: scale(1.04); }
.split-dark {
  background: #0D2B14;
  padding: clamp(2.5rem, 6vw, 5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.split-dark .eyebrow { color: rgba(184, 147, 106, 0.5); }
.split-dark .eyebrow::before { background: rgba(200, 136, 42, 0.4); }
.split-dark h2 { color: #FDFAF5; font-size: clamp(24px, 4vw, 36px); }
.split-dark .lead { color: rgba(253, 225, 185, 0.6); font-size: 15px; max-width: none; }
.feat-grid { margin-top: 1.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feat {
  background: rgba(200, 136, 42, 0.07); border: 1px solid rgba(200, 136, 42, 0.14);
  padding: 10px 13px; border-radius: 5px;
  font-size: 13px; color: rgba(253, 218, 162, 0.75);
  display: flex; gap: 8px; align-items: flex-start; line-height: 1.45;
}
.feat::before { content: "✓"; color: #C8882A; font-size: 11px; margin-top: 2px; flex-shrink: 0; }

/* ── QUOTE ── */
.quote-bar {
  background: #2E4E22;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 5vw, 3rem); text-align: center;
}
.quote-bar blockquote {
  font-family: "Playfair Display", serif; font-style: italic;
  font-size: clamp(20px, 3.5vw, 30px); color: rgba(253, 235, 195, 0.88);
  max-width: 720px; margin: 0 auto; line-height: 1.45;
}
.quote-bar cite {
  display: block; margin-top: 1rem;
  font-size: 11px; color: rgba(253, 210, 140, 0.45); letter-spacing: 2px; text-transform: uppercase; font-style: normal;
}

/* ── LOMITUKSET ── */
.lomitus { background: #F5EFE2; }
.lom-video-wrap { position: relative; height: clamp(360px, 50vw, 580px); overflow: hidden; }
.lom-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lom-video-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,28,12,0.88) 0%, rgba(8,28,12,0.52) 40%, rgba(8,28,12,0.08) 100%);
}
.lom-overlay {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center;
  padding: 0 clamp(1.25rem, 7vw, 7rem);
}
.lom-overlay-text { max-width: 600px; }
.lom-overlay-text .eyebrow { color: rgba(200, 164, 100, 0.62); }
.lom-overlay-text .eyebrow::before { background: rgba(200, 164, 100, 0.4); }
.lom-overlay-text h2 { color: #FDFAF5; font-size: clamp(28px, 5vw, 52px); }
.lom-overlay-text .lead { color: rgba(253, 222, 170, 0.68); max-width: none; font-size: clamp(15px, 2vw, 18px); }
.lom-cards { display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.lom-card { padding: clamp(2rem, 5vw, 4rem); border-right: 1px solid #E8D9C0; }
.lom-card:last-child { border-right: none; }
.lom-icon {
  width: 56px; height: 56px; background: #F5EFE2; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  margin-bottom: 1.5rem; border: 1px solid #E8D9C0;
}
.lom-card h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 3vw, 27px); color: #162010; font-weight: 400; margin-bottom: 0.75rem;
}
.lom-card p { font-size: 14px; color: #5A4228; line-height: 1.75; }
.lom-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 9px; }
.lom-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #4A3018; }
.lom-item::before { content: ""; width: 5px; height: 5px; background: #8A5E38; border-radius: 50%; flex-shrink: 0; }
.lom-cta-bar {
  background: #0D2B14;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 6vw, 6rem);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.lom-cta-bar p {
  font-family: "Playfair Display", serif; font-style: italic;
  font-size: clamp(18px, 3vw, 28px); color: rgba(210, 240, 195, 0.85);
}
.lom-cta-link {
  display: inline-block; background: #C8882A; color: #fff;
  padding: 14px 30px; border-radius: 5px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background 0.2s;
}
.lom-cta-link:hover { background: #DA9A3A; }

/* ── SERVICE CARDS ── */
.services { background: #FDFAF5; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.card {
  background: #fff; border-radius: 8px; overflow: hidden;
  border: 1px solid #E8D9C0; transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: 0 14px 44px rgba(8, 30, 14, 0.12); transform: translateY(-3px); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.card:hover .card-img img { transform: scale(1.07); }
.card-body { padding: 1.4rem 1.6rem 2rem; }
.card-tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #B8936A; margin-bottom: 0.4rem; }
.card-body h3 {
  font-family: "Playfair Display", serif; font-size: 22px;
  color: #162010; font-weight: 400; margin-bottom: 0.5rem;
}
.card-body p { font-size: 14px; color: #5A4228; line-height: 1.65; }
.card-price { margin-top: 1rem; font-size: 16px; font-weight: 500; color: #162010; }
.card-price em { font-style: normal; font-size: 12px; color: #B8936A; font-weight: 300; }

/* ── MOSAIC ── */
.mosaic {
  display: grid; grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: 230px 230px; gap: 4px; margin-top: 3.5rem;
}
.mosaic-main { grid-row: 1 / 3; overflow: hidden; border-radius: 8px 0 0 8px; }
.mosaic-sm { overflow: hidden; }
.mosaic-sm:nth-child(2) { border-radius: 0 8px 0 0; }
.mosaic-sm:last-child { border-radius: 0 0 8px 0; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.mosaic img:hover { transform: scale(1.06); }

/* ── CONTACT ── */
.contact { background: #F5EFE2; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; margin-top: 3rem; }
.contact-info { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #E8D9C0; margin-top: 1.75rem; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 1.1rem 1.5rem; border-bottom: 1px solid #F0E8D8; }
.contact-row:last-child { border-bottom: none; }
.c-ico { width: 36px; height: 36px; min-width: 36px; background: #F5EFE2; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 16px; border: 1px solid #E8D9C0; }
.contact-row h4 { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #B8936A; margin-bottom: 2px; }
.contact-row a, .contact-row p { font-size: 14px; color: #162010; }
.contact-row a:hover { color: #8A5E38; }
.ig-link { display: flex; align-items: center; gap: 12px; background: #0D2B14; border-radius: 8px; padding: 1.1rem 1.5rem; margin-top: 1rem; transition: background 0.2s; }
.ig-link:hover { background: #163520; }
.ig-link strong { display: block; font-size: 13px; color: #FDFAF5; }
.ig-link small { font-size: 12px; color: rgba(245, 205, 130, 0.4); }
.map-box { border-radius: 8px; overflow: hidden; border: 1px solid #E8D9C0; }
.map-box iframe { width: 100%; aspect-ratio: 4 / 3; border: none; display: block; }
.contact-note {
  margin-top: 1rem; background: #E8D9C0; border-left: 3px solid #8A5E38;
  border-radius: 0 7px 7px 0; padding: 0.9rem 1.1rem; font-size: 13px; color: #4A3018; line-height: 1.6;
}

/* ── FOOTER ── */
footer { background: #091E0E; padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem); border-top: 1px solid rgba(100, 180, 100, 0.15); }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { font-family: "Playfair Display", serif; font-size: 18px; color: rgba(160, 220, 160, 0.45); }
footer small { font-size: 12px; color: rgba(245, 205, 130, 0.2); }

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid { gap: 3rem; }
}
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .lom-cards { grid-template-columns: 1fr; }
  .lom-card { border-right: none; border-bottom: 1px solid #E8D9C0; }
  .lom-card:last-child { border-bottom: none; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 180px); }
  .mosaic-main { grid-row: auto; border-radius: 8px 8px 0 0; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .strip { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-img { min-height: 280px; }
  .split-img img { min-height: 280px; }
  .feat-grid { grid-template-columns: 1fr; }
  .lom-overlay { padding: 0 1.25rem; }
  .lom-cta-bar { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
  .strip { height: 140px; }
  .hero-stats .stat:nth-child(3) { display: none; }
  .lom-video-wrap { height: 300px; }
  .hero-btns .btn-secondary { display: none; }
}
