:root {
    --navy-950: #0b1830;
    --navy-900: #12284a;
    --navy-800: #1c3d66;
    --burgundy-900: #5b1221;
    --burgundy-800: #7a1f32;
    --burgundy-700: #94263d;
    --slate-50: #fafbfd;
    --slate-100: #f3f5f8;
    --slate-200: #e3e8ef;
    --slate-300: #cad3df;
    --slate-600: #5b6879;
    --slate-700: #334255;
    --white: #ffffff;
    --shadow-soft: 0 18px 48px rgba(18, 40, 74, 0.08);
    --shadow-card: 0 12px 30px rgba(18, 40, 74, 0.06);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1160px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Source Sans 3", sans-serif;
    color: var(--navy-900);
    background: var(--white);
    line-height: 1.7;
}

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

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

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(18, 40, 74, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.site-brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--burgundy-800), var(--navy-900));
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 24px rgba(91, 18, 33, 0.2);
}

.site-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 4px;
}

.site-brand-copy strong {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.site-brand-copy small,
.eyebrow,
.panel-kicker,
.footer-kicker,
.content-meta {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--burgundy-800);
}

.site-brand-copy small {
    letter-spacing: 0.12em;
}

.site-navigation {
    margin-left: auto;
}

.primary-menu,
.footer-list {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-menu a,
.footer-list a {
    color: var(--slate-700);
    transition: color 0.25s ease;
}

.primary-menu a:hover,
.footer-list a:hover,
.text-link:hover {
    color: var(--burgundy-800);
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    font-size: 0.96rem;
}

.header-cta,
.button-primary {
    background: var(--burgundy-800);
    color: var(--white);
    box-shadow: var(--shadow-card);
}

.header-cta:hover,
.button-primary:hover {
    transform: translateY(-2px);
    background: var(--burgundy-900);
}

.button-secondary {
    border: 1px solid rgba(18, 40, 74, 0.14);
    color: var(--navy-900);
    background: var(--white);
}

.button-secondary:hover {
    border-color: rgba(122, 31, 50, 0.28);
    color: var(--burgundy-800);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: var(--navy-900);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 56px 0 28px;
    background:
        radial-gradient(circle at top right, rgba(148, 38, 61, 0.08), transparent 28%),
        radial-gradient(circle at left 20%, rgba(18, 40, 74, 0.08), transparent 30%),
        var(--white);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 38, 61, 0.28), rgba(18, 40, 74, 0.12), transparent 80%);
    pointer-events: none;
}

.hero-grid,
.steps-layout,
.news-grid,
.listing-grid,
.footer-grid,
.info-grid,
.service-grid {
    display: grid;
    gap: 24px;
}

.hero-grid {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
}

.hero-copy h1,
.page-hero h1,
.footer-title,
.section-heading h2,
.split-heading h2,
.cta-banner h2 {
    font-family: "Merriweather", serif;
    line-height: 1.2;
    margin: 0;
}

.hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2rem, 3.6vw, 3rem);
    margin-top: 10px;
}

.hero-text,
.panel-text,
.section-heading p,
.cta-banner p,
.content-card p,
.mini-card p,
.info-card p,
.service-card p,
.step-card p,
.content-article,
.archive-description,
.footer-text {
    color: var(--slate-600);
}

.hero-text {
    max-width: 42ch;
    font-size: 1.02rem;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.hero-identity {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.hero-identity article {
    padding-left: 18px;
    border-left: 3px solid rgba(122, 31, 50, 0.18);
}

.hero-identity strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy-900);
    font-size: 0.96rem;
}

.hero-identity span {
    color: var(--slate-700);
    font-weight: 600;
    font-size: 0.96rem;
}

.hero-panel {
    display: grid;
    gap: 18px;
}

.hero-visual {
    display: grid;
    gap: 14px;
}

.hero-photo {
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(18, 40, 74, 0.08);
    box-shadow: var(--shadow-card);
}

.hero-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero-note {
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid rgba(18, 40, 74, 0.08);
    box-shadow: var(--shadow-card);
}

.panel-card,
.info-card,
.service-card,
.step-card,
.mini-card,
.content-card,
.cta-banner,
.content-article,
.page-hero,
.pagination-wrap {
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid rgba(18, 40, 74, 0.08);
    box-shadow: var(--shadow-card);
}

.panel-card {
    padding: 26px;
}

.panel-card-accent {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
    border: 1px solid rgba(122, 31, 50, 0.12);
}

.panel-card h2,
.footer-title,
.section-heading h2,
.split-heading h2,
.cta-banner h2,
.page-hero h1 {
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.panel-text {
    margin-bottom: 0;
}

.feature-list {
    padding-left: 18px;
    margin: 24px 0 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hero-stats article {
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--navy-900);
    color: var(--white);
}

.hero-stats article:nth-child(2) {
    background: var(--burgundy-800);
}

.hero-stats article:nth-child(3) {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
}

.hero-stats strong {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.section {
    padding: 24px 0 34px;
}

.section-light {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
}

.section-dark {
    background: linear-gradient(135deg, var(--navy-900), #182f52);
    color: var(--white);
}

.section-heading,
.split-heading {
    margin-bottom: 28px;
}

.section-heading {
    max-width: 720px;
}

.compact-heading {
    margin-bottom: 16px;
}

.section-heading-on-dark p {
    color: rgba(255, 255, 255, 0.72);
}

.info-grid,
.service-grid,
.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.minimal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.photo-card {
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid rgba(18, 40, 74, 0.08);
    box-shadow: var(--shadow-card);
}

.photo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.photo-card-body {
    padding: 18px 18px 20px;
}

.info-card,
.service-card,
.mini-card,
.content-card {
    padding: 24px;
}

.info-card h3,
.service-card h3,
.step-card h3,
.listing-title,
.mini-card h4,
.content-card h2,
.content-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.info-card h3,
.service-card h3,
.photo-card h3 {
    font-family: "Merriweather", serif;
    font-size: 1.12rem;
    line-height: 1.35;
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.step-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 18px;
    background: rgba(148, 38, 61, 0.22);
    color: #ffd8df;
    font-weight: 800;
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.text-link {
    font-weight: 700;
    color: var(--navy-900);
}

.text-link::after {
    content: " ->";
}

.listing-grid,
.news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-list {
    display: grid;
    gap: 16px;
}

.content-card h2,
.content-card h4 {
    font-size: 1.2rem;
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background:
        linear-gradient(135deg, var(--burgundy-900), var(--navy-900));
    color: var(--white);
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.72);
}

.page-hero {
    margin-top: 22px;
    padding: 42px 34px;
}

.content-layout {
    max-width: 860px;
}

.content-article {
    padding: 34px;
}

.content-article > *:first-child {
    margin-top: 0;
}

.content-article h2,
.content-article h3 {
    font-family: "Merriweather", serif;
    line-height: 1.2;
    color: var(--navy-900);
}

.featured-image-wrap {
    margin-bottom: 24px;
}

.featured-image-wrap img {
    border-radius: var(--radius-md);
}

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding: 16px;
}

.pagination-wrap .nav-links {
    display: flex;
    gap: 10px;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid rgba(18, 40, 74, 0.08);
}

.site-footer {
    margin-top: 48px;
    padding: 52px 0 28px;
    color: var(--white);
    background: linear-gradient(180deg, #112645 0%, #0b1830 100%);
}

.footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    align-items: start;
}

.footer-list {
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

.footer-list-title {
    margin-top: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .menu-toggle {
        display: flex;
    }

    .site-navigation {
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        display: none;
        margin: 0;
        padding: 18px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.99);
        border: 1px solid rgba(18, 40, 74, 0.08);
        box-shadow: var(--shadow-soft);
    }

    .site-navigation.is-open {
        display: block;
    }

    .primary-menu {
        flex-direction: column;
        align-items: start;
    }

    .header-cta {
        display: none;
    }

    .hero-grid,
    .listing-grid,
    .news-grid,
    .footer-grid,
    .minimal-grid,
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats,
    .info-grid,
    .service-grid,
    .card-grid,
    .steps-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-banner,
    .split-heading,
    .footer-bottom {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: 46px;
    }

    .hero-stats,
    .info-grid,
    .service-grid,
    .card-grid,
    .steps-list,
    .minimal-grid {
        grid-template-columns: 1fr;
    }

    .panel-card,
    .hero-note,
    .content-article,
    .cta-banner,
    .page-hero {
        padding: 24px;
    }

    .hero-copy h1,
    .page-hero h1,
    .footer-title,
    .section-heading h2,
    .split-heading h2,
    .cta-banner h2 {
        font-size: clamp(1.6rem, 8vw, 2.4rem);
    }
}
