/* ========================================
   Westslope Coffee Co. — Stylesheet
   Palette: Terracotta (#B85D45) + Sand (#E8D5C4 / #F5EDE6)
   Fonts: Playfair Display + Inter
   ======================================== */

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

:root {
    --terracotta: #B85D45;
    --terracotta-dark: #9A4B35;
    --terracotta-light: #D4856E;
    --sand: #E8D5C4;
    --sand-light: #F5EDE6;
    --sand-lighter: #FBF7F4;
    --cream: #FDF9F6;
    --dark: #2A1F1A;
    --dark-soft: #4A372E;
    --text: #3D2B22;
    --text-light: #7A6358;
    --white: #FFFFFF;
    --nav-height: 72px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--cream);
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--dark);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(253, 249, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 93, 69, 0.1);
    transition: box-shadow var(--transition);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(42, 31, 26, 0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark);
}

.logo-mark {
    width: 28px;
    height: 28px;
    background: var(--terracotta);
    border-radius: 6px;
    position: relative;
}

.logo-mark::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 7px;
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 50%;
}

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

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    transition: color var(--transition);
    position: relative;
}

.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-cta {
    background: var(--terracotta);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 100px;
    letter-spacing: 0.06em;
    transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--terracotta-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--dark);
    transition: var(--transition);
    transform-origin: center;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-link {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--dark);
    transition: color var(--transition);
}

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

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

.mobile-address {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    line-height: 1.8;
}

.mobile-phone {
    font-size: 18px;
    color: var(--terracotta);
    font-weight: 400;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: 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(
        135deg,
        rgba(42, 31, 26, 0.78) 0%,
        rgba(42, 31, 26, 0.55) 50%,
        rgba(42, 31, 26, 0.40) 100%
    );
}

.hero-container {
    position: relative;
    z-index: 1;
    padding-top: var(--nav-height);
    padding-bottom: 120px;
    width: 100%;
}

.hero-content {
    max-width: 640px;
    padding-top: 40px;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(42px, 7vw, 80px);
    font-weight: 400;
    color: var(--white);
    line-height: 1.08;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.hero-headline br {
    display: block;
}

.hero-sub {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    max-width: 480px;
    margin-bottom: 40px;
    font-weight: 300;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all var(--transition);
    cursor: pointer;
    border: 1.5px solid transparent;
}

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

.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 93, 69, 0.3);
}

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

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

.btn-sm {
    padding: 11px 24px;
    font-size: 12px;
}

/* ---------- Floating Stat Cards ---------- */
.hero-stats {
    position: absolute;
    right: 0;
    bottom: 80px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 24px;
}

.stat-card {
    background: var(--white);
    padding: 22px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(42, 31, 26, 0.12);
    min-width: 200px;
    animation: floatIn 0.6s ease-out both;
}

.stat-card:nth-child(1) { animation-delay: 0.3s; }
.stat-card:nth-child(2) { animation-delay: 0.45s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--terracotta);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    line-height: 1.4;
}

/* ---------- Section Divider ---------- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.divider-line {
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sand), transparent);
}

/* ---------- Section Shared ---------- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.75;
    font-weight: 300;
}

/* ---------- Menu Section ---------- */
.menu-section {
    padding: 100px 0;
    background: var(--sand-lighter);
}

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

.menu-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(42, 31, 26, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(42, 31, 26, 0.1);
}

.menu-card-img {
    height: 240px;
    overflow: hidden;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.menu-card-body {
    padding: 32px 28px;
}

.menu-card-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.menu-card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
    font-weight: 300;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid rgba(232, 213, 196, 0.6);
    font-size: 14px;
    color: var(--text);
}

.menu-list li:first-child {
    border-top: 1px solid rgba(232, 213, 196, 0.6);
}

.menu-list li span:last-child {
    color: var(--terracotta);
    font-family: 'Playfair Display', serif;
    font-size: 14px;
}

/* ---------- About Section ---------- */
.about-section {
    padding: 100px 0;
    background: var(--cream);
}

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

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

.about-image-wrap img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 20px;
}

.about-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 160px;
    height: 160px;
    background: var(--sand);
    border-radius: 16px;
    z-index: -1;
}

.about-content {
    padding: 20px 0;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 32px;
}

.about-body {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 20px;
    font-weight: 300;
}

.about-signature {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--sand);
}

.signature-text {
    display: block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--terracotta);
    margin-bottom: 4px;
}

.signature-location {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* ---------- Visit Section ---------- */
.visit-section {
    padding: 100px 0;
    background: var(--sand-lighter);
}

.visit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.visit-info-card {
    background: var(--white);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(42, 31, 26, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
}

.visit-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(42, 31, 26, 0.1);
}

.visit-map-card {
    text-align: left;
}

.visit-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sand-light);
    border-radius: 12px;
    color: var(--terracotta);
}

.visit-icon svg {
    width: 22px;
    height: 22px;
}

.visit-info-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 12px;
}

.visit-info-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.75;
    font-weight: 300;
}

.visit-info-card a {
    color: var(--terracotta);
    transition: color var(--transition);
}

.visit-info-card a:hover {
    color: var(--terracotta-dark);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark);
    padding: 64px 0 40px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

.footer-logo-mark {
    width: 24px;
    height: 24px;
    background: var(--terracotta);
    border-radius: 5px;
    position: relative;
}

.footer-logo-mark::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 6px;
    width: 12px;
    height: 12px;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 50%;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.06em;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
    transition: color var(--transition);
}

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

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.04em;
    margin-top: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .visit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        position: relative;
        right: auto;
        bottom: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        padding-right: 0;
        margin-top: 48px;
        justify-content: center;
    }

    .stat-card {
        min-width: 160px;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero-headline {
        font-size: clamp(36px, 10vw, 52px);
    }

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-card {
        min-width: auto;
        width: 100%;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

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

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

    .about-accent {
        width: 100px;
        height: 100px;
        bottom: -16px;
        right: -16px;
    }

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

    .about-content .section-eyebrow {
        text-align: center;
    }

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

    .visit-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .visit-map-card {
        text-align: center;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .menu-section,
    .about-section,
    .visit-section {
        padding: 72px 0;
    }
}

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

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

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

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

/* ---------- Accessibility: Reduced Motion ---------- */
@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;
    }

    .stat-card {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
