/* ========================================
   C.D. Ward Lodge 961 — Editorial Style
   Burgundy + Blush Color Palette
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-burgundy: #6B1D2A;
    --color-burgundy-dark: #4A1019;
    --color-burgundy-light: #8B2E3F;
    --color-blush: #F2D5D0;
    --color-blush-light: #FAEBE7;
    --color-blush-pale: #FFF5F2;
    --color-cream: #FDF8F5;
    --color-warm-white: #FEFAF8;
    --color-text: #1A0A0D;
    --color-text-muted: #5C3A40;
    --color-text-light: #8A5E65;
    --color-border: #E8D0CA;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-warm-white);
    -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;
}

address {
    font-style: normal;
}

/* --- Focus --- */
:focus-visible {
    outline: 2px solid var(--color-burgundy);
    outline-offset: 2px;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--color-burgundy);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 500;
}

.skip-link:focus {
    top: var(--space-sm);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Eyebrow --- */
.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: var(--space-sm);
    display: block;
}

/* --- Section Title --- */
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.text-burgundy {
    color: var(--color-burgundy);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn svg {
    flex-shrink: 0;
}

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

.btn-burgundy:hover {
    background: var(--color-burgundy-dark);
    border-color: var(--color-burgundy-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 29, 42, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-burgundy);
    border-color: var(--color-burgundy);
}

.btn-outline:hover {
    background: var(--color-blush-light);
}

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

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(107, 29, 42, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-burgundy);
    background: var(--color-burgundy);
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
}

.logo-accent {
    color: var(--color-burgundy);
}

/* --- Nav --- */
.nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

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

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

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

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

/* --- Nav Toggle --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

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

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

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

/* --- Hero --- */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--color-cream);
    position: relative;
    overflow: hidden;
}

.hero-burgundy-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-burgundy), var(--color-burgundy-light), var(--color-burgundy));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-2xl) 0;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
}

.hero-content {
    padding-right: var(--space-lg);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-burgundy);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

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

/* --- Hero Image --- */
.hero-image {
    position: relative;
}

.hero-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(107, 29, 42, 0.15);
}

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

.hero-accent-box {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: var(--color-burgundy);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    max-width: 280px;
    box-shadow: 0 10px 30px rgba(107, 29, 42, 0.3);
}

.accent-quote {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}

/* --- About --- */
.about {
    padding: var(--space-3xl) 0;
    background: var(--color-warm-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-image-col {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(107, 29, 42, 0.12);
}

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

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -32px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 5px solid var(--color-warm-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.about-text-col {
    padding: var(--space-md) 0;
}

.about-text-col p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.about-features {
    margin-top: var(--space-lg);
    display: grid;
    gap: var(--space-sm);
}

.about-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
}

.about-features svg {
    color: var(--color-burgundy);
    flex-shrink: 0;
}

/* --- Stay --- */
.stay {
    padding: var(--space-3xl) 0;
    background: var(--color-blush-pale);
}

.stay-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.stay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.stay-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(107, 29, 42, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.stay-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(107, 29, 42, 0.12);
}

.stay-card-img {
    height: 220px;
    overflow: hidden;
}

.stay-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.stay-card:hover .stay-card-img img {
    transform: scale(1.05);
}

.stay-card-content {
    padding: var(--space-lg);
}

.stay-card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.stay-card-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* --- Testimonial --- */
.testimonial {
    padding: var(--space-3xl) 0;
    background: var(--color-burgundy);
    position: relative;
    overflow: hidden;
}

.testimonial::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.testimonial-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.testimonial-quote-mark {
    color: var(--color-blush);
    opacity: 0.4;
    margin-bottom: var(--space-md);
}

.testimonial blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: white;
    margin-bottom: var(--space-md);
}

.testimonial-source {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-blush);
    letter-spacing: 0.05em;
}

/* --- Location --- */
.location {
    padding: var(--space-3xl) 0;
    background: var(--color-warm-white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: stretch;
}

.location-text {
    padding: var(--space-lg) 0;
}

.location-address {
    margin: var(--space-lg) 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.location-address p {
    margin-bottom: 0.25rem;
}

.location-address strong {
    color: var(--color-text);
}

.location-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-burgundy);
    transition: color var(--transition);
}

.contact-item:hover {
    color: var(--color-burgundy-dark);
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 10px 30px rgba(107, 29, 42, 0.1);
}

/* --- CTA --- */
.cta {
    padding: var(--space-3xl) 0;
    background: var(--color-blush);
}

.cta-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.cta-content {
    padding: var(--space-lg);
}

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.cta-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(107, 29, 42, 0.15);
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Footer --- */
.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo-mark {
    background: var(--color-burgundy);
}

.footer-tagline {
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.footer h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
}

.footer address {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: var(--space-lg);
    }

    .hero-content {
        padding-right: var(--space-md);
    }

    .hero-title {
        font-size: clamp(2.25rem, 5vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    :root {
        --space-2xl: 4rem;
        --space-3xl: 5rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 248, 245, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: var(--space-lg);
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav ul {
        flex-direction: column;
        gap: var(--space-md);
    }

    .nav a {
        font-size: 1rem;
    }

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        padding: var(--space-lg) 0;
        min-height: auto;
    }

    .hero-content {
        padding-right: 0;
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-accent-box {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: var(--space-sm);
        max-width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 40%;
        margin-top: var(--space-sm);
        border-width: 3px;
    }

    /* Stay */
    .stay-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Location */
    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-map {
        min-height: 300px;
    }

    /* CTA */
    .cta-inner {
        grid-template-columns: 1fr;
    }

    .cta-image {
        order: -1;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

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

    .hero-title {
        font-size: clamp(1.75rem, 9vw, 2.5rem);
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .cta-actions {
        flex-direction: column;
    }

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