/* Wilder Cleaning Solutions — public (customer-facing) pages */

:root {
    --color-primary: #0b4a6f;
    --color-primary-dark: #083954;
    --color-accent: #f28d35;
    --color-accent-dark: #d97a2a;
    --color-ink: #1a2733;
    --color-ink-soft: #495c6b;
    --color-muted: #6b7a88;
    --color-border: #dee3e8;
    --color-bg: #f4f6f8;
    --color-surface: #fff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.05);
    --shadow-md: 0 2px 8px rgba(0,0,0,.08);
}

body.public {
    background-color: var(--color-bg);
    /* Subtle slate texture peeks out in the margin around content cards.
       Path is relative to this CSS file so it works at any mount point. */
    background-image: url("../images/bg_tile.webp");
    background-repeat: repeat;
    color: var(--color-ink);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
}
/* Base typography — no `body.public` prefix so single-class overrides work. */
.public a { color: var(--color-primary); text-decoration: none; }
.public a:hover { text-decoration: underline; }
.public h1 { font-size: 2rem;   color: var(--color-primary); margin: 0 0 1rem; line-height: 1.2; }
.public h2 { font-size: 1.45rem; color: var(--color-primary); margin: 1.5rem 0 .7rem; }
.public h3 { font-size: 1.1rem;  color: var(--color-primary); margin: 1rem 0 .4rem; }
.public p  { margin: .5rem 0 1rem; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: #000; color: #fff; padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Site header ---------- */
.site-header {
    background: var(--color-surface);
    border-bottom: 3px solid var(--color-primary);
    position: sticky; top: 0; z-index: 50;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1.25rem;
}
.site-logo { display: inline-block; line-height: 0; }
.site-logo img { height: 56px; width: auto; display: block; }
.header-phone {
    margin-left: auto;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    padding: .4rem .7rem;
    border-radius: 4px;
}
.header-phone:hover { background: #eef4f8; text-decoration: none; }
.header-phone .phone-number { font-variant-numeric: tabular-nums; }

.nav-toggle {
    display: none;
    background: none; border: 0; cursor: pointer;
    padding: .4rem; margin-left: .5rem;
}
.nav-toggle-bar {
    display: block; width: 24px; height: 2px;
    background: var(--color-primary); margin: 5px 0;
    transition: transform .15s;
}

.primary-nav ul {
    list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0;
}
.primary-nav a {
    display: inline-block;
    padding: .55rem .85rem;
    color: var(--color-ink);
    font-weight: 500;
    border-radius: 4px;
}
.primary-nav a:hover { background: #eef4f8; text-decoration: none; color: var(--color-primary); }
.primary-nav a.active {
    background: var(--color-primary);
    color: #fff;
}

/* ---------- Main area ---------- */
.site-main {
    flex: 1;
    width: 100%;
}
.flashes-public {
    max-width: 900px; margin: 1rem auto 0; padding: 0 1.25rem;
}
.flashes-public .flash {
    padding: .8rem 1rem; border-radius: 4px; margin-bottom: .6rem;
}
.flashes-public .flash-success { background: #e7f6ec; color: #1b5d32; border: 1px solid #b5dec1; }
.flashes-public .flash-error   { background: #fdecea; color: #8d2121; border: 1px solid #f1b4b4; }
.flashes-public .flash-info    { background: #e8f1f7; color: #0b4a6f; border: 1px solid #b5d2e6; }
.flashes-public .flash-warn    { background: #fff4d8; color: #7a5900; border: 1px solid #e2c98b; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: .7rem 1.4rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-accent    { background: var(--color-accent); color: #fff; }
.btn-accent:hover    { background: var(--color-accent-dark); color: #fff; text-decoration: none; }
.btn-secondary { background: #fff; color: var(--color-primary); border: 2px solid var(--color-primary); padding: .55rem 1.25rem; }
.btn-secondary:hover { background: #eef4f8; color: var(--color-primary-dark); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
    background:
        linear-gradient(135deg, rgba(11,74,111,.92), rgba(8,57,84,.92));
    color: #fff;
    padding: 4rem 1.5rem;
}
.hero-content {
    max-width: 800px; margin: 0 auto; text-align: center;
}
.hero h1 { color: #fff; font-size: 2.4rem; margin: 0 0 .6rem; line-height: 1.15; }
.hero-subtitle { font-size: 1.1rem; opacity: .9; margin: 0 0 1.6rem; }
.hero-actions { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; }
.hero .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.hero .btn-secondary:hover { background: rgba(255,255,255,.15); }

/* ---------- Sections ---------- */
.section { padding: 3rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section h2 { text-align: center; font-size: 1.75rem; }
.services        { background: var(--color-surface); }
.why-us          { background: var(--color-bg); }
.pricing-preview { background: var(--color-surface); }
.service-area    { background: var(--color-bg); }
.cta             { background: var(--color-primary); color: #fff; text-align: center; }
.cta h2, .cta h3 { color: #fff; }
.cta .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.cta .btn-secondary:hover { background: rgba(255,255,255,.15); }
.cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- Service grids ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    color: var(--color-ink);
    display: block;
    transition: transform .15s, box-shadow .15s;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
.service-card h3 { padding: 1rem 1.1rem .25rem; margin: 0; color: var(--color-primary); }
.service-card p  { padding: 0 1.1rem 1.1rem; margin: .4rem 0 0; color: var(--color-ink-soft); }
.service-image img {
    display: block; width: 100%; height: 220px;
    object-fit: cover;
}

.service-grid-large {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}
.service-grid-large .service-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.25rem;
    align-items: stretch;
}
.service-grid-large .service-card-content {
    padding: 1.25rem 1.5rem 1.25rem 0;
    display: flex; flex-direction: column; justify-content: center;
}
.service-grid-large .service-image img { width: 100%; height: auto; max-width: 100%; }

/* ---------- Why-us feature grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.feature {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--color-border);
}
.feature-icon { margin-bottom: .75rem; color: var(--color-primary); }
.feature h3 { margin-top: 0; }

/* ---------- Pricing preview / pricing page ---------- */
.pricing-examples {
    max-width: 620px; margin: 1.5rem auto;
    background: var(--color-bg);
    border-radius: 6px;
    padding: 1rem 1.25rem;
}
.price-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: .55rem 0; border-bottom: 1px solid var(--color-border);
}
.price-item:last-child { border-bottom: 0; }
.price-label { color: var(--color-ink-soft); }
.price-value { font-weight: 700; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.pricing-benefits { max-width: 620px; margin: 1.2rem auto; text-align: center; color: var(--color-ink-soft); }
.pricing-benefits p { margin: .35rem 0; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: ' →'; transition: transform .15s; display: inline-block; }
.link-arrow:hover::after { transform: translateX(3px); }

.pricing-table {
    width: 100%; max-width: 700px; margin: 1rem 0 1.5rem;
    border-collapse: collapse; background: var(--color-surface);
    box-shadow: var(--shadow-sm); border-radius: 6px; overflow: hidden;
}
.pricing-table th, .pricing-table td {
    padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border);
}
.pricing-table th { background: var(--color-primary); color: #fff; font-weight: 500; }
.pricing-table tbody tr:hover { background: #f9fbfd; }

.pricing-examples-detail {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 1rem; margin: 1rem 0 1.5rem;
}
.example-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px; padding: 1rem; text-align: center;
}
.example-item h3 { margin-top: 0; }
.example-size { color: var(--color-muted); font-size: .9rem; margin: .2rem 0; }
.example-price { color: var(--color-accent); font-size: 1.75rem; font-weight: 700; margin: .3rem 0 0; font-variant-numeric: tabular-nums; }

.discount-box {
    display: flex; gap: 1rem;
    background: #fff7e0; border: 1px solid #f0dca0;
    border-radius: 6px; padding: 1rem 1.25rem; margin: 1rem 0;
}
.discount-icon { color: #8d6a00; flex-shrink: 0; }
.discount-content h3 { margin: 0 0 .2rem; color: #7a5900; }
.discount-content p  { margin: 0; color: #6e5000; }

/* ---------- Service area / content wrap ---------- */
.service-area .section-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2rem; align-items: center;
}
.area-map img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--color-border); }

.page-content { padding: 2.5rem 1.25rem; }
.content-wrap { max-width: 900px; margin: 0 auto; background: var(--color-surface); padding: 2rem 2.25rem; border-radius: 8px; box-shadow: var(--shadow-sm); }
.content-wrap .intro { font-size: 1.1rem; color: var(--color-ink-soft); margin: 0 0 1.5rem; }
.page-cta { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--color-border); text-align: center; }

/* ---------- Service detail ---------- */
.service-detail .service-hero-image { text-align: center; margin-bottom: 1.5rem; }
.service-detail .service-hero-image img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
}
.icon-list { list-style: none; padding: 0; }
.icon-list li { padding: .35rem 0; display: flex; gap: .5rem; align-items: flex-start; }
.icon-list svg { color: #2b8a4a; flex-shrink: 0; margin-top: 3px; }
.process-list { padding-left: 1.25rem; }
.process-list li { padding: .35rem 0; }

.service-pricing-link {
    background: #eef4f8; border-left: 4px solid var(--color-primary);
    padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 4px;
}
.service-pricing-link h3 { margin-top: 0; }

.back-link { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.back-link a { color: var(--color-muted); }

/* ---------- FAQ accordion ---------- */
.faq-list { margin: 1.5rem 0; }
.faq-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: .85rem 1rem;
    margin-bottom: .6rem;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
    list-style: none;
    padding-right: 1.5rem;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute; right: 0; top: 0;
    font-size: 1.4rem; font-weight: 300; color: var(--color-muted);
    line-height: 1; transition: transform .15s;
}
.faq-item[open] summary::after { content: '−'; color: var(--color-primary); }
.faq-item p { margin: .6rem 0 0; color: var(--color-ink-soft); }

/* ---------- Contact page ---------- */
.contact-layout {
    display: grid; grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    margin-top: 1rem;
}
.contact-info { background: var(--color-bg); padding: 1.25rem 1.5rem; border-radius: 6px; }
.contact-info h2 { margin-top: 0; font-size: 1.25rem; }
.contact-item {
    display: flex; gap: .7rem; align-items: flex-start;
    margin-bottom: 1rem;
}
.contact-item svg { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }

.contact-form .form-group { margin-bottom: 1rem; }
.contact-form label { display: block; font-weight: 500; margin-bottom: .3rem; font-size: .92rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: .55rem .7rem;
    border: 1px solid #c6d0d8;
    border-radius: 4px;
    font: inherit;
    box-sizing: border-box;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .field-error {
    color: #c52d2d; font-size: .85rem; margin-top: .25rem;
}
.contact-form input.field-error, .contact-form textarea.field-error { border-color: #c52d2d; }
.contact-form .required { color: #c52d2d; }
.contact-form .char-count { text-align: right; color: var(--color-muted); font-size: .8rem; margin-top: .2rem; }
.contact-form .honeypot { position: absolute; left: -9999px; }
.contact-form .form-note { color: var(--color-muted); font-size: .85rem; margin-top: .75rem; }

/* ---------- Cleaning-foam cursor trail ---------- */
.bubble {
    position: absolute;
    border-radius: 50%;
    /* Foam reads white with a soft blue-green tinge — not iridescent, more "cream of soap". */
    background: radial-gradient(
        circle at 32% 28%,
        rgba(255, 255, 255, .95) 0%,
        rgba(245, 252, 254, .80) 40%,
        rgba(210, 230, 240, .55) 75%,
        rgba(180, 210, 225, .35) 100%
    );
    box-shadow:
        inset -2px -3px 5px rgba(90, 130, 160, .12),
        0 1px 4px rgba(70, 100, 130, .15);
    border: 1px solid rgba(255, 255, 255, .5);
    pointer-events: none;
    z-index: 9999;
    animation: foam-fall ease-in forwards;
    opacity: 0;
    will-change: transform, opacity;
}
@keyframes foam-fall {
    0%   { opacity: 0;   transform: translate(0, 0)                              scale(.5); }
    10%  { opacity: .9;  transform: translate(calc(var(--drift) * .15), 4px)     scale(1); }
    75%  { opacity: .85; transform: translate(calc(var(--drift) * .7), 70px)     scale(1); }
    100% { opacity: 0;   transform: translate(var(--drift), 110px)               scale(.7); }
}
@media (prefers-reduced-motion: reduce),
       (pointer: coarse) {
    .bubble { display: none; }
}

/* ---------- Before/After gallery sliders ---------- */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin: 1rem 0 2rem;
}

/* Container for one slider. Height is set by JS after the image loads so the
   container matches the image's natural aspect ratio. */
.slider-container {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}
.before-after-slider {
    position: relative;
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

/* Both images fill the container. Before underneath, after on top with a
   clip-path that reveals only the right portion initially. */
.slider-before, .slider-after {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}
.slider-after  { z-index: 1; visibility: visible; }
.slider-before { z-index: 2; clip-path: inset(0 50% 0 0); }

.slider-label {
    position: absolute;
    top: .6rem;
    padding: .2rem .55rem;
    background: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 3px;
    z-index: 3;
    pointer-events: none;
}
.slider-label-before { left:  .6rem; }
.slider-label-after  { right: .6rem; }

/* Vertical divider bar sits at the clip edge. */
.slider-bar {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}

/* Oval pill handle — curved, draggable only by this element. */
.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 100px;
    background-color: rgba(255, 255, 255, .85);
    border: 2px solid rgba(0, 0, 0, .8);
    border-radius: 50px / 100px;
    transform: translate(-50%, -50%);
    cursor: ew-resize;
    z-index: 4;
    -webkit-tap-highlight-color: transparent;
}
.slider-handle:hover { background-color: rgba(255, 255, 255, .95); }
.slider-handle:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Sparkle effect emitted at the bar as the handle drags. */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,215,0,.6));
    border-radius: 50%;
    opacity: 1;
    animation: sparkle-fade-move .6s ease-out forwards;
    pointer-events: none;
    z-index: 5;
}
@keyframes sparkle-fade-move {
    0%   { opacity: 1; transform: translate(0, 0) scale(1.2); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); }
}
@media (prefers-reduced-motion: reduce) {
    .sparkle { display: none; }
}

/* ---------- Gallery placeholder ---------- */
.gallery-placeholder {
    background: var(--color-bg);
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--color-muted);
    margin: 1.5rem 0;
}
.placeholder-icon { color: var(--color-border); margin-bottom: .75rem; }

/* ---------- Not found ---------- */
.not-found { text-align: center; }
.not-found-img { max-width: 320px; margin: 1rem auto; display: block; }

/* ---------- Image placeholder (missing asset) ---------- */
.image-placeholder {
    background: #eef4f8;
    border: 2px dashed var(--color-border);
    color: var(--color-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-primary-dark);
    color: #e8eff4;
    padding: 2.5rem 1.25rem 0;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 .75rem; font-weight: 600; letter-spacing: .02em; }
.site-footer p, .site-footer li { color: #e8eff4; }
.site-footer a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.footer-item { display: flex; gap: .5rem; align-items: center; margin: .3rem 0; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin: .25rem 0; }
.footer-bottom {
    max-width: 1100px; margin: 2rem auto 0;
    padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.1);
    text-align: center; font-size: .85rem; color: #9eb5c4;
}

/* Mobile drawer pieces are always in the DOM but hidden above 820px. */
.nav-close {
    display: none;
    position: absolute;
    top: .5rem; right: .75rem;
    background: none; border: 0;
    font-size: 2rem; line-height: 1;
    color: var(--color-muted);
    cursor: pointer;
    padding: .25rem .5rem;
    border-radius: 4px;
}
.nav-close:hover { color: var(--color-primary); background: #eef4f8; }

.nav-overlay {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;  /* explicit sides — older iOS lacks `inset` shorthand */
    background: rgba(10, 25, 40, 0);
    z-index: 60;
    transition: background .25s ease-out;
    pointer-events: none;
    cursor: pointer;                         /* iOS Safari registers tap events on elements marked clickable */
    -webkit-tap-highlight-color: transparent;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .nav-toggle  { display: inline-block; }
    .nav-close   { display: inline-block; }
    .nav-overlay { display: block; }

    /* Right-side slide-in drawer */
    .primary-nav {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: min(320px, 82vw);
        background: var(--color-surface);
        box-shadow: -4px 0 18px rgba(0,0,0,.18);
        z-index: 70;
        transform: translateX(100%);
        transition: transform .28s cubic-bezier(.2, .8, .3, 1);
        padding: 3rem 0 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;          /* momentum scroll inside drawer on iOS */
        will-change: transform;                      /* promote to its own layer — iOS paints smoother */
        -webkit-tap-highlight-color: transparent;
    }
    .nav-toggle, .nav-close { -webkit-tap-highlight-color: transparent; }
    .primary-nav ul {
        flex-direction: column;
        padding: .5rem 0;
        gap: 0;
    }
    .primary-nav a {
        display: block;
        padding: .9rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid #eef1f4;
        font-size: 1.05rem;
    }
    .primary-nav a.active {
        background: var(--color-primary);
        color: #fff;
    }

    /* Open state. Body scroll-lock is handled in JS via position:fixed because
       `overflow:hidden` on <body> is silently ignored by iOS Safari. */
    body.nav-open .primary-nav { transform: translateX(0); }
    body.nav-open .nav-overlay {
        background: rgba(10, 25, 40, .5);
        pointer-events: auto;
    }

    .header-inner { position: relative; }
    .header-phone { margin-left: auto; }

    .hero h1 { font-size: 1.7rem; }
    .section { padding: 2rem 1.25rem; }

    .service-grid-large .service-card { grid-template-columns: 1fr; }
    .service-grid-large .service-card-content { padding: 1rem 1.25rem; }
    .service-area .section-inner { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .content-wrap { padding: 1.5rem 1.25rem; }
    .pricing-examples-detail { grid-template-columns: 1fr; }
}

/* Reduced motion: skip the slide animation */
@media (prefers-reduced-motion: reduce) {
    .primary-nav { transition: none; }
    .nav-overlay { transition: none; }
}

/* ============================================================
   Below: invoice-specific public styles kept for /invoices/{code}
   ============================================================ */

.invoice-card {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--color-surface);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 2rem 2.25rem;
}
.invoice-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.invoice-head .label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-muted);
}
.invoice-number { font-size: 1.6rem; font-weight: 700; color: var(--color-primary); line-height: 1.1; }
.invoice-meta { text-align: right; color: var(--color-ink-soft); font-size: .95rem; }
.invoice-meta > div { margin-bottom: .3rem; }
.invoice-block { margin-bottom: 1.25rem; }
.invoice-block .label {
    font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--color-muted); margin-bottom: .3rem;
}
.invoice-items table.data { width: 100%; }
.invoice-items .row-discount td { background: #fff7e0; color: #7a5900; font-style: italic; }
.invoice-totals { margin-top: 1.5rem; max-width: 380px; margin-left: auto; }
.invoice-totals .totals-row {
    display: flex; justify-content: space-between;
    padding: .3rem 0; border-bottom: 1px solid #eef1f4;
}
.invoice-totals .totals-row:last-child { border-bottom: 0; }
.invoice-totals .totals-balance {
    border-top: 2px solid var(--color-primary);
    padding-top: .6rem; font-size: 1.1rem;
}
.invoice-totals .totals-balance strong { color: var(--color-primary); font-size: 1.15rem; }
.invoice-download { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #eef1f4; text-align: center; }
.invoice-download .muted { color: var(--color-muted); font-size: .88rem; margin-top: .6rem; }
.btn-large { padding: .8rem 1.8rem; font-size: 1.05rem; font-weight: 500; }
.verify-form { margin-top: 1rem; }
.verify-form input[type="text"] { font-size: 1.1rem; text-align: center; letter-spacing: .1em; }
.invoice-verify h1 { color: var(--color-primary); margin-top: 0; }
.invoice-notfound { text-align: center; }
.invoice-notfound h1 { color: var(--color-primary); }

@media (max-width: 620px) {
    .invoice-card { padding: 1.25rem; }
    .invoice-head, .invoice-meta { text-align: left; }
    .invoice-meta { width: 100%; }
}
