/* =========================================================
   COMMON.CSS — SHARED SITE STYLES
   Loaded before every page-specific stylesheet.
========================================================= */

/* =========================================================
   1. DESIGN TOKENS / VARIABLES
========================================================= */

:root {
    --navy: #102a43;
    --blue: #1f4e78;
    --gold: #c5a35a;
    --green: #647a68;
    --cream: #f7f5f0;
    --ink: #18232d;
    --muted: #5e6973;
    --border: #d8dee3;
    --soft: #e0e6ed;
    --white: #fff;
    --shadow: 0 16px 32px rgba(16,42,67,.08);
}

/* =========================================================
   2. RESET / BASE / GLOBAL UTILITIES
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Manrope,Arial,sans-serif;
    font-size: 16px;
    background: #fff;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,input,select {
    font: inherit;
}

button,a {
    transition: background-color .2s,color .2s,border-color .2s,transform .2s;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
    outline: 3px solid rgba(197,163,90,.45);
    outline-offset: 3px;
}

.section-shell {
    width: min(1240px,calc(100% - 200px));
    margin-inline: auto;
}

.section-pad {
    padding-block: 100px;
}

.section--cream {
    background: var(--cream);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.is-hidden {
    display: none !important;
}

/* =========================================================
   3. SHARED HEADER / NAVIGATION
========================================================= */

.catalog-header {
    height: 88px;
    padding: 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: var(--navy);
}

.catalog-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-brand__mark {
    width: 76px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--navy);
    background: var(--gold);
    font-size: 18px;
    font-weight: 800;
    flex: 0 0 auto;
}

.catalog-brand__mark--logo {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(197,163,90,.45);
    background: #fff;
}

.catalog-brand__mark--logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.catalog-brand>span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.catalog-brand strong {
    font-size: 20px;
}

.catalog-brand small {
    color: var(--gold);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.catalog-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 15px;
}

.catalog-nav a {
    opacity: .8;
}

.catalog-nav a:hover {
    opacity: 1;
}

.catalog-nav a.is-active {
    position: relative;
    color: var(--gold);
    font-weight: 700;
    opacity: 1;
}

.catalog-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

.catalog-header__cta {
    padding: 13px 24px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--navy);
    background: var(--gold);
    font-size: 14px;
    font-weight: 700;
}

.catalog-header__cta:hover {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.catalog-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.catalog-menu-toggle span {
    width: 22px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: #fff;
    transition: transform .2s,opacity .2s;
}

/* =========================================================
   5. SHARED LEGAL LAYOUT
========================================================= */

.legal-view {
    background: var(--cream);
}

.legal-shell {
    width: 1280px;
    margin-inline: auto;
}

.legal-hero {
    padding: 48px 80px;
    color: #fff;
    background: var(--navy);
}

.legal-hero h1 {
    margin: 0;
    font-size: 40px;
}

.legal-hero p {
    margin: 12px 0 0;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
}

.legal-layout {
    padding-block: 64px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-sidebar a {
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.legal-sidebar a:hover,.legal-sidebar a.is-active {
    border-color: var(--border);
    color: var(--navy);
    background: #fff;
    font-weight: 700;
}

.legal-content {
    display: flex;
    flex-direction: column;
}

.legal-content section {
    padding: 0 0 32px;
    scroll-margin-top: 24px;
}

.legal-content section+section {
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.legal-content h2 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: 22px;
}

.legal-content p,.legal-content li {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.65;
}

.legal-content p {
    margin: 0;
}

.legal-content ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.legal-content button {
    margin-top: 20px;
    padding: 12px 20px;
    border: 1px solid var(--blue);
    border-radius: 6px;
    color: var(--blue);
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.legal-footer {
    width: 100%;
}

/* =========================================================
   6. COOKIE CONSENT
========================================================= */

.cookie-banner {
    position: fixed;
    z-index: 1000;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 220px;
    padding: 32px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    border-top: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 -8px 24px rgba(16,42,67,.08);
}

.cookie-banner>div:first-child {
    width: 760px;
}

.cookie-banner h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 18px;
}

.cookie-banner h2 img {
    width: 18px;
    height: 18px;
}

.cookie-banner p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.cookie-banner p a {
    color: var(--blue);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-banner button,.cookie-modal button {
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cookie-banner button:first-child {
    padding-inline: 16px;
    border-color: transparent;
    color: var(--muted);
    text-decoration: underline;
}

.cookie-banner button.is-primary,.cookie-modal button.is-primary {
    border-color: var(--gold);
    color: #fff;
    background: var(--navy);
}

.cookie-modal-backdrop {
    position: fixed;
    z-index: 1100;
    inset: 0;
    padding: 40px;
    display: grid;
    place-items: center;
    background: rgba(16,42,67,.32);
}

.cookie-modal {
    width: 600px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(16,42,67,.15);
}

.cookie-modal>header {
    padding-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.cookie-modal h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 22px;
}

.cookie-modal h2 img {
    width: 22px;
    height: 22px;
}

.cookie-modal>header button {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--muted);
    background: var(--cream);
    font-size: 18px;
}

.cookie-options {
    padding-block: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-options label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-options label>span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cookie-options strong {
    color: var(--ink);
    font-size: 15px;
}

.cookie-options small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.cookie-options input {
    width: 44px;
    height: 24px;
    flex: 0 0 44px;
    accent-color: var(--blue);
}

.cookie-modal>footer {
    padding-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border);
}

/* =========================================================
   20. RESPONSIVE / MEDIA QUERIES
========================================================= */

@media (max-width:1180px) {
    .catalog-nav {
        gap: 18px;
    }

    .legal-shell {
        width: calc(100% - 80px);
    }

    .cookie-banner {
        padding-inline: 40px;
    }

    .cookie-banner>div:first-child {
        width: 600px;
    }
}

@media (max-width:900px) {
    body {
        overflow-x: hidden;
    }

    .catalog-header {
        height: auto;
        min-height: 76px;
        padding: 14px 20px;
        flex-wrap: wrap;
    }

    .catalog-brand__mark {
        width: 38px;
        height: 38px;
    }

    .catalog-brand strong {
        font-size: 18px;
    }

    .catalog-header__cta,.detail-header__cta {
        display: none;
    }

    .catalog-menu-toggle {
        margin-left: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .catalog-header.is-menu-open .catalog-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .catalog-header.is-menu-open .catalog-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .catalog-header.is-menu-open .catalog-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .catalog-nav {
        order: 4;
        width: 100%;
        padding-top: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .catalog-header.is-menu-open .catalog-nav {
        display: flex;
    }

    .catalog-nav a {
        padding: 12px 8px;
        border-top: 1px solid rgba(255,255,255,.12);
        opacity: 1;
    }

    .catalog-nav a.is-active::after {
        display: none;
    }

    .catalog-shell,.detail-shell,.presentation-shell {
        width: 100%;
    }

    .legal-shell {
        width: calc(100% - 32px);
    }

    .legal-hero {
        padding: 36px 16px;
    }

    .legal-hero h1 {
        font-size: 32px;
    }

    .legal-layout {
        padding-block: 36px;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .legal-sidebar {
        position: static;
        overflow-x: auto;
        flex-direction: row;
        padding-bottom: 8px;
    }

    .legal-sidebar a {
        flex: 0 0 auto;
    }

    .cookie-banner {
        min-height: 0;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .cookie-banner>div:first-child {
        width: 100%;
    }

    .cookie-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cookie-banner__actions button:last-child {
        grid-column: 1/-1;
    }

    .cookie-modal-backdrop {
        padding: 16px;
    }

    .cookie-modal {
        width: 100%;
        max-height: calc(100vh - 32px);
        padding: 22px;
        overflow: auto;
    }

    .cookie-modal>footer {
        flex-direction: column;
    }

    .cookie-modal>footer button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .catalog-brand__mark {
        width: 66px;
        height: 40px;
    }
}


/* =========================================================
   NEWSLETTER — SHARED PRODUCTION STATES
========================================================= */
.newsletter-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.form-feedback[data-state="success"],
.catalog-newsletter-feedback[data-state="success"] {
    font-weight: 600;
}

.form-feedback[data-state="error"],
.catalog-newsletter-feedback[data-state="error"] {
    font-weight: 600;
}

[data-newsletter-form] button[disabled] {
    cursor: wait;
    opacity: 0.72;
}

.catalog-newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.78rem;
    line-height: 1.4;
}

.catalog-newsletter-consent input {
    flex: 0 0 auto;
    margin-top: 3px;
}
