:root {
    --gold: var(--dynamic-primary-color, #D4AF37);
    --light-gold: var(--dynamic-secondary-color, #F5E6B3);
    --blush: #F8C8DC;
    --sage: #C8C8A9;
    --dark-green: #556B2F;
    --ink: #22211f;
    --cream: #fffaf1;
    --clay: #9b4f2f;
    --midnight: #111827;
}

body {
    font-family: var(--dynamic-font-family, 'Montserrat'), sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--dynamic-heading-font-family, 'Great Vibes'), cursive;
}

.normal-font {
    font-family: var(--dynamic-font-family, 'Montserrat'), sans-serif !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.bg-blush {
    background-color: var(--blush) !important;
}

.text-blush {
    color: var(--blush) !important;
}

.bg-sage {
    background-color: var(--sage) !important;
}

.text-sage {
    color: var(--sage) !important;
}

.navbar {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--sage) 100%) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: white;
    padding: 8px 15px;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
    background: var(--gold);
    bottom: 0;
    content: '';
    height: 2px;
    left: 15px;
    position: absolute;
    transition: width 0.3s;
    width: 0;
}

.navbar-dark .navbar-nav .nav-link:hover::after {
    width: calc(100% - 30px);
}

.carousel-item {
    height: 70vh;
    min-height: 300px;
}

.hero-image {
    height: 70vh;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    background: rgba(212, 175, 55, 0.7);
    border-radius: 50%;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
}

.invitation-card {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    overflow: hidden;
    padding: 40px;
    position: relative;
}

.invitation-card::before {
    background: linear-gradient(90deg, var(--blush) 0%, var(--gold) 50%, var(--sage) 100%);
    content: "";
    height: 10px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.invitation-content {
    position: relative;
    z-index: 1;
}

.ribbon {
    height: 150px;
    overflow: hidden;
    position: absolute;
    right: -10px;
    top: -10px;
    width: 150px;
}

.ribbon-content {
    background-color: var(--blush);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    color: #fff;
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    padding: 15px 0;
    position: absolute;
    right: -25px;
    text-align: center;
    top: 30px;
    transform: rotate(45deg);
    width: 225px;
}

.guest-name-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--gold);
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin: 20px auto;
    outline: none;
    padding: 10px;
    text-align: center;
    width: 80%;
}

.date-text {
    color: var(--gold);
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    margin: 20px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.countdown {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(90px, 1fr));
    margin: 32px auto 0;
    max-width: 620px;
}

.countdown-item {
    background: #fff;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    padding: 14px 10px;
    text-align: center;
}

.countdown-item strong {
    color: var(--dark-green);
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.countdown-item span {
    color: #6c757d;
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    margin-top: 8px;
    text-transform: uppercase;
}

.btn-gold {
    background-color: var(--gold);
    border: none;
    border-radius: 50px;
    color: white;
    padding: 10px 25px;
    transition: all 0.3s;
}

.btn-gold:hover {
    background-color: #C9A227;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    color: white;
    transform: translateY(-2px);
}

.qr-code {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--sage) 100%);
    color: white;
    padding: 40px 0;
}

.platform-page {
    background: #fffdf8;
    color: var(--ink);
}

.brand-title {
    font-size: 2rem;
}

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

.platform-hero-image {
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%;
}

.platform-hero-overlay {
    background: linear-gradient(90deg, rgba(28, 38, 20, 0.86), rgba(28, 38, 20, 0.55), rgba(28, 38, 20, 0.18));
    inset: 0;
    position: absolute;
}

.platform-hero-content {
    color: white;
    position: relative;
    z-index: 1;
}

.platform-hero h1 {
    color: white;
    font-size: clamp(4rem, 11vw, 8rem);
    line-height: 0.9;
    margin-bottom: 1rem;
}

.hero-copy {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.section-heading {
    margin: 0 auto;
    max-width: 720px;
}

.section-heading h2 {
    color: var(--ink);
    font-size: 3rem;
}

.section-heading p {
    color: #6b655d;
    font-family: 'Montserrat', sans-serif;
}

.section-kicker {
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.theme-card,
.template-card,
.step-block {
    background: white;
    border: 1px solid rgba(85, 107, 47, 0.14);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(34, 33, 31, 0.08);
    height: 100%;
    overflow: hidden;
}

.theme-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.theme-card-body,
.template-card-body,
.step-block {
    padding: 1.5rem;
}

.theme-card span,
.template-label,
.step-block span {
    color: var(--gold);
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.theme-card h3,
.template-card h4,
.step-block h3 {
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.theme-card p,
.template-card p,
.step-block p {
    color: #6b655d;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0;
}

.platform-band {
    background: var(--cream);
}

.template-preview {
    color: white;
    min-height: 260px;
    padding: 1.5rem;
}

.template-preview h3 {
    color: white;
    font-size: 2.7rem;
    line-height: 1;
    margin-top: 2rem;
}

.template-preview p {
    color: rgba(255, 255, 255, 0.88);
}

.template-card-gold .template-preview {
    background: linear-gradient(145deg, var(--dark-green), var(--sage));
}

.template-card-tradition .template-preview {
    background: linear-gradient(145deg, #4c1f15, var(--clay));
}

.template-card-joel .template-preview {
    background: linear-gradient(145deg, #8B0000, #654321);
}

.template-card-civil .template-preview {
    background: linear-gradient(145deg, #1f2937, #61748d);
}

.template-card-party .template-preview {
    background: linear-gradient(145deg, #10101a, #7c3aed);
}

.template-card-body .btn {
    margin-top: 1rem;
}

.template-demo {
    min-height: 100vh;
}

.demo-invitation {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
}

.demo-back {
    color: white;
    font-weight: 700;
    left: 2rem;
    position: absolute;
    text-decoration: none;
    top: 2rem;
}

.demo-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
    max-width: 720px;
    padding: 4rem;
    text-align: center;
}

.demo-card h1 {
    color: var(--ink);
    font-size: 4.8rem;
    line-height: 0.95;
}

.demo-lead {
    color: #555;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
}

.demo-details {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    display: grid;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
}

.demo-details span,
.demo-note {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.template-tradition .demo-invitation {
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.35), transparent 30%), linear-gradient(135deg, #40170f, #9b4f2f);
}

.template-civil .demo-invitation {
    background: linear-gradient(135deg, #e8eef5, #405267);
}

.template-party .demo-invitation {
    background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.45), transparent 25%), radial-gradient(circle at 80% 10%, rgba(124, 58, 237, 0.5), transparent 30%), #111827;
}

.joel-ruth-theme {
    --dark-red: #8B0000;
    --brown: #654321;
    --light-brown: #A67C52;
    background-color: var(--cream);
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.joel-ruth-theme h1,
.joel-ruth-theme h2,
.joel-ruth-theme h3,
.joel-ruth-theme h4,
.joel-ruth-theme h5,
.joel-ruth-theme h6,
.invitation-font {
    color: var(--dark-red);
    font-family: 'Playfair Display', serif;
}

.joel-ruth-theme .navbar,
.joel-ruth-theme .footer {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--brown) 100%) !important;
}

.joel-ruth-theme .navbar-dark .navbar-nav .nav-link {
    font-weight: 600;
}

.bg-cream {
    background-color: var(--cream) !important;
}

.text-dark-red {
    color: var(--dark-red) !important;
}

.text-brown {
    color: var(--brown) !important;
}

.joel-hero {
    align-items: center;
    display: flex;
    height: 72vh;
    justify-content: center;
    min-height: 420px;
    overflow: hidden;
    position: relative;
    text-align: center;
}

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

.joel-hero-overlay {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.74), rgba(101, 67, 33, 0.58));
    inset: 0;
    position: absolute;
}

.joel-hero-content {
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.joel-hero-content h1 {
    color: white;
    font-size: clamp(3.5rem, 9vw, 6rem);
}

.joel-invitation-card {
    background: white;
    border-bottom: 15px solid var(--dark-red);
    border-radius: 5px;
    border-top: 15px solid var(--dark-red);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.1);
    margin: 30px auto;
    max-width: 800px;
    overflow: hidden;
    padding: 50px 40px;
    position: relative;
}

.families-section {
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.1), transparent);
    margin: 30px 0;
    padding: 20px;
    text-align: center;
}

.ceremony-title {
    color: var(--dark-red);
    font-size: 3rem;
    letter-spacing: 3px;
    margin: 30px 0;
    text-align: center;
    text-transform: uppercase;
}

.couple-names-large {
    color: var(--brown);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 30px 0;
    text-align: center;
}

.couple-names-large span {
    font-size: 2rem;
}

.date-box {
    background: var(--dark-red);
    border-radius: 5px;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 30px auto;
    max-width: 300px;
    padding: 20px;
    text-align: center;
}

.address-section {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 30px 0;
    text-align: center;
}

.contact-info {
    border-top: 1px solid var(--gold);
    color: var(--dark-red);
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

.decorative-border {
    background: linear-gradient(90deg, var(--dark-red) 0%, var(--gold) 50%, var(--dark-red) 100%);
    height: 5px;
    margin: 20px 0;
}

.text-uppercase-bold {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .carousel-item,
    .hero-image {
        height: 50vh;
    }

    .invitation-card {
        padding: 25px;
    }

    .date-text {
        font-size: 2rem;
    }

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

    .countdown-item strong {
        font-size: 1.7rem;
    }

    .platform-hero {
        min-height: 86vh;
        padding: 120px 0 60px;
    }

    .platform-hero h1 {
        font-size: 4.4rem;
    }

    .section-heading h2 {
        font-size: 2.4rem;
    }

    .demo-card {
        padding: 2.5rem 1.5rem;
    }

    .demo-card h1 {
        font-size: 3.5rem;
    }

    .demo-back {
        left: 1rem;
        top: 1rem;
    }

    .joel-invitation-card {
        padding: 30px 20px;
    }

    .ceremony-title {
        font-size: 2rem;
    }

    .couple-names-large {
        font-size: 1.8rem;
    }

    .couple-names-large span {
        font-size: 1.5rem;
    }

    .date-box {
        font-size: 1.1rem;
        padding: 15px;
    }
}
