:root {
    --bg: #f5efe5;
    --surface: #fffdf8;
    --surface-strong: #ffffff;
    --text: #1f2a2e;
    --muted: #5f6c70;
    --primary: #006d77;
    --primary-dark: #0a3b43;
    --accent: #ee9b00;
    --border: #d9d4ca;
    --shadow: 0 16px 40px rgba(31, 42, 46, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(238, 155, 0, 0.18), transparent 24%),
        linear-gradient(180deg, #fff7ea 0%, #f5efe5 48%, #fffdf8 100%);
}

.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, var(--reveal-distance, 24px), 0) scale(var(--reveal-scale, 1));
    transition:
        opacity var(--reveal-duration, 720ms) cubic-bezier(0.22, 1, 0.36, 1),
        transform var(--reveal-duration, 720ms) cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.js [data-reveal="left"] {
    transform: translate3d(calc(var(--reveal-distance, 24px) * -1), 0, 0) scale(var(--reveal-scale, 1));
}

.js [data-reveal="right"] {
    transform: translate3d(var(--reveal-distance, 24px), 0, 0) scale(var(--reveal-scale, 1));
}

.js [data-reveal="zoom"] {
    --reveal-distance: 0px;
    --reveal-scale: 0.96;
}

.js [data-reveal="soft"] {
    --reveal-distance: 14px;
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.js .site-header {
    opacity: 0;
    transform: translateY(-18px);
    transition:
        opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js body.is-ready .site-header {
    opacity: 1;
    transform: translateY(0);
}

.js .site-footer {
    position: relative;
}

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal],
    .js .site-header {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
        will-change: auto;
    }

    html {
        scroll-behavior: auto;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.66);
    backdrop-filter: blur(4px);
}

.hero {
    padding: 5rem 0 4rem;
}

.hero-grid,
.split-grid,
.footer-grid,
.info-grid,
.cards-grid,
.stats-grid,
.detail-grid {
    display: grid;
    gap: 1.5rem;
}

.hero-grid,
.split-grid,
.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.info-grid,
.cards-grid,
.stats-grid,
.footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    color: var(--primary);
}

h1,
h2,
h3 {
    line-height: 1.1;
    margin: 0 0 1rem;
}

h1 {
    font-size: clamp(2.4rem, 4vw, 4.8rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

p {
    color: var(--muted);
    line-height: 1.7;
}

.button,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
}

.button {
    padding: 0.95rem 1.3rem;
    border-radius: 999px;
}

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

.button-secondary {
    border: 1px solid var(--border);
    background: var(--surface-strong);
}

.card,
.hero-panel,
.stat-card {
    background: var(--surface);
    border: 1px solid rgba(217, 212, 202, 0.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.hero-panel {
    background: linear-gradient(180deg, #0a3b43 0%, #006d77 100%);
    color: #fff;
}

.hero-panel p,
.hero-panel li {
    color: rgba(255, 255, 255, 0.82);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.muted {
    color: var(--muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(217, 212, 202, 0.7);
}

.topbar,
.navbar,
.breadcrumbs,
.cta-row {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.topbar {
    padding: 0.55rem 0 0.45rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.navbar {
    padding: 0.7rem 0 0.85rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-logo-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: block;
    width: 11rem;
    max-width: 100%;
    height: auto;
}

.brand-mark,
.icon-chip,
.avatar-placeholder {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), #ffd166);
    color: var(--primary-dark);
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.45rem;
}

.main-nav > a:not(.button) {
    line-height: 1;
}

.main-nav a.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
}

.breadcrumbs-wrap {
    padding-top: 1rem;
}

.breadcrumbs {
    justify-content: flex-start;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
    color: var(--text);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    font: inherit;
    background: #fff;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
}

.pagination {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.pagination a {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
}

.pagination a.active {
    background: var(--primary);
    color: #fff;
}

.site-footer {
    position: relative;
    padding: 3.5rem 0 2rem;
    background:
        radial-gradient(circle at top right, rgba(238, 155, 0, 0.22), transparent 22%),
        radial-gradient(circle at bottom left, rgba(87, 195, 161, 0.12), transparent 24%),
        linear-gradient(160deg, #0d3339 0%, #123e46 45%, #0a2c31 100%);
    color: #fff;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
    pointer-events: none;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer .footer-grid,
.site-footer .footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-grid {
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
}

.footer-brand-block {
    display: grid;
    gap: 1rem;
    max-width: 24rem;
}

.footer-brand-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 24px;
    background: rgba(255, 252, 246, 0.96);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.16);
}

.footer-brand-logo {
    display: block;
    width: 13.5rem;
    max-width: 100%;
    height: auto;
}

.footer-brand-mark {
    flex: 0 0 auto;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 20px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.16);
}

.footer-brand-head h3 {
    font-size: 1.9rem;
    margin-bottom: 0.4rem;
}

.footer-brand-head p,
.footer-brand-copy {
    margin: 0;
}

.footer-brand-copy {
    max-width: 32ch;
}

.footer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.footer-chips span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 700;
}

.footer-column {
    display: grid;
    gap: 1rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.footer-link-list {
    display: grid;
    gap: 0.55rem;
}

.footer-link-list p,
.footer-contact-card p {
    margin: 0;
}

.footer-link-list a {
    transition: color 160ms ease, transform 160ms ease;
}

.footer-link-list a:hover,
.footer-link-list a:focus-visible {
    color: #fff;
    transform: translateX(2px);
}

.footer-contact-column {
    gap: 0.85rem;
}

.footer-contact-card {
    display: grid;
    gap: 0.7rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-emergency-link {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(238, 155, 0, 0.18), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-emergency-link span {
    color: rgba(255, 255, 255, 0.74);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}

.footer-emergency-link strong {
    color: #fff;
    font-size: 1.1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

.footer-separator {
    display: inline-block;
    margin: 0 0.5rem;
}
