/* True Coat Painting Cape Town - airy white, teal & coral theme */
:root {
    --teal: #0e7c7b;
    --teal-dark: #0a5f5e;
    --coral: #ff6b57;
    --coral-dark: #e5503c;
    --bg: #ffffff;
    --tint: #f2faf9;
    --text: #29343a;
    --muted: #5e6b72;
    --line: #dcebe9;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --radius-lg: 22px;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(14, 124, 123, .10);
    --container: 1140px;
    --space: clamp(3rem, 6vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); line-height: 1.7; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--teal-dark); font-weight: 700; }
h1 { font-size: clamp(1.95rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
a { color: var(--teal-dark); }
a:hover { color: var(--coral-dark); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.small { font-size: .875rem; color: var(--muted); }
.meta { color: var(--muted); font-size: .85rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link {
    position: absolute; left: -999px; top: .75rem; z-index: 100;
    background: var(--teal); color: #fff; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { left: .75rem; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: .7rem 1.7rem; border-radius: 999px;
    border: 2px solid transparent; font-weight: 700; font-family: inherit; font-size: .98rem;
    text-decoration: none; cursor: pointer;
}
.btn-accent { background: var(--teal); color: #fff; }
.btn-accent:hover { background: var(--teal-dark); color: #fff; }
.btn-accent-light { background: var(--coral); color: #fff; }
.btn-accent-light:hover { background: var(--coral-dark); color: #fff; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); color: #fff; }
.btn-ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--tint); }
.btn-ghost-dark { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost-dark:hover { opacity: .85; }
.btn-lg { padding: .9rem 2rem; }
.btn-sm { min-height: 38px; padding: .35rem 1.15rem; font-size: .88rem; }
.text-link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.masthead {
    background: rgba(255,255,255,.92);
    position: sticky; top: 0; z-index: 20;
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--teal-dark); }
.brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand-text strong { font-size: 1.08rem; letter-spacing: .01em; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .05em; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.site-nav a {
    display: block; padding: .55rem 1rem; min-height: 44px;
    color: var(--text); text-decoration: none; font-weight: 600; border-radius: 999px;
}
.site-nav a:hover { background: var(--tint); color: var(--teal-dark); }
.site-nav a[aria-current="page"] { background: var(--teal); color: #fff; }

.nav-toggle {
    display: none; align-items: center; gap: .5rem; min-height: 44px;
    background: none; border: 2px solid var(--line); border-radius: 999px;
    font: inherit; font-weight: 600; color: var(--teal-dark); padding: .4rem .95rem; cursor: pointer;
    margin-left: auto;
}
.nav-toggle-box { display: inline-flex; flex-direction: column; gap: 3px; }
.nav-toggle-box span { width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.header-cta { margin-left: auto; }
.header-cta:not(:last-child) { margin-right: .25rem; }

.hero { padding-block: clamp(3rem, 7vw, 5.5rem) var(--space); background:
    radial-gradient(60% 50% at 85% 0%, rgba(255,107,87,.07), transparent),
    radial-gradient(50% 40% at 10% 10%, rgba(14,124,123,.06), transparent);
}
.hero-inner { max-width: 940px; }
.eyebrow { color: var(--coral-dark); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: 1rem; }
.lead { font-size: clamp(1.04rem, 2vw, 1.2rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.6rem; }
.hero-media { margin: 3rem auto 0; max-width: 880px; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.trust-strip { background: var(--teal-dark); color: #fff; padding-block: 1.35rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.trust-grid { display: grid; gap: 1rem; text-align: center; grid-template-columns: repeat(2, 1fr); }
.trust-grid p { margin: 0; display: flex; flex-direction: column; }
.trust-grid strong { font-size: 1.45rem; color: #ffd9d2; }
.trust-grid span { font-size: .84rem; color: #bcd8d6; }

.section { padding-block: var(--space); }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.split { display: grid; gap: 2.5rem; align-items: start; }

.card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 1.6rem; border: 1px solid var(--line);
}
.service-card { border-top: 5px solid var(--coral); }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { color: var(--coral-dark); }

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { padding-left: 2rem; position: relative; margin-bottom: .65rem; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .28em; width: 1.12em; height: 1.12em;
    border-radius: 50%; background: var(--teal);
    -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 17 4.5 12l1.9-1.9 3.1 3.1 8-8L19.5 7z"/></svg>') center/70% no-repeat;
    mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 17 4.5 12l1.9-1.9 3.1 3.1 8-8L19.5 7z"/></svg>') center/70% no-repeat;
}
.check-list.two-col { columns: 2; column-gap: 2rem; }
.check-list.two-col li { break-inside: avoid; }
.check-list.big li { margin-bottom: .95rem; font-size: 1.03rem; }

.panel { background: var(--teal-dark); color: #d9ebe9; border-radius: var(--radius-lg); padding: 1.9rem; box-shadow: var(--shadow); }
.panel h2, .panel h3 { color: #fff; }
.panel a:not(.btn) { color: #ffd9d2; }
.area-list { list-style: none; padding: 0; margin: 0 0 1rem; columns: 2; column-gap: 1.5rem; }
.area-list li { break-inside: avoid; padding: .14rem 0; }
.area-list li::before { content: "\25CF\00a0"; color: var(--coral); font-size: .6em; vertical-align: middle; }
.panel p { color: #bcd8d6; }

.project-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.project-card { padding: 0; overflow: hidden; }
.project-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.project-body { padding: 1.3rem 1.5rem 1.5rem; }
.testimonial-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.testimonial blockquote { margin: 0; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--teal-dark); }

.cta-band { background: var(--teal); color: #fff; padding-block: clamp(2.75rem, 5vw, 3.75rem); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; text-align: left; }
.cta-inner > div:first-child { max-width: 560px; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: #d9ebe9; margin: 0; }

.page-hero { background: linear-gradient(135deg, var(--tint) 0%, #fff 100%); padding-block: clamp(2.75rem, 6vw, 4.25rem); border-bottom: 1px solid var(--line); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; padding: 0; font-size: .84rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: #93a8a5; }
.breadcrumbs a { color: var(--teal-dark); }

.services-list { display: grid; gap: 2rem; }
.service-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; scroll-margin-top: 90px; }
.service-detail-head { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 1rem; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1rem; }
.faq summary { cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 700; color: var(--teal-dark); min-height: 44px; }
.faq summary:hover { color: var(--coral-dark); }
.faq[open] summary { border-bottom: 1px solid var(--line); }
.faq p { padding: 0 1.4rem 1.25rem; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.5rem; }

.about-media { margin: 0; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.value-card h3 { color: var(--coral-dark); }

.contact-grid { display: grid; gap: 2rem; }
.detail-list { margin: 0 0 1.5rem; }
.detail-list div { margin-bottom: 1rem; }
.detail-list dt { font-weight: 700; color: #ffd9d2; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.detail-list dd { margin: 0; }
.hours { list-style: none; padding: 0; margin: 0; }
.panel a { color: #fff; }
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.req { color: var(--coral-dark); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%; min-height: 46px; padding: .65rem .9rem;
    border: 2px solid var(--line); border-radius: 12px; font: inherit; color: var(--text);
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--teal); }
.checkbox input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--teal); }
.checkbox label { display: inline; font-weight: 500; }
.field-error { color: #b3261e; font-size: .85rem; margin: .25rem 0 0; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.hp-field { position: absolute; left: -9999px; }
.form-status { padding: .85rem 1.1rem; border-radius: 12px; background: #e6f4ea; color: #1e4620; border: 1px solid #b7dfc2; font-weight: 600; }
.map-figure { margin: 0; }
.map-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.error-hero { padding-block: clamp(3rem, 8vw, 6rem); }
.error-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--coral); margin: 0; line-height: 1; }
.error-links li { text-align: left; }
.error-links h2 { font-size: 1.12rem; }
.error-links a { text-decoration: none; }
.error-links a:hover { text-decoration: underline; }

.site-footer { background: var(--teal-dark); color: #bcd8d6; padding-top: 3.25rem; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #bcd8d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-about p { font-size: .92rem; }
.footer-contact address { margin-bottom: 1rem; }
.footer-contact strong { color: #ffd9d2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-block: 1.15rem; font-size: .82rem; color: #9cc3bf; }
.footer-bottom p { margin: 0; }

@media (min-width: 640px) {
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (min-width: 900px) {
    .split { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
    .contact-grid { grid-template-columns: 380px 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 2fr 1fr 1.4fr 1.6fr; }
}

@media (min-width: 1024px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .project-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 899px) {
    .header-cta { display: none; }
    .nav-toggle { display: inline-flex; order: 3; }
    .site-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        padding-bottom: .75rem;
    }
    .js .site-nav.open { display: block; }
    .no-js .site-nav { display: block; }
    .site-nav ul { flex-direction: column; padding: .5rem .75rem 0; gap: .25rem; }
    .site-nav a { padding: .8rem 1.25rem; }
}
