/* ==========================================================================
   McKenzie / Mosley Adjustment Services — Design System
   Navy + white, serif display, Helvetica Neue body. Clean, authoritative.
   ========================================================================== */

:root {
  /* Palette */
  --navy:        #000624;
  --navy-800:    #0a1230;
  --navy-700:    #141d3d;
  --navy-600:    #23305a;
  --white:       #ffffff;
  --off-white:   #f5f6f8;
  --ink:         #1b2130;
  --muted:       #5d6474;
  --border:      #e5e8ee;
  --accent:      #a8894b;   /* muted brass */
  --accent-dark: #8c723d;
  --accent-soft: #f3ecdd;

  /* Type */
  --ff-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ff-body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(0,6,36,.06);
  --shadow-md: 0 8px 30px rgba(0,6,36,.10);
  --shadow-lg: 0 18px 50px rgba(0,6,36,.16);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .75rem;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 5rem 0; }
.section--light { background: var(--off-white); }
.section--navy { background: var(--navy); color: #c8cdd8; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .9rem;
}
.section--navy .section-label { color: #c9ad6f; }

.lead { font-size: 1.12rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .85rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background .18s ease, border-color .18s ease,
              color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--accent);
  color: var(--white);
}
.btn--accent:hover { background: var(--accent-dark); color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: .8rem; color: var(--navy); }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--ff-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -.01em;
}
.brand-name .amp { color: var(--accent-dark); }
.brand-sub {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .15rem;
}

.site-nav ul { display: flex; align-items: center; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .02em;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-dark); }
.site-nav .nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: .55rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--navy-700); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(0,6,36,.95) 0%, rgba(4,12,40,.84) 52%, rgba(10,20,54,.52) 100%),
    url("../assets/images/hero.jpg") center / cover no-repeat;
  color: #c8cdd8;
  padding: 6.5rem 0;
}
/* Photo-ready hero: replace assets/images/hero.jpg to swap the background. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 85% 20%, rgba(168,137,75,.10), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 15ch; font-size: clamp(2.4rem, 5.5vw, 4rem); }
.hero .hero-kicker { color: #c9ad6f; }
.hero p { max-width: 56ch; font-size: 1.13rem; color: #b9c0d0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   Sub-page hero (compact)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(150deg, #000624 0%, #0a1230 100%);
  color: #c8cdd8;
  padding: 4.25rem 0;
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: #b9c0d0; }

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { color: var(--navy); }

.service-card { transition: box-shadow .18s ease, transform .18s ease; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card .num {
  font-family: var(--ff-heading);
  font-size: 2rem;
  color: var(--accent-dark);
  display: block;
  margin-bottom: .6rem;
}

/* --- split sections --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split--reverse > :first-child { order: 2; }
.media-frame { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-md); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* --- image slot (placeholder until photos arrive) --- */
.img-slot {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
}
.img-slot .img-slot-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; text-align: center; padding: 1.5rem;
}
.img-slot .img-slot-label strong { color: #d4d9e4; font-weight: 500; font-family: var(--ff-heading); font-size: 1.3rem; }
.img-slot .img-slot-label span { color: #8b93a8; font-size: .8rem; letter-spacing: .04em; }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}
.team-card .avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-heading);
  font-size: 1.5rem; font-weight: 600;
  margin-bottom: 1.1rem;
}
.team-card .name { margin: 0 0 .1rem; }
.team-card .role { color: var(--accent-dark); font-size: .85rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .8rem; }
.team-card p { font-size: .92rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Lists (services)
   -------------------------------------------------------------------------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding: .8rem 0 .8rem 2rem;
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}
.check-list.serif li::before { top: 1.15rem; background: transparent; border: 2px solid var(--accent); width: 11px; height: 11px; }

/* --------------------------------------------------------------------------
   Location cards
   -------------------------------------------------------------------------- */
.location-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}
.location-card .loc-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; }
.location-card h3 { font-size: 1.15rem; margin: .35rem 0 .75rem; }
.location-card .dl { font-size: .9rem; color: var(--muted); }
.location-card .dl a { color: var(--ink); }
.location-card .dl a:hover { color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font-family: var(--ff-body);
  font-size: .95rem;
  padding: .75rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168,137,75,.15);
}
.field textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: .82rem; color: var(--muted); margin-top: .9rem; }

/* --- town & county lists --- */
.county-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.county-list .chip {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid #e0d3b6;
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
}
.town-list { columns: 3 200px; column-gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.town-list li { break-inside: avoid; padding: .22rem 0; font-size: .9rem; color: var(--ink); border-bottom: 1px solid #eef0f4; }

/* --- links page --- */
.link-card {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  transition: box-shadow .18s ease, transform .18s ease;
}
.link-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.link-card .link-meta h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.link-card .link-meta p { margin: 0; font-size: .88rem; color: var(--muted); }
.link-card .arrow { margin-left: auto; color: var(--accent-dark); font-size: 1.3rem; }

/* --------------------------------------------------------------------------
   Contact panels
   -------------------------------------------------------------------------- */
.contact-panel {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.25rem;
}
.contact-panel h3 { margin-bottom: 1.25rem; }
.contact-line { display: flex; gap: .9rem; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .k { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 110px; }
.contact-line .v { color: var(--ink); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #aab2c2;
  padding: 4rem 0 2rem;
  font-size: .9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.site-footer h4 { color: var(--white); font-family: var(--ff-heading); font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer a { color: #aab2c2; }
.site-footer a:hover { color: #c9ad6f; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: #8b93a8; }
.footer-nap p { margin-bottom: .4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem; color: #7f889a;
}
.footer-bottom a { color: #7f889a; }
.footer-badge { height: 48px; width: auto; filter: brightness(1) grayscale(0); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .site-nav {
    position: fixed; top: 74px; right: 0; left: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: 1rem 1.25rem 1.5rem;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .4rem; }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: .8rem .25rem; font-size: 1.05rem; }
  .site-nav .nav-cta { text-align: center; margin-top: .5rem; }
  .nav-toggle { display: block; }

  .grid--2, .grid--3, .grid--4, .split, .form-grid { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 4rem 0; }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .brand-wordmark .brand-name { font-size: 1.05rem; }
}