/* ============================================
   QAHTWATEA COFFEE — Brand Stylesheet
   Teal + Slate Grey | Confident Corporate
   ============================================ */

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

:root {
    /* Teal palette */
    --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 palette */
    --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;

    --white: #ffffff;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--slate-800);
    background: var(--slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    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;
}

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

/* ---------- SECTION HEADER ---------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: 16px;
}

.section-header__eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--teal-500);
    display: inline-block;
}

.section-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--slate-900);
    line-height: 1.2;
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--teal-700);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

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

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

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

.btn--light {
    background: var(--white);
    color: var(--teal-800);
    box-shadow: var(--shadow-md);
}

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

.btn--outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

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

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(248, 250, 252, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-900);
}

.navbar__logo-icon {
    color: var(--teal-700);
}

.navbar__brand {
    letter-spacing: -0.02em;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar__link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

.navbar__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    margin-left: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: var(--teal-700);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar__cta:hover {
    background: var(--teal-800);
    transform: translateY(-1px);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.navbar__bar {
    width: 22px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar__toggle[aria-expanded="true"] .navbar__bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.navbar__toggle[aria-expanded="true"] .navbar__bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--slate-50) 0%, var(--teal-50) 50%, var(--slate-100) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: 24px;
}

.hero__eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--teal-500);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--slate-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero__accent {
    color: var(--teal-700);
    font-style: italic;
}

.hero__body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--slate-600);
    max-width: 480px;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero__stat-number {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-900);
}

.hero__stat-label {
    font-size: 0.75rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--slate-200);
}

.hero__visual {
    position: relative;
}

.hero__image-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 600/750;
}

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

.hero__image-accent {
    position: absolute;
    bottom: -32px;
    left: -48px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
    aspect-ratio: 400/300;
}

.hero__image-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__stamp {
    position: absolute;
    top: 32px;
    right: -24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--teal-700);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--slate-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 1;
}

.hero__scroll svg {
    animation: bounce-down 1.5s ease-in-out infinite;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ========== CATEGORIES ========== */
.categories {
    padding: 100px 0;
    background: var(--white);
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.category-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    transition: var(--transition);
    display: block;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-200);
}

.category-card__img {
    aspect-ratio: 500/400;
    overflow: hidden;
}

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

.category-card:hover .category-card__img img {
    transform: scale(1.06);
}

.category-card__info {
    padding: 28px;
}

.category-card__tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--teal-100);
    color: var(--teal-800);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 12px;
}

.category-card__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 8px;
}

.category-card__desc {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.65;
}

/* ========== ABOUT ========== */
.about {
    padding: 100px 0;
    background: var(--slate-50);
}

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

.about__image-stack {
    position: relative;
}

.about__img-primary {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 600/800;
}

.about__img-primary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__img-secondary {
    position: absolute;
    bottom: -40px;
    right: -32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
    aspect-ratio: 400/300;
}

.about__img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__badge {
    position: absolute;
    top: -20px;
    right: -20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: var(--teal-700);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.about__eyebrow {
    margin-bottom: 16px;
}

.about__title {
    margin-bottom: 24px;
}

.about__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--slate-600);
    margin-bottom: 16px;
}

.about__values {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

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

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

.value-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 2px;
}

.value-item span {
    font-size: 0.85rem;
    color: var(--slate-500);
}

/* ========== GALLERY ========== */
.gallery {
    padding: 100px 0;
    background: var(--white);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery__item--wide {
    grid-column: span 6;
    aspect-ratio: 2/1;
}

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

/* ========== VISIT ========== */
.visit {
    padding: 100px 0;
    background: var(--slate-50);
}

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

.visit__title {
    margin-bottom: 16px;
}

.visit__text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--slate-600);
    margin-bottom: 40px;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

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

.visit__detail strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.visit__detail span,
.visit__detail a {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.6;
}

.visit__detail a:hover {
    color: var(--teal-700);
    text-decoration: underline;
}

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

/* ========== CTA ========== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--teal-950) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.cta__content {
    flex: 1;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta__text {
    font-size: 1.05rem;
    color: var(--slate-400);
    line-height: 1.7;
    max-width: 480px;
}

.cta__actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 64px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

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

.footer__tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--slate-400);
    max-width: 280px;
}

.footer__nav,
.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav strong,
.footer__contact strong {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-300);
    margin-bottom: 4px;
}

.footer__nav a {
    font-size: 0.9rem;
    color: var(--slate-400);
    transition: var(--transition);
}

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

.footer__contact a {
    font-size: 0.9rem;
    color: var(--slate-400);
    transition: var(--transition);
}

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

.footer__contact span {
    font-size: 0.9rem;
}

.footer__bottom {
    border-top: 1px solid var(--slate-800);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--slate-500);
}

/* ========== 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; }
}

/* ========== MOBILE MENU ========== */
.navbar__menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    gap: 4px;
}

.navbar__menu.mobile-open .navbar__cta {
    margin-left: 0;
    margin-top: 8px;
    justify-content: center;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr 0.7fr;
        gap: 40px;
    }

    .hero__image-accent {
        left: -24px;
        bottom: -20px;
    }

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

    .categories__grid {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .navbar__menu {
        display: none;
    }

    .navbar__toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 80px;
        min-height: auto;
    }

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

    .hero__visual {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero__image-accent {
        left: -16px;
        bottom: -16px;
    }

    .hero__stamp {
        right: -8px;
        top: 16px;
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero__stat-divider {
        display: none;
    }

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

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

    .about__image-stack {
        max-width: 480px;
        margin: 0 auto;
    }

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

    .about__badge {
        right: -8px;
        top: -12px;
    }

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

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

    .visit__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .visit__map {
        min-height: 320px;
    }

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

    .cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .cta__actions .btn {
        justify-content: center;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

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

    .hero__headline {
        font-size: 2.25rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        justify-content: center;
    }

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

    .gallery__item--wide {
        grid-column: span 1;
        aspect-ratio: 16/9;
    }
}
