/* ── Reset & Custom Properties ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:  #1A4220;
  --green-mid:   #2C6B30;
  --green-light: #EBF2EC;
  --orange:      #F0953A;
  --orange-dark: #D97E28;
  --off-white:   #F7F5F0;
  --white:       #FFFFFF;
  --text:        #1C1C1A;
  --text-muted:  #5A5A54;
  --transition:  0.25s ease;
}

html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  height: 100%;
}

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; margin-bottom: 1.25rem; }

/* ── Layout ──────────────────────────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

section {
  height: 100svh;
  scroll-snap-align: start;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 0.75rem;
}

.section-label.light { color: rgba(255,255,255,0.5); }

/* ── Navigation ─────────────────────────────────────────────────── */
#nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(247,245,240,0.88);
  border-bottom: 1px solid rgba(26,66,32,0.08);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#nav.scrolled {
  background: rgba(247,245,240,0.97);
  box-shadow: 0 2px 16px rgba(26,66,32,0.10);
  border-bottom-color: rgba(26,66,32,0.15);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 52px;
  height: 34px;
  fill: var(--green-dark);
}

.logo-text {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--green-dark);
  letter-spacing: 0.04em;
}

.logo-bio {
  font-weight: 400;
  opacity: 0.7;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26,66,32,0.65);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--orange); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(26,66,32,0.75);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────────── */
#hero {
  background-color: var(--green-dark);
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

/* Dark tinted overlay for text legibility */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 10, 0.48);
  z-index: 0;
}

.hero-hills {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
  fill: var(--white);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 2rem 1.5rem;
}

.hero-inner h1 {
  color: var(--white);
  margin-bottom: 1.1rem;
}

.hero-inner p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  font-weight: 300;
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background var(--transition), border-color var(--transition);
  background: var(--orange);
  color: var(--white);
  border: 1.5px solid var(--orange);
}

.btn:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

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

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

/* ── За нас ──────────────────────────────────────────────────────── */
#about { background: var(--white); }

#about h2 { color: var(--green-dark); }

.about-body { max-width: 620px; }

.about-body .lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.9rem;
}

.about-body p { color: var(--text-muted); }

/* ── Продукти ────────────────────────────────────────────────────── */
#products { background: var(--green-light); }

#products h2 { color: var(--green-dark); }

.product-card {
  background: var(--white);
  border-radius: 4px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 2px 20px rgba(26,66,32,0.08);
  max-width: 680px;
}

.product-attrs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.attr {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.attr svg {
  width: 18px;
  height: 18px;
  fill: var(--green-mid);
  flex-shrink: 0;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

/* ── Контакти ────────────────────────────────────────────────────── */
#contact {
  background: var(--green-dark);
  color: var(--white);
  justify-content: space-between;
}

.contact-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#contact h2 { color: var(--white); }

.contact-intro {
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--transition);
  color: var(--white);
}

a.contact-row:hover { background: rgba(255,255,255,0.07); }

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.85);
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contact-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.contact-value {
  font-size: 1rem;
  color: rgba(255,255,255,0.92);
}

/* ── Footer (inside #contact) ────────────────────────────────────── */
footer {
  background: #0e2610;
  padding: 1.25rem 0;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo .logo-icon {
  width: 38px;
  height: 27px;
  fill: rgba(255,255,255,0.65);
}

.footer-logo .logo-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

footer p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ── Scroll indicator dots ───────────────────────────────────────── */
.scroll-dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1.5px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.scroll-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

.dot-dark .scroll-dot {
  background: rgba(26,66,32,0.2);
  border-color: rgba(26,66,32,0.35);
}

.dot-dark .scroll-dot.active {
  background: var(--green-dark);
  transform: scale(1.3);
}

/* ── Въпроси (FAQ) ───────────────────────────────────────────────── */
#faq { background: var(--off-white); }

#faq h2 { color: var(--green-dark); }

.faq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
}

.faq-item {
  border-bottom: 1px solid rgba(26,66,32,0.1);
  padding: 1rem 0;
}

.faq-item:first-child { border-top: 1px solid rgba(26,66,32,0.1); }

.faq-item dt {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.35rem;
}

.faq-item dd {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247,245,240,0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(26,66,32,0.1);
  }

  .nav-links.open { display: flex; }

  .product-card { padding: 1.75rem 1.25rem; }

  footer .container { justify-content: center; text-align: center; }

  .scroll-dots { display: none; }
}
