/* ============================================================
   NICOLE & RUBEN WEDDING SITE — shared styles
   Aruba, June 12 2027
   Palette: mediterranean blue, warm white, golden yellow
   ============================================================ */

:root {
    --blue-deep:   #1a4f82;
    --blue:        #2d6fae;
    --blue-soft:   #cfe2f3;
    --yellow:      #f5c842;
    --yellow-soft: #fdebb1;
    --white:       #fffef7;
    --text:        #1e2d40;
    --text-soft:   #5a6878;
    --line:        #e6d49a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 58px; }

body {
    font-family: 'Lato', sans-serif;
    background: var(--white);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.65;
    text-align: center;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--blue-deep);
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    margin: 0 0 8px 0;
}
h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--yellow);
    margin: 14px auto 28px auto;
    border-radius: 2px;
}

a { color: var(--blue-deep); }

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ---------- SITE NAV ---------- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(255, 254, 247, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--blue-soft);
    box-shadow: 0 2px 12px rgba(26, 79, 130, 0.07);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.35s, transform 0.35s;
}

.site-nav.scrolled {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--blue-deep);
    text-decoration: none;
    line-height: 1;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue); }

.nav-links .nav-btn {
    padding: 8px 20px;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: 70px 24px 50px 24px;
    background:
        radial-gradient(ellipse at top, var(--yellow-soft) 0%, transparent 55%),
        linear-gradient(rgba(255, 254, 247, 0.78), rgba(247, 250, 255, 0.78)),
        url('photos/background-1.png') center / cover no-repeat;
    border-bottom: 1px solid var(--blue-soft);
    overflow: hidden;
}

.hero-eyebrow {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--blue-deep);
    margin: 0 0 4px 0;
    line-height: 1;
}

.hero-names {
    font-family: 'Playfair Display', serif;
    font-size: 3.4rem;
    color: var(--blue-deep);
    margin: 4px 0 14px 0;
    letter-spacing: 1px;
}

.hero-divider {
    width: 90px;
    height: 2px;
    background: var(--yellow);
    margin: 14px auto;
    border: 0;
}

.hero-date {
    font-size: 1.15rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 6px 0;
}

.hero-location {
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-soft);
    margin: 0 0 32px 0;
}

/* ---------- COUNTDOWN ---------- */
.countdown {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 12px auto 28px auto;
    max-width: 560px;
}

.countdown-cell {
    background: white;
    border: 1px solid var(--blue-soft);
    border-top: 3px solid var(--yellow);
    border-radius: 8px;
    padding: 14px 8px 10px 8px;
    min-width: 90px;
    box-shadow: 0 4px 14px rgba(26, 79, 130, 0.08);
}

.countdown-cell .num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--blue-deep);
    line-height: 1;
    display: block;
}

.countdown-cell .label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-top: 6px;
    display: block;
}

/* ---------- ADULTS-ONLY NOTE ---------- */
.adults-only {
    max-width: 620px;
    margin: 18px auto 0 auto;
    padding: 18px 22px;
    background: white;
    border-left: 3px solid var(--yellow);
    border-radius: 4px;
    color: var(--text-soft);
    font-style: italic;
    font-size: 0.95rem;
    text-align: left;
    box-shadow: 0 2px 10px rgba(26, 79, 130, 0.05);
}

/* ---------- SECTIONS ---------- */
section {
    padding: 60px 24px;
    border-bottom: 1px solid var(--blue-soft);
}

section:last-of-type { border-bottom: 0; }

#practical {
    background:
        radial-gradient(ellipse at bottom, var(--yellow-soft) 0%, transparent 55%),
        linear-gradient(rgba(255, 254, 247, 0.78), rgba(247, 250, 255, 0.78)),
        url('photos/background-2.png') center / cover no-repeat;
}

section .container { padding: 0 0; }

.section-text {
    max-width: 680px;
    margin: 0 auto 24px auto;
    text-align: left;
    color: var(--text);
}

.section-text p { margin: 0 0 18px 0; }

/* ---------- STORY IMAGE PLACEHOLDERS ---------- */
.story-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    max-width: 720px;
    margin: 32px auto 32px auto;
}

/* Single featured portrait — shown centered, capped width */
.story-images.featured {
    grid-template-columns: 1fr;
    max-width: 320px;
}

.photo-placeholder {
    position: relative;
    aspect-ratio: 2 / 3;
    background:
        linear-gradient(135deg, var(--yellow-soft) 0%, var(--blue-soft) 100%);
    border: 1px dashed var(--blue);
    border-radius: 8px;
    overflow: hidden;
}

.photo-placeholder::before {
    content: "Photo placeholder";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--blue-deep);
    font-size: 0.95rem;
    opacity: 0.85;
}

.photo-placeholder img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- PRACTICAL INFO LIST ---------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.info-card {
    background: white;
    border: 1px solid var(--blue-soft);
    border-top: 3px solid var(--yellow);
    border-radius: 8px;
    padding: 22px 22px;
    box-shadow: 0 4px 14px rgba(26, 79, 130, 0.06);
}

.info-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
}

.info-card p { margin: 0; color: var(--text-soft); }

.info-card ul {
    margin: 8px 0 0 0;
    padding-left: 18px;
    color: var(--text-soft);
}

/* ---------- ITINERARY ---------- */
#itinerary {
    background:
        radial-gradient(ellipse at top right, rgba(207, 226, 243, 0.35) 0%, transparent 50%),
        var(--white);
}

.itinerary-list {
    max-width: 640px;
    margin: 32px auto 0;
}

.itinerary-day {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: start;
    background: white;
    border: 1px solid var(--blue-soft);
    border-radius: 10px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(26, 79, 130, 0.05);
    text-align: left;
    overflow: hidden;
}

.itinerary-day--wedding {
    border: 2px solid var(--yellow);
    box-shadow: 0 6px 24px rgba(245, 200, 66, 0.18);
}

.itinerary-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 0;
    border-right: 1px solid var(--blue-soft);
    align-self: stretch;
}

.itinerary-day--wedding .itinerary-date {
    border-right-color: var(--yellow);
    background: rgba(245, 200, 66, 0.08);
}

.itin-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-deep);
    line-height: 1;
}

.itin-label {
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-top: 4px;
}

.itinerary-body {
    padding: 20px 22px;
}

.itinerary-body h3 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
}

.itinerary-body p {
    margin: 0 0 10px 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}

.itin-tag {
    display: inline-block;
    font-size: 0.67rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 10px;
}

.itin-tag--wedding {
    background: var(--yellow);
    color: var(--blue-deep);
    border-color: var(--yellow);
    font-weight: 700;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    background: var(--yellow);
    color: var(--blue-deep);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(245, 200, 66, 0.4);
}

.btn:hover {
    background: #e8b929;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 200, 66, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--blue-deep);
    border: 2px solid var(--blue-deep);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--blue-deep);
    color: white;
}

/* ---------- TOP RSVP CTA (Phase 2) ---------- */
.rsvp-hero-cta { margin-top: 18px; }

/* ---------- STICKY RSVP BAR (Phase 2) ---------- */
.sticky-rsvp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.sticky-rsvp.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ---------- FOOTER ---------- */
footer {
    padding: 30px 20px;
    background: var(--blue-deep);
    color: var(--blue-soft);
    font-size: 0.85rem;
}

footer .heart { color: var(--yellow); }

/* ---------- FORMS (rsvp + admin) ---------- */
.form-card {
    max-width: 560px;
    margin: 30px auto;
    background: white;
    padding: 36px 32px;
    border-radius: 10px;
    border-top: 4px solid var(--yellow);
    box-shadow: 0 8px 30px rgba(26, 79, 130, 0.1);
    text-align: left;
}

.form-card h2 { text-align: center; }

.form-group { margin-bottom: 20px; }

.form-group label.field-label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--blue-deep);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--blue-soft);
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    background: var(--white);
    color: var(--text);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(45, 111, 174, 0.18);
}

input[readonly] {
    background: var(--blue-soft);
    color: var(--text);
    cursor: not-allowed;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
    font-size: 0.95rem;
}

.checkbox-row input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--blue-deep);
    flex-shrink: 0;
}

.checkbox-row label { cursor: pointer; }

.activity-row {
    background: var(--white);
    border: 1px solid var(--blue-soft);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 8px;
}

.activity-row .activity-detail {
    display: block;
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-top: 2px;
    margin-left: 28px;
}

.form-help {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-top: -10px;
    margin-bottom: 18px;
}

.form-message {
    margin: 14px 0;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
}
.form-message.error   { background: #fde2e2; color: #8a2222; }
.form-message.success { background: #def4dd; color: #265f29; }

/* ---------- ADMIN TABLE ---------- */
.admin-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 18px 0 26px 0;
    flex-wrap: wrap;
}

.admin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid var(--blue-soft);
}

table.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.88rem;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--blue-soft);
    vertical-align: top;
}

.admin-table th {
    background: var(--blue-deep);
    color: white;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.admin-table tr:nth-child(even) td { background: #fafcff; }

.empty-state {
    padding: 40px 20px;
    color: var(--text-soft);
    font-style: italic;
    text-align: center;
}

/* ---------- STORY CHAPTER HEADING ---------- */
#story .section-text h3 {
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 400;
    text-align: center;
    margin: 40px 0 4px 0;
}

#story .section-text h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--yellow);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* ---------- HIDDEN ---------- */
.hidden { display: none !important; }

/* ---------- MOBILE ---------- */
@media (max-width: 640px) {
    .nav-inner    { height: 50px; }
    .nav-brand    { font-size: 1.5rem; }
    .nav-links    { gap: 12px; }
    .nav-links a  { font-size: 0.68rem; letter-spacing: 0.8px; }
    .itin-num     { font-size: 1.6rem; }
    .hero-names    { font-size: 2.4rem; }
    .hero-eyebrow  { font-size: 2.4rem; }
    h2             { font-size: 1.8rem; }
    section        { padding: 50px 18px; }
    .countdown-cell { min-width: 70px; padding: 12px 6px; }
    .countdown-cell .num { font-size: 1.7rem; }
    .sticky-rsvp { right: 16px; bottom: 16px; }
    .sticky-rsvp .btn { padding: 12px 22px; font-size: 0.8rem; }
}
