/* ==========================================================================
   AOne Marketing — aom.css
   Direction C "Dark-first Confident": deep-navy canvas, teal→sky→blue glow,
   light sections alternate for readability. Sora headings + Inter body.
   Built on GeneratePress (container reset below). One authoritative sheet.
   Bump AOM_CHILD_VERSION in functions.php on every change.
   ========================================================================== */

:root {
  /* dark surfaces */
  --aom-navy:     #0a1929;   /* deepest — hero / header / footer */
  --aom-navy-2:   #0e2138;   /* dark section bg */
  --aom-navy-3:   #132a47;   /* elevated card on dark */
  --aom-ink-d:    #eaf1f8;   /* text on dark */
  --aom-mute-d:   #9fb3c8;   /* secondary text on dark (~8:1 on navy) */
  --aom-line-d:   #1e3a5f;   /* hairline on dark */
  /* accents */
  --aom-teal:     #2dd4bf;   /* glow / CTA on dark */
  --aom-sky:      #38bdf8;
  --aom-blue:     #3b82f6;
  --aom-blue-deep:#2563eb;   /* primary button on light */
  /* light surfaces */
  --aom-bg:       #ffffff;
  --aom-surface:  #f4f7fb;
  --aom-ink:      #0f172a;   /* text on light */
  --aom-mute:     #475569;   /* secondary on light (~7.5:1) */
  --aom-teal-deep:#0f766e;   /* teal for TEXT on light (~5:1) */
  --aom-line:     #e2e8f0;
  /* shape / type */
  --aom-container: 1140px;
  --aom-radius: 14px;
  --aom-radius-lg: 20px;
  --aom-glow: linear-gradient(120deg, var(--aom-teal), var(--aom-sky) 50%, var(--aom-blue));
  --aom-font-h: "Sora", ui-sans-serif, system-ui, sans-serif;
  --aom-font-b: "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Reset / base ------------------------------------------------- */

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  background: var(--aom-bg);
  color: var(--aom-ink);
  font-family: var(--aom-font-b);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--aom-font-h);
  font-weight: 700;
  color: var(--aom-ink);
  margin: 0 0 .5em;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
p { margin: 0 0 1rem; }
a { color: var(--aom-teal-deep); text-decoration: none; }
a:hover { color: var(--aom-blue-deep); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--aom-teal); outline-offset: 2px; border-radius: 3px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; }

/* ---------- GeneratePress container reset (full-bleed) ------------------- */
/* GP ships a 1200px padded container; our sections are full-bleed and carry
   their own .aom-container. Never use the 100vw trick here — inside GP's flex
   row a negative margin makes the flex item's size circular and .site-main
   collapses to 0 (invisible content at 360-900px). min-width:0 is the guard. */
.site.grid-container, .site {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.site-content .content-area,
.site-main { width: 100%; flex: 1 1 auto; min-width: 0; }
.site-content, .site-main, .content-area { padding: 0 !important; margin: 0 !important; }
.inside-article, .entry-content { padding: 0 !important; margin: 0 !important; }
.separate-containers .inside-article { padding: 0 !important; }
.entry-content > section,
.entry-content > .wp-block-group { margin-top: 0; margin-bottom: 0; }
.site-content .grid-container { padding-left: 0; padding-right: 0; }
/* Kill GP page-title band visually; keep the h1 reachable via clip (not
   display:none, which drops it from the a11y tree). */
.page-header, .main-title { display: none !important; }
.entry-header {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; overflow: hidden; white-space: nowrap;
  clip: rect(0,0,0,0); clip-path: inset(50%);
}

/* ---------- Shared layout primitives ------------------------------------ */

.aom-container { width: 100%; max-width: var(--aom-container); margin: 0 auto; padding: 0 1.5rem; }
.aom-dark { background: var(--aom-navy); color: var(--aom-ink-d); }
.aom-dark h1, .aom-dark h2, .aom-dark h3, .aom-dark h4 { color: var(--aom-ink-d); }
.aom-dark p, .aom-dark li { color: var(--aom-mute-d); }
.aom-light { background: var(--aom-bg); color: var(--aom-ink); }
.aom-surface { background: var(--aom-surface); }
.aom-sec { padding: 4.5rem 0; }
.aom-eyebrow {
  display: inline-block; font-family: var(--aom-font-h); font-weight: 600;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--aom-teal); margin: 0 0 1rem;
}
.aom-light .aom-eyebrow { color: var(--aom-teal-deep); }
.aom-dark .aom-eyebrow { color: var(--aom-teal); }
.aom-lead { font-size: 1.125rem; max-width: 62ch; }

/* ---------- Buttons ------------------------------------------------------ */

.aom-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 10px; font-weight: 600; font-size: .95rem;
  font-family: var(--aom-font-b); line-height: 1.2; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.aom-btn:hover { transform: translateY(-1px); text-decoration: none; }
.aom-btn--teal { background: var(--aom-teal); color: #06251f; border-color: var(--aom-teal); }
.aom-btn--teal:hover { background: #3fddc9; color: #06251f; box-shadow: 0 8px 24px rgba(45,212,191,.35); }
.aom-btn--blue { background: var(--aom-blue-deep); color: #fff; border-color: var(--aom-blue-deep); }
.aom-btn--blue:hover { background: #1d4ed8; color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,.35); }
.aom-btn--ghost { background: transparent; color: var(--aom-ink-d); border-color: rgba(234,241,248,.35); }
.aom-btn--ghost:hover { border-color: var(--aom-teal); color: var(--aom-teal); }
.aom-light .aom-btn--ghost { color: var(--aom-ink); border-color: var(--aom-line); }
.aom-light .aom-btn--ghost:hover { border-color: var(--aom-teal-deep); color: var(--aom-teal-deep); }

/* ---------- Header (dark, single row: logo left, nav + CTA right) -------- */

.aom-header {
  background: var(--aom-navy);
  border-bottom: 1px solid var(--aom-line-d);
  position: sticky; top: 0; z-index: 50;
}
.aom-header-inner {
  max-width: var(--aom-container); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1.5rem; min-height: 76px;
}
.aom-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.aom-brand:hover { text-decoration: none; }
.aom-brand .aom-mark { width: 30px; height: 30px; flex: none; }
.aom-brand-text {
  font-family: var(--aom-font-h); font-weight: 700; font-size: 1.18rem;
  color: var(--aom-ink-d); letter-spacing: -0.02em; line-height: 1;
}
.aom-brand-text em { font-style: normal; font-weight: 400; color: var(--aom-mute-d); }
.aom-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.aom-nav-menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.aom-nav-menu li { margin: 0; }
.aom-nav-menu a {
  display: block; padding: .55rem .85rem; font-size: .95rem; font-weight: 500;
  color: var(--aom-mute-d); text-decoration: none; border-radius: 8px;
}
.aom-nav-menu a:hover { color: var(--aom-ink-d); }
.aom-nav-menu .current-menu-item > a,
.aom-nav-menu .current_page_item > a { color: var(--aom-teal); }
.aom-nav-cta { margin-left: .25rem; }
.aom-nav-toggle {
  display: none; flex: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; padding: 10px; border-radius: 8px;
}
.aom-nav-toggle span {
  display: block; height: 2px; background: var(--aom-ink-d); margin: 5px 0; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero (dark, photo + glow) ----------------------------------- */

.aom-hero { position: relative; overflow: hidden; background: var(--aom-navy); }
.aom-hero .aom-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .42; filter: saturate(.85);
}
.aom-hero .aom-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,25,41,.96) 0%, rgba(10,25,41,.80) 45%, rgba(10,25,41,.48) 100%);
}
.aom-hero .aom-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 88% 22%, rgba(45,212,191,.18), transparent 60%),
    radial-gradient(700px 460px at 100% 80%, rgba(59,130,246,.16), transparent 60%);
}
.aom-hero-inner { position: relative; padding: 6rem 0; }
.aom-hero-copy { max-width: 640px; }
.aom-hero h1 { color: var(--aom-ink-d); margin-bottom: 1.1rem; }
.aom-hero .aom-lead { color: #c3d1e2; font-size: 1.2rem; }
.aom-hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.aom-hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.25rem; margin-top: 2.75rem; padding-top: 1.5rem;
  border-top: 1px solid var(--aom-line-d);
}
.aom-hero-stats .stat b { display: block; font-family: var(--aom-font-h); font-size: 1.5rem; color: var(--aom-teal); }
.aom-hero-stats .stat span { font-size: .82rem; color: var(--aom-mute-d); letter-spacing: .03em; }

/* ---------- Cards -------------------------------------------------------- */

.aom-grid { display: grid; gap: 1.5rem; }
.aom-grid--2 { grid-template-columns: repeat(2, 1fr); }
.aom-grid--3 { grid-template-columns: repeat(3, 1fr); }
.aom-card {
  background: var(--aom-bg); border: 1px solid var(--aom-line); border-radius: var(--aom-radius-lg);
  padding: 1.9rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.aom-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,.10); border-color: #cbd5e1; }
.aom-card .aom-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--aom-surface); color: var(--aom-blue-deep); margin-bottom: 1.1rem;
}
.aom-card .aom-icon svg { width: 24px; height: 24px; }
.aom-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.aom-card p { color: var(--aom-mute); font-size: .95rem; margin-bottom: 0; }
.aom-card .aom-card-link { display: inline-block; margin-top: .9rem; font-weight: 600; font-size: .9rem; color: var(--aom-teal-deep); }

/* dark card variant */
.aom-dark .aom-card {
  background: var(--aom-navy-3); border-color: var(--aom-line-d);
}
.aom-dark .aom-card:hover { border-color: #2c4a70; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.aom-dark .aom-card .aom-icon { background: rgba(45,212,191,.12); color: var(--aom-teal); }
.aom-dark .aom-card p { color: var(--aom-mute-d); }

/* numbered step card (Our Approach) */
.aom-step { position: relative; padding-top: 2.4rem; }
.aom-step .aom-step-n {
  position: absolute; top: 0; left: 0; font-family: var(--aom-font-h); font-weight: 800;
  font-size: 2.6rem; line-height: 1; color: transparent;
  background: var(--aom-glow); -webkit-background-clip: text; background-clip: text;
}

/* ---------- Section heading ---------------------------------------------- */

.aom-sec-head { max-width: 720px; margin-bottom: 2.75rem; }
.aom-sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.aom-sec-head.center .aom-eyebrow { display: block; }
.aom-sec-head p { color: var(--aom-mute); font-size: 1.05rem; }

/* ---------- Feature / split sections (About, services detail) ------------ */

.aom-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.aom-split .aom-figure { border-radius: var(--aom-radius-lg); overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,.16); }
.aom-split .aom-figure img { width: 100%; height: 100%; object-fit: cover; }
.aom-list { list-style: none; padding: 0; margin: 0; }
.aom-list li {
  position: relative; padding: .6rem 0 .6rem 1.9rem; color: var(--aom-mute);
  border-bottom: 1px solid var(--aom-line);
}
.aom-list li:last-child { border-bottom: 0; }
.aom-list li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem; width: 9px; height: 9px;
  border-radius: 3px; background: var(--aom-glow); transform: rotate(45deg);
}
.aom-dark .aom-list li { color: var(--aom-mute-d); border-color: var(--aom-line-d); }

/* ---------- Service detail block (Services page) ------------------------- */

.aom-service { padding: 3.5rem 0; border-bottom: 1px solid var(--aom-line); }
.aom-service:last-child { border-bottom: 0; }
.aom-service .aom-service-id { color: var(--aom-teal-deep); font-weight: 700; font-family: var(--aom-font-h); letter-spacing: .1em; font-size: .85rem; }
.aom-service h2 { margin-top: .25rem; }

/* ---------- Callout / CTA band ------------------------------------------ */

.aom-cta { background: var(--aom-navy); position: relative; overflow: hidden; }
.aom-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 400px at 90% 10%, rgba(45,212,191,.20), transparent 60%),
              radial-gradient(700px 400px at 10% 90%, rgba(59,130,246,.18), transparent 60%);
}
.aom-cta .aom-container { position: relative; }
.aom-cta h2 { color: var(--aom-ink-d); }
.aom-cta p { color: var(--aom-mute-d); }
.aom-cta .aom-contact-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; color: var(--aom-mute-d); font-size: .95rem; }
.aom-cta .aom-contact-row span { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.aom-cta .aom-contact-row span svg { width: 18px; height: 18px; flex: none; }

/* ---------- Contact page ------------------------------------------------ */

.aom-contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.aom-contact-meta { display: grid; gap: 1.1rem; }
.aom-contact-meta .item { display: flex; gap: 1rem; align-items: flex-start; }
.aom-contact-meta .item svg { width: 22px; height: 22px; color: var(--aom-teal-deep); flex: none; margin-top: 2px; }
.aom-contact-meta .item b { display: block; font-family: var(--aom-font-h); font-size: .95rem; }
.aom-contact-meta .item span { color: var(--aom-mute); font-size: .95rem; }

/* ---------- Forms -------------------------------------------------------- */

.aom-form { background: var(--aom-bg); border: 1px solid var(--aom-line); border-radius: var(--aom-radius-lg); padding: 2rem; box-shadow: 0 18px 50px rgba(15,23,42,.08); }
.aom-form .aom-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.aom-form p { margin-bottom: 1rem; }
.aom-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--aom-ink); }
.aom-form input, .aom-form select, .aom-form textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid #cbd5e1; border-radius: 9px;
  font-family: var(--aom-font-b); font-size: .95rem; color: var(--aom-ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.aom-form input:focus, .aom-form select:focus, .aom-form textarea:focus {
  outline: none; border-color: var(--aom-teal-deep); box-shadow: 0 0 0 3px rgba(15,118,110,.18);
}
.aom-form input::placeholder, .aom-form textarea::placeholder { color: #64748b; opacity: 1; }
.aom-notice { padding: .9rem 1.1rem; border-radius: 9px; font-size: .92rem; margin-bottom: 1.25rem; }
.aom-notice--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.aom-notice--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Footer (dark) ------------------------------------------------ */

.aom-footer { background: var(--aom-navy); color: var(--aom-mute-d); }
.aom-footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem;
  padding: 4rem 0 2.5rem;
}
.aom-footer h4 { color: var(--aom-ink-d); font-size: .95rem; margin-bottom: 1.1rem; }
.aom-footer a { color: var(--aom-mute-d); text-decoration: none; }
.aom-footer a:hover { color: var(--aom-teal); }
.aom-footer ul { list-style: none; padding: 0; margin: 0; }
.aom-footer ul li { margin-bottom: .55rem; }
.aom-footer .aom-brand-text { font-size: 1.3rem; }
.aom-footer .aom-footer-about p { font-size: .92rem; }
.aom-footer-bottom {
  border-top: 1px solid var(--aom-line-d); padding: 1.5rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: .86rem;
}
.aom-footer-bottom .aom-group { color: var(--aom-mute-d); }
.aom-footer-bottom a { color: var(--aom-teal); }

/* ---------- Responsive --------------------------------------------------- */

@media (max-width: 1024px) {
  .aom-nav { display: none; }
  .aom-nav-toggle { display: block; }
  .aom-header.aom-nav-open .aom-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 76px; left: 0; right: 0; background: var(--aom-navy);
    border-bottom: 1px solid var(--aom-line-d); padding: 1rem 1.5rem 1.5rem;
  }
  .aom-header.aom-nav-open .aom-nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .aom-header.aom-nav-open .aom-nav-menu a { padding: .8rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--aom-line-d); }
  .aom-header.aom-nav-open .aom-nav-cta { margin: 1rem 0 0; }
  .aom-header.aom-nav-open .aom-nav-cta .aom-btn { width: 100%; justify-content: center; }
  .aom-grid--3, .aom-grid--2 { grid-template-columns: 1fr; }
  .aom-split { grid-template-columns: 1fr; gap: 2rem; }
  .aom-contact-grid { grid-template-columns: 1fr; }
  .aom-footer-top { grid-template-columns: 1fr 1fr; }
  .aom-sec { padding: 3.25rem 0; }
  .aom-hero-inner { padding: 4rem 0; }
}

@media (max-width: 640px) {
  .aom-container { padding: 0 1.25rem; }
  .aom-header-inner { padding: 0 1.25rem; }
  .aom-form .aom-form-row { grid-template-columns: 1fr; }
  .aom-footer-top { grid-template-columns: 1fr; }
  .aom-hero-actions .aom-btn { width: 100%; justify-content: center; }
}

/* ---------- Motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
