/* ============================================
   Casamigo Bar & Grill — Stylesheet
   Clean · Minimalist · Teal + Slate
   ============================================ */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --white: #ffffff;
    --cream: #fafaf9;
    
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--slate-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

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

/* ---------- Top Bar ---------- */
.top-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--teal-600), var(--teal-500), var(--teal-700));
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 3px;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    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-serif);
    font-size: 1.25rem;
    color: var(--teal-700);
    letter-spacing: -0.01em;
    transition: color 0.3s;
}

.nav-logo:hover {
    color: var(--teal-600);
}

.nav-logo svg {
    color: var(--teal-600);
}

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

.nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--slate-600);
    letter-spacing: 0.01em;
    border-radius: 8px;
    transition: color 0.25s, background 0.25s;
}

.nav-links a:hover {
    color: var(--teal-700);
    background: var(--teal-50);
}

.nav-cta {
    background: var(--teal-600) !important;
    color: var(--white) !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: background 0.25s, transform 0.2s var(--ease-out) !important;
}

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

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.25s;
}

.nav-toggle:hover {
    background: var(--slate-100);
}

.nav-toggle-line {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    top: 75px;
    z-index: 99;
    background: var(--white);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    border-top: 1px solid var(--slate-200);
}

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

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--slate-700);
    border-radius: 12px;
    transition: color 0.25s, background 0.25s;
}

.mobile-link:hover {
    color: var(--teal-700);
    background: var(--teal-50);
}

.mobile-cta {
    color: var(--teal-600) !important;
    font-weight: 500;
}

.mobile-divider {
    margin: 0.75rem 0;
}

.mobile-divider hr {
    border: none;
    border-top: 1px solid var(--slate-200);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 8px;
    border-radius: 8px;
    color: var(--slate-500);
    transition: color 0.25s, background 0.25s;
}

.mobile-menu-close:hover {
    color: var(--slate-800);
    background: var(--slate-100);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 10px;
    transition: all 0.3s var(--ease-out);
}

.btn-primary {
    background: var(--teal-600);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
    background: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(13, 148, 136, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--slate-700);
    border: 1px solid var(--slate-300);
}

.btn-ghost:hover {
    border-color: var(--teal-400);
    color: var(--teal-700);
    background: var(--teal-50);
}

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

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    padding-top: 75px;
    padding-bottom: 3rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(20, 184, 166, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 520px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 1.75rem;
}

.hero-eyebrow-line {
    display: block;
    width: 32px;
    height: 1.5px;
    background: var(--teal-400);
    border-radius: 2px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-headline em {
    font-style: italic;
    color: var(--teal-700);
}

.hero-sub {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--slate-500);
    margin-bottom: 2.25rem;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.hero-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.hero-detail svg {
    color: var(--teal-500);
    flex-shrink: 0;
}

/* Hero image */
.hero-image {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.12);
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-out);
}

.hero-img-wrapper:hover img {
    transform: scale(1.03);
}

.hero-img-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--teal-200);
    border-radius: 16px;
    z-index: -1;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-400);
    animation: float 2.5s var(--ease-in-out) infinite;
}

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

/* ---------- Section Dividers ---------- */
.section-divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-400);
    flex-shrink: 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--slate-200);
}

/* ---------- Section shared ---------- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 1rem;
}

.section-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--teal-400);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.section-title em {
    font-style: italic;
    color: var(--teal-700);
}

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

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--slate-500);
    text-align: center;
    max-width: 480px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* ---------- About ---------- */
.about {
    padding: 6rem 2rem;
    background: var(--white);
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    max-width: 480px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--slate-600);
    margin-bottom: 1.25rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-out);
}

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

/* ---------- Menu ---------- */
.menu {
    padding: 6rem 2rem;
    background: var(--slate-50);
}

.menu-inner {
    max-width: 1200px;
    margin: 0 auto;
}

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

.menu-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--slate-200);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.menu-card:hover {
    border-color: var(--teal-200);
    box-shadow: 0 8px 32px rgba(13, 148, 136, 0.07);
}

.menu-card-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

.menu-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--teal-50);
    color: var(--teal-600);
    flex-shrink: 0;
}

.menu-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--slate-900);
    letter-spacing: -0.01em;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-item-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-800);
}

.menu-item-desc {
    font-size: 0.8125rem;
    color: var(--slate-500);
    line-height: 1.5;
}

.menu-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--slate-400);
    font-style: italic;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: 6rem 2rem;
    background: var(--white);
}

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

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

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

.gallery-item--large {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.15) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

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

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

/* ---------- Contact ---------- */
.contact {
    padding: 6rem 2rem;
    background: var(--slate-900);
    color: var(--white);
}

.contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact .section-eyebrow {
    color: var(--teal-400);
}

.contact .section-eyebrow::before {
    background: var(--teal-500);
}

.contact .section-title {
    color: var(--white);
}

.contact .section-title em {
    color: var(--teal-400);
}

.contact-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--slate-400);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s, background 0.3s;
}

.contact-detail:hover {
    border-color: rgba(20, 184, 166, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.contact-detail svg {
    color: var(--teal-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail strong {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--slate-300);
    margin-bottom: 0.375rem;
}

.contact-detail span {
    font-size: 0.9375rem;
    color: var(--slate-400);
    line-height: 1.6;
}

.contact-detail:hover span {
    color: var(--white);
}

/* Contact form */
.contact-form-wrap {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
}

.contact-form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--slate-600);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal-500);
    background: rgba(20, 184, 166, 0.06);
}

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: 10px;
    color: var(--teal-300);
    font-size: 0.9375rem;
}

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

.form-success svg {
    color: var(--teal-400);
    flex-shrink: 0;
}

/* ---------- Map ---------- */
.map-section {
    border-top: 1px solid var(--slate-200);
}

.map-section iframe {
    display: block;
    width: 100%;
    height: 320px;
    filter: grayscale(0.4) contrast(1.05);
    transition: filter 0.5s;
}

.map-section iframe:hover {
    filter: grayscale(0) contrast(1);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--white);
    transition: color 0.3s;
}

.footer-logo:hover {
    color: var(--teal-400);
}

.footer-logo svg {
    color: var(--teal-500);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--slate-500);
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.footer-links a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--slate-400);
    border-radius: 8px;
    transition: color 0.25s, background 0.25s;
}

.footer-links a:hover {
    color: var(--teal-400);
    background: rgba(20, 184, 166, 0.08);
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-contact a {
    font-size: 0.875rem;
    color: var(--slate-500);
    transition: color 0.25s;
}

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

.footer-bottom {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--slate-600);
}

/* ---------- Scroll animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        order: 2;
    }
    
    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-details {
        align-items: center;
    }
    
    .hero-img-accent {
        display: none;
    }
    
    .about-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-text {
        max-width: 100%;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item--large {
        grid-column: 1 / -1;
    }
    
    .gallery-item--tall {
        grid-row: auto;
    }
    
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 15px;
    }
    
    .nav-inner {
        padding: 0 1.25rem;
    }
    
    .hero {
        padding-top: 72px;
    }
    
    .hero-inner {
        padding: 1.5rem;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }
    
    .section-divider {
        padding: 0 1.25rem;
    }
    
    .about, .menu, .gallery, .contact {
        padding: 4rem 1.25rem;
    }
    
    .menu-card {
        padding: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item--large {
        grid-column: auto;
    }
    
    .contact-form-wrap {
        padding: 1.75rem;
    }
    
    .footer-inner {
        gap: 1.5rem;
    }
    
    .footer-links {
        gap: 0.25rem;
    }
    
    .footer-links a {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 380px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
