/* =========================================================================
   AJM Consulting — global theme (v2)
   Palette derived from the logo: warm charcoal + coral-red + warm cream.
   Type: Fraunces (display serif) + Inter (body sans).
   This is the SINGLE source of truth for every page on the site.
   Load the fonts in each page <head>:
     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
   ========================================================================= */

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

:root {
  /* Brand */
  --ink:       #1a1714;   /* warm near-black (logo mark) */
  --ink-2:     #2a2521;   /* slightly lifted dark */
  --coral:     #ef5644;   /* logo swoosh accent */
  --coral-d:   #d83f2d;   /* hover */
  --coral-soft:#fdeae7;   /* tinted backgrounds */
  --cream:     #faf6f0;   /* warm off-white sections */
  --cream-2:   #f3ede3;   /* deeper cream */
  --paper:     #ffffff;
  --text:      #38332e;   /* body text */
  --muted:     #7a736a;   /* secondary text */
  --line:      #e8e1d6;   /* borders */
  --line-dk:   rgba(255,255,255,0.12);

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Tokens */
  --radius:   14px;
  --radius-sm:10px;
  --shadow:   0 10px 40px -12px rgba(26,23,20,0.18);
  --shadow-sm:0 4px 18px -8px rgba(26,23,20,0.16);
  --t: 0.25s cubic-bezier(0.4,0,0.2,1);
  --maxw: 1140px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--coral); }
::selection { background: var(--coral); color: #fff; }

/* ---------- LAYOUT ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); margin-bottom: 0.9rem; }
.h1, h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.h2, .sec-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.12; letter-spacing: -0.015em; color: var(--ink); }
h3 { font-family: var(--sans); }
.accent { color: var(--coral); }
.serif-accent { font-style: italic; color: var(--coral); }
.sec-head { max-width: 680px; margin-bottom: 3rem; }
.sec-sub { font-size: 1.05rem; color: var(--muted); line-height: 1.7; margin-top: 1rem; }

/* ---------- BUTTONS ---------- */
.btn, .btn-primary, .btn-ghost, .btn-dark, .btn-ghost-light { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--sans); font-weight: 600; font-size: 0.98rem; padding: 0.95rem 1.8rem; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform var(--t), background var(--t), border-color var(--t), color var(--t); }
.btn:hover, .btn-primary:hover, .btn-ghost:hover, .btn-dark:hover, .btn-ghost-light:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 24px -8px rgba(239,86,68,0.55); }
.btn-primary:hover { background: var(--coral-d); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 74px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color var(--t); }
.nav-links a:hover { color: var(--coral); }
.nav-links .btn { padding: 0.6rem 1.3rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--t); }

/* ---------- HERO ---------- */
.hero { background: radial-gradient(120% 120% at 80% 0%, var(--cream) 0%, var(--paper) 55%); padding: 80px 0 96px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--coral-soft); color: var(--coral-d); border: 1px solid #f6cfc9; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; padding: 0.4rem 0.95rem; border-radius: 999px; margin-bottom: 1.6rem; }
.hero h1 { margin-bottom: 1.3rem; }
.hero-lede { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 2rem; line-height: 1.7; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero-trust .ht { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: var(--text); font-weight: 500; }
.hero-trust svg { width: 18px; height: 18px; color: var(--coral); flex-shrink: 0; }
/* hero side card */
.hero-card { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.hero-card .hc-eyebrow { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); font-weight: 700; margin-bottom: 1.2rem; }
.hero-card ul { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.hero-card li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.98rem; line-height: 1.5; }
.hero-card li svg { width: 22px; height: 22px; color: var(--coral); flex-shrink: 0; margin-top: 1px; }
.hero-card .hc-cta { margin-top: 1.8rem; }

/* ---------- ICON TILES & CARD GRIDS ---------- */
.icon-tile { width: 52px; height: 52px; border-radius: 13px; background: var(--coral-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.icon-tile svg { width: 26px; height: 26px; color: var(--coral-d); }
.icon-tile.dark { background: rgba(255,255,255,0.08); }
.icon-tile.dark svg { color: var(--coral); }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.18rem; font-weight: 600; color: var(--ink); margin-bottom: 0.55rem; letter-spacing: -0.01em; }
.card p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }
.card-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.1rem; font-size: 0.9rem; font-weight: 600; color: var(--coral); text-decoration: none; }
.card-link:hover { gap: 0.6rem; }
a.card { text-decoration: none; }

/* legacy aliases so existing page markup keeps working */
.feature-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 1.8rem; }
.feature-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; transition: transform var(--t), box-shadow var(--t), border-color var(--t); text-decoration: none; display: block; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card h3 { font-size: 1.12rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; }
.feature-icon { width: 52px; height: 52px; border-radius: 13px; background: var(--coral-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; font-size: 1.5rem; }
.feature-icon svg { width: 26px; height: 26px; color: var(--coral-d); }

/* ---------- BACKGROUNDS ---------- */
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-ink .sec-title, .bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink .sec-sub, .bg-ink p { color: rgba(255,255,255,0.72); }

/* ---------- INDUSTRIES ---------- */
.industries { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 2rem; }
.industry { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.7rem; padding: 1.6rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform var(--t), border-color var(--t); }
.industry:hover { transform: translateY(-4px); border-color: var(--coral); }
.industry svg { width: 30px; height: 30px; color: var(--coral); }
.industry span { font-size: 0.9rem; font-weight: 600; color: var(--ink); }

/* ---------- WHY / SPLIT ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.8rem; }
.checklist li { display: flex; gap: 1rem; align-items: flex-start; }
.checklist .chk { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--coral-soft); display: flex; align-items: center; justify-content: center; }
.checklist .chk svg { width: 18px; height: 18px; color: var(--coral-d); }
.checklist h4 { font-size: 1.02rem; font-weight: 600; color: var(--ink); margin-bottom: 0.2rem; }
.checklist p { font-size: 0.93rem; color: var(--muted); line-height: 1.6; }

/* ---------- TWO-COL (subpage content + sidebar) ---------- */
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3.5rem; align-items: start; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.side-card { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); position: sticky; top: 100px; }
.side-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: #fff; margin-bottom: 0.7rem; }
.side-card p { font-size: 0.93rem; color: rgba(255,255,255,0.72); line-height: 1.65; margin-bottom: 1.3rem; }
.side-list { list-style: none; margin: 1.3rem 0; display: flex; flex-direction: column; gap: 0.85rem; }
.side-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: rgba(255,255,255,0.88); }
.side-list li svg { width: 18px; height: 18px; color: var(--coral); flex-shrink: 0; margin-top: 2px; }
.side-card .btn { width: 100%; justify-content: center; }

/* ---------- PROSE ---------- */
.prose h2 { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 600; color: var(--ink); margin: 0 0 1rem; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.2rem; font-weight: 600; color: var(--ink); margin: 2rem 0 0.6rem; }
.prose p { font-size: 1.02rem; color: var(--text); line-height: 1.8; margin-bottom: 1.2rem; }
.prose ul { margin: 0 0 1.4rem 1.2rem; }
.prose li { font-size: 1rem; color: var(--text); line-height: 1.75; margin-bottom: 0.55rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.prose .lead { font-size: 1.2rem; color: var(--muted); line-height: 1.65; }

/* ---------- BREADCRUMB ---------- */
.breadcrumb { background: var(--cream); padding: 22px 0 0; }
.breadcrumb ol { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; font-size: 0.82rem; color: var(--muted); }
.breadcrumb a { color: var(--coral); text-decoration: none; }
.breadcrumb li::after { content: '/'; margin-left: 0.45rem; color: var(--line); }
.breadcrumb li:last-child::after { content: ''; }

/* ---------- PAGE HERO (subpages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--cream) 0%, var(--paper) 70%); padding: 64px 0 72px; }
.page-hero .inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.page-hero h1 { margin-bottom: 1.2rem; max-width: 800px; }
.page-hero h1 em { font-style: italic; color: var(--coral); }
.page-hero p { font-size: 1.12rem; color: var(--muted); max-width: 620px; margin-bottom: 1.9rem; line-height: 1.7; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--coral-soft); color: var(--coral-d); border: 1px solid #f6cfc9; font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.95rem; border-radius: 999px; margin-bottom: 1.5rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.divider { width: 54px; height: 3px; background: var(--coral); border-radius: 2px; margin: 0.6rem 0 1.5rem; }
.sec-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); margin-bottom: 0.7rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 840px; margin: 1.5rem auto 0; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 0.9rem; background: var(--paper); overflow: hidden; transition: border-color var(--t); }
.faq-item[open] { border-color: var(--coral); }
.faq-item summary { cursor: pointer; padding: 1.2rem 1.4rem; font-weight: 600; color: var(--ink); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--coral); font-size: 1.5rem; font-weight: 300; flex-shrink: 0; transition: transform var(--t); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 1.4rem 1.3rem; font-size: 0.97rem; color: var(--muted); line-height: 1.75; }

/* ---------- TESTIMONIALS ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 1.8rem; }
.review-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.review-card p { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); line-height: 1.6; font-style: italic; }
.review-card .review-name { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-top: 1rem; font-style: normal; }

/* ---------- CTA BAND ---------- */
.cta-band { background: var(--ink); color: var(--cream); text-align: center; }
.cta-band .sec-title, .cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 560px; margin: 1rem auto 1.8rem; font-size: 1.05rem; }
.cta-band .hero-btns, .cta-band .btn-row { justify-content: center; }

/* ---------- NEARBY CHIPS / AREA LINKS ---------- */
.nearby, .area-links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.nearby a, .area-links a { display: inline-block; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1.1rem; font-size: 0.88rem; color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color var(--t), color var(--t); }
.nearby a:hover, .area-links a:hover { border-color: var(--coral); color: var(--coral); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 4rem 0 1.8rem; }
.footer-grid { max-width: var(--maxw); margin: 0 auto 3rem; padding: 0 24px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-brand img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; margin-top: 1.1rem; color: rgba(255,255,255,0.6); }
.footer-col h4 { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.6); text-decoration: none; transition: color var(--t); }
.footer-col a:hover { color: var(--coral); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 1.4rem 24px 0; border-top: 1px solid var(--line-dk); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* legacy footer aliases */
footer:not(.site-footer) { background: var(--ink); color: rgba(255,255,255,0.6); padding: 4rem 24px 1.8rem; }
footer:not(.site-footer) .footer-grid { padding: 0; }

/* ---------- FORMS (homepage contact) ---------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font-family: var(--sans); padding: 0.8rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); font-size: 0.95rem; color: var(--text); background: var(--paper); outline: none; transition: border-color var(--t); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--coral); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-grid, .split, .two-col { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-card { order: -1; }
  .side-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem 24px 1rem; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.2rem 0; }
  .nav-links li a { display: block; padding: 0.7rem 0; }
  .nav-links .btn { margin-top: 0.4rem; justify-content: center; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-trust { gap: 1rem 1.4rem; }
}

/* ---------- LEGACY / BACKWARD COMPAT (subpages) ---------- */
.bg-soft { background: var(--cream); }
/* subpage top nav uses a bare <nav> element */
nav:not([class]) { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 74px; }
/* text-only side-lists get a coral check marker */
.side-list li::before { content: '✓'; color: var(--coral); font-weight: 700; flex-shrink: 0; }
/* subpage nav "Get Started" button */
.nav-links a.nav-cta { background: var(--coral); color: #fff; padding: 0.55rem 1.25rem; border-radius: 999px; font-weight: 600; transition: background var(--t); }
.nav-links a.nav-cta:hover { background: var(--coral-d); color: #fff; }

/* ---------- BRAND LOCKUP (logo mark + wordmark) ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { height: 58px; width: auto; display: block; }
.brand-text { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.brand-text .light { color: var(--muted); font-weight: 500; }
/* on the dark footer */
.footer-brand .brand-mark { filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text .light { color: rgba(255,255,255,0.6); }
@media (max-width: 600px) {
  .brand-mark { height: 46px; }
  .brand-text { font-size: 1.08rem; }
}
