/* ============================================================
   FABRHANA — shared site styles
   ============================================================ */

html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--fg);
  background: var(--paper); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--green-1); display: inline-flex; align-items: center; gap: 13px;
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: currentColor; display: inline-block; }
.eyebrow.center { justify-content: center; }
h1,h2,h3 { font-weight: 900; letter-spacing: var(--tracking-tight); line-height: 1.04; margin: 0; }
.h-xl { font-size: clamp(46px, 6.4vw, 92px); letter-spacing: var(--tracking-tighter); line-height: 0.98; }
.h-lg { font-size: clamp(34px, 4.6vw, 62px); }
.h-md { font-size: clamp(26px, 3vw, 40px); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--fg-muted); line-height: 1.65; }
.grad-word { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px;
  border-radius: var(--radius-pill); font-weight: 700; font-size: 15px; cursor: pointer;
  border: none; text-decoration: none; font-family: var(--font-sans);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--green-1); color: #fff; box-shadow: var(--shadow-green); }
.btn-primary:hover { transform: translateY(-3px); background: var(--green-2); box-shadow: 0 24px 60px rgba(5,131,66,0.36); }
.btn-ghost { background: #fff; color: var(--green-2); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--green-1); color: var(--green-1); }
.btn-ondark { background: rgba(255,255,255,0.10); color: #fff; border: 1px solid rgba(255,255,255,0.24); }
.btn-ondark:hover { transform: translateY(-3px); background: rgba(255,255,255,0.18); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav.scrolled { background: rgba(255,255,255,0.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); height: 66px; }
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  position: relative; text-decoration: none; color: var(--fg); font-weight: 600; font-size: 14.5px;
  padding: 6px 0; transition: color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--green-1);
  transition: width .3s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--green-1); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 10px; min-width: 230px; opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease-out);
  display: grid; gap: 2px;
}
.nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 9px; text-decoration: none;
  color: var(--fg); font-weight: 600; font-size: 14px; transition: background .2s, color .2s;
}
.nav-drop-menu a:hover { background: var(--paper-2); color: var(--green-1); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2.4px; background: var(--fg); border-radius: 2px; margin: 5px 0; transition: .3s; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--grad-ink); color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 40px;
  transform: translateX(100%); transition: transform .5s var(--ease-out); opacity: 0;
}
.mobile-menu.open { transform: translateX(0); opacity: 1; }
.mobile-menu a { color: #fff; text-decoration: none; font-size: 30px; font-weight: 800; padding: 12px 0; letter-spacing: -0.02em; }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- sections ---------- */
section { position: relative; }
.band { padding: clamp(80px, 11vw, 150px) 0; }
.band-dark { background: var(--grad-ink); color: var(--fg-on-dark); }
.band-dark .lead { color: var(--fg-on-dark-muted); }
.band-paper { background: var(--paper); }
.section-head { max-width: 760px; }
.section-head .h-lg { margin-top: 20px; }
.section-head .lead { margin-top: 22px; }

/* ---------- footer ---------- */
.footer { background: var(--ink-2); color: var(--fg-on-dark); padding: 78px 0 36px; position: relative; overflow: hidden; }
.footer .wrap { position: relative; z-index: 2; }
.footer-top { display: flex; justify-content: space-between; gap: 50px; flex-wrap: wrap; padding-bottom: 50px; border-bottom: 1px solid var(--line-dk); }
.footer-brand { max-width: 360px; }
.footer-brand .mark { display: flex; align-items: center; gap: 12px; }
.footer-brand .mark img { height: 42px; }
.footer-brand .mark span { font-weight: 900; font-size: 23px; letter-spacing: -0.01em; color: #fff; }
.footer-brand p { color: var(--fg-on-dark-muted); margin-top: 18px; font-size: 15px; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-bright); margin: 0 0 16px; font-weight: 700; }
.footer-col a { display: block; color: var(--fg-on-dark-muted); text-decoration: none; font-size: 14.5px; padding: 6px 0; transition: color .2s, transform .2s; }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; font-size: 13px; color: var(--fg-on-dark-muted); flex-wrap: wrap; }

/* ---------- shared cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .footer-top { flex-direction: column; }
}
