/* ============================================
   B's Coffee Shop — Classic & Elegant
   Color Palette: Burgundy (#722F37) + Blush (#F5E6E0)
   ============================================ */

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

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

body {
    font-family: 'Lato', 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #3D2B2B;
    background-color: #FDF8F6;
    -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;
}

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

ul, ol {
    list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 600;
    line-height: 1.2;
    color: #3D2B2B;
}

/* ---------- Utility ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #722F37;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
    color: #3D2B2B;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6B5555;
    max-width: 560px;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn--primary {
    background-color: #722F37;
    color: #FDF8F6;
    border: 2px solid #722F37;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: #5A242C;
    border-color: #5A242C;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(114, 47, 55, 0.25);
}

.btn--outline {
    background-color: transparent;
    color: #FDF8F6;
    border: 2px solid rgba(253, 248, 246, 0.6);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background-color: rgba(253, 248, 246, 0.1);
    border-color: #FDF8F6;
    transform: translateY(-2px);
}

.btn--nav {
    padding: 10px 24px;
    font-size: 0.8rem;
}

.btn--full {
    width: 100%;
}

.btn--map {
    margin-top: 16px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(253, 248, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(114, 47, 55, 0.08);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(61, 43, 43, 0.08);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #722F37;
}

.navbar-brand .brand-icon {
    color: #722F37;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3D2B2B;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #722F37;
    transition: width 0.3s ease;
}

.navbar-links a:hover::after,
.navbar-links a:focus-visible::after {
    width: 100%;
}

.navbar-links a:hover,
.navbar-links a:focus-visible {
    color: #722F37;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.navbar-toggle .hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #3D2B2B;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #3D2B2B;
    background-image: url('https://images.pexels.com/photos/35661532/pexels-photo-35661532.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 43, 43, 0.88) 0%,
        rgba(114, 47, 55, 0.82) 50%,
        rgba(61, 43, 43, 0.88) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 24px;
}

.hero-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #F5E6E0;
    margin-bottom: 24px;
    opacity: 0.85;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #FDF8F6;
    line-height: 1.1;
    margin-bottom: 28px;
}

.hero-title em {
    font-style: italic;
    font-weight: 500;
    color: #F5E6E0;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(245, 230, 224, 0.85);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(245, 230, 224, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(245, 230, 224, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* ---------- About ---------- */
.about {
    background-color: #FDF8F6;
}

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

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

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(61, 43, 43, 0.12);
}

.about-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid #722F37;
    border-radius: 8px;
    z-index: -1;
    opacity: 0.2;
}

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

.about-content p {
    color: #5C4444;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.value-icon {
    color: #722F37;
    flex-shrink: 0;
}

.value-item span {
    font-size: 1rem;
    color: #3D2B2B;
    font-weight: 500;
}

/* ---------- Menu ---------- */
.menu {
    background-color: #F5E6E0;
}

.menu-categories {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.menu-category {
    background-color: rgba(253, 248, 246, 0.7);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(8px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(114, 47, 55, 0.12);
}

.category-icon {
    color: #722F37;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #3D2B2B;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
}

.menu-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(114, 47, 55, 0.06);
}

.menu-item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #3D2B2B;
    margin-bottom: 4px;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: #7A6060;
    line-height: 1.6;
}

.menu-note {
    text-align: center;
    font-size: 0.9rem;
    color: #7A6060;
    font-style: italic;
    margin-top: 40px;
}

/* ---------- Gallery ---------- */
.gallery {
    background-color: #FDF8F6;
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.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--tall {
    grid-column: span 4;
    grid-row: span 2;
}

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

/* ---------- Visit ---------- */
.visit {
    background-color: #3D2B2B;
    color: #FDF8F6;
}

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

.visit .section-eyebrow {
    color: #F5E6E0;
}

.visit .section-title {
    color: #FDF8F6;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.visit-detail {
    display: flex;
    gap: 16px;
}

.visit-icon {
    color: #F5E6E0;
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FDF8F6;
    margin-bottom: 4px;
}

.visit-detail p {
    color: rgba(245, 230, 224, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

.visit-detail a {
    color: #F5E6E0;
    transition: color 0.3s ease;
}

.visit-detail a:hover {
    color: #FDF8F6;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.95rem;
    color: rgba(245, 230, 224, 0.75);
}

.hours-row span:first-child {
    color: rgba(245, 230, 224, 0.9);
    font-weight: 500;
}

.visit-map {
    border-radius: 12px;
    overflow: hidden;
}

.map-placeholder {
    background-color: rgba(245, 230, 224, 0.08);
    border: 1px solid rgba(245, 230, 224, 0.15);
    border-radius: 12px;
    padding: 48px 40px;
    text-align: center;
}

.map-icon {
    color: #F5E6E0;
    margin: 0 auto 20px;
    opacity: 0.7;
}

.map-placeholder p {
    color: rgba(245, 230, 224, 0.8);
    font-size: 1rem;
    margin-bottom: 8px;
}

/* ---------- Contact ---------- */
.contact {
    background-color: #F5E6E0;
}

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

.contact-text {
    font-size: 1.05rem;
    color: #5C4444;
    line-height: 1.8;
    margin-bottom: 28px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #722F37;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #5A242C;
}

/* ---------- Form ---------- */
.contact-form-wrap {
    background-color: #FDF8F6;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 16px 48px rgba(61, 43, 43, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #722F37;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #3D2B2B;
    background-color: #F5E6E0;
    border: 1.5px solid rgba(114, 47, 55, 0.15);
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9A8080;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #722F37;
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.08);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23722F37' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    margin-top: 16px;
    background-color: rgba(114, 47, 55, 0.06);
    border: 1px solid rgba(114, 47, 55, 0.15);
    border-radius: 6px;
    color: #722F37;
    font-size: 0.95rem;
}

.form-success svg {
    flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
    background-color: #2A1E1E;
    color: rgba(245, 230, 224, 0.7);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(245, 230, 224, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F5E6E0;
    margin-bottom: 16px;
}

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

.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #F5E6E0;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(245, 230, 224, 0.6);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #F5E6E0;
}

.footer-hours p,
.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-contact a {
    color: rgba(245, 230, 224, 0.6);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #F5E6E0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8rem;
    color: rgba(245, 230, 224, 0.4);
}

.footer-bottom p {
    margin: 0;
}

/* ---------- 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: 1024px) {
    .about-grid,
    .visit-grid,
    .contact-grid {
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }
    
    .navbar-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(253, 248, 246, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid rgba(114, 47, 55, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    .navbar-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrap {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .about-image-accent {
        top: -12px;
        right: -12px;
    }
    
    .menu-category {
        padding: 28px 24px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 12px 24px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 200px);
    }
    
    .gallery-item--tall {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-item--wide {
        grid-column: span 2;
    }
    
    .visit-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrap {
        padding: 28px 24px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 56px 0;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item--tall,
    .gallery-item--wide {
        grid-column: span 1;
    }
    
    .gallery-item img {
        height: 240px;
    }
    
    .menu-category {
        padding: 24px 20px;
    }
}
