/* ============================================
   Sammie's Prairie Inn — Styles
   Charcoal + Coral | Playfair Display + Inter
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --charcoal: #2C2C2C;
    --charcoal-deep: #1A1A1A;
    --charcoal-light: #3D3D3D;
    --coral: #C8553D;
    --coral-light: #D4725C;
    --coral-dark: #A8432F;
    --cream: #F7F3EF;
    --cream-dark: #EDE8E2;
    --warm-gray: #8A8580;
    --warm-gray-light: #B5B0AA;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

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

.text-center {
    text-align: center;
}

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--warm-gray);
    max-width: 560px;
    margin: 0 auto 48px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-coral {
    background-color: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

.btn-coral:hover {
    background-color: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 85, 61, 0.3);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 0.938rem;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(247, 243, 239, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(44, 44, 44, 0.08);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(44, 44, 44, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--charcoal);
}

.logo-mark {
    color: var(--coral);
}

.logo-light {
    color: var(--white);
}

/* --- Navigation --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--charcoal);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--charcoal);
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal-light);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--coral);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--charcoal-deep);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.4) 0%,
        rgba(26, 26, 26, 0.6) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 120px 24px 80px;
}

.hero-eyebrow {
    font-size: 0.813rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral-light);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-title em {
    font-style: italic;
    color: var(--coral-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.688rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* --- About --- */
.about {
    padding: 120px 0;
    background-color: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-images {
    position: relative;
    height: 600px;
}

.about-img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 80%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(44, 44, 44, 0.15);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 50%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(44, 44, 44, 0.15);
    border: 4px solid var(--cream);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content p {
    color: var(--warm-gray);
    margin-bottom: 16px;
    font-size: 1rem;
}

.about-content p:first-of-type {
    font-size: 1.063rem;
    color: var(--charcoal-light);
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--cream-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--coral);
    line-height: 1;
}

.stat-label {
    font-size: 0.813rem;
    color: var(--warm-gray);
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--cream-dark);
}

/* --- Menu --- */
.menu {
    padding: 100px 0;
    background-color: var(--charcoal);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 56px;
}

.menu-category {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 40px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-title svg {
    color: var(--coral);
}

.menu-items li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 16px;
}

.menu-items li:last-child {
    border-bottom: none;
}

.item-name {
    font-family: var(--font-serif);
    font-size: 1.063rem;
    font-weight: 500;
    color: var(--white);
}

.item-desc {
    font-size: 0.813rem;
    color: var(--warm-gray);
    text-align: right;
    line-height: 1.5;
}

.menu-note {
    padding: 48px 0 0;
}

.menu-note p {
    color: var(--warm-gray);
    margin-bottom: 24px;
    font-size: 0.938rem;
}

.menu-note .btn {
    margin-top: 8px;
}

/* --- Gallery --- */
.gallery {
    padding: 100px 0 80px;
    background-color: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 56px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/2;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Hours --- */
.hours {
    padding: 100px 0;
    background-color: var(--cream-dark);
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.hours-table {
    margin-top: 32px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
    font-size: 0.938rem;
}

.hours-row:last-child {
    border-bottom: none;
}

.day {
    font-weight: 500;
    color: var(--charcoal);
}

.time {
    color: var(--warm-gray);
}

.hours-row.highlight .day {
    color: var(--coral);
    font-weight: 600;
}

.hours-row.highlight .time {
    color: var(--coral-light);
}

.hours-note {
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--warm-gray);
    font-style: italic;
}

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(44, 44, 44, 0.12);
    margin-bottom: 24px;
}

.map-wrapper iframe {
    width: 100%;
    height: 360px;
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.938rem;
    color: var(--charcoal-light);
}

.contact-info a {
    color: var(--coral);
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--coral-dark);
    text-decoration: underline;
}

/* --- CTA / Contact --- */
.cta {
    position: relative;
    padding: 120px 0;
    background-color: var(--charcoal-deep);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.92) 0%, rgba(44, 44, 44, 0.88) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.cta .section-title {
    color: var(--white);
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.813rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.938rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    background-color: rgba(255, 255, 255, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group select option {
    background-color: var(--charcoal);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group.full-width {
    width: 100%;
}

.form-success {
    text-align: center;
    padding: 48px 24px;
}

.form-success svg {
    color: var(--coral);
    margin-bottom: 20px;
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 12px;
}

.form-success p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.938rem;
    line-height: 1.7;
}

.form-success a {
    color: var(--coral-light);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--charcoal-deep);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--coral-light);
}

.footer-contact p {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-contact a {
    color: var(--coral-light);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

    .about-images {
        height: 480px;
    }

    .menu-grid {
        gap: 24px;
    }

    .menu-category {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.063rem;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    .hero-title {
        font-size: clamp(1.875rem, 7vw, 2.75rem);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-images {
        height: 400px;
        order: -1;
    }

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

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

    .hours-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content {
        padding: 100px 16px 60px;
    }

    .about {
        padding: 80px 0;
    }

    .about-images {
        height: 320px;
    }

    .menu {
        padding: 80px 0;
    }

    .menu-category {
        padding: 24px;
    }

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

    .gallery {
        padding: 80px 0 60px;
    }

    .hours {
        padding: 80px 0;
    }

    .cta {
        padding: 80px 0;
    }
}
