:root {
  --navy: #1c2a39;
  --navy-2: #24364a;
  --gold: #e8a317;
  --gold-dark: #c98a0c;
  --ink: #1c2a39;
  --body: #46525f;
  --line: #e2e6ea;
  --tint: #f5f6f8;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(28, 42, 57, .08);
  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }

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

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.visually-hidden, .hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--navy); padding: .6rem 1rem; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: .9rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  padding: .85rem 1.5rem; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #f2b332; }
.btn-outline { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 74px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: .03em; text-transform: uppercase; color: var(--navy); }
.brand-sub { font-weight: 700; font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-dark); margin-top: .3rem; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  color: var(--navy); text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--gold); }
.nav-cta { padding: .65rem 1.15rem; }

.nav-toggle { display: none; background: none; border: 0; padding: .75rem; margin-right: -.75rem; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -8px; }
.nav-toggle-bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; color: #d5dce4; background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 3rem;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--gold); }
.lede { font-size: 1.2rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-logo { width: 100%; max-width: 460px; justify-self: end; text-align: center; }
.tagline {
  font-family: var(--font-head); font-weight: 600; font-style: italic; letter-spacing: .04em;
  color: var(--gold); margin: 1rem 0 0; font-size: 1.15rem;
}

/* Trust bar */
.trust { background: var(--white); border-bottom: 1px solid var(--line); padding-block: 2.25rem; }
.trust-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2.5rem; }
.trust-list li { display: flex; gap: 1rem; align-items: flex-start; }
.trust-list svg {
  flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--navy);
  fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.trust-list h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: .2rem; }
.trust-list p { margin: 0; font-size: .97rem; }

/* the spirit-level line under the hero */
.level-line { height: 6px; background: var(--gold); position: relative; }
.level-line span {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 22px; transform: translate(-50%, -50%);
  background: var(--white); border: 4px solid var(--navy); border-radius: 50%;
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: #d5dce4; }
.section-navy h2 { color: var(--white); }
.section-navy .eyebrow { color: var(--gold); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head p:last-child { margin-bottom: 0; }

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.6rem 1.5rem; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { margin: 0; font-size: 1rem; }
.card-icon {
  width: 40px; height: 40px; margin-bottom: 1rem;
  fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 1.25rem; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--gold); line-height: 1; margin-bottom: .75rem;
}
.steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--gold); }
.steps p { margin: 0; font-size: 1rem; }

/* About */
.about-inner { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; }
.checks li { position: relative; padding-left: 1.7rem; color: var(--white); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: .95rem; height: .5rem;
  border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg);
}

/* FAQ */
.faq-list { max-width: 50rem; display: grid; gap: .75rem; }
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--gold-dark); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list h3 { margin: 0; font-size: 1.05rem; }
.faq-list details p { margin: 0; padding: 0 1.25rem 1.25rem; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.contact-list dt { font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }
.contact-list dd { margin: .15rem 0 0; font-size: 1.15rem; font-weight: 600; color: var(--navy); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.contact-form { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #c3cad2; border-radius: 8px; padding: .7rem .85rem; min-height: 48px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(232, 163, 23, .45); border-color: var(--gold-dark); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .85rem; margin: .3rem 0 0; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #1c6b3a; }
.form-status.is-error { color: #b3261e; }

/* Footer */
.site-footer { background: #162230; color: #aab5c1; padding-block: 2.5rem; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.footer-logo img { width: 110px; }
.footer-logo .tagline { font-size: .85rem; margin-top: .6rem; }
.about-logo { text-align: center; }
.about-logo .tagline { font-size: 1rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-inner nav a { color: var(--white); text-decoration: none; font-family: var(--font-head); font-weight: 600; }
.footer-inner nav a:hover { color: var(--gold); }
.footer-inner p { margin: 0; flex-basis: 100%; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.25rem; }

/* Responsive */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .trust-list { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-cta { margin-top: 1rem; }
  .about-inner { grid-template-columns: 1fr; }
  .about-logo { max-width: 220px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .card-grid, .steps, .field-row, .checks { grid-template-columns: 1fr; }
  .brand img { width: 60px; }
  .hero-actions .btn, .contact-form .btn { width: 100%; }
}

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