/* ─────────────────────────────────────────────────────────
   The Coffee Lounge — Styles
   Palette: Terracotta + Sand
   ───────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --terra:       #C4613A;
    --terra-deep:  #A14E2D;
    --terra-light: #D97D56;
    --sand:        #F5E6D3;
    --sand-light:  #FBF5ED;
    --sand-mid:    #E8D5C0;
    --cream:       #FFFDF9;
    --charcoal:    #2C2420;
    --charcoal-mid:#4A3F38;
    --warm-gray:   #7A6B60;
    --white:       #FFFFFF;
    --radius-sm:   8px;
    --radius-md:   14px;
    --radius-lg:   24px;
    --radius-xl:   32px;
    --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--terra);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 200;
    font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ── Decorative Dots (fixed) ── */
.deco-dots {
    position: fixed;
    top: 12%;
    right: 4%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, var(--terra-light) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Typography ── */
h1, h2, h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ── Section Tag ── */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--terra);
    margin-bottom: 1rem;
}
.section-tag::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--terra);
    border-radius: 2px;
}
.section-tag--light {
    color: var(--sand);
}
.section-tag--light::before {
    background: var(--sand);
}

/* ── Section Title ── */
.section-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    color: var(--charcoal);
    margin-bottom: 1.25rem;
}
.section-title--light {
    color: var(--white);
}
.text-accent { color: var(--terra); }
.text-white { color: var(--white); }
.text-accent-dark { color: var(--terra-deep); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,97,58,0.25); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--terra);
    color: var(--white);
    border-color: var(--terra);
}
.btn-primary:hover { background: var(--terra-deep); border-color: var(--terra-deep); }

.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}
.btn-secondary:hover { background: var(--charcoal); color: var(--white); }

.btn-outline {
    background: transparent;
    color: var(--terra);
    border-color: var(--terra);
}
.btn-outline:hover { background: var(--terra); color: var(--white); }

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--terra); }

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-xl);
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 253, 249, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sand-mid);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(44,36,32,0.08); }

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--charcoal);
}
.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--terra);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
.logo-mark::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--sand);
    border-radius: 50%;
    top: 7px;
    left: 7px;
}
.logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

/* ── Nav ── */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}
.main-nav a {
    text-decoration: none;
    color: var(--charcoal-mid);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.main-nav a:hover { color: var(--terra); background: rgba(196,97,58,0.07); }

.btn-nav {
    background: var(--terra) !important;
    color: var(--white) !important;
    border-radius: var(--radius-lg) !important;
    margin-left: 0.5rem;
}
.btn-nav:hover { background: var(--terra-deep) !important; }

/* ── Mobile Nav Toggle ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}
.nav-toggle .bar {
    width: 24px;
    height: 2.5px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: var(--sand-light);
    overflow: hidden;
    padding-top: 72px;
}
.hero-bg-shape-a {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 55%;
    height: 70%;
    background: var(--sand-mid);
    border-radius: 40% 60% 50% 40%;
    z-index: 0;
}
.hero-bg-shape-b {
    position: absolute;
    bottom: -5%;
    left: -3%;
    width: 30%;
    height: 40%;
    background: var(--terra);
    opacity: 0.07;
    border-radius: 50% 40% 60% 50%;
    z-index: 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 3rem 0;
}

/* Hero Visual */
.hero-visual { position: relative; }
.hero-img-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(44,36,32,0.15);
}
.hero-img-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 600/760;
    object-fit: cover;
}
.hero-img-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--terra);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--charcoal-mid);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    box-shadow: 0 2px 12px rgba(44,36,32,0.08);
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--terra);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Hero Content */
.hero-content { padding: 1rem 0; }
.hero-kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.kicker-line {
    width: 40px;
    height: 3px;
    background: var(--terra);
    border-radius: 3px;
}
.hero-headline {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    color: var(--charcoal);
    margin-bottom: 1.25rem;
    line-height: 1.0;
}
.highlight {
    color: var(--terra);
    position: relative;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--terra);
    opacity: 0.15;
    border-radius: 4px;
    z-index: -1;
}
.hero-body {
    font-size: 1.15rem;
    color: var(--charcoal-mid);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}
.hero-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.hero-highlights li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--charcoal-mid);
}
.hl-icon {
    width: 20px;
    height: 20px;
    color: var(--terra);
    flex-shrink: 0;
}

/* ── ABOUT ── */
.about {
    padding: 7rem 0;
    background: var(--cream);
    position: relative;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-visual { position: relative; }
.about-img-stack { position: relative; min-height: 560px; }
.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(44,36,32,0.12);
}
.about-img-main img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 520/640;
    object-fit: cover;
}
.about-img-float {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(44,36,32,0.15);
    border: 4px solid var(--cream);
}
.about-img-float img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}
.about-shape {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--terra);
    opacity: 0.1;
    border-radius: var(--radius-md);
    transform: rotate(15deg);
    z-index: -1;
}
.about-content { padding: 1rem 0; }
.about-content p {
    font-size: 1.05rem;
    color: var(--charcoal-mid);
    line-height: 1.75;
    margin-bottom: 1rem;
}
.about-content .btn { margin-top: 0.5rem; }

/* ── OFFERINGS ── */
.offerings {
    position: relative;
    padding: 7rem 0;
    background: var(--terra);
    overflow: hidden;
}
.offerings-bg-block {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: var(--terra-deep);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}
.offerings-inner {
    position: relative;
    z-index: 1;
}
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}
.offering-card {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    transition: transform var(--transition), background var(--transition);
}
.offering-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.15);
}
.offering-img {
    overflow: hidden;
    aspect-ratio: 4/3;
}
.offering-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.offering-card:hover .offering-img img { transform: scale(1.05); }
.offering-body {
    padding: 1.5rem;
}
.offering-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0.75rem;
    color: var(--sand);
}
.offering-icon svg {
    width: 100%;
    height: 100%;
}
.offering-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.offering-body p {
    font-size: 0.9rem;
    color: rgba(245,230,211,0.8);
    line-height: 1.6;
}
.offerings-note {
    color: rgba(245,230,211,0.6);
    font-size: 0.85rem;
    font-style: italic;
}

/* ── COMMUNITY ── */
.community {
    padding: 7rem 0;
    background: var(--sand-light);
    position: relative;
    overflow: hidden;
}
.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.community-visual { position: relative; }
.community-img {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(44,36,32,0.12);
}
.community-img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 540/620;
    object-fit: cover;
}
.community-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.c-shape {
    position: absolute;
}
.c-shape--circle {
    width: 80px;
    height: 80px;
    border: 3px solid var(--terra);
    border-radius: 50%;
    top: -20px;
    right: -20px;
    opacity: 0.4;
}
.c-shape--square {
    width: 60px;
    height: 60px;
    background: var(--sand-mid);
    bottom: 40px;
    left: -25px;
    transform: rotate(20deg);
    opacity: 0.6;
}
.c-shape--triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 44px solid var(--terra-light);
    opacity: 0.3;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
}
.community-content { padding: 1rem 0; }
.community-content p {
    font-size: 1.05rem;
    color: var(--charcoal-mid);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.values-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.values-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.5;
}
.values-bullet {
    color: var(--terra);
    font-size: 0.7rem;
    margin-top: 0.45rem;
    flex-shrink: 0;
}

/* ── VISIT ── */
.visit {
    position: relative;
    padding: 7rem 0;
    background: var(--charcoal);
    overflow: hidden;
}
.visit-bg-geo-a {
    position: absolute;
    top: -15%;
    left: -5%;
    width: 40%;
    height: 60%;
    background: var(--terra);
    opacity: 0.08;
    border-radius: 50% 30% 70% 50%;
}
.visit-bg-geo-b {
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 35%;
    height: 50%;
    background: var(--terra-light);
    opacity: 0.06;
    border-radius: 30% 70% 50% 50%;
}
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}
.visit-content { padding: 1rem 0; }
.visit-content p {
    color: rgba(245,230,211,0.7);
    margin-bottom: 1rem;
}
.visit-info {
    font-style: normal;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.visit-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    align-items: start;
}
.visit-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terra-light);
    padding-top: 0.2rem;
}
.visit-value {
    font-size: 1.05rem;
    color: var(--sand);
    line-height: 1.6;
}
.visit-value a {
    color: var(--sand);
    text-decoration: none;
    border-bottom: 1px solid rgba(245,230,211,0.3);
    transition: border-color var(--transition);
}
.visit-value a:hover { border-color: var(--terra-light); }
.visit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}
.visit-map { position: relative; }
.map-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0,0,0,0.3);
    border: 3px solid rgba(245,230,211,0.1);
}
.map-wrapper iframe {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
}

/* ── FOOTER ── */
.site-footer {
    background: var(--charcoal);
    border-top: 1px solid rgba(245,230,211,0.08);
    padding: 3rem 0 2rem;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}
.footer-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--sand);
}
.footer-brand p {
    font-size: 0.88rem;
    color: rgba(245,230,211,0.5);
    margin-top: 0.25rem;
    line-height: 1.6;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}
.footer-nav a {
    color: rgba(245,230,211,0.6);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--terra-light); }
.footer-copy {
    font-size: 0.8rem;
    color: rgba(245,230,211,0.3);
}

/* ── Scroll to Top ── */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--terra);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition), background var(--transition);
    z-index: 90;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 16px rgba(196,97,58,0.3);
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover { background: var(--terra-deep); }
.scroll-top svg { width: 20px; height: 20px; }

/* ── Responsive ── */
@media (max-width: 960px) {
    .hero-grid,
    .about-grid,
    .community-grid,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-visual { order: -1; max-width: 500px; margin: 0 auto; }
    .hero-content { text-align: center; }
    .hero-body { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-highlights { align-items: center; }
    .hero-kicker { justify-content: center; }
    .offerings-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
    .about-img-float { right: 10px; bottom: -20px; width: 160px; }
    .about-img-stack { min-height: 420px; }
    .visit-grid { gap: 2.5rem; }
    .visit-bg-geo-a, .visit-bg-geo-b { display: none; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--cream);
        padding: 6rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: -8px 0 32px rgba(44,36,32,0.15);
        z-index: 105;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    .main-nav a { padding: 0.75rem 1rem; font-size: 1rem; }
    .btn-nav { margin-left: 0 !important; text-align: center; margin-top: 0.5rem; }
    .hero { min-height: auto; padding: 6rem 0 4rem; }
    .hero-headline { font-size: clamp(2.25rem, 8vw, 3rem); }
    .section-title { font-size: clamp(1.75rem, 5vw, 2.5rem); }
    .about, .offerings, .community, .visit { padding: 4rem 0; }
    .visit-row { grid-template-columns: 70px 1fr; gap: 0.5rem; }
    .deco-dots { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.1rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .visit-actions { flex-direction: column; }
    .visit-actions .btn { width: 100%; justify-content: center; }
    .about-img-float { display: none; }
    .about-img-stack { min-height: 360px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .offering-img img { transition: none; }
    .offering-card:hover .offering-img img { transform: none; }
}
