/* ========================================
   RED RIVER GORGE COFFEE CO.
   Stylesheet
======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta: #B85C38;
    --color-terracotta-dark: #9A4B2C;
    --color-terracotta-light: #D4845E;
    --color-sand: #E8D5C4;
    --color-sand-light: #F5EDE5;
    --color-sand-dark: #C4A882;
    --color-cream: #FBF8F5;
    --color-charcoal: #2C2420;
    --color-charcoal-light: #4A3F38;
    --color-text: #3D322C;
    --color-text-light: #6B5D54;
    --color-white: #FFFFFF;
    --color-overlay: rgba(44, 36, 32, 0.65);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --container-max: 1200px;
    --container-padding: 24px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 8px rgba(44, 36, 32, 0.08);
    --shadow-md: 0 8px 30px rgba(44, 36, 32, 0.12);
    --shadow-lg: 0 20px 60px rgba(44, 36, 32, 0.15);

    --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-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* --- Utility --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--color-terracotta-dark);
    border-color: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-light:hover {
    background-color: var(--color-sand-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

/* --- Section Tags & Titles --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: 16px;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-charcoal);
    margin-bottom: 24px;
}

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

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(251, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 92, 56, 0.1);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

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

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--color-terracotta);
    border-radius: var(--radius-sm);
    color: var(--color-white);
}

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

/* --- Navigation --- */
.nav {
    display: flex;
    align-items: center;
}

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

.nav-links li a {
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-links li a:hover {
    color: var(--color-terracotta);
    background-color: rgba(184, 92, 56, 0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-charcoal);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(44, 36, 32, 0.4) 0%,
        rgba(44, 36, 32, 0.6) 50%,
        rgba(44, 36, 32, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 76px;
    max-width: 720px;
}

.hero-tag {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-sand);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--color-white);
    margin-bottom: 24px;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

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

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

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-content .section-title {
    margin-bottom: 20px;
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    font-size: 1.0625rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--color-sand);
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-terracotta);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Menu --- */
.menu {
    padding: 120px 0;
    background-color: var(--color-sand-light);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.menu-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.menu-card-img {
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.menu-card:hover .menu-card-img img {
    transform: scale(1.06);
}

.menu-card-content {
    padding: 32px;
}

.menu-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: 12px;
}

.menu-card-content p {
    color: var(--color-text-light);
    line-height: 1.7;
}

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

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

.visit-info .section-title {
    margin-bottom: 20px;
}

.visit-info > p {
    color: var(--color-text-light);
    font-size: 1.0625rem;
    margin-bottom: 40px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-sand-light);
    border-radius: var(--radius-sm);
    color: var(--color-terracotta);
}

.detail-item strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-charcoal);
    margin-bottom: 4px;
}

.detail-item span,
.detail-item a {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.detail-item a:hover {
    color: var(--color-terracotta);
    text-decoration: underline;
}

.visit-map {
    min-height: 480px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9375rem;
    max-width: 320px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
}

.footer-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

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

.footer-bottom {
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.footer-bottom a {
    color: var(--color-sand);
    transition: color var(--transition);
}

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

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    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 {
        gap: 48px;
    }

    .visit-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background-color: var(--color-cream);
        flex-direction: column;
        align-items: stretch;
        padding: 100px 32px 40px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 1000;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links li a {
        padding: 14px 16px;
        font-size: 1.0625rem;
        border-radius: var(--radius-sm);
    }

    .nav-links li:last-child {
        margin-top: 16px;
    }

    .nav-links li:last-child a {
        text-align: center;
    }

    .hero-content {
        padding-top: 100px;
        padding-bottom: 80px;
    }

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

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

    .about {
        padding: 80px 0;
    }

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

    .about-image {
        order: -1;
    }

    .about-stats {
        gap: 24px;
    }

    .menu {
        padding: 80px 0;
    }

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

    .visit {
        padding: 80px 0;
    }

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

    .visit-map {
        min-height: 320px;
        order: -1;
    }

    .site-footer {
        padding: 60px 0 0;
    }

    .footer-links {
        gap: 8px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

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

    html {
        scroll-behavior: auto;
    }

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