@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Cinzel:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
}

/* ================================
   Variables (Red/Gold Theme)
   ================================ */
:root {
    --primary-color: #C68E17;
    /* Gold */
    --primary-dark: #8A6210;
    --secondary-color: #5D101D;
    /* Deep Wine Red */
    --accent-red: #3A0912;
    --bg-dark: #24050A;
    /* Darkest Red/Black */
    --white: #fff;
    --text-color: #E0E0E0;
    --text-muted: #B0B0B0;
    --gold-text: #E5C17C;
}

/* ================================
   Hero Section
   ================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/homepageheroimage.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 2px solid #C68E17;
    /* Move the gold separator here */
}

/* ================================
   Offerings Showcase Section
   ================================ */
.offerings-showcase {
    background-color: #24050A;
    /* Deep Dark Burgundy base fallback */
    background-image: linear-gradient(rgba(36, 5, 10, 0.8), rgba(36, 5, 10, 0.8)), url('../images/Secondsectionbackground.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect for that premium RPG feel */
    padding: 100px 0;
    position: relative;
}

.section-heading {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: #F5E6C4;
    /* Ivory Gold */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    position: relative;
    font-weight: 700;
}

/* Decorative lines for heading */
.section-heading::after {
    content: '';
    display: block;
    width: 200px;
    height: 3px;
    background: linear-gradient(to right, transparent, #C68E17, transparent);
    margin: 15px auto 0;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Ornate Panels - Medieval Frame Style */
.offering-panel {
    background: #1a0202;
    /* Recessed dark background */
    padding: 0;
    border-radius: 0;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.9);
    /* Inner depth to look 'behind' the frame */
    min-height: 400px;
    border: none;
    /* Remove previous border */
    overflow: visible;
    /* Allow the frame to go outside the panel boundaries */
    margin: 30px;
    /* Margin to prevent overlap between adjacent frames */
}

/* The "Real" Frame Overlay - Pulled tighter to content */
.offering-panel::after {
    content: '';
    position: absolute;
    /* Positioned tightly around the panel */
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;

    border: 50px solid transparent;
    /* The thickness of the visual SVG frame */
    border-image-source: url('../images/border.svg');
    /* Sliced deeper (350) to ignore the large transparent gutters in the SVG */
    border-image-slice: 350;
    border-image-repeat: round;

    pointer-events: none;
    /* Click through to content */
    z-index: 100;
    /* Stays on top of content */
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.8));
}

.offering-panel:hover::after {
    filter: drop-shadow(0 10px 20px rgba(198, 142, 23, 0.4)) brightness(1.1);
}

/* Hover effects removed */
/* .offering-panel:hover { ... } */

/* Image Frame */
.offering-image-frame {
    position: relative;
    width: 100%;
    height: 250px;
    margin: 0;
    /* No margin */
    border-bottom: 2px solid #C68E17;
    /* Separator between image and text */
    overflow: hidden;
    background: #000;
}

.offering-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Remove inline gap */
    opacity: 0.9;
}

/* Image zoom removed */
/* .offering-panel:hover .offering-image-frame img { ... } */

.panel-content {
    text-align: center;
    padding: 25px 20px;
    /* Padding for text area only */
    background: linear-gradient(to bottom, #2a0505, #1a0202);
}

.offering-title {
    font-size: 20px;
    color: #C68E17;
    /* Gold */
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.offering-desc {
    font-size: 16px;
    color: #E0E0E0;
    font-family: 'Josefin Sans', sans-serif;
    font-style: italic;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .offerings-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ================================
   Base Styles
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

body {
    font-family: 'Josefin Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    /* Anchor for absolute elements */
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--gold-text);
    font-family: 'Cinzel', serif;
    /* Use Cinzel for a more "fantasy book" title vibe */
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    color: var(--gold-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   Header - Medieval Plaque Style
   ================================ */
.site-header {
    background: linear-gradient(to bottom, #5D101D, #2a0505);
    position: fixed;
    top: 5px;
    /* Slight offset for the frame to breathe */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 110;
    padding: 10px 30px;
    border: none;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.8);
    overflow: visible;
}

.site-header::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 35px solid transparent;
    border-image-source: url('../images/border.svg');
    border-image-slice: 350;
    border-image-repeat: round;
    pointer-events: none;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.7));
}

/* Ornate corner accents REMOVED as requested */
/* .site-header::before, .site-header::after { content: none; } */

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    /* Reset constraint as header itself is constrained */
    padding: 0;
    margin: 0;
}

.header-left {
    display: flex;
    gap: 25px;
    flex: 1;
    /* Balance layout */
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    font-family: 'Cinzel', serif;
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--gold-text);
    text-shadow: 0 0 8px rgba(198, 142, 23, 0.6);
}

.mobile-nav-link {
    display: none;
}

.site-logo {
    flex: 2;
    /* Logo takes center stage */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gold-text);
    text-decoration: none;
    position: relative;
    left: auto;
    transform: none;
}

.site-logo:hover {
    color: #F5E6C4;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to bottom, #F5E6C4, #C68E17);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtext {
    font-size: 14px;
    color: #ffffff;
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: 1px;
    margin-top: 0;
    /* Reduced from 5px */
    font-style: italic;
    opacity: 0.8;
}

/* ================================
   Hero Section
   ================================ */
/* ================================
   Messenger Dropdown
   ================================ */
.messenger-container {
    position: relative;
    margin-right: 20px;
}
.messenger-icon {
    font-size: 20px;
    color: #F5E6C4;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(198, 142, 23, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.messenger-icon:hover {
    background: rgba(198, 142, 23, 0.2);
    color: #fff;
}
.messenger-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background: #ff4d4d;
    border-radius: 50%;
    border: 2px solid #2a0505;
    display: none;
}
.messenger-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 350px;
    background: #1a0202;
    border: 1px solid #C68E17;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 1000;
    display: none;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .messenger-dropdown {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: 70vh;
    }
}

.messenger-dropdown.active {
    display: block;
}
.messenger-header {
    padding: 15px;
    border-bottom: 1px solid rgba(198, 142, 23, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.messenger-header h3 {
    margin: 0;
    font-size: 16px;
    color: #C68E17;
}
.messenger-list {
    max-height: 400px;
    overflow-y: auto;
}
.message-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: background 0.3s;
}
.message-item:hover {
    background: rgba(198, 142, 23, 0.05);
}
.message-item.unread {
    background: rgba(198, 142, 23, 0.08);
}
.message-avatar {
    width: 40px;
    height: 40px;
    background: #5D101D;
    color: #C68E17;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Cinzel', serif;
    font-weight: bold;
}
.message-info {
    flex: 1;
    overflow: hidden;
}
.message-sender {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: #F5E6C4;
    margin-bottom: 4px;
    display: block;
}
.message-snippet {
    font-size: 13px;
    color: #B0B0B0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.message-time {
    font-size: 11px;
    color: #8A6210;
    margin-top: 5px;
    display: block;
}
.messenger-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid rgba(198, 142, 23, 0.2);
    background: rgba(198, 142, 23, 0.05);
}
.messenger-footer a {
    font-size: 13px;
    color: #C68E17;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal for full message */
.message-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.message-modal-content {
    background: #1a0202;
    border: 2px solid #C68E17;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

@media (max-width: 600px) {
    .message-modal-content {
        padding: 30px 20px 20px;
    }
}
.message-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #C68E17;
    cursor: pointer;
}
.message-full-content {
    color: #F5E6C4;
    line-height: 1.8;
    white-space: pre-wrap;
}
.message-attachment {
    margin-top: 20px;
    border-top: 1px solid rgba(198, 142, 23, 0.2);
    padding-top: 20px;
}
.message-attachment img, .message-attachment video {
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid #C68E17;
}

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: url('../images/homepageheroimage.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
}

/* Dark gradient overlay REMOVED */
/* .hero-overlay { display: none; } */

/* 2-Column Layout Container */
.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two equal columns */
    width: 100%;
    max-width: 100%;
    /* Override default 1200px limit */
    padding: 0 5%;
    /* Add side padding for breathing room */
    height: 100%;
    align-items: center;
    /* Center content vertically */
}

.hero-content {
    grid-column: 1;
    /* Place in first (left) column */
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center items horizontally within the left column */
    text-align: center;
    /* Center text */
    margin-top: 60px;
    /* Header offset */
    margin-left: 0;
    /* Reset previous margin */
}

.hero-title {
    font-size: 32px;
    line-height: 1.4;
    margin-bottom: 20px;
    font-family: 'Josefin Sans', sans-serif;
    /* Keep poetic text readable */
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-title span.highlight {
    color: var(--gold-text);
    font-weight: 400;
    font-style: normal;
}

.hero-subtitle {
    font-size: 23px;
    color: var(--text-color);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 500px;
}

/* ================================
   Buttons - Medieval Gothic Style
   ================================ */
.btn-gold {
    display: inline-block;
    position: relative;
    padding: 15px 40px;
    background: linear-gradient(to bottom, #5D101D, #3A0912);
    /* Deep burgundy texture feel */
    border: 4px double #C68E17;
    /* Antique gold double border */
    color: #F5E6C4;
    /* Ivory Gold */
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow:
        0 0 0 2px #24050A,
        /* Dark outline outside gold */
        0 10px 20px rgba(0, 0, 0, 0.5),
        /* Drop shadow */
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    /* Inner depth */
    min-width: 250px;
    text-align: center;
    border-radius: 100px;
}

/* Ornate decorative effect via hover */
.btn-gold:hover {
    background: linear-gradient(to bottom, #7a1526, #4d0c18);
    color: #fff;
    box-shadow:
        0 0 0 2px #24050A,
        0 0 15px rgba(198, 142, 23, 0.4),
        /* Gold glow */
        inset 0 0 10px rgba(198, 142, 23, 0.2);
    transform: translateY(-2px);
    text-shadow: 0 0 5px rgba(198, 142, 23, 0.8);
}

/* ================================
   Order Section - Compact Integration
   ================================ */
.compact-order-container {
    margin-top: 80px;
    /* Space from the 3 cards grid */
    display: flex;
    justify-content: center;
}

.order-content-wrapper {
    width: 100%;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contract-frame {
    background: linear-gradient(135deg, #3A0912 0%, #24050A 100%);
    border: none;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 40px auto 20px;
    /* Centered with space for the frame */
    overflow: visible;
}

/* The Gold Frame for the Form */
.contract-frame::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 40px solid transparent;
    border-image-source: url('../images/border.svg');
    border-image-slice: 350;
    border-image-repeat: round;
    pointer-events: none;
    z-index: 100;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
}

.contract-intro {
    text-align: center;
    font-size: 18px;
    font-family: 'Josefin Sans', sans-serif;
    color: #F5E6C4;
    line-height: 1.8;
    margin: 0 auto 50px;
    font-style: italic;
    max-width: 650px;
    /* Readability constraint */
}

/* Offerings Grid Frame - Optional: Grouping the cards into one big frame */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    padding: 20px;
    overflow: visible;
}

.small-heading {
    font-size: 24px !important;
    margin-bottom: 20px !important;
}

.compact-price {
    margin-bottom: 20px;
}

.base-price {
    background: #5D101D;
    border: 1px solid #C68E17;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-label {
    font-family: 'Cinzel', serif;
    color: #ffffff;
    font-size: 14px;
}

.price-amount {
    font-family: 'Cinzel', serif;
    color: #C68E17;
    font-size: 22px;
    font-weight: 700;
}

.compact-addon {
    padding: 15px !important;
    gap: 15px !important;
}

.addon-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(198, 142, 23, 0.3);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.addon-card:hover {
    background: rgba(198, 142, 23, 0.1);
    border-color: #C68E17;
}

.addon-card input[type="checkbox"] {
    display: none;
}

.addon-custom-check {
    width: 24px;
    height: 24px;
    border: 2px solid #C68E17;
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
}

.addon-card input[type="checkbox"]:checked+.addon-custom-check::after {
    content: '♦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #C68E17;
    font-size: 18px;
}

.addon-title {
    display: block;
    font-family: 'Cinzel', serif;
    color: #C68E17;
    font-size: 16px;
    margin-bottom: 4px;
}

.addon-desc {
    font-size: 13px;
    color: #ffffff;
    line-height: 1.4;
    opacity: 0.8;
}

.compact-total {
    font-size: 18px !important;
    padding: 15px !important;
    margin-bottom: 30px !important;
}

.total-display {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: #F5E6C4;
    padding: 20px;
    border-top: 1px solid rgba(198, 142, 23, 0.2);
    border-bottom: 1px solid rgba(198, 142, 23, 0.2);
    margin-bottom: 40px;
}

.total-display span {
    color: #C68E17;
    font-size: 28px;
    margin-left: 10px;
    font-weight: 700;
}

.compact-grid {
    gap: 20px !important;
    margin-bottom: 20px !important;
}

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

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

.form-group label {
    display: block;
    font-family: 'Cinzel', serif;
    color: #C68E17;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #5D101D;
    padding: 12px;
    color: #ffffff;
    font-family: 'Josefin Sans', sans-serif;
    border-radius: 2px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #C68E17;
    outline: none;
    background: rgba(0, 0, 0, 0.6);
}

.stripe-card-container {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border: 1px solid #5D101D;
}

.compact-footer {
    margin-top: 30px !important;
}

.btn-gold.w-full {
    width: 100%;
}

.hidden {
    display: none;
}

.address-sub-grid {
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 15px !important;
    margin-bottom: 0 !important;
}

@media (max-width: 500px) {
    .address-sub-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive adjustment */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contract-frame {
        padding: 30px 20px;
    }
}

.stripe-multi-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stripe-field-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #5D101D;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.3s, background 0.3s;
}

.stripe-field-container:focus-within {
    border-color: #C68E17;
    background: rgba(0, 0, 0, 0.6);
}

.field-icon {
    font-size: 18px;
    opacity: 0.7;
    filter: sepia(1) saturate(5) hue-rotate(-50deg);
    /* Make emoji slightly gold-ish */
}

.stripe-input {
    flex: 1;
    min-height: 24px;
}

#card-errors {
    color: #ff4d4d;
    font-size: 13px;
    margin-top: 10px;
    font-family: 'Josefin Sans', sans-serif;
}

@media (max-width: 600px) {
    .stripe-field-container {
        padding: 10px;
    }
}

.secure-notice {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    font-family: 'Josefin Sans', sans-serif;
    color: #b0b0b0;
    /* Desktop: Flex for alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.8;
    line-height: 1.5;
    /* Good reading height */
}

/* Mobile: Inline flow to make icon part of the text */
@media (max-width: 600px) {
    .secure-notice {
        display: block;
        /* Allows inline spans to flow */
    }
}



.secure-icon {
    font-size: 14px;
    filter: sepia(1) saturate(5) hue-rotate(-50deg);
}

/* ================================
   Simple & Clean Footer
   ================================ */
.site-footer {
    background: linear-gradient(to bottom, #5D101D, #2a0505);
    padding: 12px 20px;
    text-align: center;
    border: none;
    position: relative;
    overflow: visible;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 30px solid transparent;
    border-image-source: url('../images/border.svg');
    border-image-slice: 350;
    border-image-repeat: round;
    pointer-events: none;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.7));
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-logo {
    display: inline-block;
    font-family: 'Cinzel', serif;
    color: #C68E17;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 700;
}

.footer-tagline {
    font-family: 'Josefin Sans', sans-serif;
    color: #b0b0b0;
    font-size: 13px;
    font-style: italic;
    margin: 0;
}

.footer-divider {
    display: none;
    /* Removed for compactness */
}

.footer-copyright {
    font-family: 'Josefin Sans', sans-serif;
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

/* Tone Selection Styling */
.tone-selection {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.tone-option {
    flex: 1;
    cursor: pointer;
}

.tone-option input {
    display: none;
}

.tone-box {
    display: block;
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #5D101D;
    color: #F5E6C4;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tone-option input:checked+.tone-box {
    background: #5D101D;
    border-color: #C68E17;
    color: #ffffff;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.full-width-group {
    grid-column: 1 / -1;
}

/* Footer Links Styling */
.footer-links {
    margin-bottom: 0;
}

.footer-links a {
    color: #C68E17;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    transition: color 0.3s;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-link-sep {
    color: #C68E17;
    margin: 0 10px;
    opacity: 0.5;
}

/* ================================
   Contact Page Specific
   ================================ */
.contact-page-wrapper {
    min-height: 100vh;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 140px;
    /* Space for the fixed header plaque */
}

.form-alert {
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Josefin Sans', sans-serif;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(198, 142, 23, 0.1);
    border-color: #C68E17;
    color: #F5E6C4;
}

.alert-error {
    background: rgba(93, 16, 29, 0.4);
    border-color: #5D101D;
    color: #ffffff;
}

/* ================================
   Custom Scrollbar - Gold & Burgundy
   ================================ */
/* Webkit Browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #1a0202;
    /* Deepest Burgundy/Black */
    border-left: 1px solid rgba(198, 142, 23, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8A6210, #C68E17, #8A6210);
    border: 2px solid #1a0202;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #C68E17, #F5E6C4, #C68E17);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #C68E17 #1a0202;
}

/* ================================
   Mobile Optimization (The Max)
   ================================ */

@media (max-width: 1024px) {
    .site-header {
        width: 95%;
        padding: 10px 15px;
    }

    .logo-text {
        font-size: 24px;
    }

    .logo-subtext {
        font-size: 12px;
    }
}

@media (max-width: 768px) {

    /* Header Refinements */
    .site-header {
        width: 100%;
        top: 0;
        left: 0;
        /* Reset left from 50% */
        transform: none;
        /* Remove centering transform */
        margin: 0 !important;
        margin-top: 0 !important;
        padding: 8px 0;
        /* Reduce vertical padding */
        border-radius: 0;
        position: fixed;
        /* Enforce fixed */
        z-index: 1000;
        /* Ensure it stays on top */
    }

    .site-header .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 5px 15px;
    }

    .header-left {
        width: 100%;
        gap: 12px;
        justify-content: center;
        order: 3;
        margin-top: 10px;
        border-top: 1px solid rgba(198, 142, 23, 0.1);
        padding-top: 10px;
    }

    .site-logo {
        order: 1;
        flex: 1;
        align-items: flex-start;
        text-align: left;
    }

    .header-right {
        order: 2;
        display: flex !important;
        justify-content: flex-end;
        flex: 0;
        margin-top: 0;
    }

    .header-right > .nav-link, 
    .header-right > .btn-gold {
        display: none !important;
    }

    .mobile-nav-link {
        display: inline-block !important;
        font-size: 11px !important;
    }

    .nav-link {
        font-size: 11px !important;
        letter-spacing: 1px !important;
    }

    .messenger-container {
        margin-right: 0;
    }

    .logo-subtext {
        display: none;
        /* Hide long subtext on mobile */
    }

    .site-header::after {
        top: 0;
        left: -10px;
        right: -10px;
        bottom: -5px;
        /* Extend down for the filigree */
        border-width: 0 0 35px 0;
        /* ONLY BOTTOM BORDER */
        border-image-width: 0 0 35px 0;
    }

    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 140px 0 60px;
        background-attachment: scroll;
        /* Performance on mobile */
    }

    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        grid-column: 1;
        margin-top: 0;
        padding: 0 15px;
        /* Minimal side padding */
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.6;
        /* More breathing room between lines */
        margin-bottom: 20px;
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
        /* Stronger shadow for contrast */
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.8;
        /* Elegant vertical spacing */
        margin-bottom: 40px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
        opacity: 0.95;
    }

    .hero-title br,
    .hero-subtitle br {
        display: none;
        /* Let text flow naturally on mobile */
    }

    .offerings-showcase {
        padding: 60px 0;
        background-attachment: scroll;
    }

    .offerings-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        /* More space for frames */
        padding: 20px 10px;
    }

    /* Order Form */
    .contract-frame {
        padding: 30px 20px;
    }

    .contract-frame::after {
        border-width: 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tone-selection {
        flex-direction: column;
        gap: 10px;
    }

    .tone-box {
        padding: 15px;
    }

    /* Footer */
    .site-footer {
        padding: 30px 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-links {
        order: 2;
    }

    .footer-copyright {
        order: 3;
    }

    /* Contact Page */
    .contact-header {
        padding-top: 100px;
    }

    .section-heading {
        font-size: 24px;
    }
}

/* ================================
   Legal Content Pages
   ================================ */
.legal-content {
    padding: 150px 20px 100px;
    max-width: 800px;
    margin: 0 auto;
    color: #F5E6C4;
    line-height: 1.8;
}

.legal-content h1 {
    font-family: 'Cinzel', serif;
    color: #C68E17;
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.legal-content h2 {
    font-family: 'Cinzel', serif;
    color: #C68E17;
    margin-top: 40px;
    font-size: 24px;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #C68E17;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    transition: color 0.3s;
}

.back-link:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 120px 20px 60px;
    }

    .legal-content h1 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .legal-content h2 {
        font-size: 20px;
    }
}


/* Extreme Mobile Refinements (< 450px) */
@media (max-width: 450px) {
    .site-header {
        padding: 8px 10px;
    }

    .logo-text {
        font-size: 20px;
        letter-spacing: 1.5px;
    }

    .logo-subtext {
        font-size: 11px;
    }

    .hero-title {
        font-size: 22px;
    }

    .section-heading {
        font-size: 20px;
    }

    .offering-title {
        font-size: 18px;
    }

    .compact-addon {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .addon-custom-check {
        margin-bottom: 5px;
    }

    .footer-logo {
        font-size: 14px;
        letter-spacing: 1px;
    }
}

/* Fix for overlapping frames on small height screens */
@media (max-height: 600px) {
    .hero-section {
        min-height: 600px;
    }
}

/* Ensure the contract frame doesn't get squashed too much */
.contract-frame {
    box-sizing: border-box;
}

/* Scrollbar weight on mobile */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
    }
}