/* =========================================================
   CERAMIC COATING DUNEDIN — dark theme (Go Detail style)
   Plain CSS, no build step. Colours and fonts are CSS variables
   so one change re-themes the whole site.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Sora:wght@600;700;800&display=swap');

:root {
  --bg:#0b0c10; --bg-2:#101217; --card:#14161c; --card-2:#1a1d24; --card-3:#21252e;
  --line:rgba(255,255,255,.08); --line-2:rgba(255,255,255,.14);
  --teal:#c9a869; --teal-2:#dcc28f; --teal-ink:#2a1f0a;
  --text:#f4f5f7; --muted:#9ba1ac; --dim:#6b717c;
  --display:'Sora',system-ui,sans-serif;
  --body:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --r:20px; --radius:20px; --r-sm:12px;
  --max:1200px; --pad:clamp(16px,5vw,40px); --sec:clamp(64px,9vw,112px);
  --ease:cubic-bezier(.2,.7,.2,1);
  --hdr:92px;
  /* legacy names used by inline styles */
  --brand:var(--teal); --ink:var(--text); --ink-soft:var(--muted); --bg-alt:var(--bg-2);
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; scroll-padding-top:var(--hdr); -webkit-text-size-adjust:100%; }
body { background:var(--bg); color:var(--text); font:400 16px/1.65 var(--body); overflow-x:hidden; -webkit-font-smoothing:antialiased; }
img { max-width:100%; height:auto; display:block; }
::selection { background:var(--teal); color:var(--teal-ink); }
:focus-visible { outline:2px solid var(--teal); outline-offset:3px; border-radius:8px; }

.wrap { max-width:var(--max); margin:0 auto; padding:0 var(--pad); }

h1,h2,h3,h4 { font-family:var(--display); font-weight:700; line-height:1.08; letter-spacing:-.03em; color:var(--text); }
h1 { font-size:clamp(2.4rem,7vw,4.6rem); letter-spacing:-.045em; }
h2 { font-size:clamp(1.8rem,4.4vw,3rem); margin-bottom:.6em; }
h3 { font-size:1.2rem; letter-spacing:-.02em; margin-bottom:.4em; }
p  { margin-bottom:1rem; color:var(--muted); }
strong { color:var(--text); }
a  { color:var(--teal-2); text-decoration:none; transition:color .2s; }
a:hover { color:var(--teal); }
p a, li a { text-decoration:underline; text-decoration-color:rgba(201,168,105,.4); text-underline-offset:3px; }

/* ---------- buttons ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:52px; padding:0 28px; border-radius:999px; border:1px solid transparent;
  background:var(--teal); color:var(--teal-ink) !important; font:700 .95rem var(--body);
  text-decoration:none !important; white-space:nowrap; cursor:pointer;
  box-shadow:0 10px 30px -10px rgba(201,168,105,.6);
  transition:background .25s, transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.btn:hover { background:var(--teal-2); transform:translateY(-1px); box-shadow:0 14px 36px -10px rgba(201,168,105,.75); }
.btn--ghost { background:rgba(255,255,255,.03); color:var(--text) !important; border-color:var(--line-2) !important; box-shadow:none; }
.btn--ghost:hover { background:rgba(201,168,105,.08); border-color:rgba(201,168,105,.6) !important; }
.btn--lg { min-height:56px; padding:0 32px; font-size:1rem; }
button.btn { width:auto; }
.muted { color:var(--muted); font-size:.9rem; }

/* ---------- header: floating pill ---------- */
.site-header { position:fixed; top:0; left:0; right:0; z-index:100; padding:14px var(--pad) 0; pointer-events:none; }
.nav {
  pointer-events:auto; max-width:calc(var(--max) - 2*var(--pad) + 32px); margin:0 auto;
  height:64px; display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:0 10px 0 22px; border-radius:999px; border:1px solid var(--line);
  background:rgba(16,18,23,.72); backdrop-filter:blur(16px) saturate(140%); -webkit-backdrop-filter:blur(16px) saturate(140%);
  position:relative;
}
.nav__logo { display:inline-flex; align-items:center; min-height:44px; color:var(--text); text-decoration:none; }
.nav__logo strong { font-family:var(--display); font-weight:700; font-size:1rem; letter-spacing:-.01em; }
.nav__logo:hover { color:var(--teal-2); }
.nav__links { display:flex; align-items:center; gap:4px; list-style:none; }
.nav__links > li > a { display:block; font-size:.9rem; font-weight:500; color:#c9cdd4; padding:9px 14px; border-radius:999px; text-decoration:none; transition:color .2s, background .2s; }
.nav__links > li > a:hover { color:var(--text); background:rgba(255,255,255,.06); }
.nav__call { background:var(--teal) !important; color:var(--teal-ink) !important; font-weight:700 !important; padding:10px 20px !important; margin-left:6px; box-shadow:0 10px 30px -10px rgba(201,168,105,.6); }
.nav__call:hover { background:var(--teal-2) !important; }

.has-dropdown { position:relative; }
.dropdown {
  display:none; position:absolute; top:calc(100% + 10px); left:0; list-style:none;
  min-width:250px; padding:8px; border-radius:18px; background:rgba(16,18,23,.97);
  border:1px solid var(--line); box-shadow:0 30px 60px -30px rgba(0,0,0,.9);
}
.has-dropdown::after { content:""; position:absolute; top:100%; left:0; right:0; height:14px; display:none; }
.has-dropdown:hover::after { display:block; }
.has-dropdown:hover .dropdown { display:block; }
.dropdown a { display:block; padding:10px 14px; border-radius:10px; font-size:.9rem; color:#c9cdd4; text-decoration:none; }
.dropdown a:hover { background:rgba(201,168,105,.08); color:var(--text); }

.nav__toggle { display:none; width:44px; height:44px; border-radius:999px; border:1px solid var(--line-2); background:none; color:var(--text); font-size:1.2rem; cursor:pointer; }
@media (max-width:900px) {
  .nav__toggle { display:block; }
  .nav__links {
    display:none; position:absolute; top:calc(100% + 10px); left:0; right:0;
    flex-direction:column; align-items:stretch; gap:2px; padding:12px; border-radius:24px;
    background:rgba(16,18,23,.98); border:1px solid var(--line); max-height:calc(100vh - 120px); overflow-y:auto;
  }
  .nav__links.open { display:flex; }
  .nav__links > li > a { font-size:1.05rem; padding:13px 16px; }
  .nav__call { text-align:center; margin:8px 0 0; }
  .dropdown { position:static; display:block; box-shadow:none; border:0; background:none; padding:0 0 4px 12px; min-width:0; }
}

/* space for the fixed header */
.site-header + .hero .hero__inner { padding-top:calc(var(--hdr) + 90px); }
.site-header + .breadcrumb { padding-top:var(--hdr); }
.site-header + .section { padding-top:calc(var(--hdr) + 48px); }

/* ---------- breadcrumbs ---------- */
.breadcrumb { background:var(--bg); font-size:.85rem; }
.breadcrumb ol { list-style:none; display:flex; flex-wrap:wrap; gap:6px; padding:14px 0 10px; }
.breadcrumb li { color:var(--dim); }
.breadcrumb li + li::before { content:"/"; margin-right:6px; opacity:.6; }
.breadcrumb a { color:var(--muted); text-decoration:none; }
.breadcrumb a:hover { color:var(--teal-2); }
.breadcrumb [aria-current] { color:var(--text); }
.breadcrumb + .hero .hero__inner { padding-top:90px; }
.breadcrumb + .section { padding-top:40px; }

/* ---------- hero ---------- */
.hero { position:relative; overflow:hidden; isolation:isolate; min-height:min(88svh,820px); display:flex; align-items:center; }
.hero__media { position:absolute; inset:0; z-index:-2; }
.hero__media img { width:100%; height:100%; object-fit:cover; transform:scale(1.06); animation:kb 18s ease-out forwards; }
@keyframes kb { to { transform:scale(1); } }
.hero::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg,rgba(11,12,16,.6) 0%,rgba(11,12,16,.4) 40%,rgba(11,12,16,.92) 88%,var(--bg) 100%),
             radial-gradient(ellipse at center,transparent 30%,rgba(11,12,16,.6) 100%);
}
.hero__inner { width:100%; max-width:900px; margin:0 auto; padding:90px var(--pad); text-align:center; }
.hero__eyebrow {
  display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border-radius:999px;
  border:1px solid rgba(201,168,105,.35); background:rgba(201,168,105,.08);
  color:var(--teal-2) !important; font-size:.75rem !important; font-weight:700; letter-spacing:.14em; text-transform:uppercase; margin:0 auto;
}
.hero__eyebrow::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--teal); box-shadow:0 0 0 4px rgba(201,168,105,.2); animation:pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow:0 0 0 7px rgba(201,168,105,0); } }
.hero h1 {
  margin:24px auto 0; max-width:16ch;
  background:linear-gradient(100deg,#fff 20%,var(--teal-2) 70%,var(--teal) 95%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p { color:#c4c9d1; font-size:clamp(1.02rem,2vw,1.2rem); max-width:620px; margin:22px auto 0; }
.hero__cta { margin-top:34px; display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }

/* ---------- sections ---------- */
.section { padding:var(--sec) 0; position:relative; }
.section--alt { background:var(--bg-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section--alt + .section--alt { border-top:0; }
.section[style*="padding:18px"] { padding:12px 0 !important; }
.section img[loading] { border-radius:var(--r) !important; border:1px solid var(--line); max-height:520px; object-fit:cover; }
.section__lead { max-width:70ch; }
.section__lead p { font-size:1.05rem; }
.center { text-align:center; }
h2.center { margin-left:auto; margin-right:auto; max-width:22ch; }
.center .section__lead { margin:0 auto; }
.article ul, .article ol, .section__lead ul { color:var(--muted); }

.split { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
@media (max-width:800px) { .split { grid-template-columns:1fr; gap:28px; } }

.grid { display:grid; gap:16px; }
.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:600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns:1fr; } }

.card {
  position:relative; padding:28px; border-radius:var(--r); background:var(--card); border:1px solid var(--line);
  transition:transform .4s var(--ease), border-color .3s, background .3s, box-shadow .4s;
}
.section--alt .card { background:var(--card); }
.card:hover { transform:translateY(-3px); border-color:rgba(201,168,105,.4); background:var(--card-2); box-shadow:0 30px 60px -30px rgba(0,0,0,.8); }
.card h3 { font-size:1.15rem; margin-bottom:.5em; }
.card h3::before { content:""; display:block; width:28px; height:3px; border-radius:3px; background:var(--teal); margin-bottom:16px; }
.card p { font-size:.95rem; }
.card p:last-child { margin-bottom:0; }
.card > a { display:inline-flex; margin-top:10px; font-weight:700; font-size:.9rem; color:var(--teal-2); text-decoration:none; }
.card h3 a { color:inherit; text-decoration:none; }

/* ---------- link lists (services / areas) ---------- */
.linklist { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; list-style:none; }
@media (max-width:800px) { .linklist { grid-template-columns:repeat(2,1fr); } }
@media (max-width:500px) { .linklist { grid-template-columns:1fr; } }
.linklist a {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:15px 18px; border-radius:var(--r-sm); border:1px solid var(--line-2); background:var(--card);
  color:var(--text); font-weight:600; text-decoration:none; transition:border-color .2s, background .2s, color .2s;
}
.linklist a::after { content:"\2192"; color:var(--teal); transition:transform .25s var(--ease); }
.linklist a:hover { border-color:var(--teal); background:rgba(201,168,105,.08); color:var(--text); }
.linklist a:hover::after { transform:translateX(4px); }
.linklist a strong { color:var(--teal-2); }

/* ---------- tables ---------- */
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:var(--r-sm); overflow:hidden; }
th, td { text-align:left; padding:14px 18px; border-bottom:1px solid var(--line); font-size:.95rem; color:var(--muted); }
th { background:var(--card-2); color:var(--text); font-weight:700; }
tr:last-child td { border-bottom:0; }

/* ---------- FAQ ---------- */
.faq details { border-bottom:1px solid var(--line); }
.faq details:first-child { border-top:1px solid var(--line); }
.faq summary {
  cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:20px;
  padding:22px 0; font-weight:600; font-size:1.05rem; color:var(--text); transition:color .2s;
}
.faq summary:hover { color:var(--teal-2); }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after {
  content:"+"; flex:none; width:32px; height:32px; border-radius:50%; border:1px solid var(--line-2);
  display:grid; place-items:center; font-size:1.1rem; line-height:1; color:var(--text); transition:transform .3s var(--ease), background .3s;
}
.faq details[open] summary::after { content:"\2013"; background:var(--teal); border-color:var(--teal); color:var(--teal-ink); transform:rotate(180deg); }
.faq details > p { padding:0 48px 22px 0; margin:0; }

/* ---------- CTA band ---------- */
.cta-band {
  position:relative; overflow:hidden; isolation:isolate; text-align:center;
  margin:var(--sec) var(--pad); border-radius:32px; padding:clamp(56px,9vw,100px) clamp(20px,6vw,80px);
  border:1px solid rgba(201,168,105,.25);
  background:radial-gradient(70% 90% at 50% 120%,rgba(201,168,105,.35),transparent 70%),linear-gradient(180deg,#1b1812,#0d1014);
}
@media (min-width:1280px) { .cta-band { margin-left:auto; margin-right:auto; max-width:calc(var(--max) - 2*var(--pad)); } }
.cta-band h2 { font-size:clamp(2rem,5vw,3.4rem); max-width:760px; margin:0 auto; }
.cta-band p { color:#c4c9d1; max-width:540px; margin:18px auto 0; font-size:1.05rem; }
.cta-band .muted { color:var(--muted) !important; font-size:.9rem; }

/* ---------- forms ---------- */
.form-card { background:var(--card); border:1px solid var(--line); border-radius:28px; padding:clamp(22px,4vw,40px); box-shadow:0 40px 100px -50px rgba(0,0,0,.9); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:600px) { .form-row { grid-template-columns:1fr; } }
.field { margin-bottom:18px; }
.field label { display:block; font-weight:600; font-size:.9rem; margin-bottom:8px; color:#e3e6ea; }
.field input, .field textarea, .field select {
  width:100%; min-height:52px; padding:13px 16px; border-radius:var(--r-sm); border:1px solid var(--line-2);
  background:var(--bg-2); color:var(--text); font:inherit; font-size:16px; color-scheme:dark;
  transition:border-color .2s, box-shadow .2s;
}
.field textarea { min-height:120px; resize:vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(201,168,105,.18); }

/* ---------- article pages (about, FAQ, legal) ---------- */
.article { max-width:820px; }
.article h1 { font-size:clamp(2.2rem,5.5vw,3.6rem); margin-bottom:18px; }
.article h2 { font-size:clamp(1.4rem,3vw,1.9rem); margin-top:44px; }
.article h3 { margin-top:28px; }
.article ul, .article ol { margin:0 0 1rem 1.3em; }
.article li { margin-bottom:.45rem; }
.article__lead { font-size:1.1rem; color:#c4c9d1; }
.article__date { margin-top:-4px; color:var(--dim); }
.faq-page h2 { font-size:1.3rem; margin-top:34px; }
.contact-list { list-style:none; margin:22px 0; }
.contact-list li { padding:14px 0; border-bottom:1px solid var(--line); color:var(--muted); }
.contact-list li:last-child { border-bottom:0; }

/* phone link — class is a stable hook for WhatConverts dynamic number insertion */
a[href^="tel:"] { font-weight:700; }

/* ---------- footer ---------- */
.site-footer { padding:80px 0 40px; border-top:1px solid var(--line); background:var(--bg); color:var(--muted); }
.footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; }
@media (max-width:860px) { .footer-grid { grid-template-columns:1fr 1fr; } .footer-grid > div:first-child { grid-column:1/-1; } }
@media (max-width:480px) { .footer-grid { grid-template-columns:1fr; } }
.site-footer h4 { font-family:var(--body); font-size:.75rem; letter-spacing:.16em; text-transform:uppercase; color:var(--dim); font-weight:700; margin-bottom:16px; }
.footer-grid > div:first-child h4 { font-family:var(--display); font-size:1.05rem; letter-spacing:-.01em; text-transform:none; color:var(--text); }
.site-footer p { color:var(--muted) !important; font-size:.95rem; }
.site-footer ul { list-style:none; }
.site-footer li { margin-bottom:10px; }
.site-footer a { color:#c9cdd4; font-size:.95rem; text-decoration:none; }
.site-footer a:hover { color:var(--teal-2); }
.footer-disclaimer { font-size:.82rem !important; color:var(--dim) !important; margin-top:10px; line-height:1.5; }
.footer-bottom { margin-top:60px; padding-top:24px; border-top:1px solid var(--line); color:var(--dim); font-size:.85rem; }

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

/* ---- Logo ---- */
.nav__logo img { display:block; height:34px; width:auto; }
.footer-logo { display:inline-block; margin-bottom:16px; }
.footer-logo img { display:block; height:100px; width:auto; }

/* mobile call button: number stays as (hidden) text so call tracking can swap it */
.nav__phone { display:none; position:relative; width:44px; height:44px; border-radius:999px; border:1px solid var(--line-2);
  overflow:hidden; color:transparent !important; font-size:0; text-decoration:none; }
.nav__phone::before { content:""; position:absolute; inset:0; margin:auto; width:19px; height:19px; background:var(--teal);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center/contain no-repeat; }
.nav__phone:hover { border-color:var(--teal); }

@media (max-width:900px) {
  .nav { display:grid; grid-template-columns:44px 1fr 44px; gap:10px; padding:0 9px; }
  .nav__phone { display:block; }
  .nav__logo { justify-self:center; }
  .nav__logo img { height:36px; }
}

/* ---- Site credit ---- */
.footer-bottom { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.site-footer .credit { display:inline-flex; align-items:center; gap:8px; color:var(--dim); text-decoration:none; font-size:.8rem; transition:color .2s; }
.credit img { height:14px; width:auto; display:block; filter:grayscale(1) brightness(1.15); opacity:.45; transition:opacity .2s; }
.site-footer .credit:hover { color:var(--muted); }
.credit:hover img { opacity:.8; }
