/* ========================================
   Diamond Lake Junction Cafe
   Warm · Friendly · High Desert
   ======================================== */

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

:root {
    --terracotta: #E07A5F;
    --terracotta-dark: #C4624A;
    --terracotta-light: #F2CC8F;
    --sand: #F4F1DE;
    --sand-dark: #E8DFC8;
    --sand-light: #FBF8F0;
    --brown-dark: #3D405B;
    --brown-medium: #5C4033;
    --brown-text: #2C2C2C;
    --brown-muted: #6B6B6B;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(61, 64, 91, 0.06);
    --shadow-md: 0 4px 20px rgba(61, 64, 91, 0.1);
    --shadow-lg: 0 8px 40px rgba(61, 64, 91, 0.12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;
    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--brown-text);
    background-color: var(--sand-light);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.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 6px 20px rgba(224, 122, 95, 0.35);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
}

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

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

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

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

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

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

/* --- Section Shared --- */
.section {
    padding: 100px 0;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--terracotta);
    background: rgba(224, 122, 95, 0.1);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600;
    color: var(--brown-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--brown-muted);
    line-height: 1.8;
    max-width: 560px;
}

.centered .section-desc {
    margin: 0 auto;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(244, 241, 222, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(224, 122, 95, 0.1);
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(251, 248, 240, 0.97);
    box-shadow: var(--shadow-md);
}

.nav-container {
    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.1rem;
    font-weight: 600;
    color: var(--brown-dark);
}

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

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

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brown-dark);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.main-nav a:not(.btn):hover {
    background: rgba(224, 122, 95, 0.1);
    color: var(--terracotta);
}

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

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--brown-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.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);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #3D405B 0%, #5C4033 40%, #E07A5F 100%);
}

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

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(61, 64, 91, 0.85) 0%,
        rgba(92, 64, 51, 0.7) 50%,
        rgba(224, 122, 95, 0.6) 100%
    );
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(44, 44, 44, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: var(--sand);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.text-highlight {
    color: var(--terracotta-light);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.95rem;
}

.highlight-item svg {
    color: var(--terracotta-light);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* --- About --- */
.about {
    background: var(--sand-light);
}

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

.about-images {
    position: relative;
}

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

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

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--sand-light);
}

.about-img-secondary img {
    width: 220px;
    height: 220px;
    object-fit: cover;
}

.about-stat {
    position: absolute;
    top: -20px;
    right: 40px;
    background: var(--terracotta);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-stat .stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
}

.about-stat .stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

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

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(224, 122, 95, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature strong {
    display: block;
    font-size: 1rem;
    color: var(--brown-dark);
    margin-bottom: 2px;
}

.feature span {
    font-size: 0.9rem;
    color: var(--brown-muted);
}

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

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

.menu-card {
    background: var(--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;
    height: 220px;
}

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

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

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

.menu-card-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--terracotta);
    margin-bottom: 8px;
}

.menu-card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 12px;
}

.menu-card-desc {
    font-size: 0.95rem;
    color: var(--brown-muted);
    line-height: 1.7;
}

.menu-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding: 20px 28px;
    background: rgba(224, 122, 95, 0.08);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--terracotta);
}

.menu-note svg {
    flex-shrink: 0;
    color: var(--terracotta);
}

.menu-note p {
    font-size: 0.95rem;
    color: var(--brown-medium);
    font-weight: 500;
}

/* --- Location --- */
.location {
    background: var(--sand-light);
}

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

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-card a:hover {
    color: var(--terracotta);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(224, 122, 95, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
}

.contact-card strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brown-muted);
    margin-bottom: 4px;
}

.contact-card span {
    font-size: 1rem;
    color: var(--brown-dark);
    font-weight: 600;
    line-height: 1.5;
}

.map-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-wrapper img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 64, 91, 0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 32px;
}

/* --- CTA --- */
.cta {
    background: linear-gradient(135deg, #3D405B 0%, #5C4033 60%, #E07A5F 100%);
    padding: 100px 0;
}

.cta-card {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 64px;
    display: flex;
    align-items: center;
    gap: 48px;
    overflow: hidden;
}

.cta-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 500px;
}

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

.cta-decoration {
    flex-shrink: 0;
    opacity: 0.6;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

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

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

.footer-links strong,
.footer-contact strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--terracotta-light);
    margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* --- Responsive --- */
@media (max-width: 968px) {
    .about-grid,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-img-secondary {
        right: 0;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 48px 32px;
    }

    .cta-text {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--sand-light);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
        padding: 100px 32px 32px;
        transition: right var(--transition);
        z-index: 1000;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

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

    .main-nav .btn {
        text-align: center;
        justify-content: center;
        margin-top: 16px;
    }

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

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

    .about-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: -60px;
        margin-left: auto;
        display: flex;
        justify-content: flex-end;
    }

    .about-img-secondary img {
        width: 180px;
        height: 180px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

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

    .hero-title {
        font-size: 1.8rem;
    }

    .cta-card {
        padding: 32px 20px;
    }
}
