/* ============================================
   Señor Mangos — Café & Bar Website
   Fresh, airy, pastel tones · Forest green + off-white
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --forest-dark: #1a3a1c;
    --forest: #2D5A27;
    --forest-mid: #3d7a35;
    --forest-light: #5a9e52;
    --forest-pale: #e8f5e9;
    --mango: #F5C77E;
    --mango-dark: #E8A840;
    --mango-light: #fdf0d5;
    --cream: #FAF9F6;
    --cream-warm: #F7F5F0;
    --off-white: #FEFDFB;
    --sand: #F0EDE6;
    --sand-dark: #E5E0D8;
    --text-dark: #1a2e1b;
    --text-body: #2c3e2d;
    --text-muted: #5a6b5c;
    --text-light: #8a9a8b;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(26, 58, 28, 0.06), 0 1px 2px rgba(26, 58, 28, 0.04);
    --shadow-md: 0 4px 16px rgba(26, 58, 28, 0.08), 0 2px 6px rgba(26, 58, 28, 0.04);
    --shadow-lg: 0 12px 40px rgba(26, 58, 28, 0.12), 0 4px 12px rgba(26, 58, 28, 0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--off-white);
    -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;
}

ul {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--forest);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 500;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 16px;
}

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

/* --- Section Shared --- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--forest-mid);
    background: var(--forest-pale);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.text-accent {
    color: var(--forest);
}

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

.section-header.center {
    text-align: center;
}

.section-header.center .section-desc {
    margin: 0 auto;
}

/* --- NAV --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254, 253, 251, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(45, 90, 39, 0.08);
    transition: box-shadow var(--transition);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--forest);
}

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

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--forest);
    border-radius: 2px;
    transition: width var(--transition);
}

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

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

.nav-cta {
    background: var(--forest) !important;
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition) !important;
}

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

.nav-cta:hover {
    background: var(--forest-dark) !important;
    transform: translateY(-1px);
}

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

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.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;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #2D5A27 0%,
        #1a4a2a 20%,
        #3d7a35 40%,
        #5a9e52 55%,
        #F5C77E 75%,
        #E8A840 90%,
        #d4943a 100%
    );
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(245, 199, 126, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(93, 158, 82, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(26, 58, 28, 0.15) 0%, transparent 70%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-accent {
    color: var(--mango);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 300;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-details {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 400;
}

.hero-detail svg {
    opacity: 0.7;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    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: 120px 0;
    background: var(--off-white);
}

.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: 100%;
    object-fit: cover;
}

.about-img-float {
    position: absolute;
    bottom: -32px;
    right: -32px;
    width: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--off-white);
}

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

.about-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--mango-light);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-text .lead {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 24px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--sand-dark);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--forest);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    background: var(--sand-dark);
    align-self: stretch;
}

/* --- MENU --- */
.menu {
    padding: 100px 0;
    background: var(--cream-warm);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.menu-tab {
    background: transparent;
    border: 1.5px solid var(--sand-dark);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}

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

.menu-tab.active {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--white);
}

.menu-grid {
    display: none;
}

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

.menu-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

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

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

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

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

.menu-item-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- AMBIANCE --- */
.ambiance {
    padding: 100px 0;
    background: var(--off-white);
}

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

.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 cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 58, 28, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-overlay span {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

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

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

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

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

/* --- FEATURES --- */
.features {
    padding: 100px 0;
    background: var(--forest-pale);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--forest-pale);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--forest);
    color: var(--white);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- VISIT --- */
.visit {
    padding: 100px 0;
    background: var(--off-white);
}

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

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

.visit-detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--forest-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
}

.visit-detail strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 600;
}

.visit-detail span,
.visit-detail a {
    font-size: 1rem;
    color: var(--text-body);
}

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

.visit-hours {
    margin-top: 36px;
    padding: 28px;
    background: var(--forest);
    border-radius: var(--radius-lg);
    color: var(--white);
}

.visit-hours h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--mango);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

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

.hours-row span:first-child {
    color: rgba(255, 255, 255, 0.7);
}

.hours-row span:last-child {
    font-weight: 500;
}

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

/* --- FOOTER --- */
.footer {
    background: var(--forest-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 72px 0 0;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-tagline {
    font-style: italic;
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 10px;
}

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

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

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

/* --- SCROLL REVEAL (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        grid-template-rows: repeat(3, 200px);
    }

    .gallery-item--tall {
        grid-column: 1 / 7;
        grid-row: 1 / 2;
    }

    .gallery-item:nth-child(2) {
        grid-column: 7 / 13;
        grid-row: 1 / 2;
    }

    .gallery-item:nth-child(3) {
        grid-column: 1 / 7;
        grid-row: 2 / 3;
    }

    .gallery-item--wide {
        grid-column: 7 / 13;
        grid-row: 2 / 3;
    }

    .gallery-item:nth-child(5) {
        grid-column: 1 / 13;
        grid-row: 3 / 4;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(254, 253, 251, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(45, 90, 39, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }

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

    .nav-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-img-float {
        right: 0;
        bottom: -20px;
    }

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

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

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

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

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

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

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

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

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
}

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-details {
        flex-direction: column;
        gap: 12px;
    }

    .about-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .menu-tabs {
        gap: 6px;
    }

    .menu-tab {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

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

    .gallery-item--tall,
    .gallery-item--wide {
        grid-column: 1 / -1;
    }
}
