/* ==========================================================================
   Vista City Government Portal
   Modern, refined stylesheet with light & dark (navy) themes
   ========================================================================== */

/* ----- Theme tokens ----- */
:root {
    /* Brand */
    --brand-navy: #0a2540;
    --brand-navy-soft: #1a3a5c;

    /* Surfaces (light theme — default) */
    --bg: #fafbfc;
    --bg-subtle: #f3f5f8;
    --surface: #ffffff;
    --surface-2: #fafbfc;

    /* Inverted (dark) panels in light mode */
    --inverse-bg-color: #0a2540;
    --inverse-bg-gradient: linear-gradient(135deg, #0a2540 0%, #1a3a5c 50%, #0a2540 100%);
    --inverse-text: #ffffff;
    --inverse-text-muted: rgba(255, 255, 255, 0.72);

    /* Text */
    --heading: #0a2540;
    --text: #2a3447;
    --text-muted: #5a6478;
    --text-subtle: #94a3b8;

    /* Borders */
    --border: #e6e8ec;
    --border-strong: #cbd2db;

    /* Accent — modern blue */
    --accent: #3b6df0;
    --accent-hover: #2d56c8;
    --accent-soft: rgba(59, 109, 240, 0.1);
    --accent-glow: rgba(59, 109, 240, 0.22);

    /* Categorical */
    --red: #dc2626;
    --red-soft: rgba(220, 38, 38, 0.1);
    --green: #16a34a;
    --green-soft: rgba(22, 163, 74, 0.1);
    --blue: #2563eb;
    --blue-soft: rgba(37, 99, 235, 0.1);
    --purple: #9333ea;
    --purple-soft: rgba(147, 51, 234, 0.1);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 6px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.12);
    --shadow-accent: 0 8px 24px var(--accent-glow);

    /* Header */
    --header-bg: rgba(255, 255, 255, 0.82);
    --header-border: rgba(15, 23, 42, 0.06);

    /* Layout */
    --container: 1200px;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fonts */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
    --bg: #0a1628;
    --bg-subtle: #0d1c33;
    --surface: #102443;
    --surface-2: #16305a;

    --inverse-bg-color: #14274a;
    --inverse-bg-gradient: linear-gradient(135deg, #0c1b34 0%, #1a3a5c 50%, #0c1b34 100%);
    --inverse-text: #f1f5f9;
    --inverse-text-muted: rgba(241, 245, 249, 0.7);

    --heading: #f1f5f9;
    --text: #cbd5e1;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);

    --accent: #7aa0ff;
    --accent-hover: #92b1ff;
    --accent-soft: rgba(122, 160, 255, 0.12);
    --accent-glow: rgba(122, 160, 255, 0.28);

    --red: #f87171;
    --red-soft: rgba(248, 113, 113, 0.14);
    --green: #4ade80;
    --green-soft: rgba(74, 222, 128, 0.14);
    --blue: #60a5fa;
    --blue-soft: rgba(96, 165, 250, 0.14);
    --purple: #c084fc;
    --purple-soft: rgba(192, 132, 252, 0.14);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.55);

    --header-bg: rgba(10, 22, 40, 0.78);
    --header-border: rgba(255, 255, 255, 0.06);
}

/* ----- Reset & base ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul {
    list-style: none;
}

::selection {
    background: var(--accent-soft);
    color: var(--heading);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ----- Layout ----- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ----- Typography ----- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--heading);
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* ----- Top bar ----- */
.top-bar {
    background: var(--inverse-bg-color);
    color: var(--inverse-text-muted);
    padding: 0.55rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-text {
    letter-spacing: 0.4px;
}

.top-bar-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-links a {
    color: var(--inverse-text-muted);
    transition: color var(--t);
}

.top-bar-links a:hover {
    color: var(--accent);
}

/* Theme toggle */
.theme-toggle {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--inverse-text-muted);
    border-radius: 50%;
    transition: color var(--t), background var(--t), transform var(--t);
}

.theme-toggle:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.theme-toggle:active {
    transform: scale(0.92);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ----- Header & nav ----- */
.header {
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color var(--t), border-color var(--t), box-shadow var(--t);
}

.header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--heading);
}

.logo-crest {
    width: 44px;
    height: 44px;
    color: var(--accent);
    transition: color var(--t);
}

.logo-crest svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading);
}

.logo-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-top: 2px;
}

/* Nav */
.nav ul {
    display: flex;
    gap: 0.3rem;
}

.nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.55rem 1rem;
    border-radius: 100px;
    transition: color var(--t), background var(--t);
}

.nav a:hover,
.nav a.active {
    color: var(--accent);
    background: var(--accent-soft);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.3rem;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--heading);
    border-radius: 2px;
    transition: var(--t);
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 100px;
    transition: all var(--t);
    text-align: center;
    letter-spacing: 0.2px;
    border: 1.5px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-outline-dark {
    background: transparent;
    color: var(--heading);
    border-color: var(--border-strong);
}

.btn-outline-dark:hover {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--accent);
}

/* ----- Hero ----- */
.hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    background: var(--inverse-bg-gradient);
    color: var(--inverse-text);
    padding: 5rem 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 22% 50%, rgba(59, 109, 240, 0.22) 0%, transparent 55%),
        radial-gradient(circle at 82% 80%, rgba(122, 160, 255, 0.12) 0%, transparent 55%);
}

[data-theme="dark"] .hero::before {
    background-image:
        radial-gradient(circle at 22% 50%, rgba(122, 160, 255, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 82% 80%, rgba(122, 160, 255, 0.08) 0%, transparent 55%);
}

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

.hero-tag {
    display: inline-block;
    color: var(--inverse-text);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero h1 {
    color: var(--inverse-text);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--inverse-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ----- Sections ----- */
.section {
    padding: 5rem 0;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.section-header.centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.section-desc {
    max-width: 600px;
    margin: 1rem auto 0;
}

.link-arrow {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.92rem;
    transition: color var(--t), transform var(--t);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.link-arrow:hover {
    color: var(--accent-hover);
    transform: translateX(3px);
}

/* ----- Quick info cards ----- */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.quick-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}

.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
}

.quick-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.quick-card:hover::before {
    transform: scaleX(1);
}

.quick-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.quick-icon svg {
    width: 100%;
    height: 100%;
}

.quick-card h3 {
    margin-bottom: 0.7rem;
}

.quick-card p {
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.quick-link {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--t);
}

.quick-link:hover {
    color: var(--accent-hover);
}

/* ----- Premier section ----- */
.premier-section {
    background: var(--bg-subtle);
}

.premier-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.premier-image {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--inverse-bg-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.premier-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(122, 160, 255, 0.18), transparent 60%);
}

.premier-placeholder {
    width: 45%;
    color: rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 1;
}

.premier-placeholder svg {
    width: 100%;
    height: auto;
}

.premier-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--accent);
    color: #ffffff;
    padding: 0.4rem 1rem;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 100px;
    z-index: 2;
}

.premier-text h2 {
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.premier-signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.signature-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading);
}

.signature-role {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ----- News grid ----- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}

.news-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--t);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.news-image {
    aspect-ratio: 16/9;
    background: var(--bg-subtle);
    position: relative;
    overflow: hidden;
}

.news-image-1 {
    background-image: linear-gradient(135deg, #0a2540 0%, #3b6df0 100%);
}

.news-image-2 {
    background-image: linear-gradient(135deg, #1a3a5c 0%, #7aa0ff 100%);
}

.news-image-3 {
    background-image: linear-gradient(135deg, #2c4d6e 0%, #0a2540 100%);
}

.news-content {
    padding: 1.6rem;
}

.news-meta {
    display: block;
    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.news-card h3 {
    margin-bottom: 0.7rem;
    line-height: 1.3;
}

.news-card p {
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.read-more {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--t);
}

.read-more:hover {
    color: var(--accent-hover);
}

/* Featured news */
.news-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.news-featured-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #0a2540 0%, #3b6df0 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.news-featured-content h2 {
    margin: 1rem 0 1.5rem;
    line-height: 1.3;
}

/* ----- Stats ----- */
.stats-section {
    background: var(--inverse-bg-color);
    color: var(--inverse-text);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 109, 240, 0.15), transparent 70%);
}

[data-theme="dark"] .stats-section::before {
    background: radial-gradient(circle at 50% 50%, rgba(122, 160, 255, 0.1), transparent 70%);
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    color: var(--inverse-text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 0.8rem;
}

/* ----- Page header (sub-pages) ----- */
.page-header {
    background: var(--inverse-bg-gradient);
    color: var(--inverse-text);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(59, 109, 240, 0.22), transparent 50%);
}

[data-theme="dark"] .page-header::before {
    background: radial-gradient(circle at 80% 30%, rgba(122, 160, 255, 0.15), transparent 50%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--inverse-text);
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--inverse-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: var(--inverse-text-muted);
}

.breadcrumb a {
    color: var(--accent);
}

.breadcrumb a:hover {
    color: var(--inverse-text);
}

/* ----- Minister featured ----- */
.minister-featured {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
}

.minister-featured-image {
    aspect-ratio: 3/4;
    background: var(--inverse-bg-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.22);
    box-shadow: var(--shadow-md);
}

.minister-featured-image svg {
    width: 45%;
    height: auto;
}

.minister-role-main {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.minister-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.detail-label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-subtle);
    margin-bottom: 0.3rem;
}

.detail-value {
    font-weight: 600;
    color: var(--heading);
}

/* Ministers grid */
.ministers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.minister-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--t);
}

.minister-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.minister-image {
    aspect-ratio: 1;
    background: var(--inverse-bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.22);
}

.minister-image svg {
    width: 40%;
    height: auto;
}

.minister-info {
    padding: 1.6rem;
}

.minister-ministry {
    display: block;
    color: var(--accent);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.minister-card h3 {
    margin-bottom: 0.3rem;
}

.minister-role {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
}

.minister-bio {
    font-size: 0.88rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ----- Laws ----- */
.law-search {
    background: var(--surface);
    padding: 1.8rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-xs);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 1.2rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-subtle);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color var(--t), background var(--t);
}

.search-input::placeholder {
    color: var(--text-subtle);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.1rem;
    background: var(--surface-2);
    color: var(--text);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--t);
    border: 1px solid var(--border);
}

.filter-btn:hover {
    background: var(--accent-soft);
    border-color: transparent;
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.laws-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.law-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 2rem;
    background: var(--surface);
    padding: 1.8rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--t);
    position: relative;
}

.law-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.6;
    transition: opacity var(--t);
}

.law-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: transparent;
}

.law-item:hover::before {
    opacity: 1;
}

.law-number {
    font-family: var(--font-serif);
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.law-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 100px;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.category-criminal { background: var(--red-soft); color: var(--red); }
.category-traffic  { background: var(--blue-soft); color: var(--blue); }
.category-business { background: var(--green-soft); color: var(--green); }
.category-admin    { background: var(--purple-soft); color: var(--purple); }

.law-content h3 {
    margin-bottom: 0.7rem;
}

.law-content p {
    margin-bottom: 1rem;
    font-size: 0.93rem;
    line-height: 1.6;
}

.law-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

/* ----- Pagination ----- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.55rem 0.95rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--t);
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* ----- About page ----- */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-stats {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.about-stat {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.about-stat:last-child {
    border-bottom: none;
}

.stat-big {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-text {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
}

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--t);
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: var(--accent);
    border: none;
}

.value-icon svg {
    width: 26px;
    height: 26px;
}

.value-card h3 {
    margin-bottom: 0.7rem;
}

.value-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-strong);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.42rem;
    top: 0.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg-subtle), 0 0 0 5px var(--accent-soft);
}

.timeline-date {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

/* ----- CTA ----- */
.cta-section {
    background: var(--bg-subtle);
}

.cta-box {
    background: var(--inverse-bg-gradient);
    color: var(--inverse-text);
    padding: 4rem 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 109, 240, 0.25), transparent 60%);
}

[data-theme="dark"] .cta-box::before {
    background: radial-gradient(circle at 50% 0%, rgba(122, 160, 255, 0.18), transparent 60%);
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    color: var(--inverse-text);
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--inverse-text-muted);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-box .btn-outline-dark {
    color: var(--inverse-text);
    border-color: rgba(255, 255, 255, 0.4);
    background: transparent;
}

.cta-box .btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
}

/* ----- Newsletter ----- */
.newsletter-section {
    background: var(--bg-subtle);
}

.newsletter-box {
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    box-shadow: var(--shadow-xs);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.85rem 1.1rem;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 0.93rem;
    font-family: inherit;
    color: var(--text);
}

.newsletter-form input::placeholder {
    color: var(--text-subtle);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}

/* ----- Footer ----- */
.footer {
    background: var(--inverse-bg-color);
    color: var(--inverse-text-muted);
    padding: 4rem 0 1.5rem;
    position: relative;
    border-top: 1px solid var(--header-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col .logo {
    margin-bottom: 1rem;
    color: var(--inverse-text);
}

.footer-col .logo-title {
    color: var(--inverse-text);
}

.footer-col .logo-subtitle {
    color: var(--inverse-text-muted);
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--inverse-text-muted);
    max-width: 320px;
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--inverse-text);
    margin-bottom: 1.2rem;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.footer-col ul a {
    color: var(--inverse-text-muted);
    transition: color var(--t);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--inverse-text-muted);
}

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

/* ----- Hazard banner (global active warning) ----- */
.hazard-banner {
    position: relative;
    color: #fff;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: block;
    z-index: 50;
}

/* Stripes element is intentionally WIDER than the banner (200px overhang on each
   side). The animation translates it horizontally by exactly one perpendicular
   stripe period (44 / sin45° = 62.2254px). Because the pattern at +0 and at
   +62.2254 is visually identical (one full black+yellow cycle), the loop
   reset is invisible. The overhang guarantees no edge ever uncovers the
   banner regardless of position within the animation. */
.hazard-banner-stripes {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -200px;
    right: -200px;
    background-image: repeating-linear-gradient(
        45deg,
        #000 0,
        #000 22px,
        #ffcc00 22px,
        #ffcc00 44px
    );
    animation: hazard-scroll 2s linear infinite;
    pointer-events: none;
    backface-visibility: hidden;
}

@keyframes hazard-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(62.2254px, 0, 0); }
}

.hazard-banner-inner {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.88);
    color: #fff;
    margin: 0 auto;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1100px;
    border-left: 6px solid #ffcc00;
    border-right: 6px solid #ffcc00;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hazard-banner-icon {
    width: 28px;
    height: 28px;
    background: #ffcc00;
    color: #000;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-sans);
    font-size: 18px;
    flex-shrink: 0;
    animation: hazard-pulse 1s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.85);
}

@keyframes hazard-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.85); transform: scale(1); }
    70%  { box-shadow: 0 0 0 14px rgba(255, 204, 0, 0); transform: scale(1.08); }
    100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); transform: scale(1); }
}

.hazard-banner-label {
    background: #ffcc00;
    color: #000;
    padding: 0.18rem 0.65rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    flex-shrink: 0;
    animation: hazard-blink 1.2s ease-in-out infinite;
}

@keyframes hazard-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

.hazard-banner-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.hazard-banner-cta {
    color: #ffcc00;
    font-weight: 600;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-left: auto;
    border: 1px solid #ffcc00;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    transition: background var(--t), color var(--t);
    white-space: nowrap;
}

.hazard-banner:hover .hazard-banner-cta {
    background: #ffcc00;
    color: #000;
}

/* Severity variants */
.hazard-banner-warnung .hazard-banner-stripes {
    background: repeating-linear-gradient(
        45deg,
        #b91c1c 0, #b91c1c 22px,
        #fbbf24 22px, #fbbf24 44px
    );
}
.hazard-banner-warnung .hazard-banner-icon,
.hazard-banner-warnung .hazard-banner-label,
.hazard-banner-warnung .hazard-banner-cta {
    background: #fbbf24; color: #7c2d12;
}
.hazard-banner-warnung .hazard-banner-inner { border-color: #fbbf24; }

.hazard-banner-info .hazard-banner-stripes {
    background: repeating-linear-gradient(
        45deg,
        #1e3a8a 0, #1e3a8a 22px,
        #60a5fa 22px, #60a5fa 44px
    );
    animation-duration: 3s;
}
.hazard-banner-info .hazard-banner-icon,
.hazard-banner-info .hazard-banner-label,
.hazard-banner-info .hazard-banner-cta {
    background: #60a5fa; color: #0c2545;
}
.hazard-banner-info .hazard-banner-inner { border-color: #60a5fa; }
.hazard-banner-info .hazard-banner-icon { animation: none; box-shadow: none; }
.hazard-banner-info .hazard-banner-label { animation: none; }

.hazard-banner-entwarnung .hazard-banner-stripes {
    background: repeating-linear-gradient(
        45deg,
        #065f46 0, #065f46 22px,
        #34d399 22px, #34d399 44px
    );
    animation-duration: 3s;
}
.hazard-banner-entwarnung .hazard-banner-icon,
.hazard-banner-entwarnung .hazard-banner-label,
.hazard-banner-entwarnung .hazard-banner-cta {
    background: #34d399; color: #064e3b;
}
.hazard-banner-entwarnung .hazard-banner-inner { border-color: #34d399; }
.hazard-banner-entwarnung .hazard-banner-icon { animation: none; box-shadow: none; }
.hazard-banner-entwarnung .hazard-banner-label { animation: none; }

@media (max-width: 600px) {
    .hazard-banner-inner {
        padding: 0.6rem 0.9rem;
        gap: 0.6rem;
        font-size: 0.86rem;
    }
    .hazard-banner-cta { display: none; }
    .hazard-banner-title { font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hazard-banner-stripes,
    .hazard-banner-icon,
    .hazard-banner-label { animation: none !important; }
}

/* ----- Glasmorphism cards ----- */
.glass {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .glass {
    background: rgba(20, 39, 74, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-section {
    position: relative;
    overflow: hidden;
}
.glass-section::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 15% 30%, rgba(59, 109, 240, 0.18), transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(122, 160, 255, 0.16), transparent 45%);
    z-index: 0;
    pointer-events: none;
}
[data-theme="dark"] .glass-section::before {
    background:
        radial-gradient(circle at 15% 30%, rgba(122, 160, 255, 0.15), transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(59, 109, 240, 0.18), transparent 45%);
}
.glass-section > .container { position: relative; z-index: 1; }

/* ----- Hero parallax (handled by CSS var set in main.js) ----- */
.hero::before {
    transform: translate3d(0, var(--parallax-y, 0), 0);
    transition: none;
}
.hero-content {
    transform: translate3d(0, var(--parallax-content, 0), 0);
}

/* ----- Wahl-Countdown ----- */
.countdown-section {
    background: var(--inverse-bg-gradient);
    color: var(--inverse-text);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.countdown-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59,109,240,0.25), transparent 55%),
        radial-gradient(circle at 80% 50%, rgba(122,160,255,0.18), transparent 55%);
}
.countdown-section .container { position: relative; z-index: 1; }
.countdown-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}
.countdown-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.countdown-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--inverse-text);
    margin: 0 0 0.4rem;
    line-height: 1.2;
}
.countdown-date {
    color: var(--inverse-text-muted);
    margin: 0;
}
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 0.6rem;
}
.cd-cell {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    text-align: center;
    min-width: 80px;
}
.cd-num {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cd-unit {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--inverse-text-muted);
    margin-top: 0.3rem;
}
@media (max-width: 760px) {
    .countdown-wrap { grid-template-columns: 1fr; text-align: center; }
    .countdown-grid { justify-content: center; }
}

/* ----- Sitzverteilung Donut ----- */
.seats-section {
    background: var(--bg-subtle);
}
.seats-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: center;
}
.donut {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}
.donut::after {
    content: '';
    position: absolute;
    inset: 26%;
    background: var(--surface);
    border-radius: 50%;
    box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    z-index: 1;
}
.donut-total {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--heading);
    line-height: 1;
}
.donut-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-weight: 600;
}
.seats-legend {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.seat-row {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
}
.seat-row:last-child { border-bottom: none; }
.seat-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--c, var(--accent));
}
.seat-party {
    font-weight: 600;
    color: var(--heading);
}
.seat-count {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}
@media (max-width: 760px) {
    .seats-wrap { grid-template-columns: 1fr; }
}

/* ----- Events Preview (homepage) ----- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.event-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all var(--t);
    display: block;
    text-decoration: none;
}
.event-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}
.event-date-badge {
    display: inline-flex;
    flex-direction: column;
    text-align: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.event-date-badge .d {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1;
}
.event-date-badge .m {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}
.event-card h3 {
    color: var(--heading);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}
.event-card p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

/* ----- Awards Preview (homepage) ----- */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.award-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: all var(--t);
}
.award-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.award-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}
.award-icon svg { width: 28px; height: 28px; }
.award-card h3 {
    color: var(--heading);
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}
.award-card .award-year {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.award-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ----- Scroll fade-in ----- */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: none;
}

/* ----- Responsive ----- */
@media (max-width: 992px) {
    .premier-grid,
    .news-featured,
    .minister-featured,
    .about-grid,
    .newsletter-box {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .law-item {
        grid-template-columns: 80px 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .law-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .top-bar-links {
        gap: 1rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-top: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--t);
    }

    .nav.open {
        max-height: 420px;
        box-shadow: var(--shadow-md);
    }

    .nav ul {
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0;
    }

    .nav ul li {
        border-bottom: 1px solid var(--border);
    }

    .nav ul li:last-child {
        border-bottom: none;
    }

    .nav ul a {
        display: block;
        padding: 1rem 0;
        border-radius: 0;
    }

    .nav ul a:hover,
    .nav ul a.active {
        background: transparent;
        color: var(--accent);
    }

    .hero {
        min-height: 500px;
        padding: 4rem 0;
    }

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

    .section {
        padding: 3.5rem 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .stat-item:not(:last-child)::after {
        display: none;
    }

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

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

    .law-item {
        grid-template-columns: 1fr;
    }

    .law-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }

    .timeline {
        padding-left: 1rem;
    }

    .newsletter-box {
        padding: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

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

    .logo-subtitle {
        display: none;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .top-bar-text {
        display: none;
    }
}

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

    html { scroll-behavior: auto; }
}
