/* ============================================
   SADES COFFEE HOUSE — Editorial Style
   Teal + Slate Grey Palette
   ============================================ */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --teal-950: #042f2e;

    --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;
    --slate-950: #020617;

    --cream: #faf9f6;
    --warm-white: #fefdfb;

    --font-serif: 'Lora', 'Georgia', serif;
    --font-sans: 'Inter', 'system-ui', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--slate-800);
    background-color: var(--warm-white);
    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;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ---------- SKIP LINK ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--teal-700);
    color: #fff;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 500;
    transition: top var(--transition);
}

.skip-link:focus {
    top: var(--space-sm);
}

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow var(--transition);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* ---------- LOGO ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--slate-900);
}

.logo-mark {
    width: 38px;
    height: 38px;
    background: var(--teal-700);
    color: #fff;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--slate-900);
}

.logo-accent {
    color: var(--teal-700);
}

/* ---------- NAV ---------- */
.primary-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.primary-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--teal-600);
    transition: width var(--transition);
}

.primary-nav a:hover {
    color: var(--teal-700);
}

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

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.02em;
    text-decoration: none;
}

.btn-primary {
    background: var(--teal-700);
    color: #fff;
}

.btn-primary:hover {
    background: var(--teal-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--teal-700);
    border: 1.5px solid var(--teal-700);
}

.btn-outline:hover {
    background: var(--teal-700);
    color: #fff;
}

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

.btn-ghost:hover {
    border-color: var(--slate-500);
    color: var(--slate-900);
}

.btn-phone {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

/* ---------- HERO ---------- */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: var(--warm-white);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    width: 100%;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.hero-content {
    padding-right: var(--space-lg);
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: var(--space-lg);
}

.eyebrow-line {
    width: 32px;
    height: 1.5px;
    background: var(--teal-600);
    flex-shrink: 0;
}

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

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

.hero-sub {
    font-size: 1.125rem;
    color: var(--slate-600);
    line-height: 1.75;
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--slate-600);
    background: var(--slate-100);
    padding: 0.5rem 0.875rem;
    border-radius: 100px;
}

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

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

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 640/800;
}

.hero-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--teal-200);
    border-radius: 50%;
    opacity: 0.4;
    z-index: -1;
}

/* ---------- SECTION COMMON ---------- */
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: var(--space-md);
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--slate-900);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section-sub {
    font-size: 1.0625rem;
    color: var(--slate-500);
    line-height: 1.75;
    max-width: 520px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header .section-eyebrow {
    justify-content: center;
}

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

/* ---------- ABOUT ---------- */
.about {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

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

.about-img-main {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

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

.about-img-float {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border: 4px solid var(--cream);
}

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

.about-content p {
    color: var(--slate-600);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

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

.about-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--slate-200);
}

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

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

.stat-label {
    font-size: 0.8rem;
    color: var(--slate-500);
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--slate-200);
    flex-shrink: 0;
}

/* ---------- MENU ---------- */
.menu {
    padding: var(--space-3xl) 0;
    background: var(--warm-white);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.menu-card {
    background: var(--slate-50);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.menu-card-img {
    position: relative;
    overflow: hidden;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 480/360;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover .menu-card-img img {
    transform: scale(1.04);
}

.menu-card-tag {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--teal-700);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
}

.menu-card-body {
    padding: var(--space-md);
}

.menu-card-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.menu-card-desc {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.7;
}

.menu-cta {
    text-align: center;
}

/* ---------- GALLERY ---------- */
.gallery {
    padding: var(--space-3xl) 0;
    background: var(--slate-900);
}

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

.gallery .section-headline {
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-sm);
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.gallery-item--tall img {
    aspect-ratio: 480/720;
}

.gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
    grid-column: span 4;
}

.gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) img {
    aspect-ratio: 480/360;
}

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

.gallery-item--wide img {
    aspect-ratio: 960/360;
}

/* ---------- VISIT ---------- */
.visit {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.visit-info .section-headline {
    margin-bottom: var(--space-xl);
}

.visit-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.visit-detail {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

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

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

.visit-detail p {
    font-size: 1.0625rem;
    color: var(--slate-800);
    line-height: 1.7;
}

.visit-detail a {
    color: var(--teal-700);
    font-weight: 500;
    transition: color var(--transition);
}

.visit-detail a:hover {
    color: var(--teal-600);
    text-decoration: underline;
}

.visit-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: var(--space-2xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--slate-800);
}

.footer-brand .logo-text {
    color: #fff;
    font-size: 1.25rem;
}

.footer-tagline {
    margin-top: var(--space-sm);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
    color: var(--slate-400);
}

.footer-nav h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-500);
    margin-bottom: var(--space-sm);
}

.footer-nav a {
    display: block;
    color: var(--slate-400);
    font-size: 0.9375rem;
    padding: 0.3rem 0;
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

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

.footer-contact a:hover {
    color: var(--teal-300);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    font-size: 0.8125rem;
    color: var(--slate-500);
}

.footer-location {
    color: var(--slate-600);
}

/* ---------- MOBILE NAV TOGGLE ---------- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 101;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--slate-800);
    transition: all var(--transition);
}

.hamburger {
    position: relative;
    margin: 0 auto;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

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

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

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: var(--space-lg);
    }

    .hero-headline {
        font-size: clamp(2rem, 4vw, 3.25rem);
    }

    .about-grid {
        gap: var(--space-xl);
    }

    .menu-grid {
        gap: var(--space-md);
    }

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

    .gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
        grid-column: span 3;
    }

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

@media (max-width: 768px) {
    :root {
        --space-3xl: 5rem;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(254, 253, 251, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-md);
        transform: translateX(100%);
        transition: transform var(--transition);
    }

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

    .primary-nav a {
        font-size: 1.25rem;
        color: var(--slate-700);
    }

    .btn-phone {
        margin-top: var(--space-sm);
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: 72px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }

    .hero-content {
        padding-right: 0;
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-img-wrapper img {
        aspect-ratio: 4/3;
    }

    .hero-accent {
        display: none;
    }

    .hero-badges {
        gap: 0.5rem;
    }

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

    .about-image-col {
        order: -1;
    }

    .about-img-float {
        width: 60%;
        right: -10px;
        bottom: -20px;
    }

    .about-stats {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

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

    /* Menu */
    .menu-grid {
        grid-template-columns: 1fr;
    }

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

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

    .gallery-item--tall img {
        aspect-ratio: 16/9;
    }

    .gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
        grid-column: span 1;
    }

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

    .gallery-item--wide img {
        aspect-ratio: 16/9;
    }

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

    .visit-map {
        order: -1;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

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

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

    .hero-headline {
        font-size: 2rem;
    }

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

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

    .section-headline {
        font-size: 1.75rem;
    }
}

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

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
