/* =====================================================
   DESIGN TOKENS
===================================================== */
:root {
  /* Honey palette */
  --honey-pale: #fdf6e8;
  --honey-light: #e6be6b;
  --honey-mid: #d4a43a;
  --honey-dark: #c8912e;

  /* Surface */
  --cream: #fbf8f3;
  --beige: #f0e6d3;
  --card-bg: rgba(255, 255, 255, 0.9);

  /* Text */
  --brown: #3a2b1e;
  --brown-soft: #6b5242;

  /* Elevation */
  --shadow-sm: 0 2px 10px rgba(62, 47, 35, 0.07);
  --shadow-md: 0 8px 30px rgba(62, 47, 35, 0.12);
  --shadow-lg: 0 20px 52px rgba(62, 47, 35, 0.16);

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =====================================================
   RESET & BASE
===================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: var(--cream);
  color: var(--brown);
  line-height: 1.75;
  background-image:
    linear-gradient(180deg, rgba(198, 145, 46, 0.44), rgba(141, 94, 30, 0.44)),
    url("assets/bg-hero.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

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

a {
  color: inherit;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 1.5rem;
  position: relative;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.7rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--honey-dark), var(--honey-light));
}

p {
  margin-bottom: 1rem;
  color: var(--brown-soft);
  line-height: 1.8;
}

p:last-child {
  margin-bottom: 0;
}

.subtitle {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: var(--brown-soft);
}

/* =====================================================
   GLOBAL LAYOUT
===================================================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section.alt {
  background: var(--beige);
}

/* Utilities */
.text-center {
  text-align: center;
}

.display-inline-block {
  display: inline-block;
}

.space-bottom {
  padding-bottom: 2rem;
}

/* =====================================================
   HERO
===================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 8rem 1.5rem 5rem;
}

.hero-inner {
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
  color: #fff;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.88;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--honey-dark);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.9rem 2.3rem;
  border-radius: 100px;
  box-shadow: 0 4px 22px rgba(200, 145, 46, 0.5);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s;
}

.hero-cta:hover {
  background: var(--honey-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 145, 46, 0.6);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: heroScroll 2.4s ease infinite;
  pointer-events: none;
}

.hero-scroll::after {
  content: "↓";
  font-size: 1rem;
}

@keyframes heroScroll {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateX(-50%) translateY(7px);
    opacity: 0.75;
  }
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(35, 25, 16, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.navbar.scrolled {
  background: rgba(35, 25, 16, 0.94);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.28);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--honey-light);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo::before {
  content: "🍯";
  font-size: 1rem;
}

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

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.2s;
}

/* Hover underline animation */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--honey-light);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

.nav-links a:hover {
  color: #fff;
}

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

.nav-links a.active {
  color: var(--honey-light);
}

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

/* =====================================================
   HAMBURGER MENU (MOBILE ONLY)
===================================================== */

/* Hidden by default (desktop) */
.hamburger {
  display: none;
  width: 28px;
  height: 22px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hamburger lines */
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 10px;
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

/* =====================================================
   TRADITION SECTION — flow-block / two-col
===================================================== */
.flow-block {
  position: relative;
}

.flow-divider {
  display: none; /* replaced by generous section padding */
}

.bg {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* =====================================================
   TWO COLUMN LAYOUT
===================================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
}

.flow-block.reverse .two-col {
  direction: rtl;
}

.flow-block.reverse .two-col > * {
  direction: ltr;
}

.two-col .text {
  max-width: 500px;
}

/* =====================================================
   IMAGES
===================================================== */
.two-col .image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* =====================================================
   PRODUCT CARDS (types section articles)
===================================================== */
.types article {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 2rem 2rem 2rem 2.4rem;
  border: 1px solid rgba(200, 145, 46, 0.14);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  backdrop-filter: blur(4px);
}

.types article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--honey-dark), var(--honey-light));
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

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

.types article h3 {
  color: var(--brown);
  margin-bottom: 0.75rem;
}

.types article p {
  font-size: 0.95rem;
}

/* =====================================================
   GRID SECTIONS
===================================================== */
.types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

/* =====================================================
   CONTACT
===================================================== */
.contact {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--brown);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--card-bg);
  border: 1px solid rgba(200, 145, 46, 0.2);
  padding: 0.8rem 1.6rem;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s;
  backdrop-filter: blur(4px);
}

.contact a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: #fff;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  background: var(--brown);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  border-top: 3px solid var(--honey-dark);
  p {
    color: rgba(255, 255, 255, 0.85);
  }
}

/* =====================================================
   RESPONSIVE
===================================================== */

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    background-attachment: scroll;
    min-height: 100svh;
    padding: 7rem 1.5rem 4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Two-col stacks */
  .two-col {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .two-col .image img {
    aspect-ratio: 16 / 9;
  }

  /* Product cards single column */
  .types {
    grid-template-columns: 1fr;
  }

  /* Contact pills stack */
  .contact {
    flex-direction: column;
  }

  /* Show hamburger */
  .hamburger {
    display: block;
  }

  /* Turn nav links into dropdown */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: rgba(35, 25, 16, 0.96);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  .nav-links li {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
  }

  /* Open state */
  .navbar.menu-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Animate hamburger into X */
  .navbar.menu-open .hamburger span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .navbar.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .navbar.menu-open .hamburger span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  /* Lock background scroll */
  body.menu-open {
    overflow: hidden;
  }
}

/* =====================================================
   PROCESS SECTION — scoped layout (does not affect
   any other section)
===================================================== */

/* Section headings: centered, underline centered too */
.process-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.process-heading::after {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Step wrapper ---- */
/* padding-top RESERVES the space the image will bleed into */
.process-step {
  position: relative;
  padding-top: 2.5rem;
  margin-bottom: 4rem;
}

/* ---- Card ---- */
/* Default: image LEFT, text RIGHT
   Gradient fades the card background away on the image side
   so the image floats freely on the section background       */
.process-step__card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start; /* image anchors to top → bleed stays fixed */
  border-radius: 18px;
  padding: 2rem 2.5rem 2rem 0; /* no left pad — image column is flush */
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.72) 45%,
    rgba(255, 255, 255, 0.88) 100%
  );
}

/* Golden accent bar at the outer edge of the white area */
.process-step__card::after {
  content: "";
  position: absolute;
  right: 0.7rem;
  top: 1rem;
  bottom: 1rem;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--honey-dark), var(--honey-light));
}

/* ---- Reverse: image RIGHT, text LEFT ---- */
.process-step.reverse .process-step__card {
  padding: 2rem 0 2rem 2.5rem; /* no right pad — image column is flush */
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.72) 45%,
    rgba(255, 255, 255, 0.88) 100%
  );
}

.process-step.reverse .process-step__card::after {
  right: auto;
  left: 0.7rem;
}

/* Swap column order with CSS — no direction:rtl trick */
.process-step.reverse .process-step__media {
  order: 2;
}
.process-step.reverse .process-step__body {
  order: 1;
}

/* ---- Image column ---- */
/* Negative margin = exact match of .process-step padding-top
   → image top sits 2.5rem ABOVE the card's white background  */
.process-step__media {
  margin-top: -2.5rem;
}

.process-step__media img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3; /* fixed ratio → layout never depends on source size */
  object-fit: cover;
  border-radius: 14px;
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.07);
}

/* ---- Text body ---- */
/* align-self:center keeps text vertically centered even when
   the image is taller than the text content                  */
.process-step__body {
  align-self: center;
  padding: 0.5rem 0;
}

/* =====================================================
   PROCESS SECTION — mobile overrides
===================================================== */
@media (max-width: 768px) {
  .process-step {
    padding-top: 0;
    margin-bottom: 2rem;
  }

  /* Collapse to single column, solid card, image on top */
  .process-step__card,
  .process-step.reverse .process-step__card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88) !important;
  }

  .process-step__card::after,
  .process-step.reverse .process-step__card::after {
    display: none;
  }

  /* Always render image first in stacked layout */
  .process-step__media,
  .process-step.reverse .process-step__media {
    margin-top: 0;
    order: -1;
  }

  .process-step__media img {
    aspect-ratio: 16 / 9;
    border-radius: 0;
    box-shadow: none;
  }

  .process-step__body,
  .process-step.reverse .process-step__body {
    align-self: auto;
    padding: 1.5rem;
    order: 0;
  }
}
