/* ===============================
   FONT DECLARATIONS
=============================== */

/* GFS DIDOT */
@font-face {
    font-family: "DidotWedding";
    src: url("fonts/GFSDidot-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* AC BLUR */
@font-face {
    font-family: "ACBlur";
    src: url("fonts/ACBlur.otf") format("opentype"),
         url("fonts/ACBlur.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* AC GEOSANS LIGHT */
@font-face {
    font-family: "ACGeosansLight";
    src: url("fonts/ACGeosansLight.otf") format("opentype"),
         url("fonts/ACGeosansLight.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===============================
   GLOBAL RESET & VARIABLES
=============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

:root {
    /* Summer floral palette */
    --bg: #fffaf0;              /* sunlit ivory */
    --surface: #ffffff;
    --surface-soft: #fff4dc;    /* soft vanilla */
    --accent: #f28c7a;          /* peach blossom */
    --accent-strong: #e76f51;   /* warmer coral */
    --accent-soft: #ffd8bd;     /* apricot */
    --sun: #f7c948;             /* sunflower yellow */
    --sun-soft: #fff0b8;
    --leaf: #8faa77;            /* soft sage */
    --leaf-dark: #5f7d5a;
    --rose: #f6b7c3;            /* floral pink */
    --lavender: #d8c7ff;        /* subtle floral lilac */
    --text: #3b332d;
    --muted: #7d746b;

    --font-heading: "DidotWedding", serif;
    --font-body: "ACGeosansLight", serif;
    --font-accent: "ACBlur", serif;
    --font-soft-accent: "ACGeosansLight", serif;

    --soft-shadow: 0 18px 55px rgba(164, 112, 75, 0.10);
    --card-shadow: 0 24px 70px rgba(143, 170, 119, 0.14);

    --section-padding: 60px;
    --transition-smooth: all .4s cubic-bezier(.4,0,.2,1);
    --transition-ease: cubic-bezier(.4,0,.2,1);

    --heading-scale: 1.0;
    --lead-size: 1.08;
    --heading-letter-spacing: 2.4px;
    --body-letter-spacing: 0.25px;
    --text-leading: 2.0;
    --numeric-figures: tabular-nums;
    --heading-opsz: 48;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: var(--text-leading);
    letter-spacing: var(--body-letter-spacing);
    color: var(--text);
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    font-variant-ligatures: common-ligatures discretionary-ligatures;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    hyphens: auto;

    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 12% 18%, rgba(247, 201, 72, 0.18), transparent 18%),
        radial-gradient(circle at 90% 12%, rgba(246, 183, 195, 0.20), transparent 20%),
        radial-gradient(circle at 15% 85%, rgba(143, 170, 119, 0.14), transparent 22%),
        radial-gradient(circle at 82% 78%, rgba(255, 216, 189, 0.28), transparent 24%),
        linear-gradient(180deg, #fffdf7 0%, #fff7e8 48%, #fffaf0 100%);
    background-size: 520px 520px, 560px 560px, 620px 620px, 700px 700px, auto;
    background-attachment: fixed;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: var(--heading-letter-spacing);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "kern" 1, "liga" 1, "onum" 1, "case" 1;
    -webkit-font-feature-settings: "kern" 1, "liga" 1;
}

.accent {
    font-family: var(--font-accent);
    font-size: 1.2em;
    color: var(--accent-strong);
}

.lead {
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.9;
    color: var(--text);
    letter-spacing: 0.2px;
}

.container {
    width: min(1200px, 92%);
    margin: auto;
}

section {
    padding: var(--section-padding) 0;
    opacity: 0;
    transform: translateY(25px);
    transition: all 1s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   MUSIC CONTROL
=============================== */

.music-control {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 250, 240, 0.88);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 40px rgba(231, 111, 81, 0.16);
    border: 1px solid rgba(242, 140, 122, 0.24);
    z-index: 999;
    transition: all .4s ease;
}

.music-control:hover {
    transform: scale(1.1) rotate(4deg);
    background: #fff6df;
}

/* ===============================
   HERO
=============================== */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(68, 46, 36, 0.22), rgba(68, 46, 36, 0.28)),
        radial-gradient(circle at 50% 26%, rgba(247, 201, 72, 0.28), transparent 38%),
        url("assets/herobg.png");
    background-size: cover;
    background-position: center;
    will-change: transform, opacity;
    transition: padding .45s var(--transition-ease), background-position .6s var(--transition-ease);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 240, 184, 0.30), transparent 48%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255, 244, 220, 0.16));
    pointer-events: none;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.55) 1px, transparent 1.4px),
        radial-gradient(circle, rgba(247,201,72,.35) 1px, transparent 1.4px);
    background-size: 115px 115px, 180px 180px;
    opacity: 0.20;
    animation: sparkleShift 120s linear infinite;
    pointer-events: none;
}


.hero-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(1.4px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fffdf7;
    will-change: transform, opacity;
}

.hero-top-text {
    letter-spacing: 6px;
    text-transform: uppercase;
    font-size: 14px;
    opacity: 0.92;
    margin-bottom: 28px;
    color: #fff4dc;
}

.couple-names {
    font-size: clamp(56px, 9vw, 110px);
    letter-spacing: 5px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    line-height: 1.2;
    text-shadow: 0 3px 22px rgba(73, 45, 33, 0.32);
}

.signature {
    font-family: var(--font-heading);
    font-size: clamp(40px, 8vw, 96px);
    color: var(--sun-soft);
    letter-spacing: 0.6px;
    text-shadow:
        0 2px 18px rgba(0,0,0,0.18),
        0 0 24px rgba(247, 201, 72, 0.30);
    transform: translateY(2px);
    display: inline-block;
}

.countdown-box span,
.detail-time,
.detail-subtitle {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1, "onum" 1;
}

.ampersand {
    color: var(--sun-soft);
    font-size: 0.85em;
    font-weight: 400;
}

.hero-date {
    font-family: var(--font-heading);
    font-size: clamp(18px, 3.8vw, 24px);
    letter-spacing: 4px;
    margin-top: 30px;
    opacity: 0.98;
    color: #fff7df;
}

.luxury-countdown {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 60px;
    flex-wrap: wrap;
    animation: heroFadeUp 2s ease-out .4s backwards;
}

.countdown-box {
    width: 110px;
    height: 110px;
    background: rgba(255, 250, 240, 0.94);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 16px 45px rgba(91, 70, 54, 0.16);
    border: 1px solid rgba(255, 216, 189, 0.72);
    transition: transform .38s var(--transition-ease), box-shadow .38s var(--transition-ease), width .38s var(--transition-ease), height .38s var(--transition-ease);
    will-change: transform, width, height;
}

.countdown-box span {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--accent-strong);
    line-height: 1;
}

.countdown-box small {
    margin-top: 10px;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--leaf-dark);
    text-transform: uppercase;
}

.countdown-box:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 55px rgba(231, 111, 81, 0.18);
}

/* ===============================
   SECTION TITLES
=============================== */

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(36px, 4.2vw, 56px);
    margin-bottom: 70px;
    letter-spacing: 2px;
    position: relative;
    font-variant-caps: small-caps;
    font-feature-settings: "smcp" 1, "kern" 1;
    color: var(--text);
}

.section-title::before {
    content: "✿";
    display: block;
    color: var(--rose);
    font-size: 24px;
    line-height: 1;
    margin-bottom: 14px;
    opacity: 0.75;
}

.section-title::after {
    content: "";
    display: block;
    width: 96px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sun), var(--rose), transparent);
    margin: 28px auto 0;
}

/* ===============================
   INVITATION
=============================== */

.invitation {
    position: relative;
    background: transparent;
    padding: 100px 0;
}

.invitation::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 35%, rgba(246, 183, 195, 0.18), transparent 36%),
        radial-gradient(circle at 78% 66%, rgba(143, 170, 119, 0.12), transparent 36%);
    pointer-events: none;
}

.invitation-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: center;
    transition: gap .4s var(--transition-ease), padding .4s var(--transition-ease);
}

.invitation-text h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(48px, 6vw, 72px);
    letter-spacing: 4px;
    margin-bottom: 50px;
    color: var(--text);
    font-variant-caps: small-caps;
}

.invitation-text h2::after {
    content: "";
    display: block;
    width: 78px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--sun));
    margin-top: 28px;
}

.invitation-message {
    max-width: 520px;
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 2;
    color: var(--muted);
    letter-spacing: 0.3px;
}

.invitation-message p::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size: 4.2rem;
    line-height: 0.9;
    color: var(--accent-strong);
    margin: 6px 16px 0 0;
    font-weight: 400;
    letter-spacing: -1px;
    text-transform: none;
}

.invitation-message p.lead {
    font-size: calc(19px * var(--lead-size));
    color: var(--text);
}

.detail-block {
    background: rgba(255, 255, 255, 0.66);
    backdrop-filter: blur(8px);
    padding: 60px 50px;
    border-radius: 42px;
    border: 1px solid rgba(242, 140, 122, 0.18);
    box-shadow: var(--card-shadow);
    transition: transform .6s cubic-bezier(.16,1,.3,1), box-shadow .6s cubic-bezier(.16,1,.3,1);
}

.detail-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 80px rgba(231, 111, 81, 0.14);
}

.detail-block h4 {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 5px;
    color: var(--leaf-dark);
    margin-bottom: 40px;
}

.detail-block p {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 18px;
    color: var(--muted);
}

/* ===============================
   WEDDING DAY
=============================== */

.wedding-day {
    padding: 100px 0;
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 240, 184, 0.75), transparent 38%),
        radial-gradient(circle at 85% 76%, rgba(246, 183, 195, 0.30), transparent 36%),
        linear-gradient(135deg, #fff1c9 0%, #ffe1c5 45%, #f7dfbd 100%);
}

.wedding-day .section-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(44px, 6vw, 72px);
    letter-spacing: 4px;
    margin-bottom: 110px;
}

.wedding-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    transition: gap .4s var(--transition-ease);
}

.detail-card {
    background: rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(10px);
    padding: 80px 60px;
    border-radius: 52px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    text-align: center;
    box-shadow: 0 26px 70px rgba(164, 112, 75, 0.12);
    transition: transform .6s cubic-bezier(.16,1,.3,1), box-shadow .6s cubic-bezier(.16,1,.3,1);
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 85px rgba(231, 111, 81, 0.17);
}

.detail-icon {
    font-size: 36px;
    margin-bottom: 35px;
    color: var(--accent-strong);
    opacity: 0.88;
}

.detail-card h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 36px;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.detail-time,
.detail-subtitle {
    font-family: var(--font-heading);
    font-size: 56px;
    letter-spacing: 8px;
    color: var(--accent-strong);
    margin-bottom: 15px;
}

.detail-date,
.detail-info {
    font-family: var(--font-body);
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--leaf-dark);
    margin-bottom: 45px;
}

.detail-venue {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 14px;
}

.detail-location {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 35px;
}

.map-link {
    display: inline-block;
    padding: 14px 34px;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--accent-strong);
    border: 1px solid rgba(231, 111, 81, 0.34);
    border-radius: 40px;
    background: rgba(255, 250, 240, 0.44);
    transition: all .5s cubic-bezier(.16,1,.3,1);
    will-change: transform;
}

.map-link:hover {
    background: linear-gradient(135deg, var(--accent), var(--sun));
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(231, 111, 81, 0.24);
}

/* ===============================
   RSVP
=============================== */

.rsvp {
    padding: 100px 0;
    position: relative;
    background: transparent;
}

.rsvp::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 240, 184, 0.30), transparent 40%),
        radial-gradient(circle at 86% 58%, rgba(216, 199, 255, 0.18), transparent 35%);
    pointer-events: none;
}

.rsvp-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 90px;
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 2;
    letter-spacing: 0.3px;
    color: var(--muted);
}

.rsvp-intro b {
    font-family: var(--font-body);
    font-weight: 900;
    color: var(--accent-strong);
}

.rsvp-form {
    max-width: 900px;
    margin: auto;
    padding: 80px 70px;
    border-radius: 52px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(242, 140, 122, 0.16);
    box-shadow: var(--card-shadow);
    transition: padding .35s var(--transition-ease), border-radius .35s var(--transition-ease);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-bottom: 50px;
    transition: gap .35s var(--transition-ease);
}

.form-group label {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--leaf-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 20px 24px;
    border-radius: 40px;
    border: 1px solid rgba(143, 170, 119, 0.20);
    background: rgba(255, 253, 247, 0.82);
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text);
    transition: all .4s cubic-bezier(.16,1,.3,1);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(231, 111, 81, 0.42);
    box-shadow: 0 12px 34px rgba(231, 111, 81, 0.13);
    background: #fffdf7;
}

#guests-group {
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity .35s ease, max-height .45s ease, visibility .35s ease;
}

#guests-group.show {
    visibility: visible;
    opacity: 1;
    max-height: 300px;
    pointer-events: auto;
}

.submit-btn {
    display: block;
    margin: 70px auto 0;
    padding: 18px 70px;
    border-radius: 60px;
    border: 1px solid rgba(231, 111, 81, 0.20);
    background: linear-gradient(135deg, var(--accent), var(--sun));
    color: white;
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .6s cubic-bezier(.16,1,.3,1), box-shadow .6s cubic-bezier(.16,1,.3,1);
}

.submit-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(231, 111, 81, 0.25);
}

.confirmation-message {
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.6s cubic-bezier(.16,1,.3,1);
}

.confirmation-message.show {
    display: flex;
    justify-content: center;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.confirmation-content {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    padding: 3rem 2.5rem;
    border-radius: 28px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(242, 140, 122, 0.16);
    animation: confirmationFade 0.8s ease forwards;
}

.confirmation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, var(--leaf), var(--sun));
    box-shadow: 0 8px 20px rgba(143, 170, 119, 0.28), inset 0 0 0 4px rgba(255,255,255,0.3);
    animation: popIn 0.6s cubic-bezier(.16,1,.3,1);
}

.confirmation-content h3 {
    font-size: 1.9rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text);
}

.confirmation-content p {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.6;
}

@keyframes confirmationFade {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0% { transform: scale(0.6); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ===============================
   GIFT REGISTRY
=============================== */

.gift-registry {
    padding: 100px 0;
    position: relative;
    background:
        radial-gradient(circle at 18% 28%, rgba(246, 183, 195, 0.28), transparent 34%),
        radial-gradient(circle at 78% 70%, rgba(143, 170, 119, 0.18), transparent 36%),
        linear-gradient(135deg, #fff2c9 0%, #ffe6d6 52%, #fff7e8 100%);
}

.gift-registry::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.28), transparent 65%);
    pointer-events: none;
}

.registry-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 90px;
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 2;
    color: var(--muted);
}

.registry-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    align-items: stretch;
    transition: gap .4s var(--transition-ease);
}

.registry-card {
    background: rgba(255, 255, 255, 0.66);
    backdrop-filter: blur(10px);
    padding: 60px 50px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.54);
    text-align: center;
    transition: transform .45s var(--transition-ease), padding .35s var(--transition-ease), border-radius .35s var(--transition-ease);
    box-shadow: 0 24px 70px rgba(164, 112, 75, 0.12);
}

.registry-card:hover {
    transform: translateY(-8px);
}

.registry-card h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 50px;
}

.registry-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registry-icon img,
.bank-icon-img,
.iris-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.iban-label,
.iris-label {
    font-family: var(--font-body);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    color: var(--leaf-dark);
    margin-bottom: 18px;
}

.iban-input,
.iris-input {
    width: 100%;
    padding: 20px 24px;
    border-radius: 40px;
    border: 1px solid rgba(143, 170, 119, 0.20);
    background: rgba(255, 250, 240, 0.72);
    font-family: var(--font-body);
    font-size: 20px;
    text-align: center;
    margin-bottom: 22px;
    color: var(--text);
    transition: all .4s cubic-bezier(.16,1,.3,1);
}

.iban-input:focus,
.iris-input:focus {
    outline: none;
    border-color: rgba(231, 111, 81, 0.42);
    box-shadow: 0 10px 30px rgba(231, 111, 81, 0.12);
}

.copy-btn {
    padding: 10px 26px;
    border-radius: 40px;
    border: 1px solid rgba(231, 111, 81, 0.34);
    background: rgba(255, 250, 240, 0.40);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-strong);
    cursor: pointer;
    transition: all .5s cubic-bezier(.16,1,.3,1);
}

.copy-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--sun));
    color: white;
    transform: translateY(-3px);
}

.registry-note {
    text-align: center;
    margin-top: 30px;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 16px;
    font-style: italic;
}

/* ===============================
   FOOTER
=============================== */

.footer {
    padding: 40px 0 40px;
    position: relative;
    background: linear-gradient(180deg, var(--bg), #fff2da);
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 80%, rgba(246, 183, 195, 0.18), transparent 54%),
        radial-gradient(circle at 15% 20%, rgba(247, 201, 72, 0.16), transparent 35%);
    pointer-events: none;
}

.footer-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.footer-ornament {
    font-size: 28px;
    color: var(--accent-strong);
    opacity: 0.7;
    margin-bottom: 40px;
}

.footer-text {
    font-family: var(--font-heading);
    font-size: 32px;
    letter-spacing: 3px;
    margin-bottom: 60px;
    color: var(--text);
}

.contact-numbers {
    display: flex;
    justify-content: center;
    gap: 120px;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
}

.social-icon {
    font-size: 26px;
    text-decoration: none;
    opacity: 0.8;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
}

.social-icon:hover {
    transform: scale(1.15) rotate(-4deg);
}

.contact-name {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--accent-strong);
}

.contact-phone {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--muted);
}

.footer-copyright {
    font-size: 15px;
    color: var(--muted);
    letter-spacing: 1px;
    opacity: 0.8;
}

/* ===============================
   ANIMATIONS & MISC
=============================== */

.heart-pulse {
    animation: heartPulse 1.2s ease;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.08); }
    60% { transform: scale(1); }
}

@keyframes floatHeart {
    0% {
        transform: translateY(40px) scale(0.3);
        opacity: 1;
    }
    100% {
        transform: translateY(-500px) scale(1.4);
        opacity: 0;
    }
}

/* ===============================
   MOBILE / TABLET ADJUSTMENTS
=============================== */

@media (max-width: 900px) {
    .invitation-grid,
    .wedding-details,
    .registry-options,
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 25px;
    }

    .couple-names {
        gap: 14px;
    }

    :root {
        --section-padding: 56px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 88px 0;
        background-position: top;
    }

    .hero-content { padding: 20px; }
    .hero-top-text { font-size: 12px; letter-spacing: 4px; }

    .couple-names { font-size: clamp(40px, 12vw, 72px); gap: 12px; }
    .signature { font-size: clamp(28px, 10vw, 64px); }

    .luxury-countdown { gap: 12px; margin-top: 36px; }
    .countdown-box { width: 78px; height: 78px; border-radius: 20px; }
    .countdown-box span { font-size: 28px; }
    .countdown-box small { font-size: 8px; }

    .section-title { font-size: clamp(30px, 5.2vw, 44px); margin-bottom: 48px; }
    .invitation, .rsvp, .gift-registry { padding: 64px 0; }

    .rsvp-form { padding: 34px 20px; border-radius: 30px; }
    .form-row { grid-template-columns: 1fr; gap: 18px; }
    .form-group input, .form-group select { padding: 14px 18px; font-size: 16px; }
    .form-group label { font-size: 13px; }
    .submit-btn { padding: 14px 28px; font-size: 13px; }

    .detail-card { padding: 40px 28px; border-radius: 30px; }
    .detail-card h3 { font-size: 30px; }
    .detail-time, .detail-subtitle { font-size: 44px; }

    .registry-card { padding: 36px 26px; }
    .registry-icon { width: 96px; height: 96px; margin-bottom: 12px; }
    .registry-card h3 { font-size: 22px; margin-bottom: 20px; }
    .iban-input, .iris-input { font-size: 16px; padding: 14px 18px; }

    .footer-text { font-size: 22px; }
    .music-control { width: 50px; height: 50px; bottom: 18px; right: 18px; }
}

@media (max-width: 420px) {
    :root { --section-padding: 48px; }

    .hero { padding: 64px 0; }
    .hero-top-text { font-size: 11px; }
    .couple-names { font-size: clamp(26px, 14vw, 48px); gap: 8px; }
    .signature { font-size: clamp(18px, 12vw, 48px); }

    .couple-names .ampersand {
        flex-basis: 100%;
        font-size: 1.05em;
        margin: 6px 0;
    }

    .couple-names { gap: 6px; }

    .countdown-box { width: 68px; height: 68px; }
    .countdown-box span { font-size: 24px; }
    .countdown-box small { font-size: 7px; }

    .section-title { font-size: clamp(24px, 7vw, 36px); margin-bottom: 32px; }

    .rsvp-form { padding: 28px 16px; }
    .form-group input, .form-group select { padding: 12px 14px; font-size: 15px; }
    .submit-btn { padding: 12px 22px; font-size: 13px; }

    .map-link { padding: 10px 18px; font-size: 12px; }
    .footer-ornament { font-size: 22px; }

    .hero {
        background-image:
            linear-gradient(rgba(68, 46, 36, 0.22), rgba(68, 46, 36, 0.28)),
            radial-gradient(circle at 50% 26%, rgba(247, 201, 72, 0.28), transparent 38%),
            url("assets/hero-mobile.png");
        background-size: cover;
        background-position: center top;
    }

    .registry-icon { width: 72px; height: 72px; margin-bottom: 10px; }
    .registry-card h3 { font-size: 18px; margin-bottom: 12px; }
    .iban-input, .iris-input { font-size: 15px; padding: 12px 14px; }

    /* Center-align everything for narrow mobile screens */
    body,
    .hero-content,
    .container,
    .invitation,
    .invitation-text,
    .invitation-message,
    .rsvp,
    .rsvp-intro,
    .rsvp-form,
    .gift-registry,
    .registry-intro,
    .registry-card,
    .detail-card,
    .detail-block,
    .footer-content {
        text-align: center;
    }

    .invitation-grid,
    .wedding-details,
    .registry-options,
    .form-row {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .detail-card,
    .registry-card,
    .rsvp-form,
    .detail-block {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .form-group label,
    .form-group input,
    .form-group select,
    .iban-input,
    .iris-input {
        text-align: center;
    }

    .contact-numbers {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .couple-names {
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 360px) {
    .submit-btn, .map-link, .copy-btn { padding: 12px 20px; }
}

.bank-icon-img,
.iris-icon-img,
.registry-icon img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}
