:root {
    --accent: oklch(0.42 0.16 243);          /* Carolina blue — darkened to pass 4.5:1 vs white */
    --accent-deep: oklch(0.35 0.16 243);     /* deeper Carolina blue */
    --accent-sky: oklch(0.82 0.09 235);      /* light sky tint */
    --bg: oklch(0.98 0.005 240);             /* near-white, slight cool tint */
    --ink: oklch(0.20 0.015 250);            /* near-black, cool undertone */
    --muted: oklch(0.50 0.015 240);
    --surface: oklch(0.95 0.008 240);
    --surface-2: oklch(0.92 0.010 240);
    --surface-deep: oklch(0.22 0.015 245);
    --border: oklch(0.87 0.010 240);
    --carolina: oklch(0.42 0.16 243);        /* alias for consistency */

    --font-d: "Fraunces", Georgia, serif;
    --font-b: "Inter", system-ui, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-b);
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-d);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--accent-deep);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover { color: var(--accent); }

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wrap.narrow {
    max-width: 800px;
}

.section {
    padding: 6rem 0;
}

.section.surface {
    background-color: var(--surface);
}

.center {
    text-align: center;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background-color: var(--surface-deep);
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background-color: var(--surface-deep);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: white;
}

.brand-name {
    font-family: var(--font-d);
    font-weight: 900;
    font-size: 1.5rem;
    color: white;
    transition: color 0.3s ease;
}

.nav.scrolled .brand-name {
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-phone {
    color: white;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.nav-phone:hover {
    color: var(--accent-sky);
    text-decoration: underline;
}

.nav.scrolled .nav-link {
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

.nav.scrolled .nav-link.active {
    color: var(--accent-sky);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.nav.scrolled .nav-toggle span {
    background-color: white;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--ink);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--ink);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-b);
}

.btn:hover, .btn:focus {
    background-color: var(--accent-deep);
    border-color: var(--accent-deep);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 156, 211, 0.2);
}

.btn-lg {
    padding: 0.9rem 1.8rem;
    font-size: 1.05rem;
}

.btn-xl {
    padding: 1.1rem 2.2rem;
    font-size: 1.15rem;
    margin-top: 1.5rem;
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-deep);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--accent-deep);
    border-color: white;
}

.btn-light:hover {
    background-color: var(--bg);
    color: var(--accent-deep);
    border-color: var(--bg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../assets/hero.png');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-50 {
    min-height: 50vh;
    background-image: url('../assets/services.png');
}

.hero-40 {
    min-height: 40vh;
    background-image: none;
    background-color: var(--surface-deep);
}

.hero-dark {
    background: linear-gradient(135deg, var(--surface-deep), var(--accent-deep));
}

.hero-scrim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.15) 75%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
}

.hero-content.center {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Inner text card for photo-background sub-heroes (services, about, home) */
.hero-card {
    background: rgba(13, 22, 34, 0.95);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 2.25rem 2.5rem;
    max-width: 640px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.40);
}

/* Home hero card — wider to accommodate the full hero content */
.hero-card-home {
    max-width: 700px;
    padding: 2.5rem 3rem;
}

.hero-card h1,
.hero-card h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.hero-card .eyebrow {
    color: var(--accent-sky);
    margin-bottom: 0.75rem;
}

/* Text within hero-card inherits white */
.hero-card .hero-sub,
.hero-card .hero-italic {
    color: rgba(255,255,255,0.88);
}

/* Dark hero text override — ensure headings are white on solid dark backgrounds */
.hero-dark h1,
.hero-dark h2 {
    color: white;
}

.hero-dark .hero-sub {
    color: rgba(255,255,255,0.85);
}

.hero-sub {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-italic {
    font-family: var(--font-d);
    font-style: italic;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- H1 Mask Animation --- */
.hero-h1 {
    margin-bottom: 1.5rem;
}
.hero-h1 .mask {
    display: block;
    overflow: hidden;
}
/* Default: visible immediately (no JS needed for legibility) */
.hero-h1 .mask > span {
    display: inline-block;
    transform: translateY(0);
    opacity: 1;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
/* Animation opt-in: JS adds .will-animate first, then .revealed */
.hero-h1.will-animate .mask > span {
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}
.hero-h1.will-animate.revealed .mask:nth-child(1) > span {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}
.hero-h1.will-animate.revealed .mask:nth-child(2) > span {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

/* --- Typography Helpers --- */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-deep);
    margin-bottom: 1rem;
    display: inline-block;
}

.eyebrow.light {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
}

.muted {
    color: var(--muted);
    font-size: 0.9rem;
}

.light {
    color: white;
}

.stars {
    margin-bottom: 1rem;
}

.stars span {
    color: #8f6000;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.stars.large span {
    font-size: 1.8rem;
}

.link-arrow {
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 1rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}

.link-arrow:hover {
    border-color: var(--accent);
}

.center-link {
    text-align: center;
    margin-top: 3rem;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Hero reveal elements must be visible immediately (no JS dependency for legibility) */
.hero .reveal,
.hero-50 .reveal,
.hero-40 .reveal {
    opacity: 1;
    transform: translateY(0);
}

/* --- Grids & Layouts --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.col img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.rounded-img {
    width: 100%;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Proof Card */
.proof-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent);
}

.proof-text {
    font-family: var(--font-d);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink);
}

.proof-author {
    font-weight: 600;
    color: var(--muted);
    margin-top: 1rem;
}

/* Service Grid */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.svc {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svc:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.svc-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: oklch(0.56 0.16 243 / 0.10);
    border-radius: 10px;
    color: var(--accent-deep);
    padding: 10px;
}

.svc-icon svg {
    width: 100%;
    height: 100%;
}

.svc h3 {
    margin-bottom: 0.5rem;
}

.svc p {
    color: var(--muted);
    margin: 0;
}

/* Values Grid */
.val-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.val {
    text-align: center;
    padding: 2rem;
}

.val-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Services Detail Page */
.svc-detail {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.svc-detail:last-child {
    border-bottom: none;
}

.svc-icon-lg {
    font-size: 3rem;
    margin-bottom: 1rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: oklch(0.56 0.16 243 / 0.10);
    border-radius: 14px;
    color: var(--accent-deep);
    padding: 14px;
}

.svc-icon-lg svg {
    width: 100%;
    height: 100%;
}

.svc-list {
    list-style: none;
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.svc-list li {
    position: relative;
    padding-left: 1.8rem;
    color: var(--ink);
}

.svc-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Brands List */
.brands-list {
    font-family: var(--font-d);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 2rem;
    line-height: 1.6;
}

/* Reviews Grid */
.rev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.rev-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.rev {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.rev p {
    color: var(--ink);
    font-size: 1.05rem;
}

.rev-author {
    font-weight: 600;
    color: var(--muted);
    margin-top: 1.5rem;
}

.rev-note {
    margin-top: 3rem;
    color: var(--muted);
}

.rating-summary {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.rating-score {
    font-family: var(--font-d);
    font-size: 5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

/* Small Callout */
.small-cta {
    padding: 4rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* CTA Band */
.cta-band {
    background-color: var(--accent);
    padding: 6rem 0;
    color: white;
}

.cta-band h2 {
    color: white;
}

.cta-sub {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 1rem;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
    text-align: left;
    margin: 1rem auto;
    display: inline-block;
}

.contact-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.contact-form-wrap {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--ink);
}

.form-row input, .form-row textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-b);
    font-size: 1rem;
    background: var(--bg);
    transition: border-color 0.3s ease;
}

.form-row input:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.form-note {
    margin-top: 1.5rem;
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--surface-deep);
    color: white;
    padding: 4rem 0 2rem 0;
}

.footer .wrap {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: oklch(0.8 0.02 240);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-sky);
}

.footer-contact {
    text-align: right;
}

.footer-contact a {
    color: white;
    font-weight: 500;
}

.footer-bottom {
    grid-column: 1 / -1;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: oklch(0.7 0.02 240);
    font-size: 0.85rem;
}

.disclaimer {
    margin-top: 0.5rem;
    font-style: italic;
}

/* --- Zvario Badge --- */
.zv-sample-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid var(--accent);
    color: var(--accent-deep);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
}

body:not([data-sample="1"]) .zv-sample-badge {
    display: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    }
    
    body.nav-open .nav-links {
        transform: translateX(0);
    }
    
    .nav-link, .nav.scrolled .nav-link {
        color: var(--ink);
        font-size: 1.5rem;
    }
    
    .nav-cta {
        margin-top: 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .two-col, .svc-grid, .rev-grid, .rev-grid-2, .val-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .svc-list {
        grid-template-columns: 1fr;
    }
    
    .footer .wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .hero-content {
        padding-top: 8rem;
    }
}
