:root {
    --color-bg: #f4f6f8;
    --color-surface: #ffffff;
    --color-surface-muted: #dfe4ed;
    --color-section: #cdd6e4;
    --color-text: #1b2430;
    --color-muted: #5c6675;
    --color-accent: #1b5f8c;
    --color-accent-dark: #134167;
    --color-border: #d5dee7;
    --radius: 0.65rem;
    --shadow: 0 12px 30px rgba(15, 31, 43, 0.12);
}

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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--color-accent-dark);
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.4rem, 6vw, 3.4rem);
}

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

h3 {
    font-size: 1.2rem;
}

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

strong {
    color: var(--color-text);
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 3.5rem 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.site-header .container {
    width: min(1200px, 94vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1rem 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--color-text);
}

.logo img {
    height: 56px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.site-nav a {
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--color-accent);
}

@media (min-width: 1100px) {
    .site-header .container {
        flex-wrap: nowrap;
        gap: 2.5rem;
    }

    .site-nav {
        flex: 1;
        justify-content: center;
        gap: 2.25rem;
    }
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f6fb, #e1ecf5);
    text-align: center;
    padding: 4.5rem 0;
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.1));
    pointer-events: none;
    z-index: 1;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroSlideFade 36s infinite;
    animation-timing-function: ease-in-out;
    filter: saturate(1.15) brightness(1.05);
    transition: opacity 2s ease;
    background-color: rgba(17, 27, 39, 0.35);
    background-blend-mode: normal;
}

.hero-slide::before,
.hero-slide::after {
    display: none;
}

.hero-slide[data-placeholder="true"]::before,
.hero-slide[data-placeholder="true"]::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-slide[data-placeholder="true"]::before {
    content: "";
    width: min(780px, 76vw);
    height: min(420px, 52vh);
    border-radius: 1.25rem;
    border: 2px dashed rgba(27, 36, 46, 0.55);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 25px 80px rgba(20, 36, 50, 0.18);
}

.hero-slide[data-placeholder="true"]::after {
    content: attr(data-label);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #1b2430;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(27, 36, 46, 0.4);
}

.hero-slide.slide-1 {
    background-image: url("hero-slide-1.png");
}

.hero-slide.slide-2 {
    background-image: url("hero-slide-2.png");
    animation-delay: 12s;
}

.hero-slide.slide-3 {
    background-image: url("hero-slide-3.png");
    animation-delay: 24s;
}

@keyframes heroSlideFade {
    0% { opacity: 0; }
    8% { opacity: 0.35; }
    15% { opacity: 1; }
    30% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes heroCardFade {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    60% {
        opacity: 1;
        transform: translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}

.hero-card {
    width: min(580px, 100%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(19, 30, 45, 0.18);
    border-radius: var(--radius);
    box-shadow: 0 25px 40px rgba(20, 36, 50, 0.15);
    padding: 1.9rem 1.8rem 2.2rem;
    text-align: center;
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(18px);
    animation: heroCardFade 1.1s ease forwards;
    animation-delay: 0.35s;
}

.gallery-hero .hero-card {
    margin: 0 auto;
}

.gallery {
    padding: 4rem 0 5rem;
    background: #f2f6fb;
}

.gallery-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.gallery-grid {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.gallery-item {
    flex: 1 1 280px;
    max-width: 360px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 26, 34, 0.12);
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(20, 36, 50, 0.15);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: clamp(220px, 28vw, 360px);
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 1rem 1.25rem 1.3rem;
    font-size: 0.95rem;
    color: #111b27;
}

.gallery-cta {
    margin-top: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn.secondary {
    background: transparent;
    border: 1px solid rgba(17, 26, 34, 0.5);
    color: #111b27;
}

@media (min-width: 768px) {
    .gallery-header {
        margin-bottom: 3rem;
    }

    .gallery-cta {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .gallery-cta p {
        margin: 0;
    }
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.hero-description {
    max-width: 650px;
    margin: 1.5rem auto 2rem;
    font-size: 1.05rem;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    padding: 0.95rem 2rem;
    background-color: var(--color-accent);
    color: #ffffff;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
    background-color: var(--color-accent-dark);
    transform: translateY(-1px);
}

.services {
    background-color: var(--color-section);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-grid {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.service-card {
    flex: 1 1 320px;
    max-width: 360px;
    background-color: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--color-text);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-ribbon {
    width: 100%;
    background: linear-gradient(135deg, #c4844d, #dfab70);
    color: #4d2d15;
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
}

.service-card-ribbon span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-title {
    color: var(--color-text);
    margin-bottom: 0.9rem;
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.service-card p {
    margin-bottom: 1rem;
    color: var(--color-muted);
}

.service-points {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
    color: var(--color-text);
}

.service-points li {
    display: flex;
    gap: 0.4rem;
}

.service-points li::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background-color: var(--color-accent);
    flex-shrink: 0;
}

.about p {
    max-width: 750px;
}

.contact {
    background-color: var(--color-section);
    box-shadow: 0 -35px 80px rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-grid {
    margin-top: 2rem;
    display: grid;
    gap: 2rem;
}

.contact-grid > * {
    background-color: var(--color-surface-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
}

.contact-details p {
    margin-bottom: 0.65rem;
    color: var(--color-muted);
}

.contact-details a {
    color: var(--color-accent);
    text-decoration: underline;
}

.articles {
    background-color: var(--color-section);
    padding: 3rem 0 4rem;
}

.articles-intro {
    max-width: 640px;
    margin-bottom: 2rem;
}

.articles-label {
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    font-size: 0.8rem;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
}

.article-grid {
    display: grid;
    gap: 1.5rem;
}

.article-card {
    background-color: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

.article-meta {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8ea6c2;
    margin-bottom: 0.4rem;
}

.article-card h3 {
    margin-bottom: 0.6rem;
    color: var(--color-text);
}

.article-card p {
    margin-bottom: 1rem;
}

.article-link {
    font-weight: 600;
    color: var(--color-accent);
}

.article-detail {
    background-color: var(--color-section);
    padding: 3rem 0 4rem;
}

.article-detail .container {
    max-width: 760px;
}

.article-detail h1 {
    font-size: clamp(2rem, 4vw, 2.7rem);
    margin-bottom: 1rem;
}

.article-detail h2 {
    margin-top: 2rem;
}

.article-detail .lede {
    font-size: 1.1rem;
    color: var(--color-text);
}

.articles-entry {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 0.8rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.honeypot {
    display: none;
}

form {
    display: grid;
    gap: 0.9rem;
    color: var(--color-text);
}

label {
    font-weight: 600;
    color: var(--color-text);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    background-color: rgba(27, 95, 140, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    color: var(--color-text);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(60, 134, 196, 0.25);
}

select {
    background-color: #ffffff;
    color: var(--color-text);
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--color-text) 50%),
        linear-gradient(135deg, var(--color-text) 50%, transparent 50%),
        linear-gradient(to right, transparent, transparent);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px),
        100% 0;
    background-size: 6px 6px, 6px 6px, 2.5rem 100%;
    background-repeat: no-repeat;
}

select option {
    background-color: var(--color-surface);
    color: var(--color-text);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.compliance-note {
    margin-top: 0.5rem;
    padding: 1rem 1.2rem;
    background-color: rgba(27, 95, 140, 0.08);
    border-radius: calc(var(--radius) - 0.15rem);
}

.site-footer {
    background-color: var(--color-section);
    color: var(--color-text);
    text-align: center;
    padding: 1.75rem 1rem;
    font-size: 0.95rem;
}

.site-footer p {
    color: var(--color-muted);
    margin-bottom: 0.4rem;
}

.site-footer .container {
    width: min(1200px, 94vw);
    margin: 0 auto;
}

@media (min-width: 900px) {
    .site-footer {
        text-align: left;
    }

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

    .site-footer .container > * {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
    }

    .hero {
        padding: 3.5rem 0;
        min-height: auto;
    }

    .hero-description {
        font-size: 1rem;
    }

    .service-card {
        flex-basis: 100%;
        max-width: none;
    }

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

@media (max-width: 639px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) and (max-width: 991px) {
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
        align-items: start;
    }
}

@media (min-width: 992px) {
    .article-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
