/* ========================================
   Clearwater Coffee Company
   Warm, Friendly, Terracotta & Sand
   ======================================== */

:root {
    /* Color Palette - Terracotta & Sand */
    --color-primary: #C05640;
    --color-primary-dark: #A04530;
    --color-primary-light: #D47560;
    --color-secondary: #E8D5C4;
    --color-secondary-light: #F5EDE4;
    --color-sand: #F7F3EF;
    --color-sand-dark: #EDE5DA;
    --color-text: #3D2B1F;
    --color-text-light: #6B5344;
    --color-white: #FFFFFF;
    --color-cream: #FFFAF7;
    
    /* Neutrals */
    --color-black: #1A1410;
    --color-gray: #8B7355;
    --color-gray-light: #C4B5A5;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(61, 43, 31, 0.06);
    --shadow-md: 0 4px 20px rgba(61, 43, 31, 0.1);
    --shadow-lg: 0 8px 40px rgba(61, 43, 31, 0.12);
    --shadow-xl: 0 16px 60px rgba(61, 43, 31, 0.15);
    
    /* Typography */
    --font-heading: 'Fraunces', serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

ul {
    list-style: none;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

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

.btn-light {
    background-color: var(--color-white);
    color: var(--color-text);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* Section */
.section {
    padding: var(--space-xl) 0;
}

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 250, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: var(--space-xs) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-white);
    transition: color 0.3s ease;
}

.navbar.scrolled .logo {
    color: var(--color-text);
}

.logo-icon {
    display: flex;
    align-items: center;
    color: var(--color-primary-light);
}

.navbar.scrolled .logo-icon {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-links a {
    color: var(--color-text-light);
}

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

.navbar.scrolled .nav-links a:hover {
    color: var(--color-primary);
}

.nav-links .btn-primary {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--color-text);
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary-dark) 100%);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.mobile-menu-overlay ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-menu-overlay a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-white);
    transition: color 0.3s ease;
}

.mobile-menu-overlay a:hover {
    color: var(--color-primary-light);
}

.close-menu-btn {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 2.5rem;
    color: var(--color-white);
    line-height: 1;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        135deg,
        rgba(26, 20, 16, 0.75) 0%,
        rgba(61, 43, 31, 0.55) 50%,
        rgba(192, 86, 64, 0.3) 100%
    );
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-lg);
    align-items: center;
    padding-top: 80px;
    padding-bottom: var(--space-lg);
}

.hero-text .eyebrow {
    color: var(--color-secondary);
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: var(--space-md);
    max-width: 600px;
}

.hero-text p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 480px;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

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

/* Hero Card */
.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-xl);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-sand-dark);
}

.hero-card-header span:first-child {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text);
}

.status.open {
    color: #2D8B4E;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-card-hours {
    margin-bottom: var(--space-md);
}

.hero-card-hours p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    padding: 6px 0;
}

.hero-card-cta {
    text-align: center;
}

.link-underline {
    color: var(--color-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.link-underline:hover {
    border-color: var(--color-primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

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

/* ========================================
   About Section
   ======================================== */
.about {
    background-color: var(--color-cream);
}

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

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

.img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 80%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 50%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--color-cream);
}

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

.about-content .eyebrow {
    margin-bottom: var(--space-sm);
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.25;
    margin-bottom: var(--space-md);
}

.about-content p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: var(--space-sm);
    line-height: 1.75;
}

.features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.feature {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

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

.feature h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.feature p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========================================
   Menu Section
   ======================================== */
.menu {
    background-color: var(--color-sand);
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.cat-btn {
    padding: 10px 28px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-light);
    background-color: transparent;
    border: 2px solid var(--color-sand-dark);
    transition: all 0.3s ease;
}

.cat-btn:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.menu-item:hover .item-image img {
    transform: scale(1.1);
}

.item-details h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.item-details p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.menu-note {
    text-align: center;
    margin-top: var(--space-md);
    color: var(--color-text-light);
    font-style: italic;
}

/* ========================================
   Community Section
   ======================================== */
.community {
    background-color: var(--color-cream);
}

.community-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.community-content .eyebrow {
    margin-bottom: var(--space-sm);
}

.community-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.25;
    margin-bottom: var(--space-md);
}

.community-content p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: var(--space-sm);
    line-height: 1.75;
}

.community-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-sand-dark);
}

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

.stat .number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1;
}

.stat .label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

.community-images {
    position: relative;
    height: 550px;
}

.comm-img.main {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 75%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.comm-img.secondary {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    height: 45%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--color-cream);
}

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

/* ========================================
   Visit Section
   ======================================== */
.visit {
    background-color: var(--color-sand);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.visit-info .eyebrow {
    margin-bottom: var(--space-sm);
}

.visit-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.25;
    margin-bottom: var(--space-sm);
}

.visit-info > p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: var(--space-lg);
    line-height: 1.75;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-item {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

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

.contact-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.contact-item p, .contact-item a {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.contact-item a:hover {
    color: var(--color-primary);
}

.hours h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.hours table {
    width: 100%;
    border-collapse: collapse;
}

.hours td {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-sand-dark);
}

.hours td:last-child {
    text-align: right;
    font-weight: 500;
    color: var(--color-text);
}

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

.map-container {
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

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

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

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

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        max-width: 100%;
    }
    
    .hero-text p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-grid,
    .community-split,
    .visit-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-stack {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .community-images {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --space-lg: 3rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: 100svh;
    }
    
    .hero-content {
        padding-top: 100px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .menu-categories {
        gap: var(--space-xs);
    }
    
    .cat-btn {
        padding: 8px 20px;
        font-size: 0.88rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .community-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .about-image-stack {
        height: 300px;
    }
    
    .img-main {
        width: 80%;
        height: 75%;
    }
    
    .img-secondary {
        width: 60%;
        height: 45%;
    }
    
    .community-images {
        height: 300px;
    }
    
    .comm-img.main {
        width: 80%;
        height: 75%;
    }
    
    .comm-img.secondary {
        width: 60%;
        height: 45%;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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