/* ================================================================
   Axis Services Group — Understated stylesheet
   Source of truth for all pages in mockups/v4/ and mockups/index.html.
   Rules locked to AxisServicesGroup/design-principles-understated.md.
   Do not edit inline overrides that conflict with this file.
   ================================================================ */

:root {
  --bg:         #FAFAF8;
  --bg-panel:   #F4F1EA;
  --navy:       #0E2137;
  --navy-soft:  #24384F;
  --mute:       #5A6372;
  --meta:       #8A8E95;
  --hair:       #DCD8CF;
  --gold:       #B08432;
  --gold-soft:  #E8D5A8;

  --serif: 'Libre Baskerville', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --w-wide: 1120px;
  --w-read: 720px;
}

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

html { scroll-behavior: auto; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

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

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(32px, 4vw, 40px); margin-bottom: 20px; }
.hero-h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 24px; }
h2 { font-size: 28px; margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 12px; }
h4 { font-size: 16px; margin-bottom: 8px; font-weight: 500; font-family: var(--sans); }

p { color: var(--mute); margin-bottom: 1.1em; }
p.lead { color: var(--navy-soft); font-size: 17px; max-width: var(--w-read); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 14px;
  display: inline-block;
}
.eyebrow--gold { color: var(--gold); }

strong { font-weight: 500; color: var(--navy); }

/* ---------- Layout ---------- */

.wrap       { max-width: var(--w-wide); margin: 0 auto; padding: 0 24px; }
.wrap-read  { max-width: var(--w-read); margin: 0 auto; padding: 0 24px; }

.section        { padding: 96px 0; border-bottom: 1px solid var(--hair); }
.section:last-child { border-bottom: none; }
.section--panel { background: var(--bg-panel); }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .wrap, .wrap-read { padding: 0 20px; }
}

/* ---------- Header ---------- */

.site-header {
  height: 72px;
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-header .brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.site-header nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}
.site-header nav a {
  font-size: 13px;
  color: var(--mute);
  transition: color 0.15s;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 500;
}
.site-header .menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--navy);
  cursor: pointer;
  padding: 0;
}
@media (max-width: 720px) {
  .site-header nav { display: none; }
  .site-header .menu-toggle { display: inline; }
}

/* ---------- Mobile menu panel ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 60;
  display: none;
  flex-direction: column;
  padding: 32px 28px;
}
.mobile-menu[aria-hidden="false"] { display: flex; }
.mobile-menu .close {
  align-self: flex-end;
  background: none;
  border: 0;
  font-size: 13px;
  color: var(--mute);
  cursor: pointer;
}
.mobile-menu ul {
  list-style: none;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
}

/* ---------- Hero patterns ---------- */

/* Pattern A: dark navy panel hero (use sparingly, max 1 per page) */
.hero-panel {
  background: var(--navy);
  color: #EEE9DD;
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(176,132,50,0.06), transparent 60%);
  pointer-events: none;
}
.hero-panel .eyebrow { color: var(--gold-soft); }
.hero-panel h1,
.hero-panel .hero-h1 { color: #F5EFE0; }
.hero-panel p { color: rgba(245,239,224,0.72); max-width: var(--w-read); }

/* Pattern B: quiet cream prose hero */
.hero-prose {
  background: var(--bg);
  padding: 120px 0 96px;
}
.hero-prose h1,
.hero-prose .hero-h1 { color: var(--navy); }

@media (max-width: 720px) {
  .hero-panel, .hero-prose { padding: 80px 0 64px; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: #9c7322; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--hair);
}
.btn-ghost:hover { border-color: var(--navy); }
.hero-panel .btn-ghost { color: #F5EFE0; border-color: rgba(245,239,224,0.3); }
.hero-panel .btn-ghost:hover { border-color: #F5EFE0; }

.link-inline {
  color: var(--navy);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 2px;
  transition: border-color 0.15s;
}
.link-inline:hover { border-color: var(--gold); }

/* ---------- Cards & grids ---------- */

.card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--hair);
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--navy-soft); }
.card h3 { margin-bottom: 8px; }
.card p  { font-size: 14.5px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Stats / figures ---------- */

.stat { padding: 24px 0; border-top: 1px solid var(--hair); }
.stat .figure {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.stat .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--meta);
}

/* ---------- Tables ---------- */

table.plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
table.plain thead th {
  text-align: left;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--meta);
  border-bottom: 1px solid var(--hair);
}
table.plain tbody td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
  color: var(--mute);
}
table.plain tbody td:first-child { color: var(--navy); font-weight: 500; }

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

label.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 8px;
}
.input,
.textarea,
.select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 2px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,132,50,0.18);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--hair);
  padding: 80px 0 48px;
  font-size: 13.5px;
  color: var(--mute);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 56px;
}
.site-footer h5 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--mute); }
.site-footer a:hover { color: var(--navy); }
.site-footer .brand-block p {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--navy);
  max-width: 320px;
}
.site-footer .brand-block .address {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mute);
}
.site-footer .legal {
  grid-column: 1 / -1;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--meta);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .site-footer .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Fade-in (only permitted motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
  }
  .fade-in.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Close CTA block ---------- */

.close-cta {
  padding: 96px 0;
  background: var(--bg);
  border-top: 1px solid var(--hair);
  text-align: left;
}
.close-cta h2 { max-width: 640px; }
.close-cta p { max-width: 560px; margin-bottom: 28px; }
.close-cta .actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.close-cta .tel { color: var(--navy); font-size: 15px; }

/* ---------- Overrides for banned patterns ---------- */
/* These sit at the bottom so any inline use of the banned classes is visually neutralised. */
.parallax-bg,
.parallax-float,
.marquee,
[class*="typewriter"] {
  transform: none !important;
  animation: none !important;
  will-change: auto !important;
}
