/* ============================================
   White World — Milk & Dairy
   Bright, fresh, inviting palette
   ============================================ */

:root {
  --cream: #FFFBF7;
  --cream-dark: #FFF5EB;
  --white: #FFFFFF;
  --green: #2E7D32;
  --green-bright: #43A047;
  --green-light: #E8F5E9;
  --gold: #F9A825;
  --gold-soft: #FFF3E0;
  --brown: #3E2723;
  --text: #1B1B1B;
  --text-muted: #5D4E37;
  --shadow: rgba(30, 50, 30, 0.1);
  --shadow-strong: rgba(30, 50, 30, 0.18);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 24px;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(255, 251, 247, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--shadow);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 8s ease-out;
}

.hero:hover .hero-bg {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44, 36, 25, 0.25) 0%,
    rgba(44, 36, 25, 0.5) 50%,
    rgba(44, 36, 25, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.hero-tagline {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.95;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  font-weight: 300;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-bright);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.4);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

/* Section common */
.section-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--text);
  margin-bottom: 48px;
}

/* Products */
.products {
  padding: 100px 0;
  background: var(--green-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
}

.product-card-bg {
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transition: transform 5s ease-out;
}

.product-card:hover .product-card-bg {
  transform: scale(1.08);
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(44, 36, 25, 0.7) 100%
  );
}

.product-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px;
  z-index: 2;
  color: var(--white);
}

.product-card-content h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.product-card-content p {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 300;
}

/* About */
.about {
  position: relative;
  padding: 100px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 251, 247, 0.96) 0%,
    rgba(255, 251, 247, 0.88) 55%,
    rgba(255, 251, 247, 0.6) 100%
  );
}

.about-inner {
  position: relative;
  z-index: 2;
}

.about-content {
  max-width: 560px;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.about-features {
  list-style: none;
}

.about-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--text);
}

.about-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Contact */
.contact {
  padding: 100px 0;
  background: var(--gold-soft);
}

.contact-intro {
  max-width: 520px;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--green);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-strong);
  border-top-color: var(--gold);
}

.contact-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-card p a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.contact-card p a:hover {
  color: var(--green-bright);
  text-decoration: underline;
}

/* Footer — contact in site background */
.footer {
  background: var(--green);
  color: var(--white);
  text-align: center;
}

.footer-bg {
  padding: 48px 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.footer-block {
  padding: 0 16px;
}

.footer-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 8px;
}

.footer-block p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.95;
  line-height: 1.5;
}

.footer-block a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-block a:hover {
  border-bottom-color: var(--white);
  opacity: 1;
}

.footer-bottom {
  padding: 24px 24px 32px;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  margin: 0 auto 16px;
  filter: brightness(0) invert(1);
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Mobile */
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .product-card {
    aspect-ratio: 16 / 10;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    box-shadow: -4px 0 24px var(--shadow);
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .about-bg {
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}
