/* =========================================================
   BASE (2026 clean)
   - white / green / gold
   - SEO-friendly: readable + fast
   - Animations are driven by data-reveal + JS (reveal.js)
   ========================================================= */

:root{
  --hm-ink: #0f172a;
  --hm-muted: rgba(15,23,42,.72);

  --hm-green: #1f8a5b;
  --hm-green2: #0f6a42;
  --hm-gold: #c9a227;

  --hm-radius-xl: 26px;
  --hm-radius-lg: 18px;

  --hm-shadow: 0 24px 60px rgba(15,23,42,.10);
  --hm-shadow-soft: 0 18px 44px rgba(15,23,42,.08);

  /* used by scroll offset (navbar height is defined in navbar.css) */
  --hm-scroll-gap: -130px;

  /* =========================================================
     ANCHOR OFFSET (FIX for sticky navbar)
     - navbar height comes from --hm-nav-h (navbar.css)
     - tweak only --hm-scroll-gap if you want tighter landing
     ========================================================= */
  --hm-anchor-offset: calc(var(--hm-nav-h) + var(--hm-scroll-gap));
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  width: 100%;
  scroll-behavior: smooth;
}

/* =========================================================
   ANCHOR SCROLL FIX (GLOBAL)
   - Makes #anchors land correctly under sticky navbar
   ========================================================= */
html{
  scroll-padding-top: var(--hm-anchor-offset);
}

/* Works for ANY element that has an id, not only .section */
:where([id]){
  scroll-margin-top: var(--hm-anchor-offset);
}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--hm-ink);

  /* Page gradient: same style glow, but fades to WHITE on top & bottom */
  background:
    /* White top + white bottom (the "caps") */
    linear-gradient(
      180deg,
      #ffffff 0%,
      #ffffff 10%,
      rgba(255,255,255,0) 24%,
      rgba(255,255,255,0) 76%,
      #ffffff 92%,
      #ffffff 100%
    ),

    /* Existing vibe (green + gold soft glows) */
    radial-gradient(900px 520px at 18% 18%, rgba(31,138,91,.10), transparent 60%),
    radial-gradient(900px 520px at 82% 12%, rgba(201,162,39,.10), transparent 60%),

    #ffffff;
}

img{ max-width: 100%; height: auto; }

a{ color: inherit; }

.container{
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 26px;
}

@media (max-width: 980px){
  .container{ padding: 0 16px; }
}

/* Accessibility */
.skip-link{
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.18);
  box-shadow: var(--hm-shadow-soft);
  transform: translateY(-140%);
  transition: transform 160ms ease;
  z-index: 9999;
}
.skip-link:focus{ transform: translateY(0); }

/* Sections */
.section{
  position: relative;
  padding: clamp(54px, 7vw, 96px) 0;
}

/* Keep your old rule too (doesn't hurt) */
.section[id]{
  scroll-margin-top: calc(var(--hm-nav-h) + var(--hm-scroll-gap));
}

.section__head{
  display: grid;
  gap: 10px;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(15,23,42,.62);
}

.kicker::before{
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hm-gold), rgba(201,162,39,0));
}

.h2{
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  margin: 0;
}

.p{
  margin: 0;
  color: var(--hm-muted);
  line-height: 1.7;
  font-size: 16px;
}

/* Cards + surfaces */
.surface{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--hm-radius-xl);
  box-shadow: var(--hm-shadow-soft);
}

/* Reveal system (data-reveal="up|fade|clip|split")
   IMPORTANT: progressive enhancement
   - By default, content is VISIBLE (SEO + no-JS safe).
   - When JS loads, it adds html.hm-reveal, enabling animations.
*/
html.hm-reveal [data-reveal]{
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition:
    opacity 680ms cubic-bezier(.2,.8,.2,1),
    transform 680ms cubic-bezier(.2,.8,.2,1),
    filter 680ms cubic-bezier(.2,.8,.2,1),
    clip-path 820ms cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform, filter;
}

html.hm-reveal [data-reveal].is-inview{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

html.hm-reveal [data-reveal="fade"]{ transform: none; }

html.hm-reveal [data-reveal="clip"]{
  clip-path: inset(0 0 100% 0 round var(--hm-radius-xl));
}
html.hm-reveal [data-reveal="clip"].is-inview{
  clip-path: inset(0 0 0 0 round var(--hm-radius-xl));
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html, body{ scroll-behavior: auto; }
  html.hm-reveal [data-reveal]{
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }
}

/* Small utility */
.hr-soft{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15,23,42,.10), transparent);
}


/* Lock scroll when mobile drawer is open */
html.hm-lock,
html.hm-lock body{
  overflow: hidden;
}

/* =========================================================
   MOBILE DRAWER MENU (right slide-in)
   - Only shows on mobile
   - Contains ONLY nav buttons
   ========================================================= */

/* Hamburger button */
.hm-navToggle{
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.hm-navToggle span{
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

@media (max-width: 980px){
  .hm-navToggle{ display: inline-flex; }
}

/* Drawer container */
.hm-drawer{
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.hm-drawer[aria-hidden="false"]{
  pointer-events: auto;
}

/* Overlay */
.hm-drawer__overlay{
  position: absolute;
  inset: 0;
  background: rgba(10,16,20,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.hm-drawer[aria-hidden="false"] .hm-drawer__overlay{
  opacity: 1;
}

/* Panel */
.hm-drawer__panel{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(86vw, 360px);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82));
  border-left: 1px solid rgba(15,23,42,.12);
  box-shadow: -30px 0 80px rgba(0,0,0,.25);

  transform: translateX(110%);
  transition: transform 280ms cubic-bezier(.2,.8,.2,1);
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;

  display: flex;
  flex-direction: column;
}

.hm-drawer[aria-hidden="false"] .hm-drawer__panel{
  transform: translateX(0);
}

/* Top bar */
.hm-drawer__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
}

.hm-drawer__title{
  font-weight: 950;
  letter-spacing: .02em;
  color: rgba(11,26,20,.92);
  font-size: 15px;
}

.hm-drawer__close{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(11,26,20,.12);
  background: rgba(255,255,255,.65);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  color: rgba(11,26,20,.9);
}

/* Nav items (ONLY buttons) */
.hm-drawer__nav{
  padding: 8px 16px 18px;
  display: grid;
  gap: 10px;
  overflow: auto;
}

/* Make your nav buttons look nice inside drawer
   - We target common nav links with .hm-nav__link
   - If your nav uses different class, tell me the class name and I map it
*/
.hm-drawer__nav a{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 950;
  letter-spacing: .02em;

  background: rgba(255,255,255,.75);
  border: 1px solid rgba(11,26,20,.12);
  color: rgba(11,26,20,.92);

  box-shadow: 0 18px 44px rgba(0,0,0,.10);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hm-drawer__nav a:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 58px rgba(0,0,0,.14);
}

@media (max-width: 980px){
  .skip-link{
    display: none !important;
  }
}

/* === FIX: stop horizontal scroll caused by offscreen effects === */
html{ overflow-x: clip; }
body{ overflow-x: clip; }

@supports not (overflow-x: clip){
  html, body{ overflow-x: hidden; }
}