/* ═══════════════════════════════════════════════════════════════
   THE ROYAL CRUMB — STYLES
   Fresh build from provided assets
═══════════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
    --burgundy-deep:   #3a0a14;
    --burgundy:        #5c1a28;
    --burgundy-mid:    #7a2035;
    --burgundy-light:  #9e3a4f;
    --gold-rich:       #c9a227;
    --gold-bright:     #d4ac2b;
    --gold-light:      #e8c84a;
    --gold-pale:       #f0d98a;
    --gold-dim:        #9e7c18;
    --cream:           #f5ede0;
    --cream-light:     #faf5ec;
    --parchment:       #ede0c4;
    --ink:             #1a0a0a;
    --ink-soft:        #2d1010;

    --font-display:    'Playfair Display', 'Georgia', serif;
    --font-body:       'Cormorant Garamond', 'Georgia', serif;
    --font-caps:       'Cinzel', 'Trajan Pro', serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--burgundy-deep);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════ */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(30, 5, 10, 0.95) 0%, rgba(30, 5, 10, 0.7) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

#main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 80px;
}

.nav-link {
    font-family: var(--font-caps);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-pale);
    padding: 0 28px;
    transition: color 0.25s ease;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--gold-bright);
}

.nav-logo-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
}

.nav-logo-img {
    height: 58px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.4));
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--gold-pale);
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(30, 5, 10, 0.98);
    padding: 16px 0 24px;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.mobile-nav-link {
    font-family: var(--font-caps);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-pale);
    padding: 14px 32px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--gold-bright);
    background: rgba(201, 162, 39, 0.05);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════ */
#hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ── Background Photo ── */
.hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* ── Gold Frame Overlay ── */
/* Content and frame are both absolutely positioned over the natural-size photo */
.hero-gold-frame {
    display: none; /* hidden for now — remove this line to restore */
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    pointer-events: none;
    /* give some breathing room from viewport edges */
    padding: 24px;
    padding-top: 90px; /* account for nav */
}

.gold-frame-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 0.88;
    filter: drop-shadow(0 0 12px rgba(201, 162, 39, 0.3));
}

/* ── Hero Content ── */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    gap: 28px;
}

.hero-logo-img {
    width: auto;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8))
            drop-shadow(0 0 40px rgba(201, 162, 39, 0.3));
}

.hero-tagline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tagline-main {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 400;
    color: var(--gold-pale);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7), 0 0 40px rgba(201, 162, 39, 0.2);
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.tagline-sub {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-style: italic;
    color: var(--cream);
    opacity: 0.88;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.04em;
    line-height: 1.7;
}

/* ── CTA Button ── */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 44px;
    background: transparent;
    border: 1px solid var(--gold-rich);
    color: var(--gold-pale);
    font-family: var(--font-caps);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-btn:hover {
    background: rgba(201, 162, 39, 0.1);
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    box-shadow: 0 0 24px rgba(201, 162, 39, 0.2), inset 0 0 24px rgba(201, 162, 39, 0.05);
}

.cta-btn:hover::before {
    opacity: 1;
}

.cta-secondary {
    margin-top: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   RIBBON TRANSITION
═══════════════════════════════════════════════════════════════ */
.ribbon-transition { display: none; } /* old combined image — replaced by parchment section */
.ribbon-img { display: none; }

/* ── Cards overlaid on the parchment zone (legacy — kept for reference) ── */
.ribbon-cards-overlay { display: none; }

/* ═══════════════════════════════════════════════════════════════
   RIBBON IMAGES (top & bottom) — both absolute inside .parchment-section
═══════════════════════════════════════════════════════════════ */
/* Top ribbon: negative top pulls it up over the hero/parchment seam */
.ribbon-top-img {
    top: -80px;
    z-index: 50;
}

/* ═══════════════════════════════════════════════════════════════
   PARCHMENT CARDS SECTION
═══════════════════════════════════════════════════════════════ */
.parchment-section {
    position: relative;
    z-index: 2;
    background: url('images/use-these/parchment-section/parchment-bg.png') center / cover no-repeat;
    /* Top padding: ribbon is -75px, ribbon height ~75px, so cards start below it */
    padding: 120px 60px 160px;
    overflow: visible;
}

/* ── Bottom satin ribbon (wax seal) — overlaps parchment/delights seam ── */
.parchment-ribbon {
    position: absolute;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}
/* Bottom ribbon: anchored to the bottom edge of the parchment section,
   pulled down so it straddles the parchment/delights seam */
.ribbon-bottom-img {
    bottom: -65px;
    top: auto;
    z-index: 50;
}

/* ── Flower corner decorations ── */
.flower-corner {
    position: absolute;
    width: clamp(100px, 15vw, 220px);
    pointer-events: none;
    user-select: none;
}
.flower-tl { top: 50px;    left: 0;  }
.flower-tr { top: 50px;    right: 0; }
.flower-bl { bottom: 100px; left: 0;  }
.flower-br { bottom: 100px; right: 0; }

/* ── Cards container ── */
.parchment-inner {
    position: relative;
    z-index: 1; /* sits above the flower corners */
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 0;
}

.ribbon-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1100px;
}

/* ── Individual Nav Card ── */
.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    cursor: pointer;
    /* Entrance animation start state */
    opacity: 0;
    transform: translateY(22px);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Cards animate in when they enter viewport */
.nav-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
#nav-card-1.visible { transition-delay: 0ms; }
#nav-card-2.visible { transition-delay: 100ms; }
#nav-card-3.visible { transition-delay: 200ms; }
#nav-card-4.visible { transition-delay: 300ms; }

/* Hover: card lifts */
.nav-card:hover {
    transform: translateY(-7px);
}

/* ── Gold Border Frame ── */
.nav-card-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    /* Outer gold border */
    border: 1px solid rgba(180, 138, 18, 0.6);
    box-shadow:
        0 0 0 1px rgba(180, 138, 18, 0.18),
        0 12px 32px rgba(0, 0, 0, 0.22),
        0 4px 8px rgba(0, 0, 0, 0.14);
    transition: box-shadow 0.35s ease;
}

/* Inner gold line — decorative inset border */
.nav-card-frame::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(180, 138, 18, 0.35);
    z-index: 2;
    pointer-events: none;
    transition: border-color 0.35s ease;
}

.nav-card:hover .nav-card-frame {
    box-shadow:
        0 0 0 1px rgba(201, 162, 39, 0.35),
        0 20px 48px rgba(0, 0, 0, 0.28),
        0 8px 16px rgba(0, 0, 0, 0.18),
        0 0 20px rgba(180, 138, 18, 0.12);
}

.nav-card:hover .nav-card-frame::before {
    border-color: rgba(201, 162, 39, 0.55);
}

.nav-card-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.nav-card:hover .nav-card-frame img {
    transform: scale(1.04);
}

/* ── Card Label ── */
.nav-card-label {
    font-family: var(--font-caps);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6b4c10;
    margin: 0;
    transition: color 0.3s ease;
}

.nav-card:hover .nav-card-label {
    color: #9e7010;
}

/* ═══════════════════════════════════════════════════════════════
   INDULGENT DELIGHTS SECTION
═══════════════════════════════════════════════════════════════ */
#delights {
    background: linear-gradient(
        180deg,
        var(--burgundy-deep) 0%,
        #2a0810 30%,
        #1e050c 60%,
        var(--burgundy-deep) 100%
    );
    padding: 100px 0 100px;
    position: relative;
    z-index: 1;
}

/* subtle damask texture via pseudo-element */
#delights::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(90, 20, 40, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(90, 20, 40, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.delights-inner {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

/* ── Section Title ── */
.section-title {
    font-family: var(--font-caps);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-rich);
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.title-ornament {
    font-family: 'Georgia', serif;
    font-size: 1.6rem;
    color: var(--gold-dim);
    display: inline-block;
    line-height: 1;
}

.title-ornament.flip {
    transform: scaleX(-1);
}

/* ── Product Cards Grid ── */
.delights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    width: 100%;
}

/* ── Individual Card ── */
.delight-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
}

.card-frame {
    position: relative;
    background: var(--ink);
    overflow: hidden;
    /* Gold border frame effect */
    border: 1px solid rgba(201, 162, 39, 0.4);
    box-shadow:
        0 0 0 1px rgba(201, 162, 39, 0.12),
        inset 0 0 0 4px rgba(201, 162, 39, 0.08),
        0 24px 48px rgba(0, 0, 0, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.4);
    /* Slight inner inset for depth */
}

/* decorative inner gold line */
.card-frame::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(201, 162, 39, 0.22);
    z-index: 1;
    pointer-events: none;
}

.card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%; /* square aspect ratio */
    overflow: hidden;
}

.card-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.delight-card:hover .card-image-wrap img {
    transform: scale(1.04);
}

/* ── Card Info Below Image ── */
.card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.card-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--cream);
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.card-price {
    font-family: var(--font-caps);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: var(--gold-rich);
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   WAX SEAL DIVIDER
═══════════════════════════════════════════════════════════════ */
.wax-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 60px;
    background: var(--burgundy-deep);
}

.wax-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 162, 39, 0.4), transparent);
    max-width: 400px;
}

.wax-seal-img {
    width: 70px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    flex: 0 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
footer#contact {
    background: linear-gradient(180deg, var(--burgundy-deep) 0%, var(--ink) 100%);
    border-top: 1px solid rgba(201, 162, 39, 0.2);
    padding-top: 64px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
}

.footer-heading {
    font-family: var(--font-caps);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-rich);
    margin-bottom: 20px;
    font-weight: 400;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.92rem;
    padding: 11px 16px;
    outline: none;
    transition: border-color 0.25s ease;
}

.newsletter-form input::placeholder {
    color: rgba(245, 237, 224, 0.45);
    font-style: italic;
}

.newsletter-form input:focus {
    border-color: var(--gold-rich);
}

.newsletter-form button {
    background: transparent;
    border: 1px solid var(--gold-dim);
    color: var(--gold-pale);
    font-family: var(--font-caps);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 11px 24px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.newsletter-form button:hover {
    background: rgba(201, 162, 39, 0.1);
    border-color: var(--gold-rich);
    color: var(--gold-bright);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(245, 237, 224, 0.55);
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold-pale);
}

/* Center column – logo */
.footer-center-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    width: auto;
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(201, 162, 39, 0.3));
}

/* Social + contact */
.social-icons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: var(--gold-pale);
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.social-icon:hover {
    border-color: var(--gold-rich);
    color: var(--gold-bright);
    background: rgba(201, 162, 39, 0.08);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-info a {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: rgba(245, 237, 224, 0.6);
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.footer-contact-info a:hover {
    color: var(--gold-pale);
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(201, 162, 39, 0.12);
    padding: 24px 40px;
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(245, 237, 224, 0.35);
    letter-spacing: 0.06em;
}

.footer-bottom em {
    color: rgba(201, 162, 39, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .delights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .footer-center-col {
        order: -1;
        grid-column: 1 / -1;
    }

    #main-nav .nav-link {
        padding: 0 16px;
    }

    /* Nav cards: 2 columns on tablet */
    .ribbon-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Flower corners: reset to edges on tablet */
    .flower-tl { top: 0; }
    .flower-tr { top: 0; }
    .flower-bl { bottom: 0; }
    .flower-br { bottom: 0; }

    /* Ribbon adjustments for tablet */
    .ribbon-top-img {
        top: -60px;
    }
    .ribbon-bottom-img {
        bottom: -50px;
        top: auto;
    }
    .parchment-section {
        padding: 100px 40px 140px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Parchment cards: 2 columns on mobile */
    .ribbon-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .parchment-section {
        padding: 90px 20px 130px;
    }

    /* Flower corners: reset to edges on mobile */
    .flower-tl { top: 0; }
    .flower-tr { top: 0; }
    .flower-bl { bottom: 0; }
    .flower-br { bottom: 0; }

    /* Ribbon adjustments for mobile:
       At ~390px wide the ribbon images scale to ~31px / ~35px tall,
       so offset by roughly half that height to straddle each seam */
    .ribbon-top-img {
        top: -18px;
    }
    .ribbon-bottom-img {
        top: auto;
        bottom: -20px;
    }

    /* Nav goes mobile */
    #main-nav .nav-link {
        display: none;
    }

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

    .mobile-nav.open {
        display: flex;
    }

    .nav-logo-wrap {
        padding: 0 16px;
    }

    .nav-logo-img {
        height: 46px;
    }

    /* Hero */
    .hero-logo-img {
        max-width: 280px;
    }

    .hero-content {
        padding: 40px 24px;
        gap: 20px;
    }

    .hero-gold-frame {
        padding: 16px;
        padding-top: 80px;
    }

    /* Cards go single col */
    .delights-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .delights-inner {
        padding: 0 24px;
        gap: 40px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-center-col {
        grid-column: auto;
    }

    .footer-content {
        padding: 0 24px 40px;
    }

    .wax-divider {
        padding: 32px 32px;
    }
}

@media (max-width: 480px) {
    .tagline-main {
        font-size: 2rem;
    }

    .tagline-sub {
        font-size: 0.98rem;
    }

    .cta-btn {
        padding: 14px 32px;
        font-size: 0.67rem;
        letter-spacing: 0.15em;
    }
}
