/* ==========================================================================
   Tradie Alley — site stylesheet
   No framework. Brand colours taken from the original site.
   ========================================================================== */

/* Raleway (SIL Open Font License 1.1) — self-hosted, see assets/fonts/OFL-Raleway.txt */
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/raleway-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Raleway";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/raleway-latin-wght-italic.woff2") format("woff2-variations");
}

:root {
  --green: #156251;
  --green-dark: #0d4538;
  --green-ink: #0a3129;
  --green-tint: #e8f1ee;
  --orange: #e27138;
  --orange-dark: #c4531a;
  --orange-tint: #fcefe7;
  --cream: #faf6f1;
  --paper: #ffffff;
  --ink: #1f2a27;
  --muted: #56625e;
  --line: #e3e0da;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(10, 49, 41, .06), 0 8px 24px rgba(10, 49, 41, .08);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.18; color: var(--green-ink); margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
[id] { scroll-margin-top: 110px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange-dark); margin-bottom: .75rem;
}
.lead { font-size: 1.2rem; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 1em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn-light { background: #fff; color: var(--green-ink); }
.btn-light:hover { background: var(--cream); color: var(--green-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar + header ------------------------------------------------------- */
.topbar { background: var(--green-ink); color: #cfe0db; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 24px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.topbar a:hover { color: #ffc6a5; }
.topbar svg { width: 16px; height: 16px; color: var(--orange); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { width: 150px; height: auto; }
.nav-toggle { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; color: var(--ink); letter-spacing: .02em;
}
.primary-nav a:hover { color: var(--orange-dark); background: var(--orange-tint); }
.primary-nav a[aria-current="page"] { color: var(--green); background: var(--green-tint); }
.primary-nav .nav-cta a { background: var(--orange); color: #fff; margin-left: 8px; padding-inline: 20px; }
.primary-nav .nav-cta a:hover { background: var(--orange-dark); color: #fff; }
.primary-nav .nav-cta a[aria-current="page"] { background: var(--green); color: #fff; }

@media (max-width: 900px) {
  .site-header .wrap { min-height: 70px; }
  .brand img { width: 118px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700;
    background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0,0,0,.08); display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; gap: 2px; }
  .primary-nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 10px; }
  .primary-nav .nav-cta a { margin: 8px 0 0; text-align: center; }
  .topbar .wrap { justify-content: center; gap: 16px; }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--green-ink); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(8, 36, 30, .88) 0%, rgba(8, 36, 30, .66) 45%, rgba(8, 36, 30, .15) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(72px, 12vw, 150px); }
.hero-copy { max-width: 620px; }
.hero h1 { color: #fff; }
.hero p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #e9f2ef; max-width: 52ch; }
.hero .btn-row { margin-top: 1.6rem; }
.hero--short .wrap { padding-block: clamp(56px, 8vw, 100px); }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(8, 36, 30, .55) 0%, rgba(8, 36, 30, .85) 100%); }
}

/* Sections --------------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--cream { background: var(--cream); }
.section--green { background: var(--green); color: #e6f0ed; }
.section--green h2, .section--green h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.intro-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px); max-width: 880px; margin-inline: auto; text-align: center;
}
.intro-card p { color: var(--muted); }
.intro-card .btn { margin-top: .75rem; }

/* Portrait */
.portrait { position: relative; max-width: 440px; margin-inline: auto; isolation: isolate; }
.portrait img { border-radius: 50% 50% var(--radius-lg) var(--radius-lg); width: 100%; aspect-ratio: 1; object-fit: cover; }
.portrait::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 50% 50% var(--radius-lg) var(--radius-lg);
  background: var(--orange); z-index: -1;
}
.stat-badge {
  position: absolute; left: -12px; bottom: 28px; background: var(--green); color: #fff; border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow); line-height: 1.2; font-size: .9rem;
}
.stat-badge strong { display: block; font-size: 1.9rem; font-weight: 800; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-lg);
  padding: 28px;
}
.feature .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--orange); display: grid; place-items: center; margin-bottom: 18px; }
.feature .icon svg { width: 28px; height: 28px; color: #fff; }
.feature h3 { margin: 0; font-size: 1.3rem; }

/* Testimonials carousel (vanilla scroll-snap, no library) */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 2); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 24px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
@media (max-width: 860px) { .carousel-track { grid-auto-columns: 100%; } }
.quote {
  scroll-snap-align: start; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 32px; display: flex; flex-direction: column; margin: 0;
}
.quote svg.mark { width: 36px; height: 36px; color: var(--orange); margin-bottom: 12px; flex: none; }
.quote blockquote { margin: 0 0 20px; font-style: italic; color: var(--ink); }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; font-size: .95rem; line-height: 1.4; }
.quote figcaption strong { display: block; color: var(--green-ink); }
.quote figcaption span, .quote figcaption a { color: var(--muted); }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 8px; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--green); background: #fff; color: var(--green);
  display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s;
}
.carousel-btn:hover { background: var(--green); color: #fff; }
.carousel-btn:disabled { opacity: .35; cursor: default; background: #fff; color: var(--green); }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #c8d6d1; cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: var(--orange); width: 26px; border-radius: 6px; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1000px) { .partners { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .partners { grid-template-columns: repeat(2, 1fr); } }
.partner {
  display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; min-height: 150px; transition: box-shadow .2s, transform .2s;
}
a.partner:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.partner img { max-height: 112px; width: auto; max-width: 100%; object-fit: contain; }

/* CTA band */
.cta-band { background: var(--orange); color: #fff; position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.cta-band::before { width: 420px; height: 420px; right: -120px; top: -180px; }
.cta-band::after { width: 260px; height: 260px; left: -90px; bottom: -140px; }
.cta-band .wrap { position: relative; z-index: 1; text-align: center; padding-block: clamp(56px, 8vw, 96px); }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 640px; margin: 0 auto 1.6rem; font-size: 1.12rem; color: #fff6f0; }
.cta-band .btn-row { justify-content: center; }

/* Services page */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .service-grid { grid-template-columns: 1fr; } }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
  display: flex; flex-direction: column;
}
.service .icon { width: 56px; height: 56px; border-radius: 16px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; margin-bottom: 18px; }
.service .icon svg { width: 30px; height: 30px; }
.service h2 { font-size: 1.5rem; margin-bottom: .35em; }
.service .tagline { font-weight: 700; color: var(--orange-dark); }
.service ul { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.service li { position: relative; padding-left: 30px; }
.service li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.service .sub { font-weight: 700; margin-bottom: .5em; }
.service .closing { margin-top: auto; margin-bottom: 0; padding-top: 16px; border-top: 1px dashed var(--line); font-weight: 600; color: var(--green); }

.steps { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); padding: 28px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px;
}
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--cream); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 12px 14px; transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(21, 98, 81, .15); }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--green-tint); color: var(--green-ink); }
.form-status.err { background: #fdecea; color: #8a1f11; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; background: var(--cream); border-radius: var(--radius); padding: 16px 18px; }
.contact-list .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--orange); color: #fff; display: grid; place-items: center; flex: none; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.contact-list a { font-weight: 700; text-decoration: none; word-break: break-word; }

/* Prose (privacy) */
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; }
.prose ul { margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }

/* Landing pages */
.tea-card { display: block; max-width: 420px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); background: #fff; transition: transform .2s; }
.tea-card:hover { transform: translateY(-3px); color: var(--ink); }
.tea-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tea-card span { display: block; padding: 16px 20px; font-weight: 800; text-align: center; color: var(--orange-dark); }

.banner-img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }

/* Footer */
.site-footer { background: var(--green-ink); color: #b9ccc6; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffc6a5; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }
.footer-logo { background: #fff; border-radius: var(--radius); padding: 12px 16px; display: inline-block; margin-bottom: 16px; }
.footer-logo img { width: 140px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; transition: background .2s; }
.social a:hover { background: var(--orange); color: #fff; }
.social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* 404 */
.notfound { text-align: center; padding-block: clamp(80px, 14vw, 160px); }
.notfound .big { font-size: clamp(4rem, 14vw, 9rem); font-weight: 900; color: var(--orange); line-height: 1; margin-bottom: .1em; }
/* Service detail pages and readable FAQs. */
.faq-item { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.faq-item h2, .faq-item h3 { margin-top: 0; }
.faq-index { padding: 20px 24px; margin: 30px 0; background: var(--cream); border-radius: 12px; }
.faq-index li { margin: 10px 0; }
.service-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-top: 14px; }
.service-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.breadcrumbs { font-size: .9rem; margin-bottom: 28px; color: var(--muted); }
.cf-turnstile { margin: 18px 0; min-height: 65px; }
