/* ==========================================================================
   Axiom Support Services - site styles
   Palette derived from the Axiom logo mark (purple / blue / gold gradient)
   ========================================================================== */

:root {
  /* Brand - sampled from the logo swoosh */
  --brand-purple:      #6018c0;
  --brand-purple-deep: #4a1f8f;
  --brand-purple-dark: #35155f;
  --brand-violet:      #7818c0;
  --brand-blue:        #18a8f0;
  --brand-blue-deep:   #1478c8;
  --brand-gold:        #f0c018;
  --brand-gold-deep:   #d8a018;

  /* Neutrals */
  --ink:        #1c1630;
  --ink-soft:   #4a4363;
  --muted:      #6b6484;
  --line:       #e3dff0;
  --paper:      #faf8fe;
  --paper-2:    #f3eefc;
  --white:      #ffffff;

  /* Feedback */
  --ok-bg:  #e8f7ee;  --ok-bd:  #2e9e57;  --ok-fg:  #14532d;
  --bad-bg: #fdecec;  --bad-bd: #cf3030;  --bad-fg: #7d1d1d;

  /* Type scale */
  --f-xs: .875rem;
  --f-sm: .95rem;
  --f-base: 1.0625rem;
  --f-lg: 1.1875rem;
  --f-xl: 1.375rem;
  --f-h3: clamp(1.25rem, 2vw, 1.5rem);
  --f-h2: clamp(1.625rem, 3.2vw, 2.25rem);
  --f-h1: clamp(2.125rem, 5vw, 3.25rem);

  /* Space */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;  --s-9: 5.5rem;

  --radius:    14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --wrap: 1220px;
  --wrap-narrow: 820px;

  --shadow-sm: 0 2px 8px rgba(53,21,95,.08);
  --shadow:    0 10px 30px rgba(53,21,95,.12);
  --shadow-lg: 0 22px 60px rgba(53,21,95,.18);

  --grad-brand: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-violet) 45%, var(--brand-blue) 100%);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--f-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-purple); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-violet); }

:focus-visible {
  outline: 3px solid var(--brand-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 var(--s-4); font-weight: 700; }
h1 { font-size: var(--f-h1); letter-spacing: -.02em; }
h2 { font-size: var(--f-h2); letter-spacing: -.015em; }
h3 { font-size: var(--f-h3); }
p  { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

.wrap        { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.wrap-narrow { width: min(var(--wrap-narrow), calc(100% - 2.5rem)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-gold); color: var(--brand-purple-dark);
  padding: var(--s-3) var(--s-4); font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-3) 0;
}
.brand { display: inline-flex; align-items: center; min-width: 0; flex: 0 1 auto; }
.brand img { height: clamp(52px, 5.4vw, 78px); width: auto; }

.nav-toggle {
  display: none; margin-left: auto;
  align-items: center; gap: var(--s-2);
  background: var(--paper-2); color: var(--brand-purple-dark);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .55rem .9rem; font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; fill: currentColor; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-4); flex-shrink: 0; }
.nav-list { display: flex; align-items: center; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block; padding: .5rem .7rem; white-space: nowrap; border-radius: var(--radius-sm);
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: var(--f-sm);
}
.nav-list a:hover { background: var(--paper-2); color: var(--brand-purple); }

.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: .8rem 1.5rem; border: 0; border-radius: var(--radius-pill);
  background: var(--grad-brand); color: var(--white);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-sm { padding: .55rem 1.1rem; font-size: var(--f-sm); }
.btn-ghost {
  background: transparent; color: var(--brand-purple);
  border: 2px solid var(--brand-purple); box-shadow: none;
}
.btn-ghost:hover { background: var(--brand-purple); color: var(--white); }
.btn-light { background: var(--white); color: var(--brand-purple); }
.btn-light:hover { background: var(--brand-gold); color: var(--brand-purple-dark); }

/* ---------- Sections ---------- */
.section       { padding: var(--s-9) 0; }
#about         { padding-top: var(--s-7); }
.section-tight { padding: var(--s-7) 0; }
.section-alt   { background: var(--paper); }
.section-brand { background: var(--grad-brand); color: var(--white); }
.section-brand h2, .section-brand h3 { color: var(--white); }

.section-head { max-width: 44rem; margin-bottom: var(--s-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: block; margin-bottom: var(--s-2);
  font-size: var(--f-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-violet);
}
.section-brand .eyebrow { color: var(--brand-gold); }
.lede { font-size: var(--f-lg); color: var(--ink-soft); }
.section-brand .lede { color: rgba(255,255,255,.92); }

/* ---------- Split layouts ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-8); align-items: center;
}
.split-narrow { gap: var(--s-7); }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

.figure-frame { position: relative; }
.figure-frame img { border-radius: var(--radius); }
.figure-frame::before {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 62%; height: 62%; border-radius: var(--radius);
  background: var(--grad-brand); opacity: .12; z-index: -1;
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: var(--s-2); }
.card p:last-child { margin-bottom: 0; }

.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; margin-bottom: var(--s-3);
  border-radius: var(--radius-pill);
  background: var(--grad-brand); color: var(--white);
  font-weight: 700; font-size: var(--f-lg);
}

/* Portal link cards */
.portal-cards { grid-template-columns: repeat(3, 1fr); }
.portal-card {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-5); border-radius: var(--radius);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  color: var(--white); text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.portal-card:hover { background: rgba(255,255,255,.2); color: var(--white); transform: translateY(-2px); }
.portal-card strong { font-size: var(--f-lg); }
.portal-card span { font-size: var(--f-sm); color: rgba(255,255,255,.85); }
.portal-card em { font-style: normal; font-size: var(--f-sm); font-weight: 700; color: var(--brand-gold); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-3); }
.faq details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: var(--s-4) var(--s-5); padding-right: 3rem;
  font-weight: 700; color: var(--brand-purple-dark); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: var(--s-5); top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--brand-violet); border-bottom: 2px solid var(--brand-violet);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details[open] summary { background: var(--paper-2); }
.faq .faq-body { padding: var(--s-4) var(--s-5) var(--s-5); color: var(--ink-soft); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s-7); align-items: start; }

.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-6); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: var(--s-4); }
.field label { display: block; margin-bottom: var(--s-2); font-weight: 600; color: var(--brand-purple-dark); }
.req { color: #c0392b; }
.opt { font-weight: 400; color: var(--muted); font-size: var(--f-sm); }
.field input, .field textarea {
  width: 100%; padding: .8rem .95rem;
  border: 1.5px solid #cfc9e0; border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 3px rgba(120,24,192,.12);
  outline: none;
}
.field textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: var(--s-3); font-size: var(--f-sm); color: var(--muted); }
.cf-turnstile { margin: var(--s-2) 0 var(--s-4); }

.alert { padding: var(--s-4); border-radius: var(--radius-sm); margin-bottom: var(--s-5); font-weight: 500; }
.alert-ok  { background: var(--ok-bg);  border: 1.5px solid var(--ok-bd);  color: var(--ok-fg); }
.alert-bad { background: var(--bad-bg); border: 1.5px solid var(--bad-bd); color: var(--bad-fg); }

.info-card {
  background: var(--paper-2); border-radius: var(--radius);
  padding: var(--s-6); border: 1px solid var(--line);
}
.info-card h3 { font-size: var(--f-lg); margin-bottom: var(--s-2); }
.info-block + .info-block { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.info-card a { font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-purple-dark); color: rgba(255,255,255,.78); padding: var(--s-7) 0 var(--s-5); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-6); align-items: start; }
.site-footer img { height: 92px; width: auto; }
.site-footer h4 { color: var(--white); font-size: var(--f-sm); letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--s-3); }
.site-footer a { color: var(--white); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer-links a { text-decoration: none; font-size: var(--f-sm); }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: var(--s-6); padding-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: var(--f-sm); text-align: center; color: rgba(255,255,255,.62);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --s-9: 3.5rem; --s-8: 2.5rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: var(--s-3) 1.25rem var(--s-5); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: .8rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .btn { margin-top: var(--s-4); }
  .split, .contact-grid, .cards-3, .cards-2, .portal-cards, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: var(--s-6); }
  .split .figure-frame { order: -1; }
  .site-footer img { height: 78px; }
}

@media (max-width: 560px) {
  .brand img { height: 62px; }
  .form-card, .info-card { padding: var(--s-5); }
}

/* Portrait / feature images: keep a sensible max height so tall source
   photos do not dominate the split layout */
.split .figure-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
}
@media (max-width: 1080px) {
  .split .figure-frame {
    max-width: 22rem;
    margin-inline: auto;
  }
  .split .figure-frame img {
    max-height: none;
    aspect-ratio: 4 / 5;
  }
}
