/*
    COMMON STYLES — shared by every page (new-home.php, gallery.php,
    testimonials.php, privacy-policy.php, terms.php).

    NOTE FOR JESSICA:
    This file holds anything that looks the same everywhere: colours, fonts,
    buttons, the header/nav, the footer, and the cookie banner/modal. If you
    want to change the logo, footer phone number, or button colour site-wide,
    change it once here rather than in each page.

    Anything specific to a single page (the hero, the gallery grid, the
    contact form, the legal text styling, etc.) lives in that page's own
    styles/<page>.css file instead, loaded straight after this one.
*/
:root {
    --bg-deep: #0b0e13;
    --bg-panel: #10141b;
    --gold: #c9a463;
    --gold-soft: #b8935a;
    --text-main: #f4f1ea;
    --text-muted: #a9a7a1;
    --line: rgba(201, 164, 99, 0.25);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
}
h1, h2, h3 {
    font-family: "Playfair Display", serif;
    font-weight: 500;
    line-height: 1.15;
}
.eyebrow {
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: block;
}
a { text-decoration: none; color: inherit; }
.btn {
    display: inline-block;
    padding: 15px 34px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.25s ease;
}
.btn-solid { background: var(--gold); color: #0b0e13; font-weight: 600; }
.btn-solid:hover { background: #d9b479; }
/* Header is fixed/overlaying content, so jump-to-section nav links need an
   offset or the fixed bar covers the target heading */
section { scroll-margin-top: 190px; }
/* ---------------- NAV ---------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    /* Default: solid frosted bar (used on every page except the homepage,
       which overlays a hero photo and overrides this — see home.css). */
    background: rgba(11, 14, 19, 0.92);
    backdrop-filter: blur(10px);
    /* Set to 0 at the top of the page, 1 once fully scrolled past the
       shrink distance — updated live by the scroll listener in footer.php.
       Everything below reads this one value so the header shrinks in sync
       with scroll position, then holds at its smallest size. */
    --scroll-progress: 0;
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: calc(24px - (var(--scroll-progress) * 14px)) 60px;
    min-height: calc(190px - (var(--scroll-progress) * 112px));
}
nav.left, nav.right {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 1.5px;
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    width: fit-content;
}
nav.left { justify-self: start; }
nav.right { justify-self: end; }
nav a:hover { color: var(--gold); }
.brand {
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 0 30px;
}
.brand svg.brand-logo {
    width: calc(190px - (var(--scroll-progress) * 110px));
    height: auto;
    display: block;
}
.quote-btn {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 22px;
    font-size: 12px;
    letter-spacing: 2px;
    margin-left: 36px;
    /* Cancels the button's own padding-driven height so it doesn't push
       nav.right's underline lower than nav.left's */
    margin-top: -10px;
    margin-bottom: -10px;
}
/* ---------------- MOBILE MENU TOGGLE (hidden on desktop) ---------------- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.menu-toggle svg {
    width: 26px;
    height: 26px;
    stroke: var(--gold);
}
.mobile-nav { display: none; }
/* ---------------- FOOTER ---------------- */
footer { padding: 30px 60px 16px; }
.footer-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.footer-top .brand { margin-bottom: 0 !important; }
.footer-top .brand svg.brand-logo { width: 88px !important; }
.footer-contact-groups { display: flex; gap: 36px; flex-wrap: wrap; }
.footer-contact-group { margin-bottom: 8px; }
.footer-contact-label {
    display: block;
    color: var(--gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.footer-contact-item {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--text-muted);
}
.footer-contact-item a { color: var(--text-muted); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-contact-item svg { width: 14px; height: 14px; stroke: var(--gold); flex-shrink: 0; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}
.footer-bottom a:hover { color: var(--gold); }
/* ---------------- COOKIE CONSENT ---------------- */
.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 1100px;
    margin: 0 auto;
}
.cookie-banner.hidden { display: none; }
.cookie-banner p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0;
}
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-btn {
    padding: 10px 20px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    font-family: inherit;
}
.cookie-btn.solid { background: var(--gold); color: #0b0e13; font-weight: 600; border-color: var(--gold); }
.cookie-btn:hover { background: rgba(201, 164, 99, 0.15); }
.cookie-btn.solid:hover { background: #d9b479; }
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cookie-modal-overlay.hidden { display: none; }
.cookie-modal {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
}
.cookie-modal h3 {
    font-size: 20px;
    margin-bottom: 6px;
}
.cookie-modal > p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.cookie-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.cookie-modal-row:last-of-type { border-bottom: none; }
.cookie-modal-row-label { font-size: 14px; font-weight: 600; }
.cookie-modal-row-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.cookie-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch-track {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #3a3a3a;
    border-radius: 24px;
    transition: .2s;
}
.cookie-switch-track:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .2s;
}
.cookie-switch input:checked + .cookie-switch-track { background: var(--gold); }
.cookie-switch input:checked + .cookie-switch-track:before { transform: translateX(18px); }
.cookie-switch input:disabled + .cookie-switch-track { opacity: 0.5; cursor: not-allowed; }
.cookie-modal-actions { display: flex; gap: 12px; margin-top: 24px; justify-content: flex-end; }
/* ---------------- SHARED MOBILE RULES ---------------- */
@media (max-width: 1150px) {
    .header-inner {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: calc(16px - (var(--scroll-progress) * 6px)) 20px;
        /* Without this, the desktop rule's min-height (up to 190px) still
           applies here, making the mobile header far taller than its
           content needs and overlapping whatever's below it. */
        min-height: unset;
        position: relative;
    }
    .brand { padding: 0; }
    .brand svg.brand-logo { width: calc(110px - (var(--scroll-progress) * 35px)); }
    nav.left, nav.right { display: none; }
    .menu-toggle {
        display: flex;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    .mobile-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-panel);
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 20px;
        flex-direction: column;
        gap: 16px;
    }
    .mobile-nav.open { display: flex; }
    .mobile-nav a {
        font-size: 13px;
        letter-spacing: 2px;
        padding: 6px 0;
    }
    .mobile-nav .quote-btn {
        /* .quote-btn's own color:gold + border was winning over .btn-solid's
           dark text, making this render as gold text on a gold button
           (invisible). Force the solid-button look here instead. */
        margin: 8px 0 0;
        text-align: center;
        width: 100%;
        color: #0b0e13;
        border: none;
        padding: 15px 34px;
    }
    .footer-top { flex-direction: column; align-items: center; text-align: center; }
    .footer-top .brand { align-items: center !important; flex-direction: column !important; }
    .footer-contact-groups { flex-direction: column; align-items: center; gap: 0; }
    .footer-contact-item { justify-content: center; }
    .footer-contact-group { margin-bottom: 16px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; align-items: center; }
    .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 20px; }
    .cookie-modal { padding: 24px; }
}
