@charset "utf-8";
/* CSS Document

Reorganized for readability. Behavior preserved as closely as possible by
keeping the final effective rules from the current stylesheet and grouping
related sections together.
*/

/* ========================================
   1. ROOT VARIABLES
======================================== */

:root {
    --gold-primary: #B8860B;
    --gold-light: #D4A84B;
    --gold-dark: #8B6914;
    --gold-accent: #C9A227;
    --bg-dark: #0F0E0C;
    --bg-card: #1A1815;
    --bg-card-hover: #252119;
    --text-primary: #F5F0E8;
    --text-secondary: #A69F94;
    --text-muted: #6B6560;
    --border-color: #2A2622;
    --success: #4A7C59;
    --danger: #8B3A3A;
}

/* ========================================
   2. RESET / BASE
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Libre Franklin', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
    padding-top: 120px;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 50px 0;
    scroll-margin-top: 100px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   3. ANIMATIONS / UTILITIES
======================================== */

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.center-text {
    text-align: center;
}

.centered-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.centered-card {
    text-align: center;
}

.gold {
    color: var(--gold-primary);
}

.emphasis {
    font-weight: 600;
    margin-right: 6px;
}

/* ========================================
   4. GLOBAL BUTTONS / SHARED ELEMENTS
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--gold-primary);
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: #000;
}

.btn-primary {
    background: var(--gold-primary);
    color: #000;
}

.btn-primary:hover {
    background: transparent;
    color: var(--gold-primary);
}

/* ========================================
   5. GLOBAL SECTION TYPOGRAPHY
======================================== */

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 10px auto 30px;
}

.section-header.centered {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(36px, 4vw, 52px);
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   6. NAVIGATION
======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(15, 14, 12, 0.95);
    backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.logo span {
    color: var(--text-primary);
    font-weight: 400;
}

.nav-tagline {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 4px;
    color: #aaa;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    transition: color 0.4s ease;
}

.nav-links a::before {
    content: '-';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease, left 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-light);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    opacity: 1;
    left: -16px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile menu */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 2000;
    padding: 100px 40px 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    border-color: var(--gold-primary);
    color: var(--gold-light);
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 40px;
}

.mobile-nav-links li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links a {
    display: block;
    padding: 20px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-links a::after {
    content: '?';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    opacity: 0;
    color: var(--gold-primary);
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--gold-light);
    padding-left: 12px;
}

.mobile-nav-links a:hover::after,
.mobile-nav-links a.active::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-cta .btn {
    width: 100%;
    text-align: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 12px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    border-color: var(--gold-primary);
}

.mobile-menu-btn span {
    width: 20px;
    height: 1.5px;
    background: var(--gold-light);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   7. HERO / PAGE HERO
======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 50px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(184, 134, 11, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 32px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(48px, 6vw, 80px);
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 400;
}

.hero-title .gold {
    color: var(--gold-light);
    font-style: italic;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    margin-bottom: 60px;
    justify-content: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.hero-visual {
    position: relative;
}

.about-hero {
    padding-top: 0;
    margin-top: 25px;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    color: var(--gold-light);
    margin-bottom: 4px;
    white-space: nowrap;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Internal page hero / intro */

.page-intro {
    padding-top: 25px;
    padding-bottom: 0px;
}

.page-intro .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}

.page-intro .section-desc,
.page-intro .section-content {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero {
    padding: 40px 0 20px;
}

.page-hero .section-label {
    margin-bottom: 8px;
}

.page-hero h1 {
    margin-bottom: 12px;
}

.page-hero .page-intro {
    margin-bottom: 0;
}

/* Page-specific hero adjustments */

.books-page .hero {
    min-height: auto;
    align-items: flex-start;
    padding: 0 0 80px;
}

.books-page .section-header {
    margin-top: 0;
}

.books-page .books-hero {
    padding-top: 0;
}

/* ========================================
   8. FEATURE / PRICE CARD SYSTEM
======================================== */

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    position: relative;
    margin: 0 auto;
    width: 100%;
}

.price-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.price-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.price-live {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.price-live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.price-main {
    margin-bottom: 32px;
}

.price-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.price-value .currency {
    font-size: 32px;
    color: var(--gold-light);
    vertical-align: top;
}

.price-change {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(74, 124, 89, 0.15);
    color: var(--success);
    font-size: 14px;
    font-weight: 500;
}

.price-change.down {
    background: rgba(139, 58, 58, 0.15);
    color: var(--danger);
}

.price-metals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.metal-item {
    padding: 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.metal-item:hover {
    border-color: var(--gold-primary);
}

.metal-name {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.metal-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--text-primary);
}

.metal-change {
    font-size: 12px;
    color: var(--success);
    margin-top: 4px;
}

.metal-change.down {
    color: var(--danger);
}

/* ========================================
   9. HOMEPAGE / GENERAL SECTIONS
======================================== */

/* Services */

.services {
    background: var(--bg-card);
    position: relative;
    padding-bottom: 0;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    padding: 48px 32px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-dark);
    background: var(--bg-card-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-dark);
    color: var(--gold-light);
    font-size: 24px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--gold-primary);
    color: var(--bg-dark);
    border-color: var(--gold-primary);
}

.service-title {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Trust */

.trust {
    background: var(--bg-card);
    padding: 80px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    align-items: center;
}

.trust-item {
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.trust-item:hover {
    opacity: 1;
}

.trust-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* CTA */

.cta {
    position: relative;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.1) 0%, transparent 50%);
}

.cta-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(36px, 4vw, 56px);
    color: var(--text-primary);
    margin-bottom: 24px;
}

.cta-title .gold {
    color: var(--gold-light);
}

.cta-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.purpose-section {
    padding-top: 32px;
}

.feature-item h3 {
    margin-bottom: 12px;
    font-weight: 600;
    padding: 20px;
}

.feature-item p {
    margin-bottom: 0;
}

/* ========================================
   10. CONTACT
======================================== */

.contact {
    background: var(--bg-card);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-info h3 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.contact-info p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-details li:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--gold-light);
    font-size: 16px;
    flex-shrink: 0;
}

.contact-text {
    padding-top: 4px;
}

.contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 16px;
    color: var(--text-primary);
}

.contact-form-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 48px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group:last-of-type {
    margin-bottom: 32px;
}

.form-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Libre Franklin', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: var(--bg-card-hover);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A69F94' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    width: 100%;
}

#form-success,
#form-error {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

#form-success {
    background-color: rgba(74, 124, 89, 0.2);
    border: 1px solid var(--success);
    color: #a8d5ba;
}

#form-error {
    background-color: rgba(139, 58, 58, 0.2);
    border: 1px solid var(--danger);
    color: #f2a7a7;
}

#contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status-success,
.form-status-error {
    max-width: 650px;
    margin: 24px auto 0;
    padding: 14px 18px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.95rem;
}

.form-status-success {
    border: 1px solid rgba(201, 169, 110, 0.45);
    background: rgba(201, 169, 110, 0.08);
}

.form-status-error {
    border: 1px solid rgba(180, 80, 80, 0.45);
    background: rgba(180, 80, 80, 0.08);
}

.form-field-error {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
}

.captcha-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.h-captcha {
    text-align: center;
}

/* Contact page overrides */

.contact-page .contact-form-wrap {
    max-width: 850px;
    margin: 0 auto;
}

.contact-page .price-card {
    width: 100%;
}

.contact-page .contact-form {
    max-width: 650px;
    margin: 30px auto 0;
}

/* ========================================
   11. BOOKS / FEATURED BOOK / SHARED CARDS
======================================== */

.book-feature-content.centered {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.book-title {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.book-title.gold {
    color: var(--gold-primary);
}

.book-subtitle {
    margin-bottom: 20px;
    opacity: 0.85;
}

.book-description {
    margin-top: 20px;
}

.book-description p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.book-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.book-actions .btn {
    width: 100%;
    max-width: 260px;
}

.book-label {
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.book-status {
    margin-bottom: 16px;
    opacity: 0.8;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.book-desc {
    line-height: 1.6;
    margin-bottom: 18px;
}

.books-grid {
    gap: 24px;
}

.book-card {
    padding: 28px;
}

.book-card .book-title {
    margin-bottom: 10px;
}

.foundation-grid .book-card {
    min-height: 100%;
}

.books-reader .section-title,
.books-cta .section-title {
    margin-bottom: 16px;
}

.books-reader p,
.books-cta p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.featured-book {
    padding-top: 24px;
    padding-bottom: 40px;
}

.featured-book-grid {
    align-items: center;
}

.book-cover-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.book-cover {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.library-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px auto 0;
    width: 100%;
    max-width: 1000px;
    justify-content: center;
}

/* ========================================
   12. ABOUT / THANK YOU / SPECIAL PAGE OVERRIDES
======================================== */

.about-approach .hero-visual,
.about-approach .hero-grid,
.about-approach .hero-visual {
    display: block;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.about-approach .price-card,
.thank-you-page .price-card {
    width: 100%;
}

.about-approach .approach-card-wrap,
.thank-you-page .approach-card-wrap {
    max-width: 850px;
    margin: 0 auto;
}

.about-approach .price-metals,
.thank-you-page .price-metals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ========================================
   13. MODAL
======================================== */

.sample-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 9998;
}

.sample-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(680px, calc(100% - 32px));
    transform: translate(-50%, -50%) scale(0.96);
    background: var(--bg-dark, #111);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 10px;
    padding: 32px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 9999;
}

.sample-modal.is-open,
.sample-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.sample-modal.is-open {
    transform: translate(-50%, -50%) scale(1);
}

.sample-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.sample-modal-content {
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
}

.sample-modal-intro {
    margin: 14px 0 24px;
    opacity: 0.85;
}

.sample-outline {
    text-align: left;
}

.sample-outline p {
    margin-bottom: 14px;
    line-height: 1.6;
}

/* ========================================
   14. FOOTER
======================================== */

.footer {
    background: var(--bg-dark);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-col {
    align-content: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 360px;
}

.footer-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 8px;
}

.footer-links a.disabled {
    pointer-events: none;
    color: var(--text-muted);
}

.footer-tag {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    margin-left: 8px;
    border-radius: 4px;
    vertical-align: middle;
}

.footer-tag.available {
    background: rgba(74, 124, 89, 0.1);
    color: var(--success);
    border: 1px solid rgba(74, 124, 89, 0.2);
}

.footer-tag.upcoming {
    background: rgba(166, 159, 148, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-copy {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--gold-primary);
    color: var(--gold-light);
    background: rgba(184, 134, 11, 0.1);
}

/* Footer methodology cards */

.footer-methodologies {
    grid-column: span 3;
}

.footer-methodologies .footer-title {
    text-align: center;
}

.footer-method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 14px;
    justify-content: center;
    margin-top: 8px;
}

.footer-method-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    min-height: 110px;
}

.footer-method-card:hover {
    border-color: var(--gold-primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.footer-method-kicker {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.footer-method-title {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-method-text {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ========================================
   15. BLOG
======================================== */

.blog-page-section {
    padding: 16px 0 80px;
}

.blog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.blog-toolbar-left h2 {
    margin: 0 0 8px;
    color: var(--text-primary);
}

.blog-toolbar-left p {
    margin: 0;
    color: var(--text-secondary);
}

.blog-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid rgba(212, 168, 75, 0.35);
    background: transparent;
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
    background: rgba(212, 168, 75, 0.08);
}

.filter-btn.is-active {
    background: var(--gold-primary);
    color: var(--bg-dark);
    border-color: var(--gold-primary);
    font-weight: 600;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-card {
    height: 100%;
    cursor: pointer;
}

.blog-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-card);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.blog-card:hover .blog-card-inner {
    transform: translateY(-4px);
    border-color: var(--gold-dark);
    background: var(--bg-card-hover);
}

.blog-date {
    margin: 0 0 10px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.blog-card-title {
    margin: 0 0 14px;
    font-size: 1.6rem;
    line-height: 1.25;
    font-weight: 500;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

/*.blog-card-title a:hover {
    color: var(--gold-light);
}*/

.blog-card a:hover {
    color: var(--gold-light);
}

.blog-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.blog-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(184, 134, 11, 0.12);
    color: var(--gold-light);
    border: 1px solid rgba(212, 168, 75, 0.25);
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-card-excerpt {
    margin: 0 0 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.blog-read-more {
    margin-top: auto;
    font-weight: 700;
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-read-more:hover {
    color: var(--text-primary);
}

.blog-no-results {
    margin-top: 24px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ========================================
   16. RESPONSIVE
======================================== */

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .nav-links {
        gap: 20px;
    }

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

    .logo {
        font-size: 1.4rem;
    }
}

@media (max-width: 992px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin: 0 auto;
        max-width: 600px;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 980px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .section.page-intro {
        padding-top: 100px;
        padding-bottom: 24px;
    }

    .section:not(.page-intro) {
        padding: 20px 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .stat-value {
        font-size: 28px;
        margin-bottom: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-copy {
        margin-right: 0;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .about-approach .price-metals,
    .thank-you-page .price-metals {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .about-approach .metal-item,
    .thank-you-page .metal-item {
        max-width: 400px;
        width: 100%;
    }

    .contact-page .contact-form {
        max-width: 100%;
    }

    .section-header {
        margin-bottom: 16px !important;
    }

    .section-content {
        margin-bottom: 0 !important;
    }

    .section-content p:last-child {
        margin-bottom: 0 !important;
    }

    .section h2,
    .section-title {
        margin-bottom: 12px !important;
    }

    .section p {
        margin-bottom: 12px !important;
    }

    .section+.section {
        margin-top: 0 !important;
    }

    .section-header.centered,
    .centered-content {
        max-width: 100%;
    }

    .book-card {
        padding: 22px;
    }

    .book-actions {
        gap: 12px;
    }

    .footer-method-grid {
        grid-template-columns: 1fr;
    }

    .footer-method-card {
        min-height: auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .section.page-intro {
        padding-top: 40px;
    }

    .page-hero {
        padding: 30px 0 10px;
    }

    .blog-page-section {
        padding-top: 10px;
    }
}

@media (max-width: 640px) {
    .blog-page-section {
        padding: 24px 0 64px;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-inner {
        padding: 20px;
    }

    .filter-btn {
        padding: 9px 14px;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-image-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 8px;
    }

    .why-thumb:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .why-thumb:nth-child(2),
    .why-thumb:nth-child(3),
    .why-thumb:nth-child(4),
    .why-thumb:nth-child(5) {
        aspect-ratio: 1;
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-content {
        text-align: center;
    }

    .feature-visual {
        order: -1;
    }

    .book-cover-frame {
        max-width: 220px;
        width: 100%;
        padding: 8px;
        margin: 0 auto;
    }

    .book-cover {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .book-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .book-actions .btn {
        width: 100%;
        max-width: 240px;
    }

    .featured-book {
        padding-top: 20px;
        padding-bottom: 32px;
    }

    .feature-content .section-title,
    .feature-content .book-title {
        margin-bottom: 12px;
    }

    .book-description p {
        margin-bottom: 14px;
    }

    .footer-method-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 600px) and (max-width: 1099px) {
    .grid-2x2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1100px) {
    .grid-2x2 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}