:root {
    --gold: #c9a84c;
    --gold-light: #e8d28a;
    --gold-soft: #f5e6b8;
    --green-dark: #0f2a1d;
    --green-medium: #1a3a2a;
    --green-deep: #06170f;
    --cream: #faf8f0;
    --cream-warm: #fffef8;
    --text-dark: #2c2c2c;
    --text-medium: #555;
    --text-light: #888;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: radial-gradient(ellipse at top, var(--green-medium) 0%, var(--green-dark) 40%, var(--green-deep) 100%);
    background-attachment: fixed;
    color: var(--cream);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient layers */
.stars {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 70% 90%, rgba(255,255,255,0.4), transparent);
    animation: twinkle 6s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.22;
}

.orb-1 { width: 400px; height: 400px; background: var(--gold); top: -80px; left: -120px; animation: float 14s ease-in-out infinite; }
.orb-2 { width: 320px; height: 320px; background: #2d8a5f; bottom: 10%; right: -100px; animation: float 16s ease-in-out infinite reverse; }
.orb-3 { width: 250px; height: 250px; background: var(--gold-light); top: 60%; left: 20%; animation: float 18s ease-in-out infinite; opacity: 0.12; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -50px) scale(1.05); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-inner { max-width: 700px; }

.bismillah {
    font-family: 'Amiri', serif;
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    color: var(--gold-light);
    margin-bottom: 2rem;
    direction: rtl;
    line-height: 1.5;
}

.welcome-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--gold-soft);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    opacity: 0.85;
}

.name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.baby-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(5rem, 16vw, 9rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 40%, var(--gold-light) 70%, #fff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 6s ease-in-out infinite;
    text-shadow: 0 0 60px rgba(201, 168, 76, 0.15);
    letter-spacing: 0.02em;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.pronunciation {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--gold-light);
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    opacity: 0.85;
}

.meaning-tagline {
    font-style: italic;
    font-size: 1.15rem;
    color: var(--cream);
    opacity: 0.85;
    margin-bottom: 2.5rem;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.divider span {
    height: 1px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.birth-info {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--gold-soft);
    letter-spacing: 0.12em;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.parents {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: rgba(245, 230, 184, 0.75);
    font-size: 1.05rem;
    margin-bottom: 4rem;
}

.scroll-cue {
    display: inline-block;
    width: 24px;
    height: 40px;
    border: 1.5px solid rgba(245, 230, 184, 0.5);
    border-radius: 14px;
    position: relative;
    transition: border-color 0.3s ease;
}

.scroll-cue:hover { border-color: var(--gold); }

.scroll-cue span {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold-soft);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { opacity: 0; transform: translate(-50%, 0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* Play button */
.play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.play-btn svg { width: 24px; height: 24px; margin-left: 3px; }
.play-btn.small { width: 36px; height: 36px; }
.play-btn.small svg { width: 16px; height: 16px; }

.play-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    opacity: 0;
}

.play-btn:hover {
    transform: scale(1.08);
    background: var(--gold);
    color: var(--green-dark);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.4);
}

.play-btn.playing::after {
    animation: pulse 1.4s ease-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.6); }
}

/* SECTIONS */
.section {
    padding: 6rem 1.5rem;
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: var(--gold-light);
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0.8;
}

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

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 5vw, 3rem);
    text-align: center;
    color: var(--gold-soft);
    font-weight: 600;
    margin-bottom: 1rem;
}

.arabic-inline {
    font-family: 'Amiri', serif;
    color: var(--gold);
    margin-left: 0.5rem;
    font-size: 0.85em;
}

.section-meaning {
    text-align: center;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 2.5rem;
}

.section-subtitle {
    text-align: center;
    color: rgba(250, 248, 240, 0.7);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-style: italic;
    font-size: 1.05rem;
}

.section-body {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: rgba(250, 248, 240, 0.85);
    font-size: 1.1rem;
    line-height: 1.9;
}

.section-body em { color: var(--gold-light); }

/* Quran quote */
.quran-quote {
    max-width: 700px;
    margin: 0 auto 4rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.03));
    border-left: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    border-radius: 4px;
    text-align: center;
}

.quran-quote .arabic {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: var(--gold-light);
    direction: rtl;
    margin-bottom: 1rem;
    line-height: 2;
}

.quote-transliteration {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 0.8rem;
    letter-spacing: 0.01em;
}

.quote-translation {
    color: rgba(250, 248, 240, 0.85);
    margin-bottom: 0.5rem;
}

.quote-cite {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}

/* Story cards */
.story-title {
    font-family: 'Cormorant Garamond', serif;
    text-align: center;
    color: var(--gold-soft);
    font-size: 1.6rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.story-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: linear-gradient(160deg, rgba(250, 248, 240, 0.04) 0%, rgba(250, 248, 240, 0.01) 100%);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(201, 168, 76, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.story-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(201, 168, 76, 0.15);
}

.story-card:hover::before { opacity: 1; }

.story-card-inner { position: relative; z-index: 1; }

.story-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.story-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    color: var(--gold-soft);
    margin-bottom: 1rem;
    font-weight: 600;
}

.story-body {
    color: rgba(250, 248, 240, 0.78);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.story-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.story-card:hover .arrow { transform: translateX(4px); }
.arrow { transition: transform 0.3s ease; display: inline-block; }

/* YORUBA */
.yoruba-section {
    background: linear-gradient(180deg, transparent 0%, rgba(15, 42, 29, 0.4) 50%, transparent 100%);
}

.yoruba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}

.yoruba-card {
    background: linear-gradient(160deg, rgba(250, 248, 240, 0.05) 0%, rgba(250, 248, 240, 0.01) 100%);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 8px;
    padding: 1.8rem;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}

.yoruba-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.from {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.yoruba-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.yoruba-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--gold-soft);
    font-weight: 600;
    line-height: 1.2;
}

.yoruba-meaning {
    font-style: italic;
    color: rgba(250, 248, 240, 0.78);
    font-size: 0.98rem;
    line-height: 1.7;
}

.placeholder-note {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: rgba(250, 248, 240, 0.5);
    font-style: italic;
}

.container.narrow { max-width: 760px; }

/* DUA */
.dua-section {
    padding: 6rem 1.5rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 23, 15, 0.6) 100%);
}

.dua-card {
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    background: linear-gradient(160deg, rgba(201, 168, 76, 0.08) 0%, rgba(201, 168, 76, 0.02) 100%);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.dua-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(201, 168, 76, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.dua-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(201, 168, 76, 0.2);
}

.dua-card:hover::before { opacity: 1; }

.dua-arabic {
    font-family: 'Amiri', serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--gold-light);
    line-height: 2.2;
    direction: rtl;
    margin-bottom: 1.5rem;
}

.dua-transliteration {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--gold-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.01em;
}

.dua-translation {
    color: rgba(250, 248, 240, 0.8);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.dua-play-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--gold);
    border-radius: 30px;
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: background 0.3s ease, color 0.3s ease;
}

.dua-card:hover .dua-play-indicator {
    background: var(--gold);
    color: var(--green-dark);
}

.play-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.play-icon svg { width: 100%; height: 100%; }

.dua-card.playing .dua-play-indicator {
    background: var(--gold);
    color: var(--green-dark);
}

.dua-card.playing::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1.5px solid var(--gold);
    animation: pulse-card 1.6s ease-out infinite;
    pointer-events: none;
}

@keyframes pulse-card {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.03); }
}

/* GUESTBOOK */
.guestbook-section {
    background: linear-gradient(180deg, transparent 0%, rgba(15, 42, 29, 0.4) 50%, transparent 100%);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* Honeypot — off-screen but still part of layout so naive bots fill it */
.hp-wrap {
    position: absolute !important;
    left: -10000px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.dua-form {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.form-row { margin-bottom: 1rem; }

.dua-form input,
.dua-form textarea {
    width: 100%;
    background: rgba(250, 248, 240, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: var(--cream);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
}

.dua-form input::placeholder,
.dua-form textarea::placeholder {
    color: rgba(245, 230, 184, 0.4);
    font-style: italic;
}

.dua-form input:focus,
.dua-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(250, 248, 240, 0.07);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.dua-submit {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--green-dark);
    border: none;
    border-radius: 8px;
    padding: 0.95rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    margin-top: 0.5rem;
}

.dua-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(201, 168, 76, 0.35);
}

.dua-submit:active { transform: translateY(0); }

.dua-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-hint {
    text-align: center;
    color: rgba(250, 248, 240, 0.45);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 1rem;
}

.form-feedback {
    text-align: center;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.form-feedback.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.form-feedback.success {
    background: rgba(45, 138, 95, 0.15);
    border: 1px solid rgba(45, 138, 95, 0.4);
    color: #d4f0e0;
}

.form-feedback.error {
    background: rgba(180, 80, 70, 0.15);
    border: 1px solid rgba(180, 80, 70, 0.4);
    color: #f5d4cf;
}

.duas-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dua-entry {
    background: linear-gradient(160deg, rgba(250, 248, 240, 0.04), rgba(250, 248, 240, 0.01));
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    animation: duaIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    position: relative;
}

@keyframes duaIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dua-entry-message {
    color: var(--cream);
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 0.6rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.dua-entry-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    text-transform: uppercase;
    align-items: center;
}

.dua-entry-name { font-weight: 500; }
.dua-entry-time { color: rgba(245, 230, 184, 0.5); }

.dua-empty {
    text-align: center;
    color: rgba(250, 248, 240, 0.4);
    font-style: italic;
    padding: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 0.7rem;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.3);
    background: transparent;
    color: var(--gold-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.page-btn.active {
    background: var(--gold);
    color: var(--green-dark);
    border-color: var(--gold);
    font-weight: 600;
}

.page-btn.nav {
    border-radius: 50%;
    font-size: 1rem;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-ellipsis {
    color: rgba(245, 230, 184, 0.5);
    padding: 0 0.3rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

/* FOOTER */
.site-footer {
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    position: relative;
    z-index: 1;
}

.family-line {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--gold-soft);
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.parents-footer {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(245, 230, 184, 0.6);
    margin-bottom: 1rem;
}

.ameen {
    font-style: italic;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.footer-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(250, 248, 240, 0.5);
    letter-spacing: 0.08em;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(15px);
    animation: reveal 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.4s; }
.delay-2 { animation-delay: 0.7s; }
.delay-3 { animation-delay: 1.4s; }
.delay-4 { animation-delay: 1.7s; }
.delay-5 { animation-delay: 2.0s; }
.delay-6 { animation-delay: 2.3s; }
.delay-7 { animation-delay: 2.6s; }

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

/* Scroll-triggered fade in */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .name-row { gap: 1rem; }
    .play-btn { width: 44px; height: 44px; }
    .play-btn svg { width: 18px; height: 18px; }
    .section { padding: 4rem 1.25rem; }
    .quran-quote { padding: 1.5rem 1.25rem; }
    .quran-quote .arabic { font-size: 1.3rem; }
    .dua-card { padding: 2rem 1.25rem; }
    .story-card { padding: 1.5rem; }
}

/* PRINT — keepsake-friendly black-on-white version */
@media print {
    @page { margin: 1.5cm; }

    /* Force a clean white background; ink-friendly text */
    body {
        background: #fff !important;
        color: #1a1a1a !important;
        line-height: 1.5;
        font-size: 11pt;
    }

    /* Hide ambient layers and interactive controls */
    .stars,
    .orbs,
    .scroll-cue,
    .play-btn,
    .dua-play-indicator,
    .guestbook-section,
    .duas-list,
    .pagination,
    .form-feedback,
    .dua-form,
    .form-hint,
    .name-play,
    button {
        display: none !important;
    }

    /* Make sections compact and unstyled-card-like */
    .hero {
        min-height: auto;
        padding: 0 0 1cm;
        page-break-after: avoid;
    }

    .section,
    .dua-section {
        padding: 0.6cm 0 !important;
        page-break-inside: avoid;
        background: none !important;
    }

    .container, .container.narrow { max-width: 100%; padding: 0; }

    /* Typography for print */
    .baby-name {
        background: none !important;
        -webkit-text-fill-color: #4a3a10 !important;
        color: #4a3a10 !important;
        text-shadow: none !important;
        font-size: 64pt !important;
        animation: none !important;
        opacity: 1 !important;
    }

    .bismillah, .quran-quote .arabic, .dua-arabic, .arabic-inline {
        color: #1a1a1a !important;
    }

    .welcome-text, .pronunciation, .meaning-tagline,
    .birth-info, .parents,
    .eyebrow, .section-meaning, .section-subtitle,
    .section-body, .section-body em,
    .quote-translation, .quote-cite, .quote-transliteration,
    .story-eyebrow, .story-body,
    .yoruba-meaning, .from,
    .dua-translation, .dua-transliteration,
    .family-line, .ameen, .footer-note, .parents-footer {
        color: #2c2c2c !important;
        opacity: 1 !important;
    }

    .section-title, .story-title, .yoruba-card h3, .story-card h4 {
        color: #4a3a10 !important;
    }

    /* Borders and dividers in grey */
    .quran-quote {
        border: 1pt solid #888 !important;
        background: none !important;
        padding: 0.5cm !important;
    }

    .story-card, .yoruba-card, .dua-card {
        background: none !important;
        border: 1pt solid #888 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .name-tag {
        background: #f0f0f0 !important;
        color: #1a1a1a !important;
        border: 1pt solid #999 !important;
    }

    .divider span,
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    /* Dua card collapses to a quote box */
    .dua-card {
        cursor: default;
        padding: 0.5cm !important;
    }

    /* Show the URL after external links */
    .story-card[href]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }

    /* Keep Arabic readable */
    @page :first { margin-top: 2cm; }
}

/* Reduced motion — respect users who prefer no animation */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .baby-name,
    .name-tag,
    .ornament {
        opacity: 1 !important;
        transform: none !important;
    }

    .stars,
    .orb,
    .scroll-cue span {
        animation: none !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}
