/* ========================================
   Dairy Delight — Café & Bar
   Terracotta + Sand | Fresh & Airy
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta: #C07D52;
    --color-terracotta-dark: #A86540;
    --color-terracotta-light: #D4956A;
    --color-sand: #F5EDE4;
    --color-sand-light: #FAF6F2;
    --color-sand-dark: #E8DDD2;
    --color-cream: #FFFDF9;
    --color-text: #3D2B1F;
    --color-text-light: #7A6355;
    --color-text-muted: #A89080;
    --color-white: #FFFFFF;
    --color-border: #EDE3D9;
    --color-success: #4A7C59;

    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Nunito', 'Segoe UI', 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: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 2px 8px rgba(61, 43, 31, 0.06);
    --shadow-md: 0 4px 20px rgba(61, 43, 31, 0.08);
    --shadow-lg: 0 8px 40px rgba(61, 43, 31, 0.12);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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.7;
    -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;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

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

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

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-terracotta);
    color: var(--color-white);
    border: 2px solid var(--color-terracotta);
    box-shadow: 0 4px 16px rgba(192, 125, 82, 0.3);
}

.btn--primary:hover {
    background: var(--color-terracotta-dark);
    border-color: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(192, 125, 82, 0.4);
}

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

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

.btn--submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 253, 249, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(255, 253, 249, 0.95);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.logo-text {
    letter-spacing: -0.01em;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--color-terracotta);
    background: rgba(192, 125, 82, 0.06);
}

.nav-link--cta {
    background: var(--color-terracotta);
    color: var(--color-white) !important;
    border-radius: var(--radius-xl);
    margin-left: 0.5rem;
}

.nav-link--cta:hover {
    background: var(--color-terracotta-dark);
    color: var(--color-white) !important;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

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

.menu-toggle.active .menu-toggle-line:nth-child(2) {
    opacity: 0;
}

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

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(255, 253, 249, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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

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

.mobile-menu-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.mobile-menu-link:hover {
    color: var(--color-terracotta);
    background: rgba(192, 125, 82, 0.06);
}

.mobile-menu-link--cta {
    margin-top: 0.5rem;
    background: var(--color-terracotta);
    color: var(--color-white) !important;
    border-radius: var(--radius-xl);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: 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(
        180deg,
        rgba(255, 253, 249, 0.3) 0%,
        rgba(255, 253, 249, 0.1) 40%,
        rgba(61, 43, 31, 0.45) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding-top: 72px;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 6vw, 4.25rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 40px rgba(61, 43, 31, 0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.7);
    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 {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    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: 400px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-img-main:hover img {
    transform: scale(1.03);
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-cream);
}

.about-img-secondary img {
    width: 260px;
    height: 200px;
    object-fit: cover;
    display: block;
}

.about-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-sand-dark) 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}

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

.about-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

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

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
}

.about-feature svg {
    flex-shrink: 0;
}

/* ========================================
   Menu
   ======================================== */
.menu {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, var(--color-sand-light) 0%, var(--color-cream) 100%);
}

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

.menu-intro {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.menu-tab {
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition);
}

.menu-tab:hover {
    color: var(--color-terracotta);
    border-color: var(--color-terracotta-light);
}

.menu-tab.active {
    background: var(--color-terracotta);
    color: var(--color-white);
    border-color: var(--color-terracotta);
    box-shadow: 0 4px 16px rgba(192, 125, 82, 0.3);
}

.menu-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

.menu-panel.hidden {
    display: none;
}

.menu-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-terracotta-light);
}

.menu-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-sand-dark) 100%);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.menu-card-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.menu-card-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* ========================================
   Gallery
   ======================================== */
.gallery {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

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

.gallery-intro {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-md);
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item--wide {
    grid-column: span 2;
}

.gallery-item--wide img {
    height: 320px;
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-item--tall img {
    height: 100%;
    min-height: 640px;
}

/* ========================================
   Visit
   ======================================== */
.visit {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, var(--color-sand-light) 0%, var(--color-cream) 100%);
}

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

.visit-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

.visit-detail svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.visit-detail strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.visit-detail p,
.visit-detail a {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

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

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

/* ========================================
   Contact
   ======================================== */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

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

.contact-desc {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-top: var(--space-md);
}

.contact-form {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-sand-light);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-terracotta);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(192, 125, 82, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(74, 124, 89, 0.08);
    border: 1px solid rgba(74, 124, 89, 0.2);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-success);
}

.form-success.show {
    display: flex;
}

/* ========================================
   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: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

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

.footer-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
}

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

.footer-links ul,
.footer-contact ul,
.footer-hours ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    transition: color var(--transition);
}

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

.footer-hours li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9375rem;
    gap: 1rem;
}

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

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .about-grid,
    .visit-grid,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-images {
        max-width: 500px;
    }

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

    .gallery-item--tall img {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

    .menu-panel {
        grid-template-columns: 1fr;
    }

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

    .gallery-item--wide {
        grid-column: span 2;
    }

    .gallery-item--tall {
        grid-row: span 1;
    }

    .gallery-item--tall img {
        min-height: 300px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

    .about-img-secondary {
        right: -10px;
        bottom: -20px;
    }

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

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

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

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

    .about-features {
        grid-template-columns: 1fr;
    }

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

    .gallery-item--wide {
        grid-column: span 1;
    }

    .visit-map {
        height: 300px;
    }

    .contact-form {
        padding: var(--space-md);
    }
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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