/*
Theme Name: Finish Basements
Description: Custom theme for finish-basements.ca
Version: 1.0
*/
/* ==========================================================
   Site styles. Colours and fonts live in :root so a rebrand
   is a few lines of change.
   ========================================================== */
:root {
  --ink: #16202b;
  --ink-soft: #3d4a57;
  --muted: #6b7783;
  --bg: #faf8f5;
  --card: #ffffff;
  --line: #e6e1d9;
  --brand: #1f3a4d;      /* deep slate blue */
  --brand-2: #2b5068;
  --accent: #c0713a;     /* warm copper */
  --accent-dark: #a35c2b;
  --ok: #2f7d4f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 32, 43, 0.08);
  --max: 1160px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-2); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; display: block; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-size: 1rem; font-family: inherit; transition: background .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-light { background: #fff; color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

/* ---------- Header ---------- */
.topbar { background: var(--brand); color: #dfe7ee; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.site-header { background: rgba(250, 248, 245, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1; }
.logo-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { color: #fff; padding: .6em 1.2em; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: linear-gradient(120deg, #142735 0%, #1f3a4d 55%, #2b5068 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 88px 0; }
.hero h1 { color: #fff; }
.hero .lead { color: #d3dde6; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; font-size: .92rem; color: #cfd9e2; }
.hero-badges span { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { flex: none; }
.hero-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 28px; }
.hero-card h3 { color: #fff; font-family: var(--font-body); font-size: 1.05rem; margin-bottom: 14px; }
.hero-card .price-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-card .price-line:last-of-type { border-bottom: 0; }
.hero-card .price-line strong { color: #f3c49f; }
.hero-card small { color: #a9b8c5; display: block; margin-top: 10px; }
.page-hero { background: linear-gradient(120deg, #142735, #1f3a4d); color: #fff; padding: 72px 0 64px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #d3dde6; }
.crumbs { font-size: .85rem; color: #a9b8c5; margin-bottom: 12px; }
.crumbs a { color: #d3dde6; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding: 64px 0; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: #f2eee8; }
.section-dark { background: var(--brand); color: #e6edf3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } section { padding: 60px 0; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.service-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.service-card .visual { height: 200px; }
.service-card .body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.service-card .body .btn { margin-top: auto; align-self: flex-start; }
.service-card .from { color: var(--muted); font-size: .92rem; margin-bottom: 1em; }
.service-card .from strong { color: var(--accent); font-size: 1.1rem; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: #f6e7dc; color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: .55em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: #e3efe7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232f7d4f'%3E%3Cpath d='M8 13.2 4.8 10l-1.1 1.1L8 15.4l8.3-8.3-1.1-1.1z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Illustrated panels used where real photos will go later */
.visual { border-radius: var(--radius); position: relative; overflow: hidden; min-height: 200px; }
.visual-bath { background: linear-gradient(160deg, #dfe8ec 0%, #c3d3da 100%); }
.visual-base { background: linear-gradient(160deg, #ece3d8 0%, #d6c6b2 100%); }
.visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual .tag { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.88); color: var(--ink-soft); font-size: .75rem; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.visual-tall { min-height: 380px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; }
.section-dark .step p { color: #c7d3dd; }

/* Pricing table */
.price-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { background: var(--brand); color: #fff; font-weight: 600; font-size: .92rem; }
.price-table td.price { font-weight: 700; color: var(--accent-dark); white-space: nowrap; }
.price-table tr:last-child td { border-bottom: 0; }
.note { font-size: .88rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 640px) { .price-table th, .price-table td { padding: 12px; font-size: .92rem; } }

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas span { background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: .93rem; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, #d48b56 100%); color: #fff; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band p { margin: 0; color: #fff3ea; }

/* ---------- Forms & estimator ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfc8bd; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: 10px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e3efe7; color: #1f5a37; }
.form-status.info { background: #f6e7dc; color: #7a4320; }

.tabs { display: inline-flex; background: #ebe5dc; border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.tabs button { border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink-soft); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.estimator { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .estimator { grid-template-columns: 1fr; } }
.est-panel[hidden] { display: none; }
.opt-group { margin-bottom: 22px; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .choice-row { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; border: 1.5px solid #d8d1c6; border-radius: 12px; padding: 14px; cursor: pointer; background: #fff; font-weight: 400; height: 100%; }
.choice span b { display: block; margin-bottom: 2px; }
.choice span small { color: var(--muted); font-size: .82rem; line-height: 1.4; display: block; }
.choice input:checked + span { border-color: var(--accent); background: #fdf6f0; box-shadow: 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-weight: 400; cursor: pointer; margin: 0; }
.check input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type=range] { flex: 1; padding: 0; border: 0; accent-color: var(--accent); }
.range-row output { min-width: 92px; text-align: right; font-weight: 700; }
.est-result { position: sticky; top: 100px; background: var(--brand); color: #fff; border-radius: 18px; padding: 30px; }
.est-result h3 { color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: #c7d3dd; }
.est-amount { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; color: #f3c49f; margin: 4px 0 10px; line-height: 1.1; }
.est-breakdown { list-style: none; padding: 0; margin: 18px 0; font-size: .92rem; color: #d3dde6; }
.est-breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.est-result small { display: block; color: #a9b8c5; font-size: .8rem; line-height: 1.5; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #101a23; color: #a9b8c5; padding: 64px 0 28px; font-size: .94rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.site-footer a { color: #d3dde6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom { border-top: 1px solid #22303c; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo-text small { color: #7f8f9c; }

/* ---------- Services dropdown ---------- */
.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: .75em; }
.sub { position: absolute; top: 100%; left: -16px; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; }
.sub a:hover { background: #f6efe8; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
@media (max-width: 900px) {
  .has-sub > a::after { content: ""; }
  .sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; background: transparent; }
  .sub a { border-radius: 0; font-size: .92rem; padding: 10px 0; }
}
.visual-kitchen { background: linear-gradient(160deg, #e9ede4 0%, #d3dccb 100%); }
.visual-suite { background: linear-gradient(180deg, #dfeaf3 0%, #eef3f6 70%, #d8e6cf 100%); }
.svc-link { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.svc-link:hover { transform: translateY(-2px); border-color: var(--accent); }
.svc-link p { color: var(--ink-soft); }
.svc-link .from { color: var(--accent-dark); font-weight: 700; font-size: .95rem; }

/* Home page quote form in the hero */
.hero-form { color: var(--ink, #1b2a36); padding: 28px; }
.hero-form h3 { color: inherit; margin-bottom: 4px; }
.hero-form .form-intro { color: var(--ink-soft, #55616b); margin: 0 0 16px; font-size: .95rem; }
.hero-form label { color: inherit; }
.price-band { max-width: 760px; margin: 0 auto; background: #1f3a4d; color: #fff; }
.price-band .price-line span { color: #fff; }
.btn-ghost-dark { border: 2px solid rgba(255,255,255,.6); color: #fff; }
.hero-form { padding: 22px 24px; }
.hero-form .form-grid { gap: 10px 14px; }
.hero-form label { margin-bottom: 4px; font-size: .88rem; }
.hero-form input, .hero-form select { padding-top: 9px; padding-bottom: 9px; }
.hero-form textarea { min-height: 56px; height: 56px; }
.hero:has(.hero-form) .container { padding: 56px 0; align-items: start; }

/* homepage quick price */
.hq-extras{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px}
.hq-extras .lbl{grid-column:1/-1;font-weight:600;font-size:.9rem}
.hq-extras .check{font-size:.85rem;align-items:flex-start}
.hq-extras small{display:block;color:var(--muted)}
.quick-price{background:#fbf3ea;border:1px solid #f3c49f;border-radius:10px;padding:12px 14px}
.quick-price span{display:block;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.quick-price strong{display:block;font-size:1.5rem;margin:2px 0;color:#2b2622}
.quick-price small{display:block;font-size:.78rem;color:var(--muted);line-height:1.35}
@media (max-width:560px){.hq-extras{grid-template-columns:1fr}}

/* blog */
.post-hero{background:var(--ink,#1f3a4d);color:#fff;padding:64px 0 48px}
.post-hero h1{color:#fff;max-width:820px}
.post-hero .crumbs a{color:#f3c49f}
.post-body{max-width:760px;margin:0 auto;padding:48px 20px 24px;font-size:1.06rem;line-height:1.75}
.post-body h2{margin:36px 0 12px;font-size:1.6rem}
.post-body ul,.post-body ol{padding-left:22px;margin:0 0 18px}
.post-body li{margin:6px 0}
.post-body a{color:#b8662f;text-decoration:underline}
.post-cta{max-width:760px;margin:16px auto 56px;padding:28px;border-radius:14px;background:#fbf3ea;border:1px solid #f3c49f}
.post-cta h3{margin:0 0 8px}
.post-list{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.post-list .card h3{font-size:1.15rem;margin:0 0 8px}
.post-list .card h3 a{color:inherit;text-decoration:none}
.post-list .card p{color:var(--muted);font-size:.95rem}
@media (max-width:900px){.post-list{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.post-list{grid-template-columns:1fr}}
