/* ==========================================================
   Kaizen City — Premium Stylesheet
   All colors and fonts come from CSS custom properties
   set per-city via :root { {{ theme_css }} }
   ========================================================== */

/* --- Keyframes --- */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes subtleSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes grainShift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -2%); }
    30% { transform: translate(1%, -1%); }
    50% { transform: translate(-1%, 2%); }
    70% { transform: translate(2%, 1%); }
    90% { transform: translate(-2%, 1%); }
}

/* --- Reset & Base --- */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5rem; /* baseline grid */
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--color-primary);
    text-decoration: none;
    background-image: linear-gradient(var(--color-primary), var(--color-primary));
    background-size: 0% 1.5px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
                color 0.25s ease;
}

a:hover {
    background-size: 100% 1.5px;
    text-decoration: none;
}

::selection {
    background: var(--color-primary);
    color: #fff;
}

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


/* --- Alert Bar --- */

.alert-bar {
    background: #d32f2f;
    color: #fff;
    padding: 0.625rem 0;
    font-size: 0.8125rem;
    text-align: center;
    letter-spacing: 0.02em;
    line-height: 1.5rem;
    animation: subtleSlideIn 0.4s ease-out;
}

.alert--warning { background: #e65100; }
.alert--info { background: var(--color-primary); }

.alert__text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
}


/* --- Site Header --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Enhanced shadow when scrolling — toggled via scroll listener or :has() */
.site-header:has(+ main :not(:first-child)) {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06),
                0 4px 12px rgba(0, 0, 0, 0.04);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-header__brand {
    text-decoration: none;
    color: inherit;
    background: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-header__brand:hover {
    background-size: 0 0;
}

.site-header__city {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.5rem;
    letter-spacing: -0.02em;
}

.site-header__tagline {
    font-size: 0.6875rem;
    color: var(--color-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1.5rem;
}

.site-header__nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    border-bottom: none;
    transition: color 0.2s ease, background 0.2s ease;
    background-image: none;
    position: relative;
    line-height: 1.5rem;
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(0, 0, 0, 0.04);
    background-size: 0 0;
    text-decoration: none;
}

.nav-link--active {
    color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
    text-decoration: none;
}

.nav-link--active:hover {
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
}


/* --- Hero --- */

.hero {
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

/* Grain texture overlay for depth */
.hero::before {
    content: "";
    position: absolute;
    inset: -50%;
    width: 300%;
    height: 300%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 1;
    animation: grainShift 8s steps(6) infinite;
    mix-blend-mode: overlay;
}

.hero__overlay {
    width: 100%;
    padding: 6rem 0 3.5rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.45) 35%,
        rgba(0, 0, 0, 0.15) 65%,
        rgba(0, 0, 0, 0.05) 100%
    );
    position: relative;
    z-index: 2;
}

.hero__welcome {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__weather {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    color: rgba(255, 255, 255, 0.92);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero__temp {
    font-size: 2.5rem;
    font-weight: 200;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero__conditions {
    font-size: 1.0625rem;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.01em;
}


/* --- Sections --- */

.section {
    padding: 4.5rem 0;
    animation: fadeIn 0.6s ease both;
}

.section--alt {
    background: color-mix(in srgb, var(--color-primary) 2.5%, var(--color-bg));
}

.section--editorial {
    padding: 3rem 0;
}

.section__heading {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 2.25rem;
    letter-spacing: -0.02em;
    line-height: 3rem; /* 2 baseline units */
    position: relative;
    padding-bottom: 0.75rem;
}

.section__heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2.5rem;
    height: 3px;
    background: var(--color-accent);
    border-radius: 3px;
}

.section__empty {
    color: var(--color-muted);
    font-style: italic;
    font-size: 0.9375rem;
    line-height: 1.5rem;
}


/* --- Grid --- */

.grid { display: grid; gap: 2.25rem; }
.grid--2col { grid-template-columns: 1fr 1fr; }

.stack { display: flex; flex-direction: column; gap: 1.5rem; }


/* --- Cards --- */

.card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
                0 2px 8px rgba(0, 0, 0, 0.03),
                0 8px 24px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    animation: subtleSlideIn 0.5s ease both;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04),
                0 4px 12px rgba(0, 0, 0, 0.05),
                0 16px 40px rgba(0, 0, 0, 0.06);
}

.card__heading {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.125rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    letter-spacing: -0.01em;
    line-height: 1.5rem;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
}

.card__empty {
    color: var(--color-muted);
    font-size: 0.875rem;
    font-style: italic;
    line-height: 1.5rem;
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1.125rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background-image: none;
    transition: gap 0.25s ease, color 0.25s ease;
}

.card__link::after {
    content: "\2192";
    transition: transform 0.25s ease;
}

.card__link:hover {
    background-size: 0 0;
}

.card__link:hover::after {
    transform: translateX(3px);
}


/* --- Editorial Card --- */

.editorial-card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 2.25rem;
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
                0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    animation: subtleSlideIn 0.5s ease both;
}

.editorial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04),
                0 8px 28px rgba(0, 0, 0, 0.06);
}

.editorial-card__heading {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    color: var(--color-primary);
    margin-bottom: 0.375rem;
    letter-spacing: -0.02em;
    line-height: 3rem;
    font-weight: 800;
}

.editorial-card__date {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    line-height: 1.5rem;
}

.editorial-card__body {
    font-size: 1.0625rem;
    line-height: 1.5rem;
    color: var(--color-text);
}

.editorial-card__body p {
    margin-bottom: 1.5rem; /* maintain baseline grid */
}

.editorial-card__body p:last-child {
    margin-bottom: 0;
}

.editorial-card__body p + p {
    margin-top: 0;
}


/* --- Event List (sidebar) --- */

.event-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.event-list__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
}

.event-list__item:first-child { padding-top: 0; }
.event-list__item:last-child { border-bottom: none; padding-bottom: 0; }

.event-list__item:hover {
    background: rgba(0, 0, 0, 0.015);
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-radius: 8px;
}

.event-list__date {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-accent);
    white-space: nowrap;
    min-width: 5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.5rem;
}

.event-list__detail strong {
    display: block;
    font-size: 0.875rem;
    line-height: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.event-list__location {
    font-size: 0.75rem;
    color: var(--color-muted);
    line-height: 1.5rem;
}


/* --- Event Grid (full page) --- */

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
                0 2px 8px rgba(0, 0, 0, 0.03),
                0 8px 24px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    animation: subtleSlideIn 0.5s ease both;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04),
                0 4px 12px rgba(0, 0, 0, 0.05),
                0 16px 40px rgba(0, 0, 0, 0.06);
}

.event-card__date {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.5rem;
}

.event-card__title {
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    margin: 0.375rem 0 0.75rem;
    color: var(--color-text);
    letter-spacing: -0.01em;
    line-height: 1.5rem;
    font-weight: 700;
}

.event-card__desc {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
    line-height: 1.5rem;
}

.event-card__location {
    font-size: 0.8125rem;
    color: var(--color-muted);
    line-height: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.event-card__location::before {
    content: "";
    width: 3px;
    height: 3px;
    background: var(--color-muted);
    border-radius: 50%;
    flex-shrink: 0;
}

.event-card__time {
    font-size: 0.8125rem;
    color: var(--color-muted);
    line-height: 1.5rem;
}


/* --- Weather --- */

.weather-detail__current {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.125rem;
    padding-bottom: 1.125rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.weather-detail__temp {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 200;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -0.04em;
}

.weather-detail__desc {
    font-size: 1.0625rem;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.5rem;
}

.weather-detail__stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
    line-height: 1.5rem;
    font-weight: 500;
}

.weather-detail__stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}


/* --- Forecast Strip --- */

.forecast-strip {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    background: color-mix(in srgb, var(--color-primary) 3%, var(--color-surface));
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.forecast-day {
    flex: 1;
    text-align: center;
    padding: 1rem 0.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: background 0.25s ease;
    position: relative;
}

.forecast-day:last-child { border-right: none; }

.forecast-day:hover {
    background: color-mix(in srgb, var(--color-primary) 6%, transparent);
}

.forecast-day__name {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    line-height: 1.5rem;
}

.forecast-day__high {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.5rem;
    letter-spacing: -0.02em;
}

.forecast-day__low {
    font-size: 0.8125rem;
    color: var(--color-muted);
    font-weight: 500;
    line-height: 1.5rem;
}

.forecast-day__desc {
    font-size: 0.6875rem;
    color: var(--color-muted);
    line-height: 1.5rem;
    font-style: italic;
}


/* --- Tides --- */

.tide-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tide-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
}

.tide-entry:last-child { border-bottom: none; }

.tide-entry:hover {
    background: rgba(0, 0, 0, 0.015);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 6px;
}

.tide-entry__type {
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    min-width: 3.5rem;
    text-align: center;
    line-height: 1.5rem;
}

.tide-entry__type--high {
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary);
}

.tide-entry__type--low {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-muted);
}

.tide-entry__time {
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.5rem;
    font-variant-numeric: tabular-nums;
}

.tide-entry__height {
    font-size: 0.8125rem;
    color: var(--color-muted);
    line-height: 1.5rem;
    font-variant-numeric: tabular-nums;
}


/* --- News --- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.news-card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
                0 2px 8px rgba(0, 0, 0, 0.03),
                0 8px 24px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    animation: subtleSlideIn 0.5s ease both;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04),
                0 4px 12px rgba(0, 0, 0, 0.05),
                0 16px 40px rgba(0, 0, 0, 0.06);
}

/* --- News Scope Tabs --- */

.scope-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 2.25rem;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    border-bottom: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.scope-tabs::-webkit-scrollbar { display: none; }

.scope-tab {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-muted);
    padding: 0.625rem 1.25rem;
    cursor: pointer;
    border-bottom: none;
    margin-bottom: 0;
    white-space: nowrap;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 10px;
    line-height: 1.5rem;
    min-height: 2.75rem; /* 44px touch target */
}

.scope-tab:hover {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.03);
}

.scope-tab--active {
    color: var(--color-primary);
    background: var(--color-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08),
                0 1px 2px rgba(0, 0, 0, 0.04);
    border-bottom-color: transparent;
    font-weight: 700;
}

.scope-tab--active:hover {
    background: var(--color-surface);
}

.scope-tab__count {
    font-size: 0.6875rem;
    background: rgba(0, 0, 0, 0.08);
    padding: 0.125rem 0.5rem;
    border-radius: 100px;
    font-weight: 700;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.scope-tab--active .scope-tab__count {
    background: var(--color-primary);
    color: #fff;
}

.scope-panel { display: none; }
.scope-panel--active {
    display: block;
    animation: fadeIn 0.3s ease;
}


.news-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.news-card__date {
    font-size: 0.6875rem;
    color: var(--color-muted);
    line-height: 1.5rem;
    font-variant-numeric: tabular-nums;
}

.news-card__source-name {
    font-size: 0.625rem;
    font-weight: 800;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: color-mix(in srgb, var(--color-accent) 10%, transparent);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    line-height: 1.5;
}

.news-card__title {
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    color: var(--color-text);
    line-height: 1.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
    font-weight: 700;
}

.news-card__summary {
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.5rem;
    flex: 1;
}

.news-card__source {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1.125rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background-image: none;
    transition: gap 0.25s ease;
}

.news-card__source::after {
    content: "\2192";
    font-size: 0.875rem;
    transition: transform 0.25s ease;
}

.news-card__source:hover {
    background-size: 0 0;
}

.news-card__source:hover::after {
    transform: translateX(3px);
}


/* --- Business Directory --- */

.biz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.biz-card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
                0 2px 8px rgba(0, 0, 0, 0.03),
                0 8px 24px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    animation: subtleSlideIn 0.5s ease both;
}

.biz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04),
                0 4px 12px rgba(0, 0, 0, 0.05),
                0 16px 40px rgba(0, 0, 0, 0.06);
}

.biz-card__name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.5rem;
}

.biz-card__category {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 1rem;
    background: color-mix(in srgb, var(--color-accent) 10%, transparent);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    line-height: 1.5;
}

.biz-card__address,
.biz-card__phone,
.biz-card__hours {
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin-top: 0.375rem;
    line-height: 1.5rem;
}


/* --- Footer --- */

.site-footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 2rem;
    margin-top: 0;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -4rem;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.03));
    pointer-events: none;
}

.site-footer__grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 3rem;
}

.site-footer__brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.5rem;
}

.site-footer__desc {
    font-size: 0.875rem;
    max-width: 320px;
    line-height: 1.5rem;
}

.site-footer__links {
    display: flex;
    gap: 0.25rem;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    background-image: none;
    line-height: 1.5rem;
}

.site-footer__links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    background-size: 0 0;
}

.site-footer__copy {
    font-size: 0.75rem;
    opacity: 0.4;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    line-height: 1.5rem;
    letter-spacing: 0.02em;
}


/* --- Responsive: Tablet --- */

@media (max-width: 768px) {
    .grid--2col { grid-template-columns: 1fr; }

    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hero {
        min-height: 70svh;
    }

    .hero__welcome { font-size: 2.25rem; }
    .hero__temp { font-size: 2rem; }

    .hero__overlay {
        padding: 4rem 0 2.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .forecast-strip {
        flex-wrap: wrap;
        border-radius: 12px;
    }

    .forecast-day {
        min-width: calc(33.333% - 0.5rem);
        flex: unset;
    }

    .site-footer__grid {
        flex-direction: column;
        gap: 2rem;
    }

    .site-footer__links {
        flex-wrap: wrap;
    }

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

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

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

/* --- Responsive: Small Phone (390px) --- */

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1rem;
    }

    .site-header {
        padding: 0.75rem 0;
    }

    .site-header__city {
        font-size: 1.25rem;
    }

    .site-header__nav {
        gap: 0.125rem;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .site-header__nav::-webkit-scrollbar { display: none; }

    .nav-link {
        font-size: 0.8125rem;
        padding: 0.5rem 0.625rem;
        min-height: 2.75rem; /* 44px touch target */
        display: flex;
        align-items: center;
    }

    .hero {
        min-height: 60svh;
    }

    .hero__overlay {
        padding: 3rem 0 2rem;
    }

    .hero__welcome {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero__weather {
        flex-direction: column;
        gap: 0.25rem;
    }

    .hero__temp {
        font-size: 1.75rem;
    }

    .section {
        padding: 2.25rem 0;
    }

    .section__heading {
        font-size: 1.375rem;
        margin-bottom: 1.5rem;
    }

    .card {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .editorial-card {
        padding: 1.5rem;
        border-radius: 14px;
    }

    .editorial-card__heading {
        font-size: 1.375rem;
    }

    .news-card {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .event-card {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .biz-card {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .scope-tabs {
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }

    .scope-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
        min-height: 2.75rem; /* 44px touch target */
    }

    .forecast-day {
        min-width: calc(33.333% - 0.25rem);
        padding: 0.75rem 0.25rem;
    }

    .weather-detail__temp {
        font-size: 2.75rem;
    }

    .site-footer {
        padding: 3rem 0 1.5rem;
    }

    .site-footer__grid {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .site-footer__links {
        gap: 0;
    }

    .site-footer__links a {
        padding: 0.5rem 0.625rem;
        min-height: 2.75rem; /* 44px touch target */
        display: flex;
        align-items: center;
    }
}

/* --- Reduced Motion --- */

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

    .hero::before {
        animation: none;
    }
}

/* --- Print --- */

@media print {
    .site-header,
    .site-footer,
    .alert-bar,
    .scope-tabs {
        display: none;
    }

    .hero {
        min-height: auto;
        background: none !important;
    }

    .hero__overlay {
        background: none;
        padding: 1rem 0;
    }

    .hero__welcome {
        color: #000;
        text-shadow: none;
    }

    .card,
    .news-card,
    .event-card,
    .biz-card,
    .editorial-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    body {
        background: #fff;
        color: #000;
    }
}
