/* ============================================
   Iron Horse Saloon — Styles
   Palette: Terracotta + Sand
   ============================================ */

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

:root {
    --terracotta: #B85C38;
    --terracotta-dark: #9A4B2C;
    --terracotta-light: #D4845E;
    --sand: #F5EDE3;
    --sand-light: #FAF6F1;
    --sand-dark: #E8DDD2;
    --charcoal: #2A2522;
    --charcoal-light: #4A423D;
    --warm-white: #FDFBF9;
    --warm-gray: #8A8078;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, 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);
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--warm-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 251, 249, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--sand-dark);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--charcoal);
    letter-spacing: 0.01em;
}

.nav-logo-icon {
    color: var(--terracotta);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal-light);
    position: relative;
    transition: color var(--transition);
}

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

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--charcoal);
    padding: 0.5rem;
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--warm-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--charcoal);
    padding: 0.5rem;
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--charcoal);
    transition: color var(--transition);
}

.mobile-link:hover {
    color: var(--terracotta);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(42, 37, 34, 0.55) 0%,
        rgba(42, 37, 34, 0.70) 50%,
        rgba(42, 37, 34, 0.82) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    padding-top: 4rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta-light);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--sand-light);
    margin-bottom: 1.5rem;
}

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

.hero-sub {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 237, 227, 0.8);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(245, 237, 227, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--terracotta);
    color: var(--sand-light);
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--sand-light);
    border: 1px solid rgba(245, 237, 227, 0.35);
}

.btn-ghost:hover {
    border-color: var(--sand-light);
    background: rgba(245, 237, 227, 0.08);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Sections --- */
.section {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
}

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

.lead {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--charcoal-light);
    max-width: 560px;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrap {
    overflow: hidden;
}

.about-image-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-text {
    padding: 1rem 0;
}

.about-text .section-title {
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-text .lead {
    margin-bottom: 1.25rem;
    text-align: left;
}

.about-text p {
    font-size: 0.9375rem;
    color: var(--charcoal-light);
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--sand-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--charcoal);
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--sand-dark);
}

/* --- Divider --- */
.thin-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0;
}

.thin-divider-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: var(--sand-dark);
}

.thin-divider-dot {
    color: var(--terracotta);
    font-size: 0.5rem;
    letter-spacing: 0.2em;
}

/* --- Experience --- */
.experience {
    background: var(--sand-light);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.exp-card {
    background: var(--warm-white);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.exp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(42, 37, 34, 0.08);
}

.exp-card-image {
    overflow: hidden;
}

.exp-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-card:hover .exp-card-image img {
    transform: scale(1.04);
}

.exp-card-body {
    padding: 2rem;
}

.exp-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.exp-card-body p {
    font-size: 0.9375rem;
    color: var(--charcoal-light);
    line-height: 1.75;
}

/* --- Visit --- */
.visit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.visit-info .section-title {
    text-align: left;
    margin-bottom: 1.25rem;
}

.visit-info .lead {
    text-align: left;
    margin-bottom: 2.5rem;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.visit-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.visit-detail-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

.visit-detail-value {
    font-size: 1rem;
    color: var(--charcoal);
    font-weight: 400;
}

.visit-detail-link {
    font-size: 1rem;
    color: var(--terracotta);
    font-weight: 400;
    transition: color var(--transition);
}

.visit-detail-link:hover {
    color: var(--terracotta-dark);
    text-decoration: underline;
}

.visit-map {
    position: relative;
    overflow: hidden;
}

.visit-map-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.visit-map-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(253, 251, 249, 0.95);
    backdrop-filter: blur(8px);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.visit-map-overlay svg {
    color: var(--terracotta);
    flex-shrink: 0;
}

.visit-map-overlay span {
    font-size: 0.875rem;
    color: var(--charcoal);
    font-weight: 400;
}

/* --- Contact --- */
.contact {
    background: var(--charcoal);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-text .section-eyebrow {
    color: var(--terracotta-light);
}

.contact-text .section-title {
    color: var(--sand-light);
    text-align: left;
    margin-bottom: 1.25rem;
}

.contact-text p {
    font-size: 0.9375rem;
    color: rgba(245, 237, 227, 0.6);
    line-height: 1.8;
}

.contact-form-wrap {
    background: rgba(253, 251, 249, 0.04);
    border: 1px solid rgba(245, 237, 227, 0.1);
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 237, 227, 0.5);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: transparent;
    border: 1px solid rgba(245, 237, 227, 0.15);
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--sand-light);
    transition: border-color var(--transition);
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 237, 227, 0.25);
}

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

.form-group select {
    appearance: none;
    cursor: pointer;
    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(245,237,227,0.4)' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

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

.form-success {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.form-success svg {
    color: var(--terracotta-light);
}

.form-success p {
    font-size: 0.9375rem;
    color: rgba(245, 237, 227, 0.7);
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    border-top: 1px solid rgba(245, 237, 227, 0.08);
    padding: 3.5rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--sand-light);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.8125rem;
    color: rgba(245, 237, 227, 0.4);
    letter-spacing: 0.04em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.footer-links a {
    font-size: 0.8125rem;
    color: rgba(245, 237, 227, 0.5);
    transition: color var(--transition);
    letter-spacing: 0.04em;
}

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

.footer-contact {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-contact p {
    font-size: 0.875rem;
    color: rgba(245, 237, 227, 0.5);
}

.footer-contact a {
    font-size: 0.875rem;
    color: var(--terracotta-light);
    transition: color var(--transition);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 237, 227, 0.06);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(245, 237, 227, 0.25);
    letter-spacing: 0.04em;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .visit-layout,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-wrap img {
        height: 400px;
    }

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

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .section {
        padding: 5rem 0;
    }

    .hero-content {
        padding-top: 2rem;
    }

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

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

    .contact-form-wrap {
        padding: 1.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }
}

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

    .nav-inner {
        padding: 0 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
