/* ===================================================================
   MURREL FARM — STYLESHEET
   Palette: deep pond teal + fresh aqua + sun-baked clay
   Type: Fraunces (display) / Manrope (body)
   =================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,ital@9..144,300..700,1,9..144,600&family=Manrope:wght@400;500;600;700;800&display=swap");

/* --- 1. TOKENS ------------------------------------------------------ */
:root {
  /* Light theme (default) */
  --bg: #f4f7f6;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-alt: #eaf1ef;
  --ink: #0b2b29;
  --ink-soft: #4c6864;
  --border: rgba(11, 43, 41, 0.1);

  --teal-900: #0b3d3c;
  --teal-700: #0f5c58;
  --teal-600: #0f766e;
  --aqua-400: #17b3a3;
  --aqua-300: #5fd6c8;
  --clay-500: #b5602f;
  --clay-400: #c97b46;

  --whatsapp: #25d366;

  --shadow-sm: 0 2px 10px rgba(11, 43, 41, 0.06);
  --shadow-md: 0 16px 40px rgba(11, 43, 41, 0.12);

  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;

  --radius: 16px;
  --transition: 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.dark-mode {
  --bg: #05130f;
  --bg-alt: #0a201a;
  --surface: #0e2a23;
  --surface-alt: #123028;
  --ink: #eaf6f2;
  --ink-soft: #a7c9c1;
  --border: rgba(234, 246, 242, 0.1);

  --teal-900: #0b3d3c;
  --teal-700: #14b8a6;
  --teal-600: #17b3a3;
  --aqua-400: #5eead4;
  --aqua-300: #99f6e4;
  --clay-500: #e08a4f;
  --clay-400: #f0a066;

  --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* --- 2. RESET & BASE -------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  transition:
    background-color var(--transition),
    color var(--transition);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

section {
  padding: 110px 24px;
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-500);
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h2 {
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  margin-bottom: 18px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--aqua-400);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- 3. NAVBAR --------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua-400), var(--teal-700));
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 34px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--aqua-400);
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

#dark-mode-toggle {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--transition),
    background var(--transition);
}

#dark-mode-toggle:hover {
  transform: rotate(20deg);
}

.nav-whatsapp {
  text-decoration: none;
  background: linear-gradient(135deg, var(--whatsapp), #1fa855);
  color: #fff;
  padding: 11px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  transition: transform var(--transition);
}

.nav-whatsapp:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* --- 4. HERO ------------------------------------------------------------ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f4faf9;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(5, 22, 19, 0.75) 0%,
    rgba(6, 30, 26, 0.6) 45%,
    rgba(5, 22, 19, 0.92) 100%
  );
}

.hero-content {
  max-width: 780px;
  padding: 0 24px;
}

.hero-content .eyebrow {
  color: var(--aqua-300);
}

.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: #fff;
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero-content p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(244, 250, 249, 0.85);
  max-width: 560px;
  margin: 0 auto 34px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--whatsapp), #1fa855);
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
  transition: transform var(--transition);
}

.cta-button.ghost {
  background: transparent;
  border: 1.5px solid rgba(244, 250, 249, 0.4);
  box-shadow: none;
}

.cta-button:hover {
  transform: translateY(-3px);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(244, 250, 249, 0.5);
  border-radius: 20px;
}

.scroll-cue::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--aqua-300);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% {
    opacity: 1;
    top: 8px;
  }
  70% {
    opacity: 0;
    top: 20px;
  }
  100% {
    opacity: 0;
    top: 8px;
  }
}

/* wave divider used at the bottom of full-bleed sections */
.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
}

.wave-divider svg {
  width: 100%;
  height: 70px;
  display: block;
}

.wave-divider path {
  fill: var(--bg);
}

/* --- 5. ABOUT ------------------------------------------------------- */
.about-content {
  display: flex;
  align-items: center;
  gap: 64px;
}

.about-image-wrap {
  width: 46%;
  position: relative;
}

.about-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.about-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.about-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--teal-700);
}

.about-badge span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.about-text {
  width: 54%;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.about-text p {
  margin-bottom: 18px;
}

/* --- 6. WHY MURREL / BENEFITS --------------------------------------- */
.benefits-section {
  background: var(--bg-alt);
}

.why-intro {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 70px;
}

.why-image {
  width: 40%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.why-copy {
  width: 60%;
}

.why-copy p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--surface);
  padding: 38px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-700), var(--aqua-400));
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.card p {
  color: var(--ink-soft);
}

/* --- 7. PROCESS & CARE ------------------------------------------------ */
.quality-section {
  background: var(--surface-alt);
}

.subsection-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 60px 0 26px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.subsection-title:first-of-type {
  margin-top: 0;
}

.subsection-title .step-no {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--clay-500);
  padding: 5px 11px;
  border-radius: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  display: block;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

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

.product-card .thumb {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: var(--surface-alt);
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .thumb img {
  transform: scale(1.06);
}

.product-card .info {
  padding: 18px 20px;
}

.product-card .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.product-card h4 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 6px 0 8px;
}

.product-card .learn-more {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--clay-500);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-card .learn-more::after {
  content: "→";
  transition: transform var(--transition);
}

.product-card:hover .learn-more::after {
  transform: translateX(4px);
}

.feeding-showcase {
  margin-top: 64px;
  display: flex;
  gap: 44px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.feeding-video {
  width: 46%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feeding-video video {
  width: 100%;
  display: block;
}

.feeding-copy {
  width: 54%;
}

.feeding-copy h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.feeding-copy p {
  color: var(--ink-soft);
}

/* --- 8. GALLERY -------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  height: 280px;
  box-shadow: var(--shadow-sm);
}

.gallery-item.tall {
  height: 400px;
  grid-row: span 2;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.06);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(5, 20, 17, 0.75) 100%
  );
}

.gallery-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.play-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 15, 13, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.lightbox-content img,
.lightbox-content video {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: 26px;
  right: 34px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* --- 9. FOOTER / CONTACT ------------------------------------------------ */
.contact-section {
  background: var(--teal-900);
  color: #eef7f5;
  text-align: center;
  padding: 100px 24px 50px;
}

.contact-section h2 {
  color: #fff;
}

.contact-section > p {
  color: rgba(238, 247, 245, 0.75);
  max-width: 480px;
  margin: 0 auto;
}

.whatsapp-huge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0;
  padding: 20px 48px;
  background: linear-gradient(135deg, var(--whatsapp), #1fa855);
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.3);
  transition: transform var(--transition);
}

.whatsapp-huge-btn:hover {
  transform: translateY(-3px);
}

.footer-meta {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(238, 247, 245, 0.12);
  font-size: 0.85rem;
  color: rgba(238, 247, 245, 0.55);
}

/* --- 10. REVEAL ON SCROLL ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* --- 11. RESPONSIVE ------------------------------------------------------ */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .about-content,
  .why-intro,
  .feeding-showcase {
    flex-direction: column;
  }
  .about-image-wrap,
  .about-text,
  .why-image,
  .why-copy,
  .feeding-video,
  .feeding-copy {
    width: 100%;
  }
  .about-badge {
    left: 16px;
  }
}

@media (max-width: 560px) {
  section {
    padding: 80px 18px;
  }
  .navbar {
    padding: 14px 20px;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
}
