/* ============================
   Tokens
   ============================ */
:root {
  --navy: #0A2540;
  --navy-deep: #071B32;
  --navy-light: #123A5E;
  --green: #1F8A5F;
  --green-light: #2FAF78;
  --green-pale: #E7F5EE;
  --white: #FFFFFF;
  --text: #17293B;
  --muted: #5B7083;
  --border: #DDE7E2;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 10px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em 0;
  line-height: 1.15;
}

p { margin: 0 0 1em 0; }

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-light); }

.btn-ghost {
  background: transparent;
  border-color: var(--navy-light);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-full {
  width: 100%;
}

/* ============================
   Header
   ============================ */
.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;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--green); }

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--green-light); color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ============================
   Hero
   ============================ */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 72px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-light);
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 20px;
}

.hero-sub {
  color: #C9D6E3;
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 16px;
}

.hero .btn-ghost {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.hero .btn-ghost:hover {
  border-color: var(--green-light);
  color: var(--green-light);
}

.hero-note {
  color: #93A6B8;
  font-size: 0.88rem;
  margin: 0;
}

.hero-visual { display: flex; justify-content: center; }
.house-illustration { width: 100%; max-width: 440px; }

/* ============================
   Section shared
   ============================ */
section { padding: 80px 0; }

.section-sub {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* ============================
   Benefits
   ============================ */
.benefits { background: var(--white); }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.benefit-card {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.benefit-card:hover { border-color: var(--green-light); }

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.benefit-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================
   How it works
   ============================ */
.how-it-works { background: var(--green-pale); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ============================
   Trust
   ============================ */
.trust { background: var(--navy); color: var(--white); }
.trust h2 { color: var(--white); }
.trust-copy { max-width: 760px; }
.trust-copy p { color: #C9D6E3; }

.trust-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.trust-list li {
  position: relative;
  padding-left: 30px;
  color: #DCE6EF;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-light);
}

/* ============================
   Quote form
   ============================ */
.quote-section { background: var(--white); }

.quote-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.quote-intro h2 { margin-bottom: 14px; }
.quote-intro p { color: var(--muted); }

.reassurance-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.reassurance-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 0.95rem;
}

.reassurance-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-light);
}

.enquiry-form {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 138, 95, 0.15);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #C0392B;
}

.field-error {
  color: #C0392B;
  font-size: 0.82rem;
  min-height: 1.1em;
  margin-top: 4px;
}

.checkbox-field {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.checkbox-field input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.checkbox-field label {
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--text);
}

.form-disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 16px;
  margin-bottom: 0;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-success {
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.form-success h3 { color: var(--green); }

/* ============================
   Footer
   ============================ */
.site-footer {
  background: var(--navy-deep);
  color: #B9C7D4;
  padding-top: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-inner h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.footer-inner p { font-size: 0.9rem; margin: 0; }

.footer-brand .logo-text { color: var(--white); }
.footer-brand p { margin-top: 10px; }

.footer-bottom {
  padding: 20px 24px;
  font-size: 0.82rem;
  color: #8CA0B3;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .quote-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; width: 100%; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }

  .benefit-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
