/* ==========================================================================
   CALTA Solutions — Coming Soon
   Brand colors live here. Change these to rebrand the whole page.
   ========================================================================== */
:root {
  --navy: #0b1f3a;        /* primary: header, hero, dark sections, text */
  --navy-2: #13294b;      /* slightly lighter navy for surfaces on navy */
  --accent: #f2a900;      /* signal amber: buttons, highlights (use with navy text) */
  --accent-hover: #ffbd2e;
  --ink: #0b1f3a;         /* body text on light backgrounds */
  --muted: #4a5568;       /* secondary text on light backgrounds */
  --on-dark: #eef2f7;     /* text on navy */
  --on-dark-muted: #b4c0d0;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #d9dfe7;
  --error: #b42318;
  --success: #146c43;
  --focus: #1f6feb;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --maxw: 1140px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible, .hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--navy); padding: 10px 16px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 8px;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--on-dark); border-color: rgba(238, 242, 247, .5); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .9375rem; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--on-dark); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent); color: var(--navy); font-weight: 800; font-size: 1.15rem;
}
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: .14em; }
.brand-sub { font-weight: 400; letter-spacing: .04em; color: var(--on-dark-muted); }
.label-short { display: none; }
.brand-name, .site-header .btn { white-space: nowrap; }
@media (max-width: 400px) {
  .label-long { display: none; }
  .label-short { display: inline; }
  .brand-name { font-size: 1.05rem; letter-spacing: .1em; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark); padding: 72px 0 96px; }
.hero-inner { position: relative; max-width: var(--maxw); }
.hero h1 { max-width: 18ch; }
.hero .lead { max-width: 60ch; font-size: 1.1875rem; color: var(--on-dark-muted); }
.hero-rings {
  position: absolute; width: 760px; height: 760px; right: -300px; top: 50%; transform: translateY(-50%);
  fill: none; stroke: var(--on-dark); stroke-width: 1.2; opacity: .12; pointer-events: none;
}
.hero-rings-dot { fill: var(--accent); stroke: none; }
.badge {
  display: inline-block; margin-bottom: 1.4em; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(242, 169, 0, .6); color: var(--accent);
  font-size: .875rem; font-weight: 600; letter-spacing: .04em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
@media (min-width: 900px) {
  .hero { padding: 120px 0 140px; }
  .hero-rings { right: -120px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark p { color: var(--on-dark-muted); }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.eyebrow {
  margin-bottom: .6em; font-size: .8125rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.section-dark .eyebrow { color: var(--accent); }
#about p:not(.eyebrow) { font-size: 1.125rem; color: var(--muted); }

/* ---------- Services ---------- */
.card-grid { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--muted); font-size: .9875rem; }
.icon {
  width: 32px; height: 32px; margin-bottom: 14px;
  fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Who we serve ---------- */
.serve-grid { display: grid; gap: 16px; margin-top: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .serve-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.serve { border-top: 4px solid var(--accent); background: var(--bg-alt); border-radius: 0 0 var(--radius) var(--radius); padding: 24px; }
.serve p { margin: 0; color: var(--muted); }

/* ---------- Why CALTA ---------- */
.why-grid { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 16px; counter-reset: why; }
@media (min-width: 800px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.why-grid li { counter-increment: why; background: var(--navy-2); border-radius: var(--radius); padding: 28px 24px; }
.why-grid li::before {
  content: "0" counter(why); display: block; margin-bottom: 12px;
  font-weight: 800; font-size: 1.5rem; color: var(--accent);
}
.why-grid p { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; } }
.contact-intro p:not(.eyebrow) { color: var(--muted); }
.contact-form {
  display: grid; gap: 4px 20px; grid-template-columns: 1fr;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
@media (min-width: 640px) { .contact-form { grid-template-columns: 1fr 1fr; padding: 32px; } }
.form-note, .field-full { grid-column: 1 / -1; }
.form-note { font-size: .9375rem; color: var(--muted); }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9375rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid #7a8699; border-radius: 6px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { min-height: 1.4em; margin: 4px 0 8px; font-size: .875rem; color: var(--error); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-status { margin: 0; font-weight: 600; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding: 32px 0; font-size: .9375rem; }
.site-footer a { color: var(--on-dark); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.footer-inner p { margin: 0; }

/* ---------- Simple page (thanks.html / PHP fallback) ---------- */
.simple-page { min-height: 70vh; display: grid; place-items: center; padding: 72px 0; text-align: center; }
.simple-page p { color: var(--muted); }
