/* ==========================================================================
   AscendedGrowth LLC — Global Stylesheet
   "Bright Trust" palette (white / blue / amber)
   Mobile-first, WCAG 2.1 AA-minded, reader-mode friendly.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --color-bg: #ffffff;
  --color-surface: #f5f8fc;
  --color-surface-alt: #eef3fa;
  --color-blue: #10457e;        /* primary — AA on white */
  --color-blue-dark: #0b3260;   /* hover / headings */
  --color-blue-light: #1e69bb;
  --color-amber: #f5a623;       /* accent / CTA fill */
  --color-amber-dark: #b9740a;  /* amber text on white (AA) */
  --color-ink: #1a2330;         /* body text */
  --color-ink-soft: #43506a;    /* secondary text — AA on white */
  --color-border: #d6e0ee;
  --color-white: #ffffff;

  --color-ink-strong: #0c1420;  /* near-black for big editorial headings */
  --color-amber-soft: #fff4e0;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --maxw: 1160px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 6px 24px rgba(16, 69, 126, 0.10);
  --shadow-lg: 0 20px 50px -12px rgba(11, 50, 96, 0.28);
  --focus: 3px solid #1e69bb;
  --grad-hero: radial-gradient(1200px 600px at 15% -10%, #dbe8f8 0%, rgba(219,232,248,0) 60%),
               radial-gradient(900px 500px at 110% 10%, #fde7c4 0%, rgba(253,231,196,0) 55%),
               linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-blue-dark);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.5rem); color: var(--color-ink-strong); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

a { color: var(--color-blue-light); }
a:hover { color: var(--color-blue-dark); }

/* Visible focus for keyboard users everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--tint { background: var(--color-surface); }
.section--blue { background: var(--color-blue-dark); color: #eaf1fb; }
.section--blue h2, .section--blue h3 { color: #fff; }
.lead { font-size: 1.15rem; color: var(--color-ink-soft); max-width: 60ch; }

/* ---- Skip link (accessibility) ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-amber);
  color: #1a1a1a;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;              /* lets the open mobile menu drop to its own line */
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--color-blue-dark);
  text-decoration: none;
  font-size: 1.15rem;
}
.brand__badge {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--color-blue);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--color-blue-dark);
  cursor: pointer;
}
.nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
}
/* Mobile: opened menu becomes a full-width panel that drops below the header row */
.nav__menu.is-open {
  display: flex;
  order: 3;
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}
.nav__menu a {
  display: block;
  padding: 0.85rem 0.75rem;      /* comfortable ~44px tap target on touch devices */
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
}
.nav__menu .nav__cta a { text-align: center; }
.nav__menu a:hover,
.nav__menu a[aria-current="page"] {
  color: var(--color-blue-dark);
  background: var(--color-surface-alt);
}
.nav__cta { margin-top: 0.25rem; }

/* Desktop nav */
@media (min-width: 800px) {
  .nav__toggle { display: none; }
  .nav__menu,
  .nav__menu.is-open {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    /* undo the mobile full-width panel styles */
    order: 0;
    width: auto;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .nav__menu a { padding: 0.4rem 0.5rem; }   /* tighter on desktop */
  .nav__cta { margin-top: 0; margin-left: 0.5rem; }
  .nav__cta a { padding: 0.6rem 1.1rem; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-amber); color: #1a1a1a; }
.btn--primary:hover { background: #e0940f; color: #1a1a1a; }
.btn--ghost { background: transparent; color: var(--color-blue-dark); border-color: var(--color-blue); }
.btn--ghost:hover { background: var(--color-surface-alt); color: var(--color-blue-dark); }
.btn--on-blue { background: var(--color-amber); color: #1a1a1a; }
.btn--on-blue:hover { background: #ffbb45; }

/* ---- Hero ---- */
.hero {
  background: var(--grad-hero);
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero__inner { max-width: 900px; }
.hero h1 { margin-top: 0; margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 2rem; font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-amber-dark);
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  background: var(--color-amber-soft);
  border-radius: 999px;
}

/* ---- Trust bar ---- */
.trustbar {
  background: var(--color-blue-dark);
  color: #eaf1fb;
  text-align: center;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  font-size: 0.98rem;
}

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card__icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--color-surface-alt);
  color: var(--color-blue);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

/* ---- Steps ---- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-left: 3.25rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem;
  background: var(--color-blue);
  color: #fff;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 800;
}

/* ---- Feature list ---- */
.feature-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.feature-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
}
.feature-list li::before {
  content: "\2713";
  position: absolute; left: 0;
  color: var(--color-amber-dark);
  font-weight: 800;
}

/* ---- Pricing ---- */
.tier {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.tier--featured { border: 2px solid var(--color-amber); }
.tier__badge {
  align-self: flex-start;
  background: var(--color-amber);
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.tier .btn { margin-top: auto; text-align: center; }

/* ---- Forms ---- */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
}
.form-field textarea { min-height: 120px; resize: vertical; }
fieldset {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem 1rem 0.5rem;
  margin: 0 0 1.1rem;
}
legend { font-weight: 600; padding: 0 0.4rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.checkbox-row input { width: auto; }
.form-hint { font-size: 0.9rem; color: var(--color-ink-soft); }

/* ---- FAQ ---- */
.faq details {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 0;
  color: var(--color-blue-dark);
}

/* ---- Map ---- */
.map-embed {
  border: 0;
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-blue-dark);
  color: #cfe0f3;
  padding: 2.5rem 0 1.5rem;
}
.site-footer a { color: #cfe0f3; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .footer-h { color: #fff; margin: 0 0 0.6rem; font-size: 1.05rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: #a9c3e0;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.container--narrow { max-width: 760px; }
.lead--on-blue { color: #dce9f8; }
.stack > * + * { margin-top: 1rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- Honeypot (spam trap) — visually and semantically hidden ---- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---- Portfolio ---- */
.portfolio-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
.case {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.case__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #dbe8f8, #eef3fa);
  display: grid;
  place-items: center;
  color: var(--color-blue);
  font-weight: 700;
  text-align: center;
  padding: 1rem;
}
.case__body { padding: 1.25rem 1.5rem 1.5rem; }
.case__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-amber-dark);
  margin-bottom: 0.4rem;
}
.case h3 { margin: 0 0 0.5rem; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery__item {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #dbe8f8, #eef3fa);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--color-blue);
  font-size: 0.85rem; font-weight: 600;
  text-align: center; padding: 0.5rem;
}

/* ---- Form status message ---- */
.form-status {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 1rem;
}
.form-status--ok {
  background: #e6f4ea;
  color: #1c5b34;
  border: 1px solid #a8d5ba;
}
.form-status--error {
  background: #fdecea;
  color: #8a1c13;
  border: 1px solid #f0b3ad;
}

/* ==========================================================================
   ELEVATION LAYER — bold & editorial polish (motion, depth, iconography)
   ========================================================================== */

/* Section eyebrow labels (editorial section intros) */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-blue-light);
  margin-bottom: 0.6rem;
}
.section--blue .eyebrow { color: #9ec3ee; }

/* Bigger, tighter section headings + generous rhythm */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section h2 { max-width: 20ch; }
.section--tint h2, .section--blue h2, .text-center h2 { max-width: none; }

/* Buttons: weightier, springier */
.btn {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  padding: 0.95rem 1.7rem;
  transition: transform 0.15s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn--primary { box-shadow: 0 8px 20px -8px rgba(245,166,35,0.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(245,166,35,0.8); }
.btn--ghost:hover { transform: translateY(-2px); }

/* Brand badge: subtle gradient + weight */
.brand__badge {
  background: linear-gradient(135deg, var(--color-blue-light), var(--color-blue-dark));
  font-family: var(--font-display);
  box-shadow: 0 4px 12px -4px rgba(16,69,126,0.5);
}
.brand { font-family: var(--font-display); letter-spacing: -0.01em; }

/* Cards: lift on hover, real SVG icons */
.card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #bcd4ef; }
.card__icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #eaf2fc, #dbe8f8);
  color: var(--color-blue);
  border-radius: 14px;
  margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; stroke: var(--color-blue); }
.card h3 { color: var(--color-blue-dark); }

/* Editorial process: oversized numerals */
.steps { gap: 1.75rem; }
.step {
  padding: 1.75rem;
  padding-top: 3.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.75rem; top: 1.4rem;
  width: auto; height: auto;
  background: none;
  color: var(--color-amber);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  border-radius: 0;
  display: block;
  letter-spacing: -0.03em;
}
.step h3 { margin-top: 0; }

/* "What I bring" stat band */
.band {
  background: var(--color-blue-dark);
  color: #eaf1fb;
}
.band__grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  text-align: center;
}
@media (min-width: 700px) { .band__grid { grid-template-columns: repeat(3, 1fr); } }
.band__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.band__label { color: #b9d1ee; font-size: 0.98rem; }

/* Image slot — designed placeholder for CJ's photography */
.imgslot {
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(45deg, #e7effa 0 12px, #eef4fb 12px 24px);
  border: 1px dashed #9cc0e8;
  display: grid; place-items: center;
  color: var(--color-blue);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  padding: 1.5rem;
  min-height: 240px;
}
.hero__media { margin-top: 2.5rem; }
.hero__media .imgslot { min-height: clamp(220px, 34vw, 380px); }

/* Scroll cue */
.scroll-cue {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-ink-soft);
}
.scroll-cue span {
  width: 22px; height: 34px; border: 2px solid var(--color-ink-soft);
  border-radius: 12px; position: relative;
}
.scroll-cue span::after {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; background: var(--color-ink-soft);
  border-radius: 2px; transform: translateX(-50%);
  animation: scrolldot 1.6s ease-in-out infinite;
}
@keyframes scrolldot { 0%,100%{opacity:0;transform:translate(-50%,0)} 50%{opacity:1;transform:translate(-50%,8px)} }

/* ---- Scroll-reveal motion ----
   Hidden state only applies when JS is active (.js on <html>), so no-JS
   visitors and search crawlers always see the content. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span::after { animation: none; }
  .btn, .card, .step { transition: none; }
}

/* ---- Framed hero photo (real imagery) ---- */
.hero__photo { margin: 0; }
.hero__photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ==========================================================================
   MOBILE MENU — cleaner dropdown card (< 800px)
   ========================================================================== */
@media (max-width: 799px) {
  .nav__toggle {
    font-family: var(--font-display);
    font-weight: 600;
    border-color: var(--color-border);
    color: var(--color-blue-dark);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
  }
  .nav__toggle[aria-expanded="true"] {
    background: var(--color-surface-alt);
    border-color: #bcd4ef;
  }
  .nav__menu.is-open {
    background: #fff;
    border: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 0.35rem 0.5rem;
    margin-top: 0.75rem;
    gap: 0;
  }
  .nav__menu.is-open li { border-bottom: 1px solid var(--color-surface); }
  .nav__menu.is-open li.nav__cta,
  .nav__menu.is-open li:last-child { border-bottom: 0; }
  .nav__menu.is-open a:not(.btn) {
    padding: 0.95rem 0.75rem;
    font-size: 1.05rem;
    border-radius: 8px;
  }
  .nav__menu.is-open .nav__cta { padding: 0.6rem 0.4rem 0.4rem; }
  .nav__menu.is-open .nav__cta a { display: block; width: 100%; }
}

/* ---- Fix: step numeral sits above the heading (no overlap) ---- */
.step { padding: 1.75rem; }
.step::before {
  position: static;
  display: block;
  margin: 0 0 0.4rem;
  line-height: 1;
}
