:root {
    --bg: #f3f6f8;
    --surface: #ffffff;
    --ink: #0f2738;
    --muted: #4c6473;
    --accent: #0f9d8f;
    --accent-2: #f6b23e;
    --line: #d7e1e8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", "Trebuchet MS", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 10% 0%, #ffffff 0%, #edf3f7 45%, #e3ebf1 100%);
    position: relative;
    overflow-x: hidden;
}

.backdrop {
    position: fixed;
    inset: -15% -10% auto auto;
    width: 560px;
    height: 560px;
    background: conic-gradient(from 90deg, rgba(15, 157, 143, 0.20), rgba(246, 178, 62, 0.16), rgba(15, 39, 56, 0.08));
    filter: blur(24px);
    transform: rotate(-18deg);
    z-index: -1;
    animation: floatGlow 9s ease-in-out infinite;
}

.site-header,
main,
.site-footer {
    width: min(1120px, 92vw);
    margin-inline: auto;
}

.site-header {
    padding: 2.25rem 0 1rem;
}

.brand {
    font-family: "Space Grotesk", "Verdana", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.tagline {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.25rem;
    align-items: stretch;
    padding: 1.2rem 0 2.4rem;
}

.hero-copy,
.hero-panel,
.card {
    background: color-mix(in srgb, var(--surface), #ffffff 78%);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(15, 39, 56, 0.08);
}

.hero-copy {
    padding: 2rem;
    animation: riseIn 700ms ease-out both;
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 0.88rem;
    letter-spacing: 0.09em;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", "Verdana", sans-serif;
}

h1 {
    margin: 0.7rem 0 1rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
}

h1 span {
    color: #145e78;
}

.lead {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 64ch;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 0.75rem 1.1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #0a7c89);
    color: #f8fffe;
    box-shadow: 0 8px 22px rgba(15, 157, 143, 0.3);
}

.btn-ghost {
    background: #ffffff;
    color: var(--ink);
    border-color: var(--line);
}

.hero-panel {
    padding: 1.5rem;
    animation: riseIn 900ms ease-out both;
}

.hero-panel h2 {
    margin: 0;
    font-size: 1.35rem;
}

.hero-panel ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
    line-height: 1.6;
}

.grid-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding-bottom: 2.5rem;
}

.card {
    padding: 1.3rem;
    animation: riseIn 1.1s ease-out both;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.55rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.certificates-section {
    padding-bottom: 2.5rem;
}

.section-head {
    margin-bottom: 1rem;
}

.section-head h2 {
    margin: 0.4rem 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    max-width: 70ch;
}

.certificate-slider-shell {
    display: block;
}

.certificate-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 0.25rem;
}

.certificate-slider::-webkit-scrollbar {
    height: 8px;
}

.certificate-slider::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent), #0b5463 40%);
    border-radius: 10px;
}

.certificate-card {
    background: color-mix(in srgb, var(--surface), #ffffff 78%);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(15, 39, 56, 0.08);
    padding: 1.3rem;
    animation: riseIn 1.1s ease-out both;
    scroll-snap-align: start;
}

.certificate-image {
    display: block;
    width: 100%;
    aspect-ratio: 10/ 16;
    object-fit: cover;
    background: #f8fbfe;
    border-radius: 12px;
    border: 1px solid #dce7ef;
    margin-bottom: 0.9rem;
    margin-left: auto;
    margin-right: auto;
}

.certificate-card h3 {
    margin: 0 0 0.45rem;
}

.certificate-card p {
    margin: 0 0 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

.cert-link {
    width: fit-content;
}

.contact-section {
    background: linear-gradient(120deg, rgba(9, 44, 68, 0.96), rgba(15, 119, 123, 0.88));
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 42px rgba(9, 32, 45, 0.24);
    padding: 1.4rem;
    margin-bottom: 2.5rem;
}

.contact-section .eyebrow,
.contact-section h2,
.contact-section .section-copy {
    color: #f1f8fb;
}

.contact-section .section-copy {
    opacity: 0.92;
}

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

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(8, 30, 41, 0.2);
    padding: 1.3rem;
    animation: riseIn 1.1s ease-out both;
}

.contact-card h3 {
    margin: 0 0 0.45rem;
}

.contact-card p {
    margin: 0;
    color: #3e596a;
    line-height: 1.6;
}

.contact-value {
    font-size: 1.04rem;
}

.contact-card a {
    color: #0a607f;
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1rem 0 1.8rem;
    color: var(--muted);
    font-size: 0.95rem;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatGlow {
    0%,
    100% {
        transform: rotate(-18deg) translateY(0);
    }
    50% {
        transform: rotate(-13deg) translateY(16px);
    }
}

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

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

    .certificate-slider {
        grid-auto-columns: minmax(78vw, 1fr);
    }

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