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

:root {
    --primary-color: #93E9BE;
    --secondary-color: #8b7355;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f7f4;
    --white: #ffffff;
    --sara-mint: #93E9BE;
    /* Georgia O'Keeffe Adobe Palette - Ranchos Church */
    --adobe-dark: #9B7B6B;
    --adobe-light: #C9ADA0;
    --adobe-rose: #D4B8AB;
    --adobe-cream: #E5D5C8;
    --sky-lavender: #B8B5C4;
    --sky-gray: #8E8D9A;
    --sky-light: #C8C6CF;
    /* Legacy palette for compatibility */
    --desert-terracotta: #9B7B6B;
    --desert-sand: #D4C4B5;
    --desert-sky: #B8B5C4;
    --desert-rose: #C9ADA0;
    --desert-ochre: #B09080;
    --desert-sienna: #8B6B5B;
    --desert-cream: #E5D5C8;
    --desert-dusk: #D4B8AB;
}

body {
    font-family: 'Georgia', serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navigation */
.main-nav {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Palatino', 'Georgia', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.1) rotate(-3deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-links a:hover {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
}

/* Content Pages - O'Keeffe Adobe Style */
.content-page {
    min-height: 70vh;
    padding: 5rem 0;
    padding-top: 8rem;
    background: linear-gradient(
        180deg,
        var(--sky-lavender) 0%,
        var(--sky-light) 15%,
        var(--adobe-cream) 35%,
        var(--adobe-rose) 60%,
        var(--adobe-light) 80%,
        var(--adobe-dark) 100%
    );
    position: relative;
}

/* Story page - blurred photo background like gallery */
.story-page {
    min-height: 100vh;
    background: transparent;
}

body:has(.story-page) {
    position: relative;
    overflow-x: hidden;
}

body:has(.story-page)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('okeeffe-gallery.jpg') center center / cover no-repeat;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: -2;
}

body:has(.story-page)::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

body:has(.story-page) .content-page::before {
    display: none;
}

.content-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse 80% 50% at 20% 90%, var(--adobe-dark) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 85%, var(--adobe-light) 0%, transparent 45%),
        radial-gradient(ellipse 100% 30% at 50% 0%, var(--sky-gray) 0%, transparent 60%);
    opacity: 0.3;
    pointer-events: none;
}

.content-page h1 {
    text-align: center;
    font-size: 3rem;
    color: var(--adobe-dark);
    margin-bottom: 3rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* Navigation on content pages */
.content-page ~ .main-nav,
body:not(:has(.hero)) .main-nav {
    background: transparent;
}

body:has(.content-page) .main-nav {
    position: absolute;
}

.content-placeholder {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-placeholder p {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.placeholder-text {
    font-size: 1.1rem !important;
    color: var(--text-light) !important;
    font-style: italic;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section - Custom Background */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Blurred background image */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('background.png') center center / cover no-repeat;
    filter: blur(6px);
    transform: scale(1.1);
    z-index: -2;
}

.hero-fullscreen {
    height: 100vh;
    min-height: 100vh;
}

/* Dark overlay for text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: -1;
}

/* Georgia O'Keeffe "Cow's Skull: Red, White, and Blue" tribute */
.okeeffe-skull {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 392px;
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
    filter: saturate(0.9);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: 'Palatino', 'Georgia', serif;
    letter-spacing: 2px;
}

.sara-name {
    font-family: 'Pacifico', cursive;
    font-size: 6rem;
    color: #93E9BE;
    text-shadow:
        3px 3px 0px #ffd700,
        6px 6px 0px #ff1493,
        9px 9px 0px #93E9BE,
        12px 12px 0px #7fff00;
    transform: rotate(-5deg);
    display: inline-block;
    animation: crazy-bounce 2s infinite;
}

@keyframes crazy-bounce {
    0%, 100% { transform: rotate(-5deg) translateY(0px); }
    25% { transform: rotate(5deg) translateY(-20px) scale(1.1); }
    50% { transform: rotate(-8deg) translateY(0px) scale(1); }
    75% { transform: rotate(3deg) translateY(-10px) scale(1.05); }
}

.plus-sign {
    font-family: 'Georgia', serif;
    font-size: 4rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    display: inline-block;
    margin: 0 1.5rem 0 2.5rem;
    vertical-align: middle;
}

.willis-name {
    font-family: 'Pacifico', cursive;
    font-size: 6rem;
    color: #C4836A;
    text-shadow:
        3px 3px 0px #D4A088,
        6px 6px 0px #A67B5B,
        9px 9px 0px #8B6B5B,
        12px 12px 0px #BFA094;
    transform: rotate(5deg);
    display: inline-block;
    animation: desert-bounce 2.5s infinite;
}

@keyframes desert-bounce {
    0%, 100% { transform: rotate(5deg) translateY(0px); }
    25% { transform: rotate(-7deg) translateY(-15px) scale(1.08); }
    50% { transform: rotate(6deg) translateY(0px) scale(1); }
    75% { transform: rotate(-4deg) translateY(-12px) scale(1.04); }
}

.floating-sara {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 8px solid #93E9BE;
    box-shadow: 0 0 30px rgba(147, 233, 190, 0.8);
    object-fit: cover;
    animation: float-around 15s infinite ease-in-out;
    z-index: 10;
    transform-origin: center;
}

@keyframes float-around {
    0% {
        top: 20%;
        left: 10%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        top: 70%;
        left: 80%;
        transform: rotate(180deg) scale(1.2);
    }
    50% {
        top: 30%;
        left: 85%;
        transform: rotate(360deg) scale(0.9);
    }
    75% {
        top: 80%;
        left: 15%;
        transform: rotate(540deg) scale(1.1);
    }
    100% {
        top: 20%;
        left: 10%;
        transform: rotate(720deg) scale(1);
    }
}

.floating-willis {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 8px solid var(--desert-terracotta);
    box-shadow: 0 0 30px rgba(194, 101, 74, 0.8);
    object-fit: cover;
    animation: float-around-willis 18s infinite ease-in-out;
    z-index: 10;
    transform-origin: center;
}

@keyframes float-around-willis {
    0% {
        top: 70%;
        left: 85%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        top: 15%;
        left: 15%;
        transform: rotate(-180deg) scale(1.1);
    }
    50% {
        top: 75%;
        left: 20%;
        transform: rotate(-360deg) scale(0.95);
    }
    75% {
        top: 25%;
        left: 80%;
        transform: rotate(-540deg) scale(1.15);
    }
    100% {
        top: 70%;
        left: 85%;
        transform: rotate(-720deg) scale(1);
    }
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
}

.date {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.date .venue {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 500;
    margin-top: 0.5rem;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Details Section */
.details {
    padding: 5rem 0;
    background-color: var(--white);
}

.details h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-weight: 400;
}

.gallery-cta {
    text-align: center;
    margin-top: 3rem;
}

.gallery-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 233, 190, 0.4);
}

.gallery-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.detail-card p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* RSVP Section */
.rsvp {
    padding: 5rem 0;
    padding-top: 8rem;
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        var(--sky-lavender) 0%,
        var(--sky-light) 15%,
        var(--adobe-cream) 35%,
        var(--adobe-rose) 60%,
        var(--adobe-light) 80%,
        var(--adobe-dark) 100%
    );
    position: relative;
}

.rsvp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse 70% 40% at 10% 85%, var(--adobe-dark) 0%, transparent 45%),
        radial-gradient(ellipse 60% 35% at 90% 90%, var(--adobe-light) 0%, transparent 40%);
    opacity: 0.25;
    pointer-events: none;
}

.rsvp h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--adobe-dark);
    margin-bottom: 1rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.rsvp-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-style: italic;
}

#rsvpForm {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-toggle {
    background: var(--primary-color);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(147, 233, 190, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.05);
}

.chat-icon {
    font-size: 1.5rem;
}

.chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.open {
    display: flex;
}

.chatbot-header {
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chatbot-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.chatbot-close:hover {
    transform: scale(1.2);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-light);
}

.bot-message,
.user-message {
    margin-bottom: 15px;
    display: flex;
}

.user-message {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 0.95rem;
}

.bot-message .message-bubble {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.user-message .message-bubble {
    background: var(--primary-color);
    color: var(--text-dark);
}

.chatbot-input-container {
    display: flex;
    padding: 15px;
    background: var(--white);
    border-top: 1px solid #e0e0e0;
}

.chatbot-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.95rem;
    font-family: 'Georgia', serif;
    outline: none;
}

.chatbot-input:focus {
    border-color: var(--primary-color);
}

.chatbot-send {
    margin-left: 10px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-send:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* FAQ Page Styles */
.faq-section {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.faq-section h2 {
    font-size: 2rem;
    color: var(--adobe-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--adobe-light);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.faq-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-3px);
}

.faq-card h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.faq-card p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.faq-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-card ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.highlight-card {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, var(--white) 0%, rgba(147, 233, 190, 0.1) 100%);
}

.faq-link {
    display: inline-block;
    color: var(--adobe-dark);
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: var(--adobe-cream);
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.faq-link:hover {
    background: var(--adobe-dark);
    color: var(--white);
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.rec-item {
    background: rgba(255, 255, 255, 0.85);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.rec-item:hover {
    transform: translateY(-3px);
}

.rec-item h4 {
    color: var(--adobe-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.rec-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.rec-item a {
    color: var(--adobe-dark);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
}

.rec-item a:hover {
    text-decoration: underline;
}

.food-list {
    list-style: none;
    padding-left: 0;
}

.food-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--adobe-light);
}

.food-list li:last-child {
    border-bottom: none;
}

.note {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

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

    .hero h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .details h2,
    .rsvp h2,
    .content-page h1 {
        font-size: 2rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    #rsvpForm {
        padding: 2rem 1.5rem;
    }

    .chatbot-window {
        width: calc(100vw - 40px);
        height: 400px;
        bottom: 80px;
    }

    .chat-text {
        display: none;
    }

    .chatbot-toggle {
        padding: 15px;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        justify-content: center;
    }
}
