/* ========================================
   SABOR MIAMI CAFE AND GALLERY
   Stylesheet — Terracotta & Sand
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta: #C0593A;
    --color-terracotta-light: #E8985E;
    --color-terracotta-dark: #9A4428;
    --color-sand: #FDF6EE;
    --color-sand-warm: #F5E6D3;
    --color-sand-mid: #EDE0D0;
    --color-cream: #FFFBF7;
    --color-text: #3D2B1F;
    --color-text-light: #6B5344;
    --color-text-muted: #9B8578;
    --color-white: #FFFFFF;
    --color-overlay: rgba(61, 43, 31, 0.55);
    
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    --shadow-soft: 0 4px 24px rgba(61, 43, 31, 0.08);
    --shadow-medium: 0 8px 40px rgba(61, 43, 31, 0.12);
    --shadow-hover: 0 12px 48px rgba(61, 43, 31, 0.16);
    
    --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 {
    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(--color-text);
    background-color: var(--color-sand);
    -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;
}

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

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-terracotta);
    color: var(--color-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 --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
}

/* --- Section Tags --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    background: linear-gradient(135deg, rgba(232, 152, 94, 0.15), rgba(192, 89, 58, 0.1));
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

/* --- Section Titles --- */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--color-text);
}

.section-sub {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 520px;
    line-height: 1.7;
}

.lead-text {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

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

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 100px;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-light));
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(192, 89, 58, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192, 89, 58, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(253, 246, 238, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(192, 89, 58, 0.08);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-text);
    transition: opacity var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo--light .logo-text {
    color: var(--color-white);
}

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

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

.nav-menu a {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-text-light);
    padding: 8px 16px;
    border-radius: 100px;
    transition: all var(--transition);
}

.nav-menu a:hover {
    color: var(--color-terracotta);
    background: rgba(192, 89, 58, 0.08);
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.nav-toggle:hover {
    background: rgba(192, 89, 58, 0.08);
}

.hamburger {
    position: relative;
    width: 20px;
    height: 14px;
    display: block;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger::before { top: 0; }
.hamburger span { top: 6px; }
.hamburger::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 6px;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger span {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 6px;
    transform: rotate(-45deg);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #C0593A 0%,
        #D4784F 25%,
        #E8985E 50%,
        #F0B87A 70%,
        #F5CCA0 85%,
        #FDF6EE 100%
    );
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(192, 89, 58, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(232, 152, 94, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(240, 184, 122, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--color-white) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--color-white) 1px, transparent 1px);
    background-size: 48px 48px, 32px 32px;
    pointer-events: none;
}

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

.hero-greeting {
    font-family: var(--font-accent);
    font-size: clamp(1.1rem, 2vw, 1.375rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.hero-headline {
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 40px rgba(61, 43, 31, 0.15);
}

.hero-headline br {
    display: none;
}

.hero-sub {
    font-family: var(--font-accent);
    font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.hero-detail svg {
    opacity: 0.7;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    background: var(--color-sand);
}

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

.about-img-main img {
    width: 100%;
    height: 100%;
    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: -40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 6px solid var(--color-sand);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-accent {
    position: absolute;
    top: -24px;
    left: -24px;
    opacity: 0.5;
    z-index: -1;
}

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

.about-text .section-title {
    margin-bottom: 24px;
}

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

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

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

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(232, 152, 94, 0.12), rgba(192, 89, 58, 0.08));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.feature-item span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ========================================
   MENU
   ======================================== */
.menu {
    background: var(--color-cream);
    position: relative;
    overflow: hidden;
}

.menu-bg-element {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 152, 94, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.menu-tab {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
    padding: 10px 24px;
    border-radius: 100px;
    border: 1.5px solid var(--color-sand-mid);
    background: transparent;
    transition: all var(--transition);
}

.menu-tab:hover {
    color: var(--color-terracotta);
    border-color: var(--color-terracotta-light);
    background: rgba(232, 152, 94, 0.06);
}

.menu-tab.active {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-light));
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(192, 89, 58, 0.25);
}

.menu-grid {
    position: relative;
}

.menu-panel {
    display: none;
    max-width: 680px;
    margin: 0 auto;
}

.menu-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-sand-mid);
}

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

.menu-item-info {
    flex: 1;
}

.menu-item-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 4px;
}

.menu-item-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.menu-item-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-terracotta-light), var(--color-terracotta));
    opacity: 0.5;
}

.menu-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 40px;
    font-style: italic;
    font-family: var(--font-accent);
    font-size: 1rem;
}

/* ========================================
   GALLERY
   ======================================== */
.gallery {
    background: var(--color-sand);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 48px;
}

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

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

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 43, 31, 0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.gallery-item-overlay span {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--color-white);
}

.gallery-cta {
    text-align: center;
    padding: 48px;
    background: linear-gradient(135deg, rgba(232, 152, 94, 0.08), rgba(192, 89, 58, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(232, 152, 94, 0.15);
}

.gallery-cta p {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* ========================================
   VISIT
   ======================================== */
.visit {
    background: var(--color-cream);
}

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

.visit-info {
    padding: 16px 0;
}

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

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

.visit-detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(232, 152, 94, 0.12), rgba(192, 89, 58, 0.08));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visit-detail strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

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

.visit-detail a {
    color: var(--color-terracotta);
    transition: color var(--transition);
}

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

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

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: block;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links strong,
.footer-contact strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

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

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

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

.footer-contact address {
    font-style: normal;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-contact a {
    color: var(--color-terracotta-light);
    transition: color var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    flex-wrap: wrap;
    gap: 12px;
}

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

/* ========================================
   SCROLL REVEAL (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        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);
    }

    .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 {
        gap: 48px;
    }

    .visit-grid {
        gap: 48px;
    }

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

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

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

    .section {
        padding: 72px 0;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100dvh;
        background: var(--color-sand);
        padding: 80px 32px 32px;
        box-shadow: -8px 0 40px rgba(61, 43, 31, 0.15);
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 99;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

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

    .nav-menu a {
        font-size: 1.0625rem;
        padding: 12px 16px;
        width: 100%;
    }

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

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(61, 43, 31, 0.3);
        z-index: 98;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hero */
    .hero {
        min-height: 100svh;
    }

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

    .hero-headline br {
        display: block;
    }

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

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

    .hero-wave svg {
        height: 50px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .about-images {
        max-width: 480px;
        margin: 0 auto;
    }

    .about-img-secondary {
        right: -16px;
        bottom: -24px;
    }

    .about-accent {
        top: -16px;
        left: -16px;
    }

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

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

    .gallery-item {
        height: 260px;
    }

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

    /* Visit */
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .map-placeholder iframe {
        min-height: 320px;
    }

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

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

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

    .section {
        padding: 56px 0;
    }

    .hero-content {
        padding: 100px 16px 60px;
    }

    .menu-categories {
        gap: 6px;
    }

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

    .about-img-secondary {
        right: -8px;
        bottom: -16px;
        border-width: 4px;
    }
}
