@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,500&family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
    --pink: #f9d7e6;
    --pink-soft: #fde9f1;
    --lavender: #e3d9f7;
    --lavender-soft: #f0eafc;
    --gold: #f3c98a;
    --gold-soft: #f8dfb8;
    --text-dark: #4a3b52;
    --text-muted: #6e5c79;
    --card-bg: #fffaf9;
    --shadow: rgba(122, 94, 130, 0.18);
}

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

html {
    overflow-x: hidden;
}

body {
    width: 100%;
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(160deg, #fdf3f6 0%, #f6edfb 45%, #f0e6f9 100%);
    position: relative;
    z-index: 0;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
}

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

/* ---- Background animation canvas ---- */

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* Content sits above canvas */
nav, .hero, .cards-section, .signal-line {
    position: relative;
    z-index: 2;
}

/* ---- Nav ---- */

nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 243, 246, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 250ms ease, box-shadow 250ms ease;
    box-sizing: border-box;
}

nav .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 32px;
    transition: padding 250ms ease;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    transition: font-size 250ms ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: #c98fb0;
}

.logo-mark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: #c98fb0;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: width 250ms ease, height 250ms ease;
}

nav.nav-scrolled .logo-mark {
    width: 16px;
    height: 16px;
}

.nav-link {
    display: inline-block;
    background: linear-gradient(120deg, var(--pink), var(--lavender));
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 26px;
    border-radius: 999px;
    box-shadow: 0 4px 14px var(--shadow);
    transition: transform 200ms ease, box-shadow 200ms ease, padding 250ms ease, font-size 250ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}

.nav-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

nav.nav-scrolled {
    background: rgba(253, 243, 246, 0.92);
    box-shadow: 0 2px 18px var(--shadow);
}

nav.nav-scrolled .nav-inner {
    padding: 14px 32px;
}

nav.nav-scrolled .logo {
    font-size: 1.3rem;
}

nav.nav-scrolled .nav-link {
    padding: 9px 20px;
    font-size: 0.88rem;
}

@media (prefers-reduced-motion: reduce) {
    nav,
    nav .nav-inner,
    .logo,
    .nav-link {
        transition: none;
    }
}

/* ---- Hero ---- */

.hero {
    padding: 13vh 24px 10vh;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 26px;
}

.hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.7;
    font-weight: 500;
}

/* ---- Ornamental flourish ---- */

.flourish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
}

.flourish span {
    width: 40px;
    height: 1px;
    background: var(--gold);
    opacity: 0.7;
}

.flourish i {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
    display: inline-block;
}

/* ---- Hero emblem: a candle whose flame is a tulip bloom ---- */

.emblem-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.emblem {
    width: min(150px, 42vw);
    height: auto;
}

.emblem-flame {
    fill: var(--gold);
    opacity: 0.92;
    filter: drop-shadow(0 0 12px rgba(243, 201, 138, 0.6));
    transform-origin: 80px 68px;
    animation: emblemFlicker 3.4s ease-in-out infinite;
}

.emblem-flame path:nth-child(2),
.emblem-flame path:nth-child(3) {
    fill: #e9a7c4;
    opacity: 0.85;
}

.emblem-wick {
    stroke: var(--text-muted);
    stroke-width: 1.5;
}

.emblem-candle {
    fill: var(--card-bg);
    stroke: rgba(201, 143, 176, 0.35);
    stroke-width: 1.2;
}

.emblem-base {
    fill: rgba(201, 143, 176, 0.18);
}

@keyframes emblemFlicker {
    0%, 100% { transform: scaleY(1) rotate(0deg); opacity: 0.92; }
    50% { transform: scaleY(1.05) rotate(-1deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .emblem-flame {
        animation: none;
    }
}

/* ---- Cards ---- */

.cards-section {
    padding: 4vh 24px 10vh;
    max-width: 1140px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(201, 143, 176, 0.18);
    border-radius: 20px;
    padding: 38px 35px;
    box-shadow: 0 6px 20px var(--shadow);
    transition: transform 280ms ease, box-shadow 280ms ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px var(--shadow);
}

.card .icon {
    margin-bottom: 18px;
    display: inline-block;
}

.card .icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #c98fb0;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.card p {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.98rem;
}

@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }
}

/* ---- Signal line (CTA) ---- */

.signal-line {
    padding: 8vh 24px 14vh;
    text-align: center;
}

.signal-inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.signal-status {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #9a7a4f;
    background: var(--gold-soft);
    padding: 8px 20px;
    border-radius: 999px;
}

.signal-cta {
    display: inline-block;
    background: linear-gradient(120deg, #e9a7c4, #b89fe0);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    padding: 20px 48px;
    border-radius: 999px;
    box-shadow: 0 10px 28px var(--shadow);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.signal-cta:hover,
.signal-cta:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 36px var(--shadow);
}

.signal-cta:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .signal-cta {
        transition: none;
    }
}

.signal-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ---- Footer ---- */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain -
   spacing/contrast lives here instead. */

footer {
    position: relative;
    z-index: 2;
    padding: 24px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 250, 249, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(201, 143, 176, 0.18);
}

footer div {
    margin: 4px 0;
}

@media (max-width: 480px) {
    .hero {
        padding: 11vh 18px 7vh;
    }

    nav .nav-inner {
        padding: 18px 18px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-link {
        padding: 9px 16px;
        font-size: 0.82rem;
    }

    nav.nav-scrolled .nav-inner {
        padding: 10px 18px;
    }

    nav.nav-scrolled .logo {
        font-size: 1.05rem;
    }

    nav.nav-scrolled .nav-link {
        padding: 7px 14px;
        font-size: 0.74rem;
    }

    .cards-section {
        padding: 2vh 18px 7vh;
    }

    .card {
        padding: 30px 24px;
    }

    .signal-cta {
        padding: 16px 32px;
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
