/* ============================================================
   Riviera article theme — Amberlake Partners
   Loaded AFTER theme.css and any inline <style> so it wins the
   cascade. Restyles the article pages to match index.html.
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
    --ink: #0A1422;
    --ink-2: #0D1A2C;
    --ink-3: #122238;
    --line: rgba(236, 230, 218, 0.09);
    --amber: #DD772A;
    --amber-2: #E8924E;
    --amber-dim: rgba(221, 119, 42, 0.35);
    --amber-faint: rgba(221, 119, 42, 0.08);
    --ivory: #F2EDE3;
    --text: #C8D0DC;
    --mist: #93A1B5;
    --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-body: 'Jost', 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--ink) !important;
    color: var(--text) !important;
    font-family: var(--font-body) !important;
    font-size: 1.0625rem !important;
    line-height: 1.85 !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--amber);
    color: var(--ink);
}

a:focus-visible {
    outline: 2px solid var(--amber-2);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Full site navigation (matches index.html) ---------- */
.al-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 74px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    background: rgba(10, 20, 34, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.al-logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.al-logo img {
    height: 34px;
    width: auto;
    display: block;
}

.al-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.al-nav-links li {
    margin-left: 30px;
}

.al-nav-links a {
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.al-nav-links a:hover {
    color: var(--amber-2);
}

.al-nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.al-nav-links a:hover::after {
    transform-origin: bottom left;
    transform: scaleX(1);
}

.al-burger {
    display: none;
    cursor: pointer;
    padding: 8px;
    margin: 0;
    background: none;
    border: none;
}

.al-burger span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--ivory);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 900px) {
    .al-nav-links li {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .al-burger {
        display: block;
    }

    .al-nav-links {
        position: fixed;
        top: 74px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 20, 34, 0.98);
        border-bottom: 1px solid var(--line);
        padding: 20px 0;
        transition: left 0.3s ease;
        max-height: calc(100vh - 74px);
        overflow-y: auto;
    }

    .al-nav-links li {
        margin: 12px 0;
        text-align: center;
    }

    .al-nav-links a {
        font-size: 0.95rem;
    }

    .al-nav-toggle:checked ~ .al-nav-links {
        left: 0;
    }

    .al-nav-toggle:checked ~ .al-burger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .al-nav-toggle:checked ~ .al-burger span:nth-child(2) {
        opacity: 0;
    }

    .al-nav-toggle:checked ~ .al-burger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ---------- Article shell ---------- */
#article {
    margin-top: 0 !important;
    padding-top: 128px;
    padding-bottom: 40px;
    background: var(--ink);
}

.article-body,
#article article {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text);
}

/* Page title (h1/h2 with .orange-title) + subtitle rule */
.orange-title {
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    color: var(--ivory) !important;
    font-size: clamp(2.1rem, 4.6vw, 3.1rem) !important;
    line-height: 1.15 !important;
    letter-spacing: 0.01em !important;
    margin-bottom: 0.6rem !important;
}

.article-meta {
    color: var(--amber) !important;
    font-size: 0.74rem !important;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.75rem !important;
}

.hr-short {
    width: 72px !important;
    height: 1px !important;
    border: none !important;
    background: linear-gradient(90deg, transparent, var(--amber), transparent) !important;
    margin: 24px auto 0 !important;
    opacity: 1 !important;
}

/* ---------- Body typography ---------- */
.article-body h2,
#article article h2 {
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    color: var(--ivory) !important;
    font-size: clamp(1.7rem, 3vw, 2.1rem) !important;
    line-height: 1.2 !important;
    margin: 2.9rem 0 1.1rem !important;
}

.article-body h2::before,
#article article h2::before {
    content: '';
    display: block;
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, var(--amber), transparent);
    margin-bottom: 20px;
}

.article-body h3,
#article article h3 {
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    color: var(--amber-2) !important;
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    margin: 1.9rem 0 0.7rem !important;
}

.article-body p,
#article article p {
    color: var(--text) !important;
    font-weight: 300;
    font-size: 1.075rem;
    line-height: 1.9;
    margin-bottom: 1.3rem;
}

.article-body strong,
#article article strong {
    color: var(--ivory);
    font-weight: 500;
}

/* Lists with amber diamond markers */
.article-body ul,
#article article ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 0 1.4rem !important;
}

.article-body ul li,
#article article ul li {
    position: relative;
    padding: 0 0 0 1.6rem;
    margin-bottom: 0.7rem;
    color: var(--text);
    font-weight: 300;
    line-height: 1.75;
}

.article-body ul li::before,
#article article ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.72em;
    width: 6px;
    height: 6px;
    background: var(--amber);
    transform: rotate(45deg);
}

/* Images */
.article-body img,
#article article img,
.centered-image {
    border: 1px solid var(--line);
    border-radius: 4px !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Links inside the article body */
.article-body a,
#article article a,
.internal-link {
    color: var(--amber-2) !important;
    text-decoration: none !important;
    font-weight: 500;
    border-bottom: 1px solid var(--amber-dim) !important;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.article-body a:hover,
#article article a:hover,
.internal-link:hover {
    color: var(--amber) !important;
    border-bottom-color: var(--amber) !important;
}

/* ---------- FAQ block ---------- */
.faq-section {
    background: linear-gradient(180deg, rgba(242, 237, 227, 0.035), rgba(242, 237, 227, 0.012)) !important;
    border: 1px solid var(--line) !important;
    border-left: 2px solid var(--amber) !important;
    padding: 2rem 2.25rem !important;
    margin: 2.75rem 0 !important;
    border-radius: 0 4px 4px 0 !important;
}

.faq-section h3 {
    color: var(--ivory) !important;
    margin-top: 1.6rem !important;
    font-size: 1.3rem !important;
}

.faq-section h3:first-child {
    margin-top: 0 !important;
}

.faq-section p {
    color: var(--mist) !important;
}

/* ---------- Callout box ---------- */
.callout-box {
    background: var(--amber-faint) !important;
    border: 1px solid var(--amber-dim) !important;
    border-radius: 4px !important;
    padding: 1.75rem 2rem !important;
    margin: 2.25rem 0 !important;
}

.callout-box p {
    color: var(--text) !important;
    margin-bottom: 0 !important;
}

.callout-box strong {
    color: var(--amber-2);
}

/* ---------- Comparison tables ---------- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0 2rem;
    font-size: 0.98rem;
    border: 1px solid var(--line);
}

.comparison-table th {
    background: var(--ink-3) !important;
    color: var(--ivory) !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem !important;
    padding: 14px 16px !important;
    text-align: left;
    border-bottom: 1px solid var(--amber-dim) !important;
}

.comparison-table td {
    color: var(--text) !important;
    padding: 13px 16px !important;
    border-bottom: 1px solid var(--line) !important;
    vertical-align: top;
    background: transparent !important;
}

/* Override the light zebra stripe from the pages' inline styles */
.comparison-table tr:nth-child(even) td {
    background: rgba(242, 237, 227, 0.035) !important;
}

.comparison-table tbody tr:hover td {
    background: var(--amber-faint) !important;
}

.comparison-table td strong {
    color: var(--ivory);
}

@media (max-width: 768px) {
    /* Let wide tables scroll instead of breaking the page layout */
    .comparison-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================================
   Contact section (reuses legacy theme classes)
============================================================ */
#contact {
    background: var(--ink-2) !important;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 90px 0 !important;
}

#contact .orange-title {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem) !important;
}

#contact .text-black,
#contact .text-uppercase {
    color: var(--amber) !important;
    letter-spacing: 0.22em !important;
    font-weight: 500 !important;
}

#contact h5.orange-title {
    font-size: 1.5rem !important;
}

#contact .text-600 {
    color: var(--mist) !important;
}

#contact a.text-600 {
    color: var(--amber-2) !important;
    transition: color 0.3s ease;
}

#contact a.text-600:hover {
    color: var(--amber) !important;
}

#contact .text-700-dark,
#contact .fas,
#contact .fab {
    color: var(--amber) !important;
}

/* ============================================================
   Footer (legacy .bg-1100) + copyright bar (.bg-dark)
============================================================ */
.bg-1100 {
    background: var(--ink-2) !important;
    position: relative;
    border-top: 1px solid var(--line);
}

.bg-1100::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--amber), transparent);
}

.bg-1100 .text-white,
.bg-1100 h5 {
    font-family: var(--font-body) !important;
    color: var(--ivory) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
}

.bg-1100 .text-700 {
    color: var(--mist) !important;
    font-weight: 300;
}

.bg-1100 a {
    color: var(--amber-2) !important;
    font-weight: 500 !important;
    border-bottom: 1px solid var(--amber-dim);
    transition: opacity 0.3s ease;
}

.bg-1100 a:hover {
    opacity: 0.8;
}

.bg-dark {
    background: var(--ink) !important;
    border-top: 1px solid var(--line);
}

.bg-dark .text-white,
.bg-dark p {
    color: var(--mist) !important;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

/* Back-to-top button */
.btn-back-to-top {
    background: var(--amber) !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    #article {
        padding-top: 104px;
    }

    .article-body,
    #article article {
        padding-left: 6px;
        padding-right: 6px;
    }

    .faq-section {
        padding: 1.5rem 1.4rem !important;
    }
}
