/* =========================================================
   Common Ground Maintenance — design tokens & shared styles
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700;800&family=Montserrat:wght@400;700&display=swap');

:root {
    --paper: #F5F1E6;
    --paper-raised: #FBF9F3;
    --ink: #23281F;
    --ink-soft: #4B5245;
    --bottle: #2B4736;
    --bottle-dark: #1D3226;
    --brick: #A6503A;
    --brick-dark: #863F2E;
    --sand: #D8CFB8;
    --sand-line: #CBC0A3;
    --moss: #E4E8DE;

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --radius: 6px;
    --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

.eyebrow {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brick);
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.15;
}

p { margin: 0 0 1rem 0; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--brick);
    color: var(--paper-raised);
}
.btn-primary:hover { background: var(--brick-dark); transform: translateY(-2px); }

.btn-ghost {
    background: transparent;
    border-color: var(--bottle);
    color: var(--bottle);
}
.btn-ghost:hover { background: var(--bottle); color: var(--paper-raised); transform: translateY(-2px); }

.btn-ghost-light {
    background: transparent;
    border-color: rgba(245,241,230,0.5);
    color: var(--paper-raised);
}
.btn-ghost-light:hover { background: rgba(245,241,230,0.12); border-color: var(--paper-raised); }

/* ---------------- NAV ---------------- */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245,241,230,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--sand-line);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.9rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--serif);
    font-size: 1.28rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--bottle-dark);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
}
.brand img {
    height: 52px;
    width: auto;
    display: block;
}
.brand span { color: var(--brick); }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink-soft);
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--brick); }

.nav-cta {
    background: var(--bottle);
    color: var(--paper-raised) !important;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 700 !important;
}
.nav-cta:hover { background: var(--bottle-dark) !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--bottle-dark);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 100%; }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 100%; }

/* ---------------- HERO ---------------- */
.hero {
    background: var(--bottle-dark);
    color: var(--paper-raised);
    padding: 5.5rem 0 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -8%;
    top: -20%;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(166,80,58,0.35), transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 6%;
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero .eyebrow { color: #E3A98F; }

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin: 0.9rem 0 1.3rem 0;
    color: #FFFDF8;
}

.hero p.lead {
    font-size: 1.15rem;
    color: rgba(251,249,243,0.82);
    max-width: 560px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(251,249,243,0.18);
}
.hero-stats .stat-num {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFDF8;
    display: block;
}
.hero-stats .stat-label {
    font-size: 0.82rem;
    color: rgba(251,249,243,0.65);
}

/* ---------------- SUBURB LEDGER (signature element) ---------------- */
.ledger {
    background: var(--sand);
    border-top: 1px solid var(--sand-line);
    border-bottom: 1px solid var(--sand-line);
    padding: 0.9rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.ledger-track {
    display: inline-flex;
    gap: 0;
    animation: ledger-scroll 55s linear infinite;
}

.ledger-track span {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bottle-dark);
    padding: 0 1.1rem;
    display: inline-flex;
    align-items: center;
}

.ledger-track span::after {
    content: "•";
    margin-left: 1.1rem;
    color: var(--brick);
    font-weight: 400;
}

@keyframes ledger-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .ledger-track { animation: none; }
    .ledger { overflow-x: auto; }
}

/* ---------------- SECTIONS ---------------- */
section { padding: 5rem 0; }

.section-head {
    max-width: 640px;
    margin-bottom: 3rem;
}
.section-head .eyebrow { margin-bottom: 0.7rem; display: block; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------------- SERVICES ---------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.service-card {
    background: var(--paper-raised);
    border: 1px solid var(--sand-line);
    border-radius: var(--radius);
    padding: 2.2rem 1.9rem;
    position: relative;
}

.service-card .tag {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--moss);
    -webkit-text-stroke: 1.5px var(--bottle);
    color: transparent;
    display: block;
    margin-bottom: 0.8rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
    color: var(--bottle-dark);
}

.service-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.service-card li {
    font-size: 0.92rem;
    color: var(--ink-soft);
    padding: 0.4rem 0;
    border-top: 1px solid var(--sand);
}
.service-card li:first-child { border-top: none; }

/* ---------------- LEDGER-STYLE PROCESS (used on services intro) ---------------- */
.services-intro {
    background: var(--moss);
    border: 1px solid var(--sand-line);
    border-radius: var(--radius);
    padding: 1.6rem 2rem;
    margin-bottom: 2.5rem;
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--bottle-dark);
}

/* ---------------- TESTIMONIALS ---------------- */
.testimonials-section {
    background: var(--bottle-dark);
    color: var(--paper-raised);
}
.testimonials-section .section-head p { color: rgba(251,249,243,0.72); }
.testimonials-section .eyebrow { color: #E3A98F; }
.testimonials-section .section-head h2 { color: #FFFDF8; }

.testimonial-scroll {
    display: flex;
    gap: 1.3rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x proximity;
}
.testimonial-scroll::-webkit-scrollbar { height: 6px; }
.testimonial-scroll::-webkit-scrollbar-thumb { background: rgba(251,249,243,0.25); border-radius: 3px; }

.t-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    background: rgba(251,249,243,0.06);
    border: 1px solid rgba(251,249,243,0.16);
    border-radius: var(--radius);
    padding: 1.7rem;
}
.t-card .t-stamp {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #E3A98F;
    font-weight: 700;
    margin-bottom: 0.9rem;
}
.t-card p.quote {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.55;
    color: #FFFDF8;
    margin-bottom: 1.1rem;
}
.t-card .t-author {
    font-size: 0.85rem;
    color: rgba(251,249,243,0.65);
    font-weight: 600;
}

/* ---------------- ABOUT ---------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-copy p { color: var(--ink-soft); font-size: 1.02rem; }

.people {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.person-card {
    background: var(--paper-raised);
    border: 1px solid var(--sand-line);
    border-radius: var(--radius);
    padding: 1.5rem 1.7rem;
}
.person-card h4 {
    font-size: 1.1rem;
    color: var(--bottle-dark);
    margin-bottom: 0.3rem;
}
.person-card .role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brick);
    font-weight: 700;
    margin-bottom: 0.7rem;
    display: block;
}
.person-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

/* ---------------- STAT STRIP ---------------- */
.stat-strip {
    background: var(--sand);
    padding: 3rem 0;
    text-align: center;
}
.stat-strip .big {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 700;
    color: var(--bottle-dark);
}

/* ---------------- CONTACT ---------------- */
.contact-section {
    background: var(--paper-raised);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
}
.contact-card {
    background: var(--moss);
    border-radius: var(--radius);
    padding: 2.2rem;
}
.contact-card .row {
    display: flex;
    justify-content: space-between;
    padding: 0.9rem 0;
    border-top: 1px solid var(--sand-line);
    font-size: 0.95rem;
}
.contact-card .row:first-child { border-top: none; }
.contact-card .row .k { color: var(--ink-soft); font-weight: 600; }
.contact-card .row .v { text-align: right; font-weight: 700; color: var(--bottle-dark); }
.contact-card .row .v a { text-decoration: none; color: var(--brick); }

/* ---------------- FOOTER ---------------- */
footer {
    background: var(--ink);
    color: rgba(245,241,230,0.65);
    padding: 2.5rem 0;
    font-size: 0.85rem;
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 6%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
footer a { color: rgba(245,241,230,0.85); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-credit {
    max-width: var(--max);
    margin: 1.5rem auto 0 auto;
    padding: 1.2rem 6% 0 6%;
    border-top: 1px solid rgba(245,241,230,0.12);
    text-align: center;
    font-family: "Montserrat", var(--sans);
    font-size: 0.8rem;
    color: rgba(245,241,230,0.5);
}
.footer-credit a {
    color: rgba(245,241,230,0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-credit a:hover { color: rgba(245,241,230,0.85); }
.footer-credit .lab { font-weight: 700; }
.footer-credit .num { font-weight: 400; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 860px) {
    .services-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .nav-inner { position: relative; }
    .nav-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper-raised);
        border-bottom: 1px solid var(--sand-line);
        box-shadow: 0 12px 24px rgba(35,40,31,0.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-links.open { max-height: 400px; }

    .nav-links a:not(.nav-cta) {
        display: block;
        padding: 0.95rem 6%;
        border-top: 1px solid var(--sand-line);
    }
    .nav-links a.nav-cta {
        display: inline-flex;
        margin: 1rem 6% 1.2rem 6%;
        justify-content: center;
    }

    .brand img { height: 40px; }
}

/* ---------------- FOCUS ---------------- */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--brick);
    outline-offset: 2px;
}
