/* ========================================
   Babylon Hookah Cafe — Custom Styles
   ======================================== */

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

: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;
    
    --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;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--slate-800);
    background: var(--slate-50);
    line-height: 1.7;
    -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;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: 0 1px 0 var(--slate-200);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--slate-900);
    letter-spacing: -0.01em;
}

.nav__logo-icon {
    color: var(--teal-600);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav__link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate-600);
    transition: var(--transition);
    position: relative;
}

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

.nav__link:hover {
    color: var(--teal-700);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal-700);
    border: 1px solid var(--teal-200);
    padding: 8px 20px;
    border-radius: 100px;
    transition: var(--transition);
}

.nav__cta:hover {
    background: var(--teal-600);
    color: white;
    border-color: var(--teal-600);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--slate-700);
    transition: var(--transition);
    transform-origin: center;
}

.nav__toggle.active .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav__toggle.active .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.mobile-menu__link {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--slate-800);
    transition: var(--transition);
}

.mobile-menu__link:hover {
    color: var(--teal-600);
}

.mobile-menu__cta {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-700);
    border: 1px solid var(--teal-200);
    padding: 12px 32px;
    border-radius: 100px;
    margin-top: 12px;
    transition: var(--transition);
}

.mobile-menu__cta:hover {
    background: var(--teal-600);
    color: white;
    border-color: var(--teal-600);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--teal-900) 0%,
        var(--teal-800) 25%,
        var(--slate-800) 60%,
        var(--slate-900) 100%
    );
}

.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: 1;
    text-align: center;
    max-width: 800px;
}

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-300);
    margin-bottom: 28px;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero__title-accent {
    font-style: italic;
    color: var(--teal-300);
}

.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 300;
    color: var(--slate-300);
    max-width: 520px;
    margin: 0 auto 44px;
    line-height: 1.8;
}

.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%);
    color: var(--slate-400);
    animation: float 2.5s ease-in-out infinite;
    transition: var(--transition);
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn--primary {
    background: var(--teal-600);
    color: white;
}

.btn--primary:hover {
    background: var(--teal-700);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.08);
}

.btn--large {
    padding: 16px 36px;
    font-size: 0.875rem;
}

/* Section Styles */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 16px;
}

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

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

.divider {
    width: 48px;
    height: 1px;
    background: var(--teal-400);
    margin-bottom: 48px;
}

.divider--center {
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    padding: 140px 0;
    background: var(--slate-50);
}

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

.about__text {
    max-width: 480px;
}

.about__body {
    font-size: 1rem;
    font-weight: 300;
    color: var(--slate-600);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about__image {
    position: relative;
}

.about__image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 4px;
}

.about__image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--teal-200);
    border-radius: 4px;
    z-index: -1;
}

/* Experience Section */
.experience {
    padding: 140px 0;
    background: white;
}

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

.feature {
    text-align: left;
    padding: 0;
}

.feature__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--teal-200);
    border-radius: 50%;
    color: var(--teal-700);
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature:hover .feature__icon {
    background: var(--teal-600);
    border-color: var(--teal-600);
    color: white;
}

.feature__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--slate-900);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature__body {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--slate-500);
    line-height: 1.75;
}

/* Gallery Section */
.gallery {
    padding: 140px 0;
    background: var(--slate-50);
}

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

.gallery__item {
    border-radius: 4px;
    overflow: hidden;
}

.gallery__item--wide {
    grid-column: span 6;
}

.gallery__item:not(.gallery__item--wide) {
    grid-column: span 3;
}

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

/* Visit Section */
.visit {
    padding: 140px 0;
    background: white;
}

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

.visit__info {
    max-width: 480px;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.visit__detail {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.visit__detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--slate-200);
    border-radius: 50%;
    color: var(--teal-600);
    flex-shrink: 0;
}

.visit__detail-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.visit__detail-value {
    font-size: 1rem;
    font-weight: 300;
    color: var(--slate-800);
    line-height: 1.7;
}

.visit__hours-note {
    font-size: 0.8125rem;
    color: var(--slate-400);
    font-style: italic;
}

.visit__link {
    color: var(--teal-700);
    transition: var(--transition);
}

.visit__link:hover {
    color: var(--teal-500);
}

.visit__map {
    border-radius: 4px;
    overflow: hidden;
    height: 480px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.visit__map iframe {
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background: var(--slate-900);
    padding: 80px 0 40px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 64px;
}

.footer__brand {
    max-width: 280px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: white;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.footer__logo-icon {
    color: var(--teal-400);
}

.footer__tagline {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--slate-400);
    line-height: 1.7;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer__link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate-400);
    transition: var(--transition);
}

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

.footer__contact {
    text-align: right;
}

.footer__contact-text {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--slate-400);
    line-height: 1.8;
}

.footer__bottom {
    border-top: 1px solid var(--slate-800);
    padding-top: 32px;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--slate-600);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: none;
}

.reveal[data-reveal="left"] {
    transform: translateX(-24px);
}

.reveal[data-reveal="right"] {
    transform: translateX(24px);
}

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

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 24px 60px;
    }
    
    .hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .about {
        padding: 100px 0;
    }
    
    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about__text {
        max-width: 100%;
    }
    
    .about__image img {
        height: 400px;
    }
    
    .about__image::before {
        display: none;
    }
    
    .experience {
        padding: 100px 0;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .gallery {
        padding: 100px 0;
    }
    
    .gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 200px);
    }
    
    .gallery__item--wide {
        grid-column: span 2;
    }
    
    .gallery__item:not(.gallery__item--wide) {
        grid-column: span 1;
    }
    
    .visit {
        padding: 100px 0;
    }
    
    .visit__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .visit__info {
        max-width: 100%;
    }
    
    .visit__map {
        height: 320px;
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer__brand {
        max-width: 100%;
    }
    
    .footer__links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer__contact {
        text-align: center;
    }
    
    .footer__contact-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .gallery__grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px);
    }
    
    .gallery__item--wide {
        grid-column: span 1;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}
