/* ==========================================================================
   Flawless Finish — Painting & Decorating Specialist
   Mobile-first, single stylesheet. No frameworks.
   Brand palette sampled from supplied logo & Dulux assets.
   ========================================================================== */

:root {
  --teal:        #2a676d;   /* logo frame */
  --teal-bright: #37a0a4;
  --teal-soft:   #e6f2f2;
  --navy:        #18204f;   /* 5-year warranty badge */
  --navy-deep:   #10163a;
  --ink:         #1d2634;
  --muted:       #5b6673;
  --line:        #dde5e7;
  --bg:          #ffffff;
  --bg-soft:     #f4f8f8;
  --gold:        #f5b301;   /* review stars */
  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 10px 30px rgba(16, 22, 58, .10);
  --shadow-sm:   0 4px 14px rgba(16, 22, 58, .08);
  --header-h:    72px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 { line-height: 1.18; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }

:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #eef1f8; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: .6rem;
}
.section--navy .eyebrow { color: var(--teal-bright); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #c9d2e6; }
.section-head { max-width: 720px; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .98rem; cursor: pointer; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(42, 103, 109, .35); }
.btn--primary:hover { background: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(24, 32, 79, .35); }
.btn--light { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--light:hover { border-color: var(--teal); color: var(--teal); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { width: 168px; height: auto; }
.brand span { position: absolute; left: -9999px; } /* accessible name, logo carries the visual */

.main-nav { margin-left: auto; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-list {
  position: absolute; inset: var(--header-h) 0 auto 0;
  display: none; flex-direction: column; gap: .2rem;
  list-style: none; padding: 1rem 1.25rem 1.4rem; margin: 0;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.main-nav.open .nav-list { display: flex; }
.nav-list a {
  display: block; padding: .65rem .8rem; border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 600;
  transition: background-color .15s ease, color .15s ease;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { background: var(--teal-soft); color: var(--teal); }

.header-cta { display: none; align-items: center; gap: .6rem; margin-left: .8rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 800; color: var(--navy); white-space: nowrap;
}
.header-phone svg { flex-shrink: 0; }
.header-phone:hover { color: var(--teal); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.hero-grid {
  display: grid; gap: 2.2rem; align-items: center;
  padding: clamp(2.4rem, 6vw, 4.5rem) 0 clamp(2.6rem, 6vw, 4.5rem);
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent { color: var(--teal); }
.hero .lead { margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.7rem; }

.hero-proof { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; padding: 0; margin: 0; list-style: none; }
.hero-proof li { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .95rem; color: var(--navy); }
.hero-proof svg { color: var(--teal); flex-shrink: 0; }

.hero-media picture, .hero-media img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 2 / 1; object-fit: cover; width: 100%; display: block;
}

.fine-print { font-size: .8rem; color: var(--muted); margin-top: .9rem; }

/* ---------- Trust strip ---------- */
.trust-strip { border-block: 1px solid var(--line); background: #fff; }
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem;
  padding: 1.8rem 0; text-align: center;
}
.trust-item { display: grid; gap: .35rem; justify-items: center; align-content: start; }
.trust-item .num { font-size: 1.7rem; font-weight: 800; color: var(--teal); line-height: 1; }
.trust-item .lbl { font-size: .86rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.trust-item img { max-height: 64px; width: auto; margin-bottom: .2rem; }

/* ---------- Cards / services ---------- */
.cards { display: grid; gap: 1.1rem; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-bright); }
.card .icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  background: var(--teal-soft); color: var(--teal); border-radius: 12px; margin-bottom: .9rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card a.more { display: inline-block; margin-top: .8rem; font-weight: 700; }

/* ---------- Split feature (about / accreditation) ---------- */
.split { display: grid; gap: 2.4rem; align-items: center; }
.split-media { position: relative; }
.split-media > picture > img, .split-media > img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split-media .float-badge {
  position: absolute; right: -0.8rem; bottom: -1.6rem; width: 128px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.tick-list { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: .7rem; }
.tick-list li { display: flex; gap: .65rem; align-items: flex-start; font-weight: 600; color: var(--ink); }
.tick-list svg { color: var(--teal); flex-shrink: 0; margin-top: .2rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.gallery-grid figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; aspect-ratio: 8 / 4.74; object-fit: cover; transition: transform .35s ease; }
.gallery-grid figure:hover img { transform: scale(1.045); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1rem .8rem;
  background: linear-gradient(180deg, transparent, rgba(16, 22, 58, .78));
  color: #fff; font-weight: 700; font-size: .92rem;
}

/* ---------- Locations ---------- */
.suburb-list { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.suburb-list a {
  display: inline-block; padding: .5rem 1rem; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--navy);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.suburb-list a:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-2px); }
.suburb-list .chip { /* suburbs without a dedicated page yet */
  display: inline-block; padding: .5rem 1rem; background: transparent; border: 1px dashed var(--line);
  border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted);
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); display: grid; gap: .8rem; align-content: start;
}
.quote-card .stars { color: var(--gold); letter-spacing: .15em; font-size: 1rem; }
.quote-card blockquote { margin: 0; color: var(--ink); font-size: .97rem; }
.quote-card cite { font-style: normal; font-weight: 800; color: var(--teal); font-size: .9rem; }

/* ---------- Quote form ---------- */
.quote-wrap { display: grid; gap: 2.2rem; align-items: start; }
.quote-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 1.6rem; }
.form-grid { display: grid; gap: 1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(55, 160, 164, .25);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: .85rem; color: #c9d2e6; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .btn { margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c2d8; font-size: .94rem; }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0 2rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer a { color: #d8e0f0; }
.site-footer a:hover { color: var(--teal-bright); }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.nap { line-height: 1.75; }
.nap strong { color: #fff; }
.nap .tel { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-badge { max-width: 340px; background: #fff; border-radius: var(--radius-sm); padding: .5rem; }
.footer-badge img { width: 100%; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0 5.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between; font-size: .84rem;
}

/* ---------- Project gallery slideshow ---------- */
.slideshow { position: relative; }
.ss-viewport { overflow: hidden; border-radius: var(--radius); }
.ss-track {
  display: flex; transition: transform .9s ease; will-change: transform;
}
.ss-page { display: grid; gap: 1rem; grid-template-columns: 1fr; flex: 0 0 100%; min-width: 0; }
.ss-page .ss-slide {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--bg-soft);
}
.ss-page .ss-slide img, .ss-page .ss-slide picture, .ss-page .ss-slide picture > img {
  width: 100%; aspect-ratio: 8 / 4.74; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.ss-page .ss-slide:hover img { transform: scale(1.045); }
.ss-page .ss-slide figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .9rem .7rem;
  background: linear-gradient(180deg, transparent, rgba(16, 22, 58, .78));
  color: #fff; font-weight: 700; font-size: .9rem;
}
.ss-btn {
  position: absolute; top: calc(50% - 1.3rem); z-index: 2;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 1.5rem; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color .15s ease, color .15s ease;
}
.ss-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.ss-prev { left: -.6rem; }
.ss-next { right: -.6rem; }
.ss-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.ss-dot {
  width: .55rem; height: .55rem; border-radius: 50%; border: 0; padding: 0;
  background: var(--line); cursor: pointer; transition: background-color .2s ease, transform .2s ease;
}
.ss-dot[aria-current="true"] { background: var(--teal); transform: scale(1.25); }
.slideshow.ss-single .ss-btn, .slideshow.ss-single .ss-dots { display: none; }
@media (min-width: 620px) { .ss-page { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ss-page { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Mobile sticky call bar ---------- */
.call-bar {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16,22,58,.12);
}
.call-bar a {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem .6rem; font-weight: 800; font-size: .95rem;
}
.call-bar a.call { color: var(--navy); }
.call-bar a.quote { background: var(--teal); color: #fff; }
.call-bar a.quote:hover { background: var(--navy); color: #fff; }

/* ---------- Breadcrumb (silo pages) ---------- */
.breadcrumb { font-size: .86rem; color: var(--muted); padding: 1rem 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.breadcrumb li::after { content: "›"; margin-left: .4rem; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }

.page-hero { background: linear-gradient(180deg, var(--bg-soft), #fff); padding-bottom: 2.4rem; }
.page-hero h1 { margin: .8rem 0 .8rem; }

.content-block { max-width: 780px; }
.content-block h2 { margin: 2.2rem 0 .8rem; }
.content-block h3 { margin: 1.6rem 0 .5rem; }
.content-block p, .content-block ul { margin-bottom: 1rem; color: var(--ink); }

/* FAQ accordions + process steps (silo pages) */
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; margin-bottom: .7rem;
}
.faq-item summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.faq-item summary:hover { color: var(--teal); }
.faq-item p { margin: .6rem 0 0; }
.step-list { padding-left: 1.3rem; margin-bottom: 1rem; }
.step-list li { margin-bottom: .55rem; color: var(--ink); }
.step-list li::marker { color: var(--teal); font-weight: 800; }

.service-links { display: grid; gap: .8rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 1.4rem 0; }
.service-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; font-weight: 700; color: var(--navy);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.service-links a:hover { border-color: var(--teal); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.service-links a::after { content: "→"; color: var(--teal); font-weight: 800; }

/* ---------- Breakpoints ---------- */
@media (min-width: 620px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .service-links { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
  .nav-toggle { display: none; }
  .nav-list {
    position: static; display: flex; flex-direction: row; gap: 0;
    background: none; border: 0; box-shadow: none; padding: 0;
  }
  .nav-list a { padding: .55rem .85rem; }
  .header-cta { display: inline-flex; }
  .call-bar { display: none; }
  .footer-bottom { padding-bottom: 1.2rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse > .split-media { order: 2; }
  .quote-wrap { grid-template-columns: 1fr 1.05fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.1fr; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .cards.four { grid-template-columns: repeat(4, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

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

/* ---------- Print ---------- */
@media print {
  .site-header, .call-bar, .cta-band, .quote-wrap { display: none; }
}
