/* =========================================================
   Zeeble Software Restoration — styles
   Palette: cream, deep navy, brick red
   ========================================================= */

:root {
    --cream:        #f4efe6;
    --cream-2:      #ece4d6;
    --navy:         #1c2535;
    --navy-2:       #161d29;
    --brick:        #9e342a;
    --brick-dark:   #842a22;
    --ink:          #20242c;
    --muted:        #5d5a52;
    --muted-dark:   #aeb4c0;
    --line:         #d8cfbf;
    --white:        #ffffff;

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --maxw: 1140px;
    --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Disabled during initial load so a #contact hash (e.g. after form submit)
   jumps instantly instead of animating from the top of the page. */
html.no-smooth { scroll-behavior: auto; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.12;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--brick);
    margin: 0 0 .9rem;
}
.eyebrow-dark { color: var(--brick); }

.section { padding: 92px 0; }

.section-head { max-width: 780px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); text-wrap: balance; }

.on-dark { color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--sans);
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 14px 26px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brick); color: var(--white); }
.btn-primary:hover { background: var(--brick-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-outline { background: transparent; color: var(--brick); border-color: var(--brick); }
.btn-outline:hover { background: var(--brick); color: var(--white); }
.btn-block { width: 100%; padding: 16px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 239, 230, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; display: block; }
.logo-line { width: 26px; height: 1px; background: var(--ink); opacity: .5; }
.logo-footer .logo-line { background: var(--cream); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-brand {
    font-family: var(--serif);
    font-size: 1.35rem;
    letter-spacing: .04em;
    font-weight: 600;
}
.logo-tag {
    font-size: .58rem;
    text-transform: uppercase;
    letter-spacing: .26em;
    color: var(--muted);
    margin-top: 3px;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
    color: var(--ink);
    transition: color .2s ease;
}
.nav a:hover { color: var(--brick); }
.nav-cta {
    border: 1.5px solid var(--brick);
    color: var(--brick) !important;
    padding: 8px 16px;
    border-radius: 6px;
}
.nav-cta:hover { background: var(--brick); color: var(--white) !important; }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle { display: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    align-items: stretch;
}
.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px clamp(24px, 5vw, 72px);
    max-width: 640px;
    margin-left: auto;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 18px; }
.hero-note { font-size: .85rem; color: var(--muted); margin: 0; }

.hero-visual {
    position: relative;
    background-color: var(--navy);
    background-image:
        linear-gradient(180deg, rgba(17,22,31,.15), rgba(17,22,31,.55)),
        url("../img/hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.hero-visual-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 28px clamp(24px, 4vw, 56px);
}
.hero-badge {
    display: inline-block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--cream);
    background: rgba(158,52,42,.85);
    padding: 8px 14px;
    border-radius: 4px;
}

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
}
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Signs ---------- */
.signs { background: var(--cream); }

/* ---------- Process ---------- */
.process { background: var(--navy); color: var(--cream); }
.process .eyebrow { color: #d98b80; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.step { border-top: 2px solid rgba(255,255,255,.14); padding-top: 22px; }
.step-num {
    font-family: var(--serif);
    font-size: 2.1rem;
    color: var(--brick);
    display: block;
    margin-bottom: 8px;
}
.step h3 { color: var(--cream); font-size: 1.3rem; }
.step p { color: var(--muted-dark); margin: 0; }

/* ---------- Pricing ---------- */
.pricing { background: var(--cream-2); }
.plans { align-items: stretch; }
.plan {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
}
.plan h3 { font-size: 1.35rem; }
.plan .price { font-family: var(--serif); font-size: 1.05rem; color: var(--muted); margin-bottom: 18px; }
.plan .price strong { font-size: 2rem; color: var(--ink); font-weight: 600; }
.plan .price span { font-size: 1rem; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid var(--cream-2); color: var(--muted); }
.plan li::before {
    content: "";
    position: absolute; left: 0; top: 17px;
    width: 12px; height: 7px;
    border-left: 2px solid var(--brick);
    border-bottom: 2px solid var(--brick);
    transform: rotate(-45deg);
}
.plan-featured { border: 1.5px solid var(--brick); position: relative; box-shadow: 0 18px 40px -24px rgba(158,52,42,.5); }
.plan-flag {
    position: absolute; top: -13px; left: 30px;
    background: var(--brick); color: var(--white);
    font-size: .66rem; text-transform: uppercase; letter-spacing: .12em;
    font-weight: 600; padding: 6px 12px; border-radius: 4px;
}
.pricing-note { text-align: center; color: var(--muted); margin-top: 36px; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: var(--cream); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); max-width: 14ch; }
.contact-points { list-style: none; padding: 0; margin: 22px 0; }
.contact-points li { padding: 10px 0 10px 26px; position: relative; color: var(--muted-dark); }
.contact-points li::before {
    content: ""; position: absolute; left: 0; top: 18px;
    width: 10px; height: 2px; background: var(--brick);
}
.contact-direct { color: var(--muted-dark); }
.contact-direct a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

.contact-form-wrap {
    background: var(--cream);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 34px;
}
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.optional { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.field input, .field textarea {
    font-family: var(--sans);
    font-size: 1rem;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brick);
    box-shadow: 0 0 0 3px rgba(158,52,42,.12);
}
.field textarea { resize: vertical; }
.field-error { color: var(--brick); font-size: .8rem; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: 8px; padding: 18px 20px; }
.alert p { margin: .4rem 0 0; }
.alert-success { background: #e7efe4; border: 1px solid #b7cdab; color: #2f4a26; }
.alert-success a { color: #2f4a26; text-decoration: underline; }
.alert-error { background: #f6e2df; border: 1px solid #e0b3ac; color: var(--brick-dark); margin-bottom: 16px; }

/* ---------- What we fix ---------- */
.fix { background: var(--cream-2); }

/* ---------- Social proof ---------- */
.proof { background: var(--cream); padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stats li { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--brick); line-height: 1; }
.stat-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.quote {
    max-width: 720px; margin: 0 auto; text-align: center;
    font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-style: italic; line-height: 1.4; color: var(--ink);
}
.quote cite { display: block; margin-top: 16px; font-family: var(--sans); font-size: .85rem; font-style: normal; letter-spacing: .04em; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }
.faq-list { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
    list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
    font-family: var(--serif); font-size: 1.2rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    font-size: 1.5rem; color: var(--brick); line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0 0 18px; max-width: 70ch; }

/* ---------- Consent ---------- */
.consent { margin-top: 4px; }
.consent-label { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .88rem; color: var(--muted); cursor: pointer; }
.consent-label input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brick); flex: 0 0 auto; }
.consent-label a { color: var(--brick); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Legal page ---------- */
.container-narrow { max-width: 760px; }
.legal { padding: 64px 0 88px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 4px; }
.legal h2 { font-size: 1.3rem; margin-top: 36px; }
.legal-updated { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--brick); text-decoration: underline; text-underline-offset: 2px; }
.legal-note { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 14px; margin: 32px 0; }
.legal .btn { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: var(--cream); padding: 64px 0 48px; text-align: center; }
.logo-footer { justify-content: center; margin-bottom: 24px; }
.logo-footer img { height: 38px; width: auto; max-width: 80%; opacity: .95; }
.footer-contact {
    margin: 0 auto 14px;
    color: var(--muted-dark);
    font-size: .92rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
}
.footer-contact a { color: var(--cream); }
.footer-contact a:hover { color: #d98b80; }
.footer-contact .sep { margin: 0 14px; opacity: .35; }
.footer-fine { font-size: .8rem; color: var(--muted-dark); margin: 16px 0 0; opacity: .8; }
.footer-fine a { color: var(--cream); text-decoration: underline; text-underline-offset: 2px; }
.footer-fine a:hover { color: #d98b80; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-copy { max-width: none; margin: 0; padding: 56px 24px; }
    .hero-visual { min-height: 280px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .contact-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
    /* CSS-only hamburger menu */
    .nav-burger { display: flex; }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 30px -20px rgba(28,37,53,.5);
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }
    .nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
    .nav-cta { border: 0; border-radius: 0; color: var(--brick) !important; }
    .nav-toggle:checked ~ .nav { max-height: 60vh; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; gap: 28px; }
    .contact-form { grid-template-columns: 1fr; }
    .footer-contact .sep { display: block; height: 0; margin: 6px 0; visibility: hidden; }
}
