/* ============================================================
   Hazlnut — base stylesheet
   Rules every page shares: palette tokens, resets, h1/h2, body, the
   .header bar, .nav-link / .nav-link-highlight and .modal-content basics.
   Loaded by render_seo_head immediately BEFORE css/style.css, so the
   cascade order is unchanged for app pages. Landing loads only this
   file (include_style_css=false) and skips the 180KB style.css.
   Moved (not copied) out of style.css; do not re-add them there.
   ============================================================ */

:root {
    /* Landing palette (source: frontend/seo/landing.html) */
    --maroon: #561023;
    --green: #084434;
    --forest: #0f3a2e;
    --teal: #194234;
    --blue: #bed9ed;
    --cream: #ede6dc;
    --coral: #E45558;
    --yellow: #d5c800;
    --magenta: #e163c3;
    --black: #1e1e1e;
    --offwhite: #efe8db;

    /* Legacy / app tokens (aligned to landing where applicable) */
    --wedding-bg: linear-gradient(180deg, #faf8f5 0%, #f5f1eb 100%);
    --wedding-bg-solid: #f5f1eb;
    /* unify flat color to avoid gradient seam */
    --nav-bg: var(--cream);
    /* header + sidepane — brand cream */
    --gift-card-accent: var(--coral);
    /* gift card contribute btn, progress bar fill */
    --page-bg: var(--cream);
    /* main content area — brand cream */
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: 'Nanum Myeongjo', serif;
    background: white;
    min-height: 100vh;
    /* Fallback for older browsers */
    min-height: 100dvh;
    /* Dynamic viewport height for iOS Safari */
    /* text-align: center; */
}

/* Mobile responsiveness basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Title */
h1 {
    color: #2c3e50;
    margin-top: 20px;
    font-family: 'Nanum Myeongjo', serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h2 {
    color: #2c3e50;
    margin-top: 20px;
    font-family: 'Nanum Myeongjo', serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 0px;
    width: 40%;
    text-align: center;
    box-shadow: 6px 4px 0 0 var(--coral, #e45558), -8px -6px 20px rgb(8 8 8 / 20%) !important;
}

@media screen and (max-width: 1024px) {

    /* Modal adjustments for mobile */
    .modal-content {
        width: 90%;
        /*min-height: 350px; /* Use fixed min-height instead */
        margin: 20% auto;
        padding: 15px;
        gap: 20px;
        /* Adds space between all flex items */
    }
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 0px;
    width: 40%;
    text-align: center;
}

.shagun-modal-content input {
    width: 30%;
    padding: 8px;
    margin: 10px 0;
}

.modal-content input {
    width: 80%;
    padding: 8px;
    margin: 10px 0;
}

.modal-content button:hover {
    background: #324848;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--nav-bg);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
    margin: 0;
    z-index: 1000;
    transition: none;
}

@media screen and (min-width: 1025px) {

    .header {
        justify-content: space-between;
        /* Space between logo and right nav */
        gap: 2rem;
    }
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    vertical-align: middle;
}

.nav-link-highlight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    min-height: 36px;
    background: var(--maroon, #561023);
    color: var(--cream, #ede6dc) !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(86, 16, 35, 0.15);
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    box-sizing: border-box;
    line-height: 1;
}

.nav-link-highlight:hover {
    background: #3f0c1a;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(86, 16, 35, 0.25);
}

@media screen and (max-width: 1024px) {

    /* Header adjustments */
    .header {
        padding: 12px 20px;
        position: fixed;
        z-index: 1000;
        left: 0 !important;
        width: 100vw !important;
        justify-content: flex-start;
        /* Align items to the left on mobile */
        gap: 1rem;
        /* Add gap between logo and right nav */
    }

    h1 {
        font-size: 32px;
        /* padding: 0 20px; */
    }

    h2 {
        font-size: 28px;
        /* padding: 0 20px; */
    }

    .header {
        padding: 12px 20px;
    }

    /* Modal adjustments for mobile */
    .modal-content,
    .shagun-modal-content {
        width: 90%;
        /*min-height: 350px; /* Use fixed min-height instead */
        margin: 20% auto;
        padding: 15px;
        gap: 20px;
        /* Adds space between all flex items */
    }
}
