/* resispect — Pest & Building Inspection Melbourne
   Design tokens, layout and components. */

:root {
  --ink: #15201c;
  --ink-soft: #54625b;
  --line: #e4e8e3;
  --bg: #f7f6f1;
  --card: #ffffff;
  --brand: #1f6b4a;
  --brand-ink: #134730;
  --accent: #dcefe3;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Inter", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; line-height: 1.06; letter-spacing: -0.015em; }
a { color: inherit; }
svg { display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header { position: fixed; left: 0; right: 0; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow 0.3s var(--ease); }
header.stuck { box-shadow: 0 2px 12px rgba(20, 40, 30, 0.07); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-full { height: 46px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--ink-soft); text-decoration: none; transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-call { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.nav-call svg { width: 15px; height: 15px; }
@media (max-width: 720px) { .nav-links a:not(.nav-call) { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(19, 71, 48, 0.25); }
.btn-primary:hover { background: var(--brand-ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(19, 71, 48, 0.28); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-light:hover { background: #eef6f1; transform: translateY(-2px); }
.btn-glass { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.45); backdrop-filter: blur(4px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Hero (full-bleed photo) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(90deg, rgba(6, 20, 13, 0.66) 0%, rgba(6, 20, 13, 0.34) 55%, rgba(6, 20, 13, 0.2) 100%), linear-gradient(180deg, rgba(6, 20, 13, 0.4) 0%, rgba(6, 20, 13, 0.34) 45%, rgba(6, 20, 13, 0.82) 100%), url("../assets/au_terrace.jpg"); background-size: cover; background-position: center; }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 58px; }
.hero .inner { max-width: 640px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(4px); padding: 6px 13px; border-radius: 99px; margin-bottom: 20px; }
.chip .stars { color: #ffd24a; display: inline-flex; gap: 1px; }
.chip .stars svg { width: 13px; height: 13px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.02em; }
.hero p { margin-top: 16px; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255, 255, 255, 0.9); max-width: 360px; }
.hero .cta { margin-top: 28px; display: flex; gap: 11px; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255, 255, 255, 0.7); animation: bob 2s var(--ease) infinite; }
.scroll-hint svg { width: 26px; height: 26px; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ---------- Problem carousel ---------- */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.carousel-head h2 { font-size: clamp(24px, 2.9vw, 36px); }
.carousel-head p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }
.arrows { display: flex; gap: 8px; flex-shrink: 0; }
.arrow-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease); }
.arrow-btn:hover { border-color: var(--brand); color: var(--brand); }
.arrow-btn svg { width: 18px; height: 18px; }
.arrow-btn:disabled { opacity: 0.3; cursor: default; }
.arrow-btn:disabled:hover { border-color: var(--line); color: var(--ink); }
.track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; }
.impact { display: grid; grid-template-columns: 1.05fr 0.95fr; background: var(--brand-ink); color: #eaf3ee; border-radius: 18px; overflow: hidden; height: 100%; }
.impact .photo { background-size: cover; background-position: center; min-height: 360px; }
.impact .copy { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.impact .copy .tag { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #7fcaa3; margin-bottom: 14px; }
.impact h3 { color: #fff; font-family: "Fraunces", serif; font-weight: 500; font-size: clamp(24px, 3vw, 34px); line-height: 1.08; }
.impact p { margin-top: 14px; color: #c4dccf; font-size: 16px; max-width: 40ch; }
.impact a.link { margin-top: 22px; display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; align-self: flex-start; border-bottom: 1px solid rgba(255, 255, 255, 0.4); padding-bottom: 2px; }
.impact a.link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.impact a.link:hover svg { transform: translateX(4px); }
@media (max-width: 760px) { .impact { grid-template-columns: 1fr; } .impact .photo { min-height: 200px; order: -1; } .impact .copy { padding: 32px 26px; } }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--line); border: none; padding: 0; cursor: pointer; transition: background 0.2s var(--ease), width 0.2s var(--ease); }
.dot.active { background: var(--brand); width: 24px; }

/* ---------- Section scaffolding ---------- */
section { scroll-margin-top: 64px; }
.band { padding: 64px 0; }
.band-head { text-align: center; max-width: 22ch; margin: 0 auto 40px; }
.band-head h2 { font-size: clamp(26px, 3vw, 38px); }
.band-head p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; max-width: 44ch; margin-inline: auto; }
@media (max-width: 760px) { .band { padding: 48px 0; } .band-head { margin-bottom: 30px; } }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; text-align: center; }
.stat .big { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(30px, 4vw, 44px); color: var(--brand-ink); line-height: 1; }
.stat .big .star { color: #e0a200; }
.stat .lbl { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Services ---------- */
.svcs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; gap: 16px; align-items: flex-start; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.svc:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -26px rgba(20, 40, 30, 0.42); }
.svc .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--accent); color: var(--brand-ink); display: grid; place-items: center; flex-shrink: 0; }
.svc .ic svg { width: 22px; height: 22px; }
.svc h3 { font-size: 19px; }
.svc p { font-size: 14.5px; color: var(--ink-soft); margin-top: 5px; }
.svc .std { margin-top: 9px; display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--brand-ink); }
@media (max-width: 700px) { .svcs { grid-template-columns: 1fr; } }

/* ---------- Pricing tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; cursor: pointer; position: relative; transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.tile:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 16px 32px -24px rgba(20, 40, 30, 0.4); }
.tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tile.sel { border-color: var(--brand); background: var(--accent); }
.tile.sel::after { content: "✓ Selected"; position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700; color: var(--brand-ink); }
.tile .beds { font-size: 13px; color: var(--ink-soft); }
.tile .amt { font-family: "Fraunces", serif; font-weight: 600; font-size: 30px; color: var(--brand-ink); margin-top: 6px; }
.tiles-note { text-align: center; margin-top: 16px; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 620px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Process ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.flow .step { text-align: center; }
.flow .step .n { width: 38px; height: 38px; margin: 0 auto 10px; border-radius: 50%; background: var(--accent); color: var(--brand-ink); display: grid; place-items: center; font-family: "Fraunces", serif; font-weight: 600; }
.flow .step h3 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 14.5px; }
.flow .step p { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
@media (max-width: 760px) { .flow { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; } }
@media (max-width: 380px) { .flow { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.quote .stars { color: #e0a200; display: inline-flex; gap: 1px; margin-bottom: 10px; }
.quote .stars svg { width: 14px; height: 14px; }
.quote p { font-size: 15px; }
.quote .who { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 800px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Contact (form over dusk house) ---------- */
.contact { position: relative; border-radius: 18px; overflow: hidden; color: #fff; padding: 56px 40px; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; background-image: linear-gradient(rgba(8, 28, 18, 0.78), rgba(8, 28, 18, 0.9)), var(--house, none); background-size: cover; background-position: center; transition: opacity 0.8s var(--ease); }
.contact.bg-loaded::before { opacity: 1; }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.contact-info h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.contact-info > p { margin-top: 12px; color: #cfe2d7; font-size: 16px; max-width: 34ch; }
.contact-info .meta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #dbeae2; }
.contact-info .meta div { display: inline-flex; align-items: center; gap: 9px; }
.contact-info .meta svg { width: 16px; height: 16px; color: #8fd3af; }
.form-card { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.5); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 14.5px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent); }
.two-field { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.form-success { display: none; text-align: center; padding: 22px 8px; }
.form-success.show { display: block; }
.form-success .tick { width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent); color: var(--brand); display: grid; place-items: center; }
.form-success .tick svg { width: 25px; height: 25px; }
.form-success h3 { font-size: 22px; margin-bottom: 6px; }
.form-success p { color: var(--ink-soft); }
form.hide { display: none; }
@media (max-width: 800px) { .contact { padding: 40px 24px; } .contact-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 56px; }
.foot { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.foot-logo { height: 94px; width: auto; }
.foot-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 20px; font-size: 13px; color: var(--ink-soft); }
.foot-row span { max-width: 60ch; }
.nav-call.dark { color: var(--brand-ink); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: 0.07s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.21s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-hint { animation: none; }
  .btn, .svc, .tile { transition: none; }
}

/* ===== SLOT PICKER (calendar — connected to Cordi availability) ===== */
.slot-picker { display: none; margin-bottom: 12px; }
.slot-picker.visible { display: block; }
.slot-picker .sp-label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.slot-picker .sp-label .req { color: var(--brand); }
.slot-picker .sp-month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.slot-picker .sp-month-label { font-family: "Fraunces", serif; font-size: 16px; font-weight: 600; color: var(--brand-ink); }
.slot-picker .sp-month-label span { color: var(--ink-soft); font-weight: 400; }
.slot-picker .sp-arrow { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer; transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.slot-picker .sp-arrow:hover { border-color: var(--brand); color: var(--brand); }
.slot-picker .sp-arrow.disabled { opacity: 0.35; pointer-events: none; }
.slot-picker .sp-dow-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 4px; }
.slot-picker .sp-dow { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); text-align: center; padding: 4px 0; font-weight: 600; }
.slot-picker .sp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.slot-picker .sp-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; font-size: 13px; color: #c2ccc6; position: relative; user-select: none; }
.slot-picker .sp-cell.has-slots { color: var(--ink); cursor: pointer; transition: background 0.2s var(--ease); }
.slot-picker .sp-cell.has-slots:hover { background: var(--accent); }
.slot-picker .sp-cell.has-slots::after { content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--brand); }
.slot-picker .sp-cell.selected { background: var(--brand); color: #fff; font-weight: 600; }
.slot-picker .sp-cell.selected::after { background: #fff; }
.slot-picker .sp-cell.today { border: 1px solid var(--brand); }
.slot-picker .sp-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; max-height: 168px; overflow-y: auto; }
@media (max-width: 540px) { .slot-picker .sp-times { grid-template-columns: repeat(2, 1fr); } }
.slot-picker .sp-time { padding: 9px 6px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: 13px; font-weight: 500; text-align: center; cursor: pointer; transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease); }
.slot-picker .sp-time:hover { border-color: var(--brand); color: var(--brand); }
.slot-picker .sp-time.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.slot-picker .sp-loading { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); padding: 6px 0; }
.slot-picker .sp-loading .spinner { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: sp-spin 0.6s linear infinite; }
@keyframes sp-spin { to { transform: rotate(360deg); } }
.slot-picker.slot-error { outline: 2px solid #d64545; outline-offset: 5px; border-radius: 12px; }
.slot-picker.slot-error .sp-label { color: #d64545; }
