/* ==========================================================================
   Flawless Properties — shared stylesheet
   Design tokens and layout primitives lifted from index.html so the landing
   pages, thank-you page and 404 render as the same site. Loaded as an external
   file so it is cached once and reused across every page.
   ========================================================================== */

:root {
  --ink: #10282A;
  --ink-soft: #54655F;
  --brand: #135652;
  --brand-deep: #0C3E3B;
  --brand-tint: #E7F0EE;
  --bg: #F7F8F6;
  --card: #FFFFFF;
  --line: #E4E7E3;
  --gold: #C08F2E;
  --good: #1B7A56;
  --good-tint: #E9F5EE;
  --shadow: 0 1px 2px rgba(16, 40, 42, .05), 0 6px 20px rgba(16, 40, 42, .07);
  --shadow-lg: 0 20px 60px rgba(16, 40, 42, .16);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
}

h1, h2, h3, h4 { margin: 0 0 .35em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; }
.muted { color: var(--ink-soft); }

.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--brand); font-weight: 600;
}

/* Visible only to screen readers — used for the skip link and form hints. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  border: none; cursor: pointer; transition: .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-outline { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: .84rem; }
.btn-block { width: 100%; }

/* ---- Nav ---------------------------------------------------------------- */
nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 248, 246, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.brand { font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .85rem;
}
.navlinks { display: flex; gap: 24px; font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
.navlinks a:hover { color: var(--ink); }
@media (max-width: 900px) { .navlinks { display: none; } }

/* ---- Breadcrumbs -------------------------------------------------------- */
.crumbs { font-size: .78rem; color: var(--ink-soft); padding: 18px 0 0; }
.crumbs a { font-weight: 600; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { opacity: .5; margin: 0 6px; }

/* ---- Page hero ---------------------------------------------------------- */
.page-hero { padding: 34px 0 10px; }
.page-hero p.sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 640px; margin-top: 12px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.stat-strip { display: flex; gap: 48px; padding: 30px 0 6px; flex-wrap: wrap; }
.stat-strip .n { font-size: 1.6rem; font-weight: 800; color: var(--brand-deep); }
.stat-strip .l {
  font-size: .74rem; color: var(--ink-soft); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}

/* ---- Prose -------------------------------------------------------------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 28px; }
.prose p { margin-top: 14px; color: var(--ink-soft); }
.prose ul { margin: 14px 0 0; padding-left: 0; list-style: none; }
.prose ul li {
  display: flex; gap: 10px; padding: 8px 0; font-size: .94rem;
  color: var(--ink-soft); border-top: 1px solid var(--line);
}
.prose ul li:first-child { border-top: none; }
.prose ul li::before { content: '✓'; color: var(--good); font-weight: 800; flex-shrink: 0; }
.prose a.inline { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Cards & grids ------------------------------------------------------ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .card-grid, .card-grid.two { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px;
}
.card p { color: var(--ink-soft); font-size: .92rem; margin-top: 6px; }

/* Distance / drive-time rows */
.place-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-top: 1px solid var(--line); gap: 12px;
}
.place-row:first-of-type { border-top: none; }
.place-row .name { font-weight: 700; font-size: .92rem; }
.place-row .dist {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .78rem; color: var(--ink-soft); white-space: nowrap;
}

/* Rate table */
.rate-table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: .92rem; }
.rate-table th, .rate-table td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); }
.rate-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.rate-table tbody tr:hover { background: var(--brand-tint); }
.rate-table td.num { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 600; white-space: nowrap; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { margin-top: 28px; max-width: 780px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: .96rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 1.3rem; font-weight: 700; flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; color: var(--ink-soft); font-size: .92rem; }

/* ---- Quick enquiry form ------------------------------------------------- */
.quick-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px; margin-top: 30px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .76rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px;
  font-family: inherit; font-size: .92rem; background: #fbfbf9; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field textarea { min-height: 85px; resize: vertical; }
.field .hint { font-size: .74rem; color: var(--ink-soft); margin-top: 5px; font-weight: 500; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-reassure { font-size: .8rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }

.success-panel, .error-panel {
  display: none; padding: 22px; border-radius: 12px;
  background: var(--good-tint); border: 1px solid var(--good); margin-top: 16px;
}
.error-panel { background: #FBEAEA; border-color: #C0392B; }
.success-panel:focus, .error-panel:focus { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---- CTA banner --------------------------------------------------------- */
.cta-banner {
  background: var(--brand); color: #fff; border-radius: 24px; padding: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: rgba(255, 255, 255, .8); }

/* ---- Related pages ------------------------------------------------------ */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }
.related a {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px; transition: .18s;
}
.related a:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.related a strong { display: block; font-size: .95rem; }
.related a span { font-size: .84rem; color: var(--ink-soft); }

/* ---- Trust bar ---------------------------------------------------------- */
.trust-bar {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 700; color: var(--ink-soft); }
.trust-item .stars { color: var(--gold); }

/* ---- Confirmation / next-steps (thank-you page) ------------------------- */
.confirm-mark {
  width: 74px; height: 74px; margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem; font-weight: 800;
  background: var(--brand); color: #fff;
}
.steps { display: grid; gap: 18px; margin-top: 28px; }
.step {
  display: flex; gap: 18px; align-items: flex-start; text-align: left;
  padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
}
.step .num {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: 'IBM Plex Mono', monospace; font-weight: 600;
  background: var(--brand-tint); color: var(--brand);
}
.step h3 { font-size: 1rem; margin-bottom: 5px; }
.step p { font-size: .9rem; color: var(--ink-soft); }

/* ---- Error page --------------------------------------------------------- */
.error-code {
  font-family: 'IBM Plex Mono', monospace; font-size: clamp(3.4rem, 12vw, 6rem);
  font-weight: 600; color: var(--brand-tint); line-height: 1; margin-bottom: 8px;
}

/* ---- Footer ------------------------------------------------------------- */
footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: center; }
.foot-links { display: flex; gap: 20px; font-weight: 600; flex-wrap: wrap; }
footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
