:root {
  --inner-max: 1400px;
  --hero-h: 850px;
  --fg-w: 850px;
  --fg-h: 850px;

  --hero-bg-desktop: url('/public/images/1/bg-hero-desktop.jpg');
  --hero-bg-mobile: url('/public/images/1/bg-hero-mobile.jpg');

  --ink: #0f172a;
  --title: #ffffff;
  --title-shadow: #166135;
  --title-background: #4fb53c;

  /* Shared “parchment” palette */
  --paper-top: #fdf5e7;
  --paper-mid: #f6e0bc;
  --paper-bottom: #e8cfa3;
  --ink-soft: #4b4336;
  --accent-gold: #a5793a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper-top);
  line-height: 1.6;
}

body.hero-menu-open {
  overflow: hidden;
}

a {
  color: #1b6c2d;
}

a:hover {
  color: #145623;
}

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

.skip-link {
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translate(-50%, -120%);
  background: #0b65c2;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 12px 24px rgba(11, 101, 194, 0.35);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline: 3px solid #fff;
  outline-offset: -3px;
}

.hero {
  position: relative;
  width: 100%;
  height: var(--hero-h);
  background-image: var(--hero-bg-desktop);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  background: url('/public/images/fox.svg');
  opacity: 0.5;
  pointer-events: none;
}

/* Title-only banner: smaller hero height */
.hero.hero--title-only {
  --hero-h: 450px;
}

.hero__inner {
  height: 100%;
  margin-inline: auto;
  max-width: var(--inner-max);
  padding-inline: clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
}

.hero__fg {
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  align-self: end;
}

.hero__fg-img {
  width: var(--fg-w);
  max-width: var(--fg-h);
  height: var(--fg-h);
  object-fit: cover;
}

/* -----------------------------------------
   NAVIGATION
------------------------------------------*/
.hero__nav { 
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
}

.hero__nav-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero__nav-links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero__nav-item {
  font-family: "Onest", sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
  position: relative;
}

.hero__nav-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
  transform: translateX(-50%);
  transition: width 180ms ease-out;
}

.hero__nav-item:hover::after,
.hero__nav-item.is-active::after {
  width: 100%;
}

/* Desktop: brand hidden, only links shown */
.hero__nav-brand {
  display: none;
}

.hero.hero--nav-condensed .hero__nav-inner {
  position: relative;
  justify-content: flex-end;
  gap: 16px;
  padding-inline: 16px;
  height: 64px;
}

.hero.hero--nav-condensed .hero__nav-links {
  display: none;
}

.hero.hero--nav-condensed .hero__menu-toggle {
  display: inline-flex;
}

.hero.hero--nav-condensed .hero__nav-brand {
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: url('/public/images/fox.svg');
  align-items: center;
  justify-content: center;
  opacity: 0.25;
}

/* Burger + label (hidden on desktop) */
.hero__menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: none;
  background: none;
  color: #fff;
  font-family: "Onest", sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero__menu-toggle:focus-visible {
  outline: 2px solid #4fb53c;
  outline-offset: 2px;
}

.hero__menu-icon {
  position: relative;
  width: 18px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__menu-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero__menu-toggle.is-open .hero__menu-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hero__menu-toggle.is-open .hero__menu-icon span:nth-child(2) {
  opacity: 0;
}

.hero__menu-toggle.is-open .hero__menu-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* -----------------------------------------
   DROPDOWN MENU (desktop, Menu item#5)
------------------------------------------*/

.hero__nav-dropdown {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.hero__nav-dropdown::after {
  display: none;
}

.hero__nav-link {
  color: #fff;
  font-family: "Onest", sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
  padding: 0;
  position: relative;
}

.hero__nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: #ffffff;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.hero__nav-dropdown:hover .hero__nav-link::after {
  width: 100%;
}

.hero__dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 180px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 20;
}

.hero__dropdown-panel a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-family: "Onest", sans-serif;
  font-size: 14px;
  padding: 10px 18px;
  white-space: nowrap;
}

.hero__dropdown-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .hero__nav-dropdown:hover .hero__dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

/* -----------------------------------------
   MOBILE NAV & FULLSCREEN MENU
------------------------------------------*/

.hero__mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: linear-gradient(to bottom, var(--paper-top) 0%, var(--paper-bottom) 100%);
  color: var(--ink-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.hero__mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero__mobile-inner {
  height: 100%;
  padding: 20px 20px 32px;
  display: flex;
  flex-direction: column;
}

.hero__mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.hero__mobile-title {
  font-family: "Agbalumo", system-ui;
  font-size: 20px;
  color: var(--ink-soft);
}

.hero__mobile-close {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.hero__mobile-close-icon {
  width: 16px;
  height: 16px;
  position: relative;
}

.hero__mobile-close-icon::before,
.hero__mobile-close-icon::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink-soft);
  transform-origin: center;
}

.hero__mobile-close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.hero__mobile-close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.hero__mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Onest", sans-serif;
}

.hero__mobile-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(180, 140, 88, 0.35);
}

.hero__mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero__mobile-link span {
  pointer-events: none;
}

.hero__mobile-chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.hero__mobile-item--has-children .hero__mobile-submenu {
  margin-top: 8px;
  padding-left: 12px;
  display: none;
}

.hero__mobile-item--has-children.is-open .hero__mobile-submenu {
  display: block;
}

.hero__mobile-item--has-children.is-open .hero__mobile-chevron {
  transform: rotate(225deg);
}

.hero__mobile-submenu a {
  display: block;
  color: #6b5a3c;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__mobile-submenu a:hover {
  color: #a15f2a;
}

.hero__mobile-footer {
  margin-top: auto;
  padding-top: 24px;
  font-size: 12px;
  color: #7c6a52;
  border-top: 1px solid rgba(180, 140, 88, 0.4);
}

/* -----------------------------------------
   SPEECH BUBBLE
------------------------------------------*/
.hero__product {
  position: relative;
  z-index: 5;
  width: min(560px, 100%);
  padding: 24px 28px;
  display: grid;
  gap: 16px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.hero__product.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero__product::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  z-index: 0;
  transform-origin: center;
  border-radius: 10px;
}

.hero__product * {
  position: relative;
  z-index: 1;
}

.hero__product.is-visible::before {
  animation: bubbleWobble 5s ease-in-out infinite;
}

@keyframes bubbleWobble {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    border-radius: 10px;
  }
  25% {
    transform: translateY(-2px) rotate(-0.5deg) scale(1.01);
    border-radius: 15px;
  }
  50% {
    transform: translateY(0) rotate(0.4deg) scale(1);
    border-radius: 10px;
  }
  75% {
    transform: translateY(1px) rotate(-0.2deg) scale(0.99);
    border-radius: 15px;
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    border-radius: 10px;
  }
}

/* -----------------------------------------
   TITLE + TEXT
------------------------------------------*/
.hero__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
}

.hero__title-text {
  font-family: "Agbalumo", system-ui;
  color: var(--title);
  display: inline;
  background: var(--title-background);
  padding: 0 8px 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  text-shadow: 2px 2px 0px var(--title-shadow);
}

.hero__bubble-text {
  font-family: "Onest", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}

/* -----------------------------------------
   MAIN CONTENT
------------------------------------------*/
.main {
  background: var(--paper-top);
  padding-block: 56px 80px;
}

.main__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.main__teasers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.teaser-card {
  background: #fff7ec;
  border-radius: 14px;
  border: 1px solid #f3e2c9;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Onest", sans-serif;
}

.teaser-card__eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a7a45;
}

.teaser-card__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.teaser-card__text {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: #4b5563;
}

.teaser-card__link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.teaser-card__link::after {
  content: "→";
  font-size: 14px;
}

.main__panel {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 32px 32px 40px;
  font-family: "Onest", sans-serif;
}

.main__panel-title {
  font-family: "Agbalumo", system-ui;
  font-size: 24px;
  margin: 0 0 12px;
}

.main__panel-lede {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px;
  color: #374151;
}

.main__panel-body {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  max-width: 70ch;
}

.main__panel-body p {
  margin: 0 0 14px;
}

.main__panel-body p:last-child {
  margin-bottom: 0;
}

.main__panel-body h1,
.main__panel-body h2,
.main__panel-body h3,
.main__panel-body h4,
.main__panel-body h5,
.main__panel-body h6 {
  color: var(--ink);
  margin: 1.6em 0 0.6em;
  line-height: 1.25;
}

.main__panel-body ul,
.main__panel-body ol {
  padding-left: 1.25rem;
}

.main__panel-body a {
  color: #0b65c2;
}

.main__panel-body a:hover {
  color: #084f9c;
}

/* -----------------------------------------
   FOOTER
------------------------------------------*/
.site-footer {
  color: var(--ink-soft);
  opacity: 0.2;
  padding-block: 32px 26px;
  transition: all 2.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.site-footer.is-revealed {
  opacity: 1;
}

.site-footer__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: "Onest", sans-serif;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.site-footer__brand {
  max-width: 340px;
}

.site-footer__logo {
  font-family: "Agbalumo", system-ui;
  font-size: 22px;
  margin-bottom: 4px;
}

.site-footer__tagline {
  font-size: 13px;
  color: #7c6a52;
  line-height: 1.5;
  margin: 0;
}

.site-footer__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.site-footer__column-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--accent-gold);
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.site-footer__list li + li {
  margin-top: 6px;
}

.site-footer__link {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer__link:hover {
  color: #a15f2a;
}

.site-footer__bottom {
  border-top: 1px solid rgba(180, 140, 88, 0.4);
  padding-top: 14px;
  font-size: 12px;
  color: #7c6a52;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer__note {
  font-style: italic;
}

/* -----------------------------------------
   RESPONSIVE
------------------------------------------*/
@media (max-width: 1366.98px) {
  :root {
    --hero-h: 525px;
    --fg-w: 525px;
    --fg-h: 525px;
  }

  .hero.hero--title-only {
    --hero-h: 360px;
  }

  .hero__inner {
    grid-template-columns: 40% 60%;
  }
}

@media (max-width: 1024.98px) {
  .hero__inner {
    /* overflow: visible;  // optional, not in template */
    grid-template-columns: 35% 65%;
  }

  .hero__fg {
    /* Remove this to match styles.css
    transform: translateX(-8%);
    */
  }

  .main__teasers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  :root {
    --hero-h: 600px;
  }

  .hero.hero--title-only {
    --hero-h: 280px;
  }

  .hero {
    height: var(--hero-h);
    background-image: var(--hero-bg-mobile);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
  }

  .hero::after {
    display: none;
  }

  .hero__inner {
    position: relative;
    height: 100%;
    width: 100%;
    padding-inline: 16px;
    display: block;
  }

  .hero__fg {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1;
    pointer-events: none;
  }

  .hero__fg picture source,
  .hero__fg picture img {
    width: 100vw;
    height: 600px;
    object-fit: cover;
  }

  .hero__product {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    padding: 20px 18px;
    z-index: 2;
  }

  .hero__title {
    font-size: 24px;
  }

  .main {
    padding-block: 32px 56px;
  }

  .main__teasers {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .main__panel {
    padding: 24px 20px 28px;
  }

  .site-footer__top {
    flex-direction: column;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__nav-inner {
    position: relative;
    justify-content: flex-end;
    gap: 16px;
    padding-inline: 16px;
    height: 64px;
  }

  .hero__nav-links {
    display: none;
  }

  .hero__menu-toggle {
    display: inline-flex;
  }

  .hero__nav-brand {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: url('/public/images/fox.svg');
    align-items: center;
    justify-content: center;
    opacity: 0.25;
  }
}

@keyframes fgSlideIn {
  from {
    transform: translateX(48px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (min-width: 1367px) {
  .hero__fg-img {
    opacity: 0;
    transform: translateX(48px);
    animation: fgSlideIn 900ms cubic-bezier(.2, .65, .2, 1) 120ms forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__product,
  .hero__product::before {
    animation: none !important;
    transition: none !important;
  }
}

/* -----------------------------------------
   HERO – TITLE-ONLY VARIANT
------------------------------------------*/
.hero--title-only .hero__inner {
  height: 100%;
  margin-inline: auto;
  max-width: var(--inner-max);
  padding-inline: clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__title-only {
  max-width: 720px;
}

.hero__title--center {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.2;
}

@media (max-width: 767.98px) {
  .hero--title-only .hero__inner {
    padding-inline: 16px;
    justify-content: center;
    align-items: center;
  }

  .hero--title-only .hero__title--center {
    font-size: clamp(26px, 7vw, 32px);
  }
}
