/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background: #ffffff;
    color: hsl(220, 20%, 14%);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }
ul { list-style: none; }

/* ===== DESIGN TOKENS ===== */
:root {
    --bg: #ffffff;
    --fg: hsl(220, 20%, 14%);
    --primary: hsl(213, 56%, 28%);
    --primary-fg: #ffffff;
    --muted: hsl(40, 10%, 96%);
    --muted-fg: hsl(220, 10%, 46%);
    --border: hsl(40, 10%, 90%);
    --radius: 0.375rem;
    --max-w: 80rem;
    --px: 1.5rem;
    /* admin compat */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --border-radius: 12px;
}
@media (min-width: 1024px) { :root { --px: 2rem; } }

/* ===== UTILITIES ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding-left: var(--px); padding-right: var(--px); }
.text-balance { text-wrap: balance; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    transition: all 0.5s ease-out;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem var(--px); max-width: var(--max-w); margin: 0 auto;
}
.navbar-logo {
    font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em;
    transition: color 0.5s; display: flex; align-items: center;
}
.navbar-logo img { height: 50px; width: auto; border: 4px solid rgba(255, 255, 255, 1); border-radius: 4px; }
.navbar:not(.scrolled) .navbar-logo { color: var(--bg); }
.navbar.scrolled .navbar-logo { color: var(--fg); }
.navbar.scrolled .navbar-logo img { border-color: var(--border); }

.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-link { font-size: 0.875rem; font-weight: 500; transition: color 0.3s; }
.navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,0.7); }
.navbar:not(.scrolled) .nav-link:hover { color: #fff; }
.navbar.scrolled .nav-link { color: var(--muted-fg); }
.navbar.scrolled .nav-link:hover { color: var(--fg); }

.nav-cta {
    font-size: 0.875rem; font-weight: 500; padding: 0.5rem 1.25rem;
    border-radius: var(--radius); transition: all 0.3s;
}
.navbar:not(.scrolled) .nav-cta {
    color: #fff; background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(4px);
}
.navbar:not(.scrolled) .nav-cta:hover { background: rgba(255,255,255,0.2); }
.navbar.scrolled .nav-cta { color: var(--primary-fg); background: var(--primary); border: 1px solid var(--primary); }
.navbar.scrolled .nav-cta:hover { opacity: 0.9; }

.mobile-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; transition: color 0.3s; padding: 0;
}
.navbar:not(.scrolled) .mobile-toggle { color: #fff; }
.navbar.scrolled .mobile-toggle { color: var(--fg); }
.mobile-toggle svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

.mobile-menu {
    display: none; flex-direction: column; gap: 0.25rem;
    padding: 1rem var(--px); background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px); border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu a {
    display: block; padding: 0.625rem 0.75rem; border-radius: var(--radius);
    font-size: 0.875rem; font-weight: 500; color: var(--muted-fg);
    transition: background 0.2s, color 0.2s;
}
.mobile-menu a:hover { background: var(--muted); color: var(--fg); }
.mobile-menu .mobile-cta {
    margin-top: 0.5rem; text-align: center;
    background: var(--primary); color: var(--primary-fg); border-radius: var(--radius);
    padding: 0.625rem 1.25rem;
}
.mobile-menu .mobile-cta:hover { opacity: 0.9; background: var(--primary); color: var(--primary-fg); }

/* ===== HERO ===== */
.hero {
    position: relative; display: flex; align-items: flex-end;
    overflow: hidden; padding: 5rem 0;
}
@media (min-width: 1024px) { .hero { align-items: center; padding: 0; } }

.hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 1s;
}
.hero-video.loaded { opacity: 1; }

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(15,31,51,0.85), rgba(15,31,51,0.6), rgba(15,31,51,0.3));
}
.hero-overlay-bottom {
    position: absolute; left: 0; right: 0; bottom: 0; height: 10rem;
    background: linear-gradient(to top, rgba(15,31,51,0.8), transparent);
}
.hero-content { position: relative; z-index: 10; width: 100%; }
.hero-inner { max-width: 42rem; }

.hero-eyebrow {
    margin-bottom: 1rem; font-size: 0.875rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.5);
}
.hero h1 {
    margin-bottom: 1.5rem; font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; color: #fff;
}
.hero-desc {
    margin-bottom: 2.5rem; max-width: 32rem;
    font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.65);
}
@media (min-width: 1024px) { .hero-desc { font-size: 1.125rem; } }

.hero-stats {
    margin-top: 4rem; display: grid; grid-template-columns: 1fr;
    gap: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2.5rem;
}
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .hero-stats { margin-top: 6rem; } }

.hero-stat-value { font-size: 1.125rem; font-weight: 600; color: rgba(255,255,255,0.9); }
@media (min-width: 1024px) { .hero-stat-value { font-size: 1.25rem; } }
.hero-stat-label { margin-top: 0.25rem; font-size: 0.875rem; color: rgba(255,255,255,0.4); }

/* ===== TRUST BAND ===== */
.trust-band {
    border-bottom: 1px solid var(--border); background: var(--muted);
    padding: 2rem var(--px);
}
@media (min-width: 1024px) { .trust-band { padding: 2.5rem var(--px); } }
.trust-band p {
    text-align: center; font-size: 0.875rem; font-weight: 500;
    letter-spacing: 0.025em; color: var(--muted-fg);
    max-width: var(--max-w); margin: 0 auto;
}
@media (min-width: 1024px) { .trust-band p { font-size: 1rem; } }

/* ===== SECTIONS ===== */
.section { padding: 6rem 0; background: var(--bg); }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }
.section-muted-bg { background: var(--muted); border-top: 1px solid var(--border); }

.section-eyebrow {
    margin-bottom: 1rem; font-size: 0.75rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-fg);
}
.section-title {
    font-size: clamp(1.875rem, 3vw, 2.25rem); font-weight: 600;
    line-height: 1.2; letter-spacing: -0.025em; color: var(--fg);
}

/* ===== LEGACY / ABOUT ===== */
.legacy-grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .legacy-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.legacy-desc {
    margin-bottom: 2rem; max-width: 32rem;
    font-size: 1rem; line-height: 1.7; color: var(--muted-fg);
}
@media (min-width: 1024px) { .legacy-desc { font-size: 1.125rem; } }

.text-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.875rem; font-weight: 500; color: var(--primary); transition: opacity 0.2s;
}
.text-link:hover { opacity: 0.8; }
.text-link svg { transition: transform 0.3s; }
.text-link:hover svg { transform: translateX(4px); }

.legacy-img-wrap {
    position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
}
.legacy-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.legacy-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, hsl(213,56%,85%), hsl(213,56%,75%));
}

/* ===== CAPABILITIES ===== */
.cap-header { max-width: 36rem; margin-bottom: 4rem; }
.cap-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }

.cap-card {
    border: 1px solid var(--border); background: var(--bg);
    border-radius: var(--radius); padding: 2rem; transition: box-shadow 0.2s, border-color 0.2s;
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
@media (min-width: 1024px) { .cap-card { padding: 2.5rem; } }
.cap-card:hover { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); border-color: var(--primary); }
.cap-card:hover h3 { color: var(--primary); }

.cap-icon { width: 1.5rem; height: 1.5rem; margin-bottom: 1.5rem; color: var(--primary); }
.cap-card h3 { margin-bottom: 0.75rem; font-size: 1.125rem; font-weight: 600; color: var(--fg); transition: color 0.2s; }
.cap-card p { font-size: 0.875rem; line-height: 1.7; color: var(--muted-fg); }

/* ===== SECTION OVERVIEW CARDS ===== */
.section-cards-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .section-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .section-cards-grid { grid-template-columns: repeat(3, 1fr); } }

.section-card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.section-card:hover { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); border-color: var(--primary); }
.section-card-img {
    height: 180px; background-size: cover; background-position: center;
    background-color: hsl(213,30%,94%);
}
.section-card-img--placeholder { background-image: linear-gradient(135deg, hsl(213,56%,24%) 0%, hsl(213,56%,36%) 100%); }
.section-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.section-card-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--fg); transition: color 0.2s; }
.section-card:hover .section-card-body h3 { color: var(--primary); }
.section-card-body p { font-size: 0.875rem; line-height: 1.7; color: var(--muted-fg); flex: 1; }
.section-card-body .text-link { margin-top: 0.75rem; font-size: 0.85rem; }

/* ===== METRICS ===== */
.metrics-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .metrics-grid { grid-template-columns: repeat(3, 1fr); } }

.metric { text-align: center; }
@media (min-width: 768px) { .metric { text-align: left; } }

.metric-value {
    font-size: clamp(2.25rem, 4vw, 3.75rem); font-weight: 600;
    letter-spacing: -0.025em; color: var(--fg);
}
.metric-label { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-fg); }
@media (min-width: 1024px) { .metric-label { font-size: 1rem; } }

/* ===== SUSTAINABILITY ===== */
.sustainability { background: var(--primary); padding: 6rem 0; }
@media (min-width: 1024px) { .sustainability { padding: 8rem 0; } }

.sustainability-inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.sustainability .section-eyebrow { color: rgba(255,255,255,0.4); }
.sustainability h2 {
    margin-bottom: 1.5rem; font-size: clamp(1.875rem, 3vw, 2.25rem);
    font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; color: #fff;
}
.sustainability-inner > p { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
@media (min-width: 1024px) { .sustainability-inner > p { font-size: 1.125rem; } }

.sust-grid {
    max-width: 48rem; margin: 4rem auto 0; display: grid; gap: 2.5rem;
}
@media (min-width: 768px) { .sust-grid { grid-template-columns: repeat(3, 1fr); } }
.sust-item { text-align: center; }
.sust-item h3 {
    margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.8);
}
.sust-item p { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.45); }

/* ===== CONTACT CTA ===== */
.exec-cta { text-align: center; }
.exec-cta h2 {
    margin-bottom: 1.5rem; font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; color: var(--fg);
}
.exec-cta p { margin-bottom: 2.5rem; font-size: 1rem; line-height: 1.7; color: var(--muted-fg); }
@media (min-width: 1024px) { .exec-cta p { font-size: 1.125rem; } }

.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--primary); color: var(--primary-fg);
    padding: 1rem 2rem; border-radius: var(--radius);
    font-size: 0.875rem; font-weight: 500; transition: opacity 0.3s;
    cursor: pointer; border: none;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== CONTACT FORM ===== */
.contact-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 48rem; margin: 0 auto; }
.contact-form-row { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .contact-form-row { grid-template-columns: 1fr 1fr; } }

.form-input {
    width: 100%; padding: 0.75rem 1rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.875rem; font-family: inherit; color: var(--fg);
    background: var(--bg); transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(213,56%,28%,0.1);
}
.form-input::placeholder { color: var(--muted-fg); }
.form-textarea { resize: vertical; min-height: 9rem; }
.form-success {
    padding: 0.75rem 1rem; background: hsl(142,56%,95%);
    border: 1px solid hsl(142,56%,80%); border-radius: var(--radius);
    font-size: 0.875rem; color: hsl(142,40%,30%);
}

/* GDPR block */
.gdpr-block {
    background: hsl(213,30%,97%); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem 1.5rem; font-size: 0.8rem;
    color: var(--muted-fg); line-height: 1.6;
}
.gdpr-info-title { font-weight: 600; color: var(--fg); margin-bottom: 0.75rem; font-size: 0.85rem; }
.gdpr-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.gdpr-table td { padding: 0.3rem 0.5rem; vertical-align: top; border-bottom: 1px solid var(--border); }
.gdpr-table td:first-child { white-space: nowrap; color: var(--fg); padding-right: 1rem; }
.gdpr-table tr:last-child td { border-bottom: none; }
.gdpr-table a { color: var(--primary); text-decoration: underline; }

.gdpr-checkbox {
    display: flex; gap: 0.625rem; align-items: flex-start; cursor: pointer;
    font-size: 0.85rem; color: var(--muted-fg); line-height: 1.5;
}
.gdpr-checkbox input[type="checkbox"] {
    margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--primary);
    width: 1rem; height: 1rem; cursor: pointer;
}
.gdpr-checkbox a { color: var(--primary); text-decoration: underline; }

/* Page loader */
.page-loader { display: flex; justify-content: center; align-items: center; min-height: 50vh; }
.page-loader-spinner {
    width: 2.5rem; height: 2.5rem; border: 3px solid var(--border);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Breadcrumb navigation — always on dark backgrounds (page-hero + page-title-section) */
.breadcrumb-nav {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem;
    font-size: 0.82rem; margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.65);
}
.breadcrumb-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.3);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}
.breadcrumb-nav a:hover {
    color: #fff;
    text-decoration-color: rgba(255,255,255,0.8);
}
.breadcrumb-nav .breadcrumb-current { color: rgba(255,255,255,0.95); font-weight: 500; }
.breadcrumb-sep { margin: 0 0.3rem; color: rgba(255,255,255,0.35); }

/* ===== SUBPAGE GRID (section overview) ===== */
.subpage-grid {
    display: grid; gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .subpage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .subpage-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.subpage-card {
    display: flex; text-decoration: none; color: inherit;
    border: 1px solid var(--border); border-radius: calc(var(--radius) * 2);
    overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    background: var(--bg);
}
.subpage-card:hover {
    box-shadow: 0 8px 30px -6px rgba(30,58,95,0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.subpage-card-accent {
    width: 4px; flex-shrink: 0;
    background: linear-gradient(to bottom, var(--primary), hsl(213,56%,45%));
    transition: width 0.2s;
}
.subpage-card:hover .subpage-card-accent { width: 6px; }

.subpage-card-body {
    flex: 1; display: flex; align-items: center;
    gap: 1.25rem; padding: 1.5rem 1.25rem;
}

.subpage-card-icon {
    flex-shrink: 0; width: 2.5rem; height: 2.5rem;
    background: hsla(213,56%,28%,0.07); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); transition: background 0.2s;
}
.subpage-card-icon svg { width: 1.25rem; height: 1.25rem; }
.subpage-card:hover .subpage-card-icon { background: hsla(213,56%,28%,0.14); }

.subpage-card-text { flex: 1; }
.subpage-card-text h3 {
    font-size: 1rem; font-weight: 600; color: var(--fg);
    margin-bottom: 0.25rem; transition: color 0.2s;
}
.subpage-card:hover .subpage-card-text h3 { color: var(--primary); }
.subpage-card-text p {
    font-size: 0.825rem; color: var(--muted-fg); line-height: 1.6; margin: 0;
}

.subpage-card-arrow {
    flex-shrink: 0; width: 1.5rem; height: 1.5rem; color: var(--muted-fg);
    transition: transform 0.2s, color 0.2s;
}
.subpage-card-arrow svg { width: 100%; height: 100%; }
.subpage-card:hover .subpage-card-arrow { transform: translateX(4px); color: var(--primary); }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--fg); padding: 4rem 0; }
@media (min-width: 1024px) { .site-footer { padding: 5rem 0; } }

.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.footer-brand { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-logo { height: 2.5rem; width: auto; object-fit: contain; margin-bottom: 0.75rem; filter: brightness(0) invert(1); }
.footer-brand-name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; color: var(--bg); }
.footer-brand-sub { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.4); }
.footer-brand-addr { margin-top: 0.25rem; font-size: 0.8rem; line-height: 1.6; color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-brand-addr:hover { color: rgba(255,255,255,0.6); }

.footer-col h4 {
    margin-bottom: 1rem; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.9);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.4); transition: color 0.2s; text-decoration: none; }
.footer-col a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
    margin-top: 4rem; display: flex; flex-direction: column; align-items: flex-start;
    justify-content: space-between; gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; } }
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.footer-credit { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.footer-credit a { font-size: 0.75rem; color: rgba(255,255,255,0.35); transition: color 0.2s; text-decoration: none; }
.footer-credit a:hover { color: rgba(255,255,255,0.7); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.75rem; color: rgba(255,255,255,0.25); transition: color 0.3s; }
.footer-legal a:hover { color: rgba(255,255,255,0.5); }

/* ===== PAGE CONTENT (inner pages) ===== */
.page-hero {
    position: relative; height: 55vh; min-height: 320px; overflow: hidden;
    background-size: cover; background-position: center;
}
.page-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,20,40,0.85), rgba(10,20,40,0.35));
    display: flex; align-items: flex-end;
}
.page-hero-content { padding: 3rem 0 3.5rem; }
.page-hero-content h1 { font-size: clamp(1.75rem,4vw,3rem); color: #fff; font-weight: 700; line-height: 1.15; margin: 0.5rem 0; }
.page-hero-content .hero-desc { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-top: 0.5rem; }
.page-title-section {
    padding: 120px 0 48px;
    background: linear-gradient(135deg, hsl(213,56%,18%) 0%, hsl(213,56%,28%) 100%);
    color: #fff;
}
.page-title-section .section-eyebrow { color: rgba(255,255,255,0.6); }
.page-title-section .section-eyebrow a { color: rgba(255,255,255,0.6); text-decoration: none; }
.page-title-section .section-eyebrow a:hover { color: #fff; }
.page-main-title { font-size: clamp(1.75rem,4vw,2.75rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 0.75rem; color: #fff; }
.page-excerpt { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 1rem; }
.rich-content ul { margin: 0 0 1.2em 1.5em; list-style: disc; }
.rich-content li { margin-bottom: 0.4em; }
.page-meta { display: flex; gap: 1.25rem; align-items: center; color: var(--muted-fg); font-size: 0.875rem; }
.page-content-wrapper { padding: 4rem 0; }
.page-article { max-width: 800px; margin: 0 auto; }
.rich-content { font-size: 1.05rem; line-height: 1.8; color: var(--fg); }
.rich-content h2 { font-size: 1.8rem; font-weight: 600; margin-top: 2em; margin-bottom: 0.5em; }
.rich-content h3 { font-size: 1.4rem; font-weight: 600; margin-top: 1.5em; margin-bottom: 0.5em; }
.rich-content p { margin-bottom: 1.2em; }
.rich-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.rich-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem; background: hsla(213,56%,28%,0.05);
    border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
}

/* ===== NOT FOUND ===== */
.not-found-container {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-height: 60vh; padding: 40px;
}

/* ===== PAGE LOADER ===== */
.page-loader {
    display: flex; align-items: center; justify-content: center; min-height: 60vh;
}

/* ===== ADMIN STYLES (unchanged) ===== */
.stat-card { cursor: pointer; transition: all var(--transition); border-radius: var(--border-radius) !important; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md) !important; }
.stat-card-inner { display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-info { flex: 1; }

.admin-login-page {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; position: relative; overflow: hidden;
}
.login-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #0d47a1 0%, #1a237e 50%, #311b92 100%);
}
.login-bg-shapes { position: absolute; inset: 0; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; opacity: 0.1; }
.shape-1 { width: 600px; height: 600px; background: white; top: -200px; right: -100px; }
.shape-2 { width: 400px; height: 400px; background: white; bottom: -100px; left: -100px; }
.shape-3 { width: 200px; height: 200px; background: white; top: 40%; right: 30%; }
.login-container { position: relative; z-index: 1; width: 100%; max-width: 440px; padding: 24px; }
.login-card { border-radius: 20px !important; }
.login-logo { display: flex; justify-content: center; margin-bottom: 16px; }
.login-btn { border-radius: 10px !important; height: 48px !important; font-size: 1rem !important; font-weight: 600 !important; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-item {
    position: relative; border-radius: 8px; overflow: hidden; cursor: pointer;
    background: var(--muted); aspect-ratio: 1; border: 2px solid transparent; transition: all var(--transition);
}
.media-item:hover { border-color: var(--primary); }
.media-item.selected { border-color: var(--primary); box-shadow: 0 0 0 3px hsla(213,56%,28%,0.2); }
.media-thumbnail { width: 100%; height: 100%; object-fit: cover; }
.media-video-thumb, .media-doc-thumb {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.05); color: var(--muted-fg);
}
.media-item-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 8px; opacity: 0; transition: opacity var(--transition);
}
.media-item:hover .media-item-overlay { opacity: 1; }

.media-copy-overlay {
    position: absolute; inset: 0;
    background: rgba(30, 58, 95, 0.78);
    color: #fff; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.18s ease;
    pointer-events: none;
    font-weight: 600; font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.media-item:hover .media-copy-overlay { opacity: 1; }
.media-item-name { color: white; display: block; font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-item-actions { position: absolute; top: 4px; right: 4px; opacity: 0; transition: opacity var(--transition); }
.media-item:hover .media-item-actions { opacity: 1; }

.featured-image-preview { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; display: block; }
.image-placeholder {
    width: 100%; height: 150px; background: var(--muted); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    border: 2px dashed var(--border);
}
.content-editor textarea { font-family: 'Courier New', monospace; font-size: 0.9rem !important; }

/* Quill editor */
#quill-editor .ql-toolbar { border-top-left-radius: 4px; border-top-right-radius: 4px; }
#quill-editor .ql-container { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; font-size: 1rem; }
#quill-editor .ql-editor { min-height: 350px; }

/* ===== ADMIN LOGIN PAGE ===== */
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, hsl(213,60%,8%) 0%, hsl(213,56%,18%) 55%, hsl(213,45%,26%) 100%);
    padding: 1.5rem;
}
.login-card {
    width: 100%; max-width: 420px;
    background: #fff; border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.login-header { text-align: center; margin-bottom: 2rem; }
.login-brand {
    display: block;
    max-width: 240px; width: 100%; height: auto;
    margin: 0 auto 0.75rem;
}

/* ===== Accessibility: skip to content link ===== */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 10000;
    background: #1e3a5f;
    color: #fff !important;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 0 0 6px 0;
    transition: top 0.2s ease-out;
    text-decoration: none;
}
.skip-to-content:focus { top: 0; outline: 3px solid #c8a96e; outline-offset: 0; }
main:focus { outline: none; }

/* ===== Accessibility: visible focus on interactive elements ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #1e3a5f;
    outline-offset: 2px;
    border-radius: 3px;
}
/* Dark backgrounds (hero, header on transparent): brighter focus ring */
.hero a:focus-visible,
.hero button:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible {
    outline-color: #c8a96e;
}

/* ===== Gallery view (grid) ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--gallery-cols, 3), minmax(0, 1fr));
    gap: 1rem;
}
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item { margin: 0; overflow: hidden; border-radius: 10px; background: #f4f6f9; }
.gallery-item a { display: block; overflow: hidden; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3;
    transition: transform 0.4s ease;
}
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-item figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--muted-fg, hsl(220,10%,40%));
    background: #fff;
}
.gallery-empty { color: var(--muted-fg, hsl(220,10%,40%)); text-align: center; padding: 2rem 0; }

/* ===== 404 not found page ===== */
.not-found { text-align: center; }
.not-found-code {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(5rem, 18vw, 11rem);
    line-height: 1;
    font-weight: 700;
    color: rgba(30, 58, 95, 0.10);
    letter-spacing: -0.05em;
    margin-bottom: -0.5rem;
}
.not-found-lead { color: var(--muted-fg, hsl(220,10%,40%)); margin: 1rem 0 2rem; }
.not-found-lead code {
    background: hsl(220, 14%, 96%);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.92em;
    word-break: break-all;
}
.not-found-actions { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 3rem; }
.not-found-suggestions {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: left;
}
.not-found-suggestions-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted-fg, hsl(220,10%,40%));
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}
.not-found-suggestions ul { display: grid; gap: 0.75rem; }
.not-found-suggestions li a {
    display: block;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.not-found-suggestions li a:hover { border-color: #1e3a5f; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.not-found-suggestions li a strong { display: block; color: #1e3a5f; margin-bottom: 0.25rem; }
.not-found-suggestions li a span { color: var(--muted-fg, hsl(220,10%,40%)); font-size: 0.9rem; }

/* ===== Scroll-to-top Floating Action Button ===== */
.scroll-top-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e3a5f;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, visibility 0.2s;
}
.scroll-top-fab.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top-fab:hover { background: #2a5080; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); }
.scroll-top-fab:focus-visible { outline: 3px solid #c8a96e; outline-offset: 3px; }
.scroll-top-fab svg { width: 24px; height: 24px; }
@media (max-width: 600px) {
    .scroll-top-fab { width: 44px; height: 44px; bottom: 16px; right: 16px; }
    .scroll-top-fab svg { width: 22px; height: 22px; }
}
.login-header p { font-size: 0.875rem; color: hsl(220,10%,50%); margin-top: 0.25rem; }
.login-alert {
    display: flex; align-items: flex-start; gap: 0.5rem;
    background: hsl(0,80%,97%); border: 1px solid hsl(0,70%,88%);
    color: hsl(0,60%,40%); border-radius: 8px; padding: 0.75rem 1rem;
    font-size: 0.875rem; margin-bottom: 1.25rem;
}
.login-field { margin-bottom: 1.125rem; }
.login-field label {
    display: block; font-size: 0.8rem; font-weight: 600;
    color: hsl(220,15%,30%); margin-bottom: 0.4rem; letter-spacing: 0.01em;
}
.login-input-wrap { position: relative; }
.login-input-icon {
    position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%);
    width: 1rem; height: 1rem; color: hsl(220,10%,55%); pointer-events: none;
}
.login-input-wrap input {
    width: 100%; padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1.5px solid hsl(220,15%,88%); border-radius: 8px;
    font-size: 0.9375rem; font-family: inherit; color: hsl(220,20%,14%);
    background: hsl(220,20%,98%); outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.login-input-wrap input:focus {
    border-color: hsl(213,56%,35%);
    box-shadow: 0 0 0 3px hsla(213,56%,35%,0.12);
    background: #fff;
}
.login-eye {
    position: absolute; right: 0.875rem; top: 50%; transform: translateY(-50%);
    width: 1.25rem; height: 1.25rem; color: hsl(220,10%,55%);
    background: none; border: none; cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.15s;
}
.login-eye:hover { color: hsl(213,56%,35%); }
.login-eye svg { width: 1.125rem; height: 1.125rem; }
.login-remember {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.875rem; color: hsl(220,10%,45%); cursor: pointer;
    margin-bottom: 1.5rem;
}
.login-remember input[type="checkbox"] {
    width: 1rem; height: 1rem; accent-color: hsl(213,56%,30%); cursor: pointer;
}
.login-submit {
    width: 100%; padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, hsl(213,56%,26%), hsl(213,56%,36%));
    color: #fff; border: none; border-radius: 8px;
    font-size: 0.9375rem; font-weight: 600; font-family: inherit;
    cursor: pointer; letter-spacing: 0.02em;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: opacity 0.2s, transform 0.1s;
}
.login-submit:hover:not(:disabled) { opacity: 0.92; transform: translateY(-1px); }
.login-submit:active:not(:disabled) { transform: translateY(0); }
.login-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.login-spinner {
    width: 1rem; height: 1rem; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
    animation: spin 0.7s linear infinite;
}

/* MudBlazor overrides */
.mud-divider-fullwidth {
    flex-grow: 0 !important;
    width: 100%;
}

.mud-icon-root.mud-svg-icon {
    fill: rgb(91 57 57);
}

/* MudDatePicker popover: remove the cramped 160px max-width so the calendar grid fits */
.mud-picker.mud-picker-paper,
.mud-picker-popover-paper {
    max-width: none !important;
}

/* ── Preview URL bar ────────────────────────────────────────── */
.preview-url-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-family: monospace;
    color: #444;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Shared hero inner (title section overlay) ──────────────── */
.page-hero-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.48);
    pointer-events: none;
}
.page-hero-inner {
    position: relative; z-index: 2; width: 100%;
}
.page-hero-inner--over-gallery {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
}
/* page-title-section inside any hero: transparent bg, white text */
.page-hero-bg .page-title-section,
.page-hero-video .page-title-section,
.page-hero-gallery .page-title-section {
    background: transparent;
    padding-bottom: 2.5rem;
}
.page-hero-bg .page-title-section *,
.page-hero-video .page-title-section *,
.page-hero-gallery .page-title-section * {
    color: #fff;
}
.page-hero-bg .breadcrumb-nav a,
.page-hero-video .breadcrumb-nav a,
.page-hero-gallery .breadcrumb-nav a { color: rgba(255,255,255,.75); }
.page-hero-bg .breadcrumb-sep,
.page-hero-video .breadcrumb-sep,
.page-hero-gallery .breadcrumb-sep { color: rgba(255,255,255,.5); }

/* ── Hero background — image fixed ─────────────────────────── */
.page-hero-bg {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
@media (max-width: 768px) { .page-hero-bg { min-height: 260px; background-attachment: scroll; } }

/* ── Hero background — video ────────────────────────────────── */
.page-hero-video {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: flex-end;
}
.page-hero-video__frame,
.page-hero-video__elem {
    position: absolute;
    top: 50%; left: 50%;
    width: 177.78vh; min-width: 100%;
    height: 56.25vw; min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    border: none;
    pointer-events: none;
}
@media (max-width: 768px) { .page-hero-video { min-height: 260px; } }

/* ── Hero background — gallery slideshow ───────────────────── */
.page-hero-gallery {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
}
.page-hero-gallery__track {
    display: flex;
    min-height: 420px;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.page-hero-gallery__slide {
    flex: 0 0 100%;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.page-hero-gallery__caption {
    position: absolute;
    bottom: 2.5rem; left: 0; right: 0;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
    z-index: 2;
}
.page-hero-gallery__caption-title {
    font-size: 1.5rem; font-weight: 700;
    margin: 0 0 .4rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.page-hero-gallery__caption-desc {
    font-size: 1rem; opacity: .9;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.page-hero-gallery__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: none; color: #fff;
    font-size: 2.5rem; line-height: 1;
    width: 3rem; height: 3rem;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
    z-index: 5;
}
.page-hero-gallery__arrow:hover { background: rgba(255,255,255,.3); }
.page-hero-gallery__arrow--prev { left: 1rem; }
.page-hero-gallery__arrow--next { right: 1rem; }
.page-hero-gallery__dots {
    position: absolute; bottom: .8rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: .4rem; z-index: 5;
}
.page-hero-gallery__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.45); border: none; cursor: pointer;
    transition: background .2s, transform .2s;
}
.page-hero-gallery__dot.active { background: #fff; transform: scale(1.3); }
@media (max-width: 768px) {
    .page-hero-gallery { height: 260px; }
    .page-hero-gallery__caption-title { font-size: 1.1rem; }
}

/* ── Hero gallery — carousel variant ───────────────────────── */
.page-hero-gallery--carousel .page-hero-gallery__carousel-track {
    display: flex;
    min-height: 420px;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.page-hero-gallery--carousel .page-hero-gallery__carousel-item {
    flex: 0 0 100%;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
}
@media (min-width: 769px) {
    .page-hero-gallery--carousel .page-hero-gallery__carousel-track { min-height: 460px; }
    .page-hero-gallery--carousel .page-hero-gallery__carousel-item { min-height: 460px; }
}

/* ── Hero gallery — grid/masonry variant ────────────────────── */
.page-hero-gallery--grid,
.page-hero-gallery--masonry {
    min-height: 420px;
}
.page-hero-gallery--grid .page-hero-gallery__grid,
.page-hero-gallery--masonry .page-hero-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 210px;
    min-height: 420px;
    width: 100%;
    height: 100%;
    position: absolute; inset: 0;
}
.page-hero-gallery--masonry .page-hero-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 140px;
}
.page-hero-gallery--masonry .page-hero-gallery__grid-item:first-child {
    grid-row: span 2;
}
.page-hero-gallery__grid-item {
    background-size: cover;
    background-position: center;
}
@media (max-width: 768px) {
    .page-hero-gallery--grid .page-hero-gallery__grid,
    .page-hero-gallery--masonry .page-hero-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 130px;
    }
}

/* ── Gallery image manager (admin) ─────────────────────────── */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.gallery-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}
.gallery-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-thumb__remove {
    position: absolute; top: 2px; right: 2px;
    width: 20px; height: 20px;
    background: rgba(220,0,0,.8); color: #fff;
    border: none; border-radius: 50%; cursor: pointer;
    font-size: 12px; line-height: 20px; text-align: center;
    display: none;
}
.gallery-thumb:hover .gallery-thumb__remove { display: block; }

.media-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    padding: 4px;
}
.media-picker-item {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .15s;
    background: #f0f0f0;
}
.media-picker-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-picker-item:hover { border-color: var(--mud-palette-primary); }
.media-picker-item--selected { border-color: var(--mud-palette-primary); outline: 2px solid var(--mud-palette-primary); }

/* ── Hero type picker (admin) ───────────────────────────────── */
.hero-type-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.hero-type-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 6px;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background .15s;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: .72rem; font-weight: 600; color: #555;
}
.hero-type-option:hover { border-color: #6366f1; background: #f5f5ff; }
.hero-type-option--active { border-color: #6366f1; background: #eef0ff; color: #6366f1; }
.hero-type-option--active .mud-icon-root { color: #6366f1; }

/* ── Layout picker (admin) ──────────────────────────────────── */
.layout-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.layout-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 8px 6px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    text-align: center;
}
.layout-option:hover { border-color: #6366f1; background: #f5f5ff; }
.layout-option--active { border-color: #6366f1; background: #eef0ff; box-shadow: 0 0 0 3px rgba(99,102,241,.25); }
.layout-option--active .layout-option__label { color: #6366f1; }
.layout-option svg { width: 100%; height: auto; display: block; border-radius: 4px; }
.layout-option__label { font-size: 0.72rem; font-weight: 600; color: #555; margin-top: 5px; display: block; }

/* ── Public page layouts ────────────────────────────────────── */

/* text-image / image-text */
.pl-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.pl-two-col.pl-two-col--reverse { direction: rtl; }
.pl-two-col.pl-two-col--reverse > * { direction: ltr; }
.pl-two-col__img { width: 100%; border-radius: 12px; object-fit: cover; max-height: 520px; }
.pl-two-col__text h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.pl-two-col__text .page-excerpt { font-size: 1.05rem; color: var(--muted-fg, #555); margin-bottom: 1.5rem; }

/* image-top */
.pl-image-top__img { width: 100%; max-height: 480px; object-fit: cover; display: block; }

/* split 50/50 */
.pl-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
}
.pl-split__img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }
.pl-split__content { padding: 4rem 3rem; display: flex; flex-direction: column; justify-content: center; }
.pl-split__content h1 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700; margin-bottom: 1rem; }

@media (max-width: 768px) {
    .layout-picker { grid-template-columns: repeat(2, 1fr); }
    .pl-two-col { grid-template-columns: 1fr; gap: 2rem; }
    .pl-two-col.pl-two-col--reverse { direction: ltr; }
    .pl-split { grid-template-columns: 1fr; }
    .pl-split__img { min-height: 260px; max-height: 320px; }
    .pl-split__content { padding: 2.5rem 1.5rem; }
}
