/* Westlayer site styles. Fonts are bundled (SIL OFL) so nothing loads from third parties. */
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pacifico"; src: url("fonts/Pacifico-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url("fonts/ArchivoBlack-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --ink: #0f1c2b;
  --navy: #16324f;
  --accent: #e8552a;
  --accent-dark: #c9431c;
  --bg: #fbfaf7;
  --card: #ffffff;
  --line: #e4dfd5;
  --muted: #5a6573;
  --soft: #f3efe7;
  --ok: #1f7a4d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 28, 43, .06), 0 8px 24px rgba(15, 28, 43, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
section { padding: 64px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--accent-dark); margin-bottom: 10px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--accent-dark); }
.nav a[aria-current="page"] { color: var(--accent-dark); }
@media (max-width: 720px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding: 10px 0; gap: 6px; }
  .nav { gap: 14px; }
  .nav a { font-size: .88rem; }
  section { padding: 44px 0; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; } .hero { padding: 40px 0 32px; } }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 > *, .grid-2 > *, .hero .wrap > * { min-width: 0; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.offer { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; padding: 0; }
.offer .pic { background: #f8f8f8; aspect-ratio: 4 / 3; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.offer .pic img { width: 100%; height: 100%; object-fit: contain; }
.offer .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.offer .price { font-weight: 700; color: var(--navy); }
.offer .more { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--accent-dark); }
.offer:hover { border-color: var(--ink); }
.pic-note { font-size: .74rem; color: var(--muted); text-align: center; padding: 6px 0 0; }

/* rate card */
.rate { background: var(--navy); color: #fff; border: 0; }
.rate h3 { color: #fff; margin-bottom: 14px; }
.rate table { width: 100%; border-collapse: collapse; }
.rate td { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: .95rem; }
.rate td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.rate tr:last-child td { border-bottom: 0; }
.rate .foot { margin: 14px 0 0; font-size: .82rem; color: rgba(255, 255, 255, .75); }

/* band */
.band { background: var(--soft); border-block: 1px solid var(--line); }

/* forms */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check input { width: 18px; height: 18px; }

/* quote tool */
.drop { border: 2px dashed #c9c2b4; border-radius: var(--radius); padding: 26px 18px; text-align: center; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: #fff6f2; }
.drop strong { display: block; font-size: 1.05rem; }
.file-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 0; }
.fact { background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.fact b { display: block; font-size: 1.05rem; }
.fact span { font-size: .78rem; color: var(--muted); }
.result { position: sticky; top: 84px; }
.result .total { font-size: 2.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--navy); }
.result .per { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.lines { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: .93rem; }
.lines td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.lines td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.warn { background: #fff4e5; border: 1px solid #f0c98a; border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin-top: 12px; }
.note { background: #eef5ef; border: 1px solid #bfd9c6; border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin-top: 12px; }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 28px 0 0; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps b { display: block; margin-bottom: 4px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* tables */
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.table th { background: var(--soft); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* faq */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* personaliser */
.preview-box { background: #f1ede4; border-radius: var(--radius); padding: 18px; display: grid; place-items: center; min-height: 300px; border: 1px solid var(--line); }
.preview-box svg { width: 100%; max-width: 360px; height: auto; filter: drop-shadow(0 10px 14px rgba(15, 28, 43, .18)); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatches button[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.price-line { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.price-line .amount { font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* status + footer */
.status { margin-top: 12px; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.err { color: #b3261e; }
.setup-banner { background: #fff4e5; border-bottom: 1px solid #f0c98a; padding: 8px 0; font-size: .85rem; text-align: center; }
.site-footer { background: var(--ink); color: #c9d2dc; padding: 40px 0; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h3 { color: #fff; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
