/* style-commun.css - Commun (commun.living)
   Milestone 1: static shell
   Design tokens copied from the LUCA site master rules
   (projects/Site/work-rules/00-master-rules.md + style-v2.css).
   Rule: ALL colors live here in :root as variables. No hex elsewhere.
*/

:root {
    /* Brand palette (LUCA site tokens) */
    --bg-primary: #FDFBF7;
    --bg-secondary: #F9F3EB;
    --accent-turquoise: #2EC4B6;
    --accent-dark-teal: #1a7a72;
    --accent-light-teal: #7EC8E3;
    --ocean-deep: #0F3D4C;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-on-bright: #2a2a2a;
    --white: #FFFFFF;

    /* CTA button (universal spec from master rules 5B) */
    --cta-button-bg: #1a7a72;
    --cta-button-hover: #0f4d47;

    /* Footer palette (matches main-site footer, style-v2.css) */
    --footer-bg: #3B5A6F;
    --footer-text: #E0E8EE;
    --footer-link: #C8D8E4;
    --footer-accent: #7EC8E3;
    --footer-accent-hover: #5DB8D3;
    --footer-muted: #A8B8C8;

    /* Utility */
    --error-red: #e74c3c;
    --border-soft: rgba(26, 122, 114, 0.15);
    --shadow-soft: 0 4px 16px rgba(15, 61, 76, 0.08);

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --font-rounded: 'Nunito', sans-serif;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.8;

    /* Spacing (8px base scale) */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-primary);
    line-height: var(--line-height-normal);
    transition: transform 0.4s ease-out;
}

body[data-lang="en"] {
    direction: ltr;
}

body[data-lang="he"] {
    direction: rtl;
}

/* Flash language switch animation (same as main site) */
body.lang-switching {
    transform: translateX(100px);
}

body[data-lang="he"].lang-switching {
    transform: translateX(-100px);
}

img {
    max-width: 100%;
}

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

/* ========================================
   LANGUAGE CONTROLS
   ======================================== */
.lang-btn {
    padding: 8px 16px;
    border: 2px solid transparent;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    color: var(--accent-turquoise);
    border-color: var(--accent-turquoise);
}

.lang-btn:hover {
    color: var(--accent-turquoise);
}

.lang-controls-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-separator {
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   HEADER & NAVIGATION (Commun's own)
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    border-bottom: 1px solid rgba(46, 196, 182, 0.1);
}

.header-lang-section {
    flex: 0 0 auto;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-turquoise);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-dark-teal);
}

.nav-separator {
    color: var(--text-light);
    font-size: 14px;
}

/* Brand block: Commun wordmark + LUCA logo */
.header-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    direction: ltr;
}

.brand-logo-img {
    height: 16px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Hamburger (mobile only) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 700;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--accent-turquoise);
}

/* ========================================
   BUTTONS (universal CTA spec, master rules 5B)
   ======================================== */
.cta-button,
.lets-talk-btn,
.hero-cta {
    padding: 14px 40px;
    background: var(--cta-button-bg);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover,
.lets-talk-btn:hover,
.hero-cta:hover {
    background: var(--cta-button-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(26, 122, 114, 0.3);
}

.ghost-button {
    padding: 12px 32px;
    background: transparent;
    color: var(--accent-dark-teal);
    border: 2px solid var(--accent-dark-teal);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.ghost-button:hover {
    background: var(--accent-dark-teal);
    color: var(--white);
}

/* ========================================
   LANDING HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: var(--spacing-xl) var(--spacing-md);
    overflow: hidden;
}

/* Background video for the main-page hero (index.html only) */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: var(--bg-primary); /* avoids a black flash before the video loads */
}

/* Soft light veil so the dark logo/tagline stay readable over the video */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(253, 251, 247, 0.30) 0%,
        rgba(253, 251, 247, 0.18) 45%,
        rgba(249, 243, 235, 0.48) 100%);
}

/* When the hero carries a video, hide the decorative circle and keep content on top */
.hero-has-video .hero-circle { display: none; }

/* Semi-transparent white panel behind the hero text so it reads clearly over the video */
.hero-has-video .hero-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(15, 61, 76, 0.10);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 500;
    color: var(--ocean-deep);
    letter-spacing: 0.03em;
    line-height: var(--line-height-tight);
    direction: ltr;
}

/* Commun wordmark as the hero title (light background -> logo stays black) */
.hero-logo-img {
    height: clamp(30px, 8vw, 40px);
    width: auto;
    max-width: 90%;
    object-fit: contain;
    display: inline-block;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    color: var(--text-dark);
    margin-top: var(--spacing-sm);
    line-height: var(--line-height-tight);
}

.hero-sub {
    font-size: 17px;
    color: var(--text-light);
    margin-top: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

.hero-actions {
    margin-top: var(--spacing-md);
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Soft horizon circle behind the hero (brand motif) */
.hero-circle {
    position: absolute;
    bottom: -35vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90vh;
    height: 90vh;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 196, 182, 0.10) 0%, rgba(46, 196, 182, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* ========================================
   INNER PAGE HERO
   ======================================== */
.page-hero {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: var(--line-height-tight);
}

.page-hero .page-sub {
    font-size: 16px;
    color: var(--text-light);
    margin-top: var(--spacing-sm);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-relaxed);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: var(--spacing-lg) var(--spacing-md);
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-intro {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

/* CTA band */
.cta-band {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--bg-secondary);
}

.cta-band-text {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

/* ========================================
   CARDS
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.card-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
}

.card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-alt .card,
.card.on-cream {
    background: var(--bg-primary);
}

.section .card {
    background: var(--bg-secondary);
}

.section-alt .card {
    background: var(--bg-primary);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 61, 76, 0.12);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
}

/* Sample badge: marks placeholder demo content */
.sample-badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    background: rgba(46, 196, 182, 0.14);
    color: var(--accent-dark-teal);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Tag pills (modalities, amenities) */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: var(--spacing-xs) 0;
}

.tag {
    background: rgba(46, 196, 182, 0.12);
    color: var(--accent-dark-teal);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 14px;
    white-space: nowrap;
}

/* Profile cards (directory) */
.profile-card {
    text-align: center;
}

.avatar-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(46, 196, 182, 0.25), rgba(126, 200, 227, 0.25));
    color: var(--accent-dark-teal);
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    direction: ltr;
}

.profile-card .tag-row {
    justify-content: center;
}

.card-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
}

.card-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.card-links a {
    color: var(--accent-dark-teal);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-links a:hover {
    color: var(--accent-turquoise);
}

/* Venue cards */
.venue-photo-placeholder {
    height: 140px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(214, 185, 140, 0.35), rgba(126, 200, 227, 0.25));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: var(--spacing-sm);
}

/* Presence cards ("who's here now") */
.presence-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    text-align: start;
}

.presence-card .avatar-placeholder {
    width: 52px;
    height: 52px;
    font-size: 20px;
    margin: 0;
    flex-shrink: 0;
}

.presence-info h3 {
    font-size: 18px;
    margin-bottom: 2px;
}

.presence-info p {
    font-size: 13px;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-turquoise);
    margin-inline-end: 6px;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ========================================
   FILTER BAR
   ======================================== */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: 12px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.filter-select {
    padding: 10px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    min-width: 160px;
}

.filter-select:focus {
    outline: 2px solid var(--accent-turquoise);
    outline-offset: 1px;
}

/* ========================================
   FORMS
   ======================================== */
.form-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-turquoise);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-light);
}

/* Note shown when a static (not yet wired) form is submitted */
.static-form-note {
    display: none;
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: 8px;
    background: rgba(46, 196, 182, 0.12);
    color: var(--accent-dark-teal);
    font-size: 14px;
    text-align: center;
}

.static-form-note.visible {
    display: block;
}

/* Soft notice banner (e.g. "accounts open soon") */
.notice-banner {
    max-width: 640px;
    margin: 0 auto var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(126, 200, 227, 0.15);
    border-inline-start: 3px solid var(--accent-light-teal);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-on-bright);
    text-align: center;
}

/* ========================================
   TABS (community board)
   ======================================== */
.board-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.board-tab {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.board-tab:hover {
    color: var(--accent-dark-teal);
}

.board-tab.active {
    color: var(--accent-dark-teal);
    border-bottom-color: var(--accent-turquoise);
}

.board-panel {
    display: none;
    max-width: 760px;
    margin: 0 auto;
}

.board-panel.active {
    display: block;
}

.board-post {
    margin-bottom: var(--spacing-sm);
}

.board-post-meta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
}

/* ========================================
   MAP PAGE
   ======================================== */
.map-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.map-placeholder {
    min-height: 480px;
    border: 2px dashed rgba(46, 196, 182, 0.4);
    border-radius: 12px;
    background:
        radial-gradient(circle at 30% 40%, rgba(46, 196, 182, 0.08) 0%, rgba(46, 196, 182, 0) 40%),
        radial-gradient(circle at 70% 65%, rgba(126, 200, 227, 0.10) 0%, rgba(126, 200, 227, 0) 45%),
        var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-align: center;
    padding: var(--spacing-md);
}

.map-placeholder-pin {
    width: 44px;
    height: 44px;
    border-radius: 50% 50% 50% 0;
    background: var(--accent-turquoise);
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xs);
}

.map-placeholder-pin::after {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary);
}

.map-placeholder-note {
    font-size: 15px;
    color: var(--text-light);
    max-width: 360px;
    line-height: var(--line-height-relaxed);
}

.map-side {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.map-side-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Landing teaser version */
.map-teaser {
    max-width: 900px;
    margin: 0 auto;
}

.map-teaser .map-placeholder {
    min-height: 320px;
}

/* ========================================
   PRESENCE TOGGLE ("I'm here now")
   ======================================== */
.presence-panel {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: var(--spacing-md);
    text-align: center;
}

.presence-toggle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.presence-toggle-label {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 500;
    color: var(--text-dark);
}

.switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 34px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(102, 102, 102, 0.3);
    border-radius: 34px;
    transition: background 0.3s ease;
}

.switch-slider::before {
    content: '';
    position: absolute;
    height: 26px;
    width: 26px;
    inset-inline-start: 4px;
    bottom: 4px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.switch input:checked + .switch-slider {
    background: var(--accent-turquoise);
}

body[data-lang="en"] .switch input:checked + .switch-slider::before {
    transform: translateX(30px);
}

body[data-lang="he"] .switch input:checked + .switch-slider::before {
    transform: translateX(-30px);
}

.presence-status {
    font-size: 14px;
    color: var(--text-light);
    margin-top: var(--spacing-sm);
}

.presence-status.is-on {
    color: var(--accent-dark-teal);
    font-weight: 600;
}

.privacy-note {
    font-size: 12px;
    color: var(--text-light);
    margin-top: var(--spacing-sm);
    line-height: var(--line-height-relaxed);
}

/* ========================================
   DASHBOARD
   ======================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.dashboard-block {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: var(--spacing-md);
}

.dashboard-block h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   FOOTER (pasted from main-site style-v2.css;
   colors converted to the :root footer variables,
   values identical)
   ======================================== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--spacing-xl) var(--spacing-lg);
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid rgba(126, 200, 227, 0.2);
}

.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(126, 200, 227, 0.2);
}

.footer-header-content {
    flex: 1;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--footer-text);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 15px;
    color: rgba(224, 232, 238, 0.65);
    margin: 4px 0 6px 0;
    letter-spacing: 0.02em;
}

.footer-subtitle {
    font-size: 14px;
    color: var(--footer-accent);
    margin: 0;
}

.footer-logo-img {
    height: 96px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(76%) sepia(35%) saturate(400%) hue-rotate(165deg) brightness(108%);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.footer-logo-img:hover {
    filter: brightness(0) saturate(100%) invert(68%) sepia(45%) saturate(500%) hue-rotate(162deg) brightness(112%);
}

/* Commun wordmark in the footer brand band (dark ocean background) */
.footer-brand-logo {
    height: 24px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
    margin-bottom: var(--spacing-sm);
    /* black wordmark -> warm white so it reads on the dark footer */
    filter: brightness(0) invert(1);
}

/* Footer Navigation Grid (5 columns) */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-nav-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--footer-accent);
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

[data-lang="en"] .footer-nav-title {
    text-align: left;
}

/* === Hebrew (RTL) Footer === */
body[data-lang="he"] .footer { direction: rtl; text-align: right; }
body[data-lang="he"] .footer-header { direction: rtl; }
body[data-lang="he"] .footer-header-content { text-align: right; }
body[data-lang="he"] .footer-nav-grid { direction: rtl; }
body[data-lang="he"] .footer-nav-section { text-align: right; }
body[data-lang="he"] .footer-nav-list,
body[data-lang="he"] .footer-nav-list a,
body[data-lang="he"] .footer-coming-soon { text-align: right; }
body[data-lang="he"] .footer-bottom { direction: rtl; }
body[data-lang="he"] .footer-contact { text-align: right; align-items: flex-end; }
body[data-lang="he"] .footer-contact p { text-align: right; }
body[data-lang="he"] .footer-contact-links { direction: rtl; justify-content: flex-end; }
body[data-lang="he"] .footer-bottom-bar { direction: rtl; }
body[data-lang="he"] .footer-copyright { text-align: right; }
body[data-lang="he"] .footer-legal { direction: rtl; }

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-list li {
    list-style: none;
}

.footer-nav-list a {
    color: var(--footer-link);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    display: block;
}

.footer-nav-list a:hover {
    color: var(--footer-accent);
}

.footer-coming-soon {
    font-size: 13px;
    color: var(--footer-accent);
    font-style: italic;
    margin: 0;
}

/* Footer Bottom Section */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(126, 200, 227, 0.08);
    border-radius: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
}

.footer-cta {
    flex-shrink: 0;
    background: var(--footer-accent);
    color: var(--text-dark);
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.footer-cta:hover {
    background: var(--footer-accent-hover);
    transform: scale(1.05);
    box-shadow: none;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.footer-contact p {
    font-size: 12px;
    color: var(--footer-accent);
    margin: 0;
    white-space: nowrap;
}

.footer-contact-links {
    font-size: 12px;
    color: var(--footer-text);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.footer-contact-links a {
    color: var(--footer-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-links a:hover {
    color: var(--footer-accent-hover);
}

.contact-divider {
    margin: 0 8px;
    color: var(--footer-accent);
}

/* Social Media */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(126, 200, 227, 0.2);
    border-bottom: 1px solid rgba(126, 200, 227, 0.2);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(126, 200, 227, 0.4);
    border-radius: 50%;
    color: var(--footer-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(126, 200, 227, 0.15);
    border-color: var(--footer-accent);
    color: var(--footer-accent-hover);
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    font-size: 13px;
    color: var(--footer-muted);
}

.footer-copyright {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-legal a {
    color: var(--footer-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--footer-accent-hover);
}

.legal-divider {
    color: var(--footer-accent);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .footer-nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    /* Keep the mobile header from overflowing so the hamburger stays on-screen */
    .site-header {
        gap: 10px;
    }
    .lang-btn {
        padding: 5px 9px;
        font-size: 12px;
    }
    .lang-controls-inline {
        gap: 4px;
    }

    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .hero-name {
        font-size: 52px;
    }

    .hero-tagline {
        font-size: 22px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .card-grid,
    .card-grid.two-col {
        grid-template-columns: 1fr;
    }

    .map-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    /* --- footer header: stack vertically, center both languages --- */
    .footer-header {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
        text-align: center;
    }

    .footer-header-content {
        text-align: center;
        width: 100%;
    }

    body[data-lang="he"] .footer-header-content {
        text-align: center;
    }

    .footer-nav-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav-title,
    [data-lang="en"] .footer-nav-title,
    body[data-lang="he"] .footer-nav-title {
        text-align: center;
    }

    .footer-nav-section,
    body[data-lang="he"] .footer-nav-section {
        text-align: center;
        align-items: center;
    }

    .footer-nav-list,
    .footer-nav-list a,
    body[data-lang="he"] .footer-nav-list,
    body[data-lang="he"] .footer-nav-list a,
    body[data-lang="he"] .footer-coming-soon {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        white-space: normal;
        overflow-x: visible;
    }

    body[data-lang="he"] .footer-bottom {
        align-items: center;
    }

    .footer-cta {
        width: 100%;
        text-align: center;
    }

    .footer-contact,
    body[data-lang="he"] .footer-contact {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-xs);
    }

    .footer-contact-links,
    body[data-lang="he"] .footer-contact-links {
        flex-wrap: wrap;
        justify-content: center;
        direction: ltr;
    }

    .footer-bottom-bar {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
        text-align: center;
    }

    body[data-lang="he"] .footer-bottom-bar {
        align-items: center;
    }

    .footer-copyright,
    body[data-lang="he"] .footer-copyright {
        text-align: center;
    }

    .footer-legal,
    body[data-lang="he"] .footer-legal {
        justify-content: center;
        direction: ltr;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .brand-name {
        font-size: 24px;
    }

    .brand-logo-img {
        height: 16px;
    }

    .hero-name {
        font-size: 42px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .footer {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

/* ========================================
   ACCESSIBILITY - REDUCE MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body {
        transition: none;
    }
}
