/* ========================================
   Daisy Jane's Coffee House — Styles
   Palette: Plum (#6B2D5B) + Amber (#C8963E)
   Fonts: Playfair Display + Lora
======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --plum-900: #3D1A33;
    --plum-800: #532246;
    --plum-700: #6B2D5B;
    --plum-600: #8A3A74;
    --plum-500: #A8478E;
    --plum-100: #F3E5F0;
    --plum-50:  #FBF5F8;

    --amber-700: #92601E;
    --amber-600: #B07A2E;
    --amber-500: #C8963E;
    --amber-400: #D4A853;
    --amber-300: #E0C07A;
    --amber-100: #FCF5E6;

    --cream: #FDF8F4;
    --warm-white: #FAF5F0;
    --warm-gray: #F5F0EB;
    --text-dark: #2A1A20;
    --text-medium: #5C3A48;
    --text-light: #8A6070;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lora', 'Palatino Linotype', Palatino, Georgia, serif;

    --shadow-sm: 0 1px 3px rgba(107, 45, 91, 0.06), 0 1px 2px rgba(107, 45, 91, 0.04);
    --shadow-md: 0 4px 16px rgba(107, 45, 91, 0.08), 0 2px 6px rgba(107, 45, 91, 0.05);
    --shadow-lg: 0 12px 40px rgba(107, 45, 91, 0.12), 0 4px 12px rgba(107, 45, 91, 0.06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

/* ========================================
   Typography
======================================== */

.section-eyebrow {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--plum-800);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-medium);
    max-width: 520px;
    line-height: 1.7;
}

/* ========================================
   Buttons
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--amber-500);
    color: var(--plum-900);
    border-color: var(--amber-500);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--plum-700);
    border-color: var(--plum-700);
}

.btn-secondary:hover {
    background-color: var(--plum-700);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Navbar
======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(107, 45, 91, 0.08);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(253, 248, 244, 0.97);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--plum-800);
}

.nav-logo-icon {
    color: var(--amber-500);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-medium);
    transition: color 0.25s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--amber-500);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--plum-700);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--plum-700) !important;
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem !important;
    transition: background-color 0.25s ease, transform 0.25s ease !important;
}

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

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

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--plum-800);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero
======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    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(
        160deg,
        rgba(61, 26, 51, 0.82) 0%,
        rgba(107, 45, 91, 0.72) 50%,
        rgba(61, 26, 51, 0.80) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    padding: 2rem 1.5rem;
    padding-top: 5rem;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-300);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.25rem;
}

.hero-title em {
    font-style: italic;
    color: var(--amber-300);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 540px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background-color: var(--amber-500);
    color: var(--plum-900);
    border-color: var(--amber-500);
}

.hero-actions .btn-primary:hover {
    background-color: var(--amber-400);
    border-color: var(--amber-400);
}

.hero-actions .btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.hero-actions .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ========================================
   About
======================================== */

.about {
    padding: 6rem 1.5rem;
    background: var(--cream);
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    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;
    display: block;
}

.about-text p {
    color: var(--text-medium);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.about-signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--plum-100);
}

.signature-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--plum-700);
    margin-bottom: 0.25rem;
}

.signature-location {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   Menu
======================================== */

.menu {
    padding: 6rem 1.5rem;
    background: var(--warm-white);
    position: relative;
    overflow: hidden;
}

.menu-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(107, 45, 91, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(200, 150, 62, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.menu-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.menu-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.menu-header .section-subtitle {
    margin: 0 auto;
}

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

.menu-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(107, 45, 91, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.menu-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--plum-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum-700);
    margin-bottom: 1.25rem;
}

.menu-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--plum-800);
    margin-bottom: 1.25rem;
}

.menu-list {
    list-style: none;
}

.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--plum-50);
    gap: 1rem;
}

.menu-list li:last-child {
    border-bottom: none;
}

.menu-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.menu-item-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.menu-note {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.88rem;
    color: var(--text-light);
    font-style: italic;
}

/* ========================================
   Gallery
======================================== */

.gallery {
    padding: 6rem 1.5rem;
    background: var(--cream);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 26, 51, 0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay span {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #fff;
    font-style: italic;
}

.gallery-item--tall {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
}

.gallery-item--wide {
    grid-column: 8 / 13;
}

/* ========================================
   Quote Section
======================================== */

.quote-section {
    position: relative;
    padding: 5rem 1.5rem;
    overflow: hidden;
}

.quote-bg {
    position: absolute;
    inset: 0;
}

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

.quote-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61, 26, 51, 0.88) 0%, rgba(107, 45, 91, 0.80) 100%);
}

.quote-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.quote-mark {
    color: var(--amber-400);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.quote-content blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 1.25rem;
}

.quote-content cite {
    font-style: normal;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--amber-300);
    letter-spacing: 0.05em;
}

/* ========================================
   Visit / Contact
======================================== */

.visit {
    padding: 6rem 1.5rem;
    background: var(--warm-white);
}

.visit-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.visit-info {
    padding: 2rem 0;
}

.visit-details {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visit-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.visit-detail-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    background: var(--plum-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum-700);
}

.visit-detail-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: 0.25rem;
}

.visit-detail p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.visit-detail a {
    color: var(--plum-700);
    transition: color 0.2s ease;
}

.visit-detail a:hover {
    color: var(--amber-600);
}

.hours-table {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hours-day {
    font-weight: 600;
    color: var(--text-dark);
}

.hours-time {
    color: var(--text-medium);
}

.visit-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

/* ========================================
   Footer
======================================== */

.footer {
    background: var(--plum-900);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 1.5rem 0;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-logo svg {
    color: var(--amber-400);
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-phone {
    color: var(--amber-300);
    transition: color 0.2s ease;
}

.footer-phone:hover {
    color: var(--amber-400);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
}

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

.footer-hours-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    text-align: center;
}

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

/* ========================================
   Scroll Reveal (progressive enhancement)
======================================== */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

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

/* ========================================
   Responsive
======================================== */

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 248, 244, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem 2rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(107, 45, 91, 0.08);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        max-height: 400px;
    }

    .about-image img {
        height: 100%;
    }

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

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

    .gallery-item--tall {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 280px;
    }

    .gallery-item {
        min-height: 200px;
    }

    .visit-container {
        grid-template-columns: 1fr;
    }

    .visit-map {
        min-height: 300px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

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

    .gallery-item--tall {
        grid-column: auto;
    }

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

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