/* ============================================================
   iHelp Support Services — NDIS Support, Perth
   Visual system modelled on the Elder Care Framer template
   ============================================================ */

:root {
  --cream: #f4f1eb;
  --cream-2: #f8f7f6;
  --white: #ffffff;
  --ink: #260a00;          /* dark brown — primary text & dark sections */
  --ink-soft: #3a2118;
  --muted: #5a5449;        /* secondary text */
  --line: rgba(38, 10, 0, 0.10);
  --line-2: rgba(38, 10, 0, 0.06);
  --accent: #ff5c00;       /* signature orange */
  --accent-soft: #ffd9c4;
  --accent-tint: rgba(255, 92, 0, 0.10);
  --radius: 28px;
  --radius-sm: 16px;
  --radius-pill: 999px;
  --maxw: 1200px;
  --gut: 24px;
  --shadow: 0 24px 60px -28px rgba(38, 10, 0, 0.28);
  --shadow-sm: 0 14px 40px -24px rgba(38, 10, 0, 0.30);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- top accent bar ---------- */
.topbar { height: 5px; width: 100%; background: var(--accent); }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section--tight { padding: 80px 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 50px);
}
.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
}
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 12px 30px -12px rgba(255,92,0,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(255,92,0,.8); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--white); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--onfilm { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--onfilm:hover { background: rgba(255,255,255,.28); }

/* ============================================================
   HEADER
   ============================================================ */
.nav {
  position: fixed; inset: 5px 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled { background: rgba(244,241,235,.85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand small { display:block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-top: -3px; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 8px 14px; border-radius: var(--radius-pill);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__links a:hover { background: var(--accent-tint); color: var(--accent); }
.nav__links a.active { background: var(--accent-soft); color: var(--accent); }

.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display:block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; padding-bottom: 56px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(38,10,0,.82) 0%, rgba(38,10,0,.55) 38%, rgba(38,10,0,.12) 70%, rgba(38,10,0,0) 100%),
    linear-gradient(180deg, rgba(38,10,0,.55) 0%, rgba(38,10,0,.12) 26%, rgba(38,10,0,.2) 60%, rgba(38,10,0,.78) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: end; }

.hero__pill {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32);
  color: #fff; padding: 7px 8px 7px 18px; border-radius: var(--radius-pill);
  font-size: 14px; backdrop-filter: blur(8px); margin-bottom: 26px;
}
.hero__pill b { font-weight: 500; }
.hero__pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.hero__pill a { background: #fff; color: var(--ink); padding: 6px 14px; border-radius: var(--radius-pill); font-weight: 500; font-size: 13px; }

.hero h1 { color: #fff; font-size: clamp(38px, 6.2vw, 76px); max-width: 760px; }
.hero p.lead { color: rgba(255,255,255,.86); font-size: clamp(17px, 1.6vw, 21px); max-width: 540px; margin-top: 22px; }
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero__cards { display: grid; gap: 16px; }
.hero-card {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(16px); border-radius: var(--radius-sm);
  padding: 22px; color: #fff;
}
.hero-card h3 { color: #fff; font-size: 19px; margin-bottom: 8px; display:flex; align-items:center; gap:10px; }
.hero-card p { color: rgba(255,255,255,.8); font-size: 14.5px; line-height: 1.55; }
.hero-card__icon { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; flex: none; }
.hero-card__icon svg { width: 18px; height: 18px; color: #fff; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--cream); }
.about__split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; margin-top: 56px; align-items: stretch; }

.about__panel {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 44px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 28px; overflow: hidden;
}
/* subtle brand glow in the corner */
.about__panel::before {
  content: ""; position: absolute; top: -90px; right: -90px; width: 240px; height: 240px;
  background: radial-gradient(circle, var(--accent-tint), transparent 70%); pointer-events: none;
}
.about__panel > * { position: relative; z-index: 1; }

.about__panel-top { display: flex; align-items: center; gap: 18px; }
.about__avatars { display: flex; }
.about__avatars img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; margin-left: -16px; box-shadow: var(--shadow-sm);
}
.about__avatars img:first-child { margin-left: 0; }
.about__panel-meta strong { display: block; font-weight: 600; font-size: 16px; }
.about__panel-meta span { font-size: 14px; color: var(--muted); }

.about__statement { font-size: clamp(20px, 2.1vw, 26px); color: var(--ink); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }

.about__list { list-style: none; display: flex; flex-direction: column; gap: 14px; padding-top: 4px; border-top: 1px solid var(--line-2); margin-top: 2px; }
.about__list li { display: flex; align-items: flex-start; gap: 13px; font-size: 16px; color: var(--ink-soft); }
.about__list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-top: 1px; }
.about__list .tick svg { width: 15px; height: 15px; }

.about__panel .link-more { margin-top: auto; }

.about__photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--accent-soft); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.about__photo:hover img { transform: scale(1.05); }
.about__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(38,10,0,.45)); }
.about__photo-badge {
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(14px); border-radius: 18px; padding: 14px 18px; color: #fff;
}
.about__photo-badge .ab-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--accent); display: grid; place-items: center; }
.about__photo-badge .ab-ic svg { width: 20px; height: 20px; color: #fff; }
.about__photo-badge strong { display: block; font-weight: 600; font-size: 16px; }
.about__photo-badge > div span { font-size: 13px; color: rgba(255,255,255,.85); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.stat { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 26px; text-align: center; }
.stat b { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; color: var(--accent); letter-spacing: -0.03em; }
.stat span { font-size: 14px; color: var(--muted); }

/* ============================================================
   SERVICES — alternating rows
   ============================================================ */
.services { background: var(--cream-2); }
.svc-rows { margin-top: 64px; display: flex; flex-direction: column; gap: 28px; }
.svc-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.svc-row__media { min-height: 340px; overflow: hidden; background: var(--accent-soft); }
.svc-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-row:hover .svc-row__media img { transform: scale(1.05); }
.svc-row__body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.svc-row.reverse .svc-row__media { order: 2; }
.svc-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-tint); display: grid; place-items: center; margin-bottom: 22px; }
.svc-icon svg { width: 24px; height: 24px; color: var(--accent); }
.svc-row__body h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.svc-row__body p { color: var(--muted); margin-bottom: 26px; max-width: 420px; }
.svc-code { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .03em; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); align-self: flex-start; padding: 11px 22px; border: 1px solid var(--line); border-radius: var(--radius-pill); transition: .25s var(--ease); }
.link-more:hover { background: var(--accent); color: #fff; border-color: var(--accent); gap: 12px; }
.link-more svg { width: 15px; height: 15px; }

/* full registration grid */
.reg { background: var(--cream); }
.reg-group { margin-top: 44px; }
.reg-group + .reg-group { margin-top: 40px; }
.reg-group__label { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.reg-group__label b { font-size: 18px; font-weight: 600; }
.reg-group__label span { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-tint); padding: 5px 12px; border-radius: var(--radius-pill); }
.reg-group__label i { flex: 1; height: 1px; background: var(--line); }
.reg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.reg-item {
  display: flex; gap: 16px; align-items: flex-start; background: var(--white);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 20px 22px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.reg-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--accent-soft); }
.reg-item .code { font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 8px; padding: 6px 9px; flex: none; letter-spacing: .02em; }
.reg-item .txt b { display: block; font-weight: 500; font-size: 16px; line-height: 1.35; }

/* ============================================================
   WHY CHOOSE — accordion
   ============================================================ */
.why { background: var(--ink); color: #fff; }
.why h2, .why .section-head h2 { color: #fff; }
.why .eyebrow { background: rgba(255,255,255,.10); color: var(--accent-soft); }
.why__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; margin-top: 56px; align-items: start; }
.why__counter { font-size: clamp(54px, 8vw, 96px); font-weight: 600; letter-spacing: -0.04em; color: #fff; }
.why__counter span { color: rgba(255,255,255,.4); }
.why__counter + p { color: rgba(255,255,255,.65); margin-top: 16px; max-width: 320px; }
.acc { border-top: 1px solid rgba(255,255,255,.14); }
.acc__item { border-bottom: 1px solid rgba(255,255,255,.14); }
.acc__head { width: 100%; display: flex; align-items: center; gap: 20px; background: none; border: 0; color: #fff; cursor: pointer; padding: 26px 4px; text-align: left; font-family: inherit; }
.acc__num { font-size: 14px; color: var(--accent); font-weight: 600; width: 30px; flex: none; }
.acc__title { font-size: clamp(19px, 2.2vw, 26px); font-weight: 500; letter-spacing: -0.01em; flex: 1; transition: color .25s var(--ease); }
.acc__plus { width: 26px; height: 26px; flex: none; position: relative; }
.acc__plus::before, .acc__plus::after { content:""; position: absolute; background: rgba(255,255,255,.6); transition: .3s var(--ease); }
.acc__plus::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.acc__plus::after { left: 12px; top: 4px; bottom: 4px; width: 2px; }
.acc__item.open .acc__plus::after { transform: rotate(90deg); opacity: 0; }
.acc__item.open .acc__title { color: var(--accent); }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc__panel p { color: rgba(255,255,255,.7); padding: 0 4px 28px 50px; max-width: 560px; }

/* ============================================================
   WHO WE SUPPORT — card grid
   ============================================================ */
.who { background: var(--cream); }
.who__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.who-card { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.who-card:hover { transform: translateY(-4px); }
.who-card .who-ic { width: 54px; height: 54px; border-radius: 14px; background: var(--accent-tint); display: grid; place-items: center; margin-bottom: 20px; }
.who-card .who-ic svg { width: 26px; height: 26px; color: var(--accent); }
.who-card h3 { font-size: 21px; margin-bottom: 10px; }
.who-card p { color: var(--muted); font-size: 15px; }
.who-card.feature { background: var(--ink); color: #fff; }
.who-card.feature h3 { color: #fff; }
.who-card.feature p { color: rgba(255,255,255,.72); }
.who-card.feature .who-ic { background: rgba(255,255,255,.10); }

/* ============================================================
   PRINCIPLES — marquee
   ============================================================ */
.principles { background: var(--cream-2); padding: 84px 0; overflow: hidden; }
.principles .section-head { text-align: center; margin: 0 auto 40px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 18px; align-items: center; padding-right: 18px; animation: scrollx 28s linear infinite; white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 18px; font-size: clamp(28px, 4vw, 52px); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.marquee__item .star { color: var(--accent); font-size: .7em; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ============================================================
   AREAS WE COVER
   ============================================================ */
.areas { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
/* faint coverage-map glow */
.areas::before {
  content: ""; position: absolute; top: -10%; right: -8%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,92,0,.18), transparent 62%); pointer-events: none;
}
.areas h2 { color: #fff; }
.areas .eyebrow { background: rgba(255,255,255,.10); color: var(--accent-soft); }
.areas__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; margin-top: 54px; align-items: center; position: relative; }
.areas__left p { color: rgba(255,255,255,.7); margin-top: 18px; max-width: 420px; }

.areas__stats { display: flex; gap: 14px; margin: 30px 0 26px; flex-wrap: wrap; }
.areas__stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 16px 20px; min-width: 104px; }
.areas__stat b { display: block; font-size: 26px; font-weight: 600; color: var(--accent-soft); letter-spacing: -0.02em; }
.areas__stat span { font-size: 13px; color: rgba(255,255,255,.6); }

/* glass panel with dotted map texture */
.areas__panel {
  position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 34px; backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 28px; overflow: hidden;
}
.areas__panel::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.4px);
  background-size: 22px 22px; pointer-events: none; mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.area-region { position: relative; z-index: 1; }
.area-region + .area-region { padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.area-region__head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.area-pin { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--accent-tint); border: 1px solid rgba(255,92,0,.3); display: grid; place-items: center; }
.area-pin svg { width: 20px; height: 20px; color: var(--accent); }
.area-region__head strong { display: block; font-weight: 600; font-size: 17px; }
.area-region__head span { font-size: 13px; color: rgba(255,255,255,.55); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); padding: 10px 17px; border-radius: var(--radius-pill); font-size: 15px; transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease); cursor: default; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .65; flex: none; transition: .25s var(--ease); }
.chip:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.chip:hover::before { background: #fff; opacity: 1; }
.chip.muted { background: transparent; border-style: dashed; border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.65); }
.chip.muted::before { display: none; }
.chip.muted:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #fff; transform: none; }
.chip svg { width: 14px; height: 14px; color: var(--accent); }
.chip:hover svg { color: #fff; }
.area-note { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.55); }

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.cta { background: var(--accent); color: #fff; }
.cta__inner { text-align: center; max-width: 760px; margin: 0 auto; }
.cta h2 { color: #fff; font-size: clamp(32px, 5vw, 56px); }
.cta p { color: rgba(255,255,255,.9); margin-top: 18px; font-size: 19px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.btn--ondark { background: #fff; color: var(--accent); }
.btn--ondark:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(0,0,0,.4); }
.btn--ondark-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ondark-ghost:hover { background: rgba(255,255,255,.14); }

.contact { background: var(--cream); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 54px; }
.contact__info { display: flex; flex-direction: column; gap: 14px; }
.contact-line { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 20px 24px; }
.contact-line .ci { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-tint); display: grid; place-items: center; flex: none; }
.contact-line .ci svg { width: 22px; height: 22px; color: var(--accent); }
.contact-line span { font-size: 13px; color: var(--muted); display: block; }
.contact-line b { font-weight: 500; font-size: 17px; }
.form { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 7px; }
.field { margin-bottom: 18px; }
.form input, .form textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.form textarea { resize: vertical; min-height: 110px; }
.form .btn { width: 100%; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 84px 0 30px; }
.footer__top { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.footer__brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 600; font-size: 21px; margin-bottom: 22px; }
.footer__socials { display: flex; gap: 12px; }
.footer__socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; transition: .25s var(--ease); }
.footer__socials a:hover { background: var(--accent); border-color: var(--accent); }
.footer__socials svg { width: 18px; height: 18px; color: #fff; }
.footer__tag { color: #fff; font-size: clamp(24px, 3vw, 36px); font-weight: 500; letter-spacing: -0.02em; max-width: 460px; }
.footer__cols { display: flex; gap: 60px; margin-top: 30px; flex-wrap: wrap; }
.footer__cols h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer__cols ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__cols a { font-size: 15px; transition: color .2s var(--ease); }
.footer__cols a:hover { color: var(--accent); }
.footer__badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(74,222,128,.12); color: #86efac; border: 1px solid rgba(74,222,128,.25); padding: 9px 16px; border-radius: var(--radius-pill); font-size: 14px; margin-top: 30px; }
.footer__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.2); }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 60px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.from-left  { transform: translateX(-56px); }
.reveal.from-right { transform: translateX(56px); }
.reveal.scale      { transform: scale(.92); }
.reveal.pop        { transform: translateY(14px) scale(.85); transition-duration: .55s; }
.reveal.in.from-left, .reveal.in.from-right, .reveal.in.scale, .reveal.in.pop { transform: none; }

/* ============================================================
   MOTION LAYER — entrances, parallax, micro-interactions
   ============================================================ */

/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: linear-gradient(90deg, #ff8a3d, var(--accent));
  z-index: 200; transition: width .12s linear;
  box-shadow: 0 0 12px rgba(255,92,0,.6);
}

/* nav hide-on-scroll-down */
.nav { transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .45s var(--ease); }
.nav--hidden { transform: translateY(-130%); }

/* ---- header legibility over hero (light by default, dark once scrolled) ---- */
/* soft scrim so the transparent header stays readable on any photo */
.nav::before {
  content: ""; position: absolute; top: -5px; left: 0; right: 0; height: 150px;
  background: linear-gradient(180deg, rgba(38,10,0,.55) 0%, rgba(38,10,0,.25) 45%, rgba(38,10,0,0) 100%);
  pointer-events: none; z-index: -1; transition: opacity .35s var(--ease);
}
.nav.scrolled::before { opacity: 0; }

/* light state (over hero) */
.brand { color: #fff; }
.brand small { color: rgba(255,255,255,.82); }
.nav__links a { color: #fff; }
.nav__links a:hover { background: rgba(255,255,255,.18); color: #fff; }
.nav .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.nav .btn--ghost:hover { background: rgba(255,255,255,.16); }
.nav__toggle span { background: #fff; }

/* dark state (after scroll, cream background) */
.nav.scrolled .brand { color: var(--ink); }
.nav.scrolled .brand small { color: var(--muted); }
.nav.scrolled .nav__links a { color: var(--ink); }
.nav.scrolled .nav__links a:hover { background: var(--accent-tint); color: var(--accent); }
.nav.scrolled .nav__links a.active { background: var(--accent-soft); color: var(--accent); }
.nav.scrolled .btn--ghost { color: var(--ink); border-color: var(--line); }
.nav.scrolled .btn--ghost:hover { background: var(--white); }
.nav.scrolled .nav__toggle span { background: var(--ink); }

/* keep the open mobile menu readable (white dropdown) regardless of scroll state */
.nav.open .nav__links a { color: var(--ink); }
.nav.open .nav__links a:hover { background: var(--accent-tint); color: var(--accent); }

/* hero entrance (driven by body.loaded) */
[data-hero] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--hd, 0s); }
body.loaded [data-hero] { opacity: 1; transform: none; }

.hero-title { font-size: clamp(38px, 6.2vw, 76px); max-width: 760px; color: #fff; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .ln i {
  display: block; font-style: normal; transform: translateY(115%) rotate(2deg);
  transition: transform 1.1s var(--ease); transition-delay: var(--ld, 0s);
}
body.loaded .hero-title .ln i { transform: none; }

/* hero image slow zoom on load + parallax hook */
.hero__bg img { transform: scale(1.12); transition: transform 2.4s var(--ease); will-change: transform; }
body.loaded .hero__bg img { transform: scale(1.02); }

/* floating hero cards */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float { animation: floaty 6s ease-in-out infinite; }
.float--slow { animation-duration: 8s; animation-delay: -2s; }
.hero-card { transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease); }
.hero-card:hover { transform: translateY(-6px) scale(1.015); background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); }

/* button shine + arrow glide */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: left .7s var(--ease); pointer-events: none;
}
.btn:hover::after { left: 140%; }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.link-more svg { transition: transform .3s var(--ease); }

/* tilt cards (JS-driven, with graceful CSS lift fallback) */
.tilt { transition: transform .35s var(--ease), box-shadow .35s var(--ease); transform-style: preserve-3d; will-change: transform; }
.tilt .who-ic, .tilt .svc-icon { transition: transform .35s var(--ease); }
.tilt:hover { box-shadow: var(--shadow); }

/* icon pop on card hover */
.who-card:hover .who-ic { transform: translateZ(30px) scale(1.08) rotate(-4deg); }
.reg-item:hover .code { transform: scale(1.06); }
.reg-item .code { transition: transform .3s var(--ease); }

/* eyebrow subtle pulse dot already animated; add accent underline to section heads */
.section-head h2 { background-size: 0% 2px; }

/* stat count emphasis */
.stat b { font-variant-numeric: tabular-nums; }
.stat.in { animation: statpop .6s var(--ease); }
@keyframes statpop { 0% { transform: scale(.96); } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* accordion title slide */
.acc__head:hover .acc__title { transform: translateX(6px); }
.acc__title { transition: color .25s var(--ease), transform .25s var(--ease); }

/* magnetic buttons keep transition */
.magnetic { transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease); will-change: transform; }

/* contact lines hover slide */
.contact-line { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.contact-line:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); border-color: var(--accent-soft); }
.contact-line .ci { transition: transform .3s var(--ease); }
.contact-line:hover .ci { transform: scale(1.08) rotate(-6deg); }

/* footer social spin-in */
.footer__socials a { transition: transform .3s var(--ease), background .25s var(--ease), border-color .25s var(--ease); }
.footer__socials a:hover { transform: translateY(-4px) rotate(6deg); }

/* CTA gradient shimmer */
.cta { background: linear-gradient(120deg, #ff6a14, var(--accent) 45%, #ff7a2e); background-size: 180% 180%; animation: ctashift 12s ease infinite; }
@keyframes ctashift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* scroll-down cue in hero */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; display: grid; place-items: center; gap: 8px; color: rgba(255,255,255,.8); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; border-radius: 3px; background: #fff; transform: translateX(-50%); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, [data-hero], .hero-title .ln i { opacity: 1 !important; transform: none !important; }
  .hero__bg img { transform: scale(1.02) !important; }
  .float { animation: none !important; }
  .scroll-cue { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__cards { grid-template-columns: 1fr 1fr; }
  .why__grid, .areas__grid, .footer__top, .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .who__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --gut: 20px; --radius: 24px; }
  .section { padding: clamp(60px, 11vw, 90px) 0; }

  /* collapse nav to hamburger on tablet & below */
  .nav__inner { height: 68px; }
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: var(--gut); right: var(--gut);
    background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 12px; gap: 4px; box-shadow: var(--shadow);
    animation: menuIn .35s var(--ease);
  }
  .nav.open .nav__links a { padding: 13px 16px; font-size: 16px; }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .about__split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row.reverse .svc-row__media { order: 0; }
  .svc-row__media { min-height: 240px; }
  .svc-row__body { padding: 32px; }
  .reg-grid { grid-template-columns: 1fr; }
  .who__grid { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
  .brand small { display: none; }
  .nav__cta .btn--primary { padding: 10px 18px; font-size: 14px; }

  .hero { min-height: auto; align-items: flex-start; padding-top: 104px; padding-bottom: 48px; }
  .hero__grid { gap: 28px; }
  .hero__cards { grid-template-columns: 1fr; gap: 14px; }
  .hero__pill { font-size: 13px; flex-wrap: wrap; }
  .hero-title { font-size: clamp(34px, 9vw, 46px); }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .scroll-cue { display: none; }
  .svc-icon { width: 46px; height: 46px; }
}

@media (max-width: 460px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px; }
  .about__panel { padding: 28px; min-height: 0; }
  .about__avatars img { width: 52px; height: 52px; }
  .form { padding: 24px; }
  .footer__cols { gap: 36px; }
}

/* short landscape phones: don't force full-height hero */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 620px; }
  .scroll-cue { display: none; }
}
