:root {
    --navy: #264e94;
    --navy-dark: #1b3a70;
    --sky: skyblue;
    --bg: #dbe9f4;
    --text: #25324a;
    --shadow: 0 10px 30px rgba(38, 78, 148, 0.14);
    --radius: 18px;
    --nav-height: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    line-height: 1.7;
    background: var(--bg);
    color: var(--text);
    text-align: center;
}

h1, h2, h3 { color: var(--navy-dark); line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
a { color: var(--navy); }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid #f5a623; outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* Header: transparent, thin, fixed. The blur keeps links readable over content. */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    height: var(--nav-height);
    margin: 0 auto;
    padding: 0 20px;
}

.logo { text-decoration: none; display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.logo-text { color: var(--navy-dark); font-weight: 800; font-size: 1.15rem; }

.nav-links { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav-links a {
    display: block;
    position: relative;
    padding: 4px 0;
    background: transparent;
    color: var(--navy-dark);
    font-weight: 600;
    text-decoration: none;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.dropdown-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--navy-dark);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    padding: 6px 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 12px;
    min-width: 200px;
    margin-top: 4px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: left;
}
.dropdown-content ul { list-style: none; margin: 0; padding: 0; }
.dropdown-content a { display: block; padding: 13px 20px; text-decoration: none; font-weight: 600; }
.dropdown-content a:hover, .dropdown-content a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

/* Layout */
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: calc(var(--nav-height) + 12px) 20px 30px; }

.hero {
    padding: clamp(48px, 9vw, 96px) 24px;
    margin-bottom: 28px;
}
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); margin: 0 auto 30px; max-width: 580px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.page-title { padding: 28px 10px 8px; }
.page-title p { margin: 0; font-size: 1.1rem; }

.container {
    margin: 24px 0;
    padding: clamp(22px, 5vw, 44px);
    background: var(--sky);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: left;
}
.container > :first-child { margin-top: 0; }
.container > :last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 24px 0; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 0; }
.card {
    background: #fff;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 6px 16px rgba(38, 78, 148, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: var(--navy);
}
.card-icon svg { width: 100%; height: 100%; }
.card-icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 2px solid var(--navy);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; }

.prose { max-width: 780px; margin-inline: auto; font-size: 1.05rem; }
.signature { border-top: 2px solid rgba(38, 78, 148, 0.25); padding-top: 18px; margin-top: 28px; }
.signature strong, .signature span { display: block; }
.signature strong { color: var(--navy-dark); font-size: 1.15rem; }

.cta-band {
    margin-top: 28px;
    padding: 40px 24px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.cta-band p { margin-top: 0; }

.cta-button {
    display: inline-block;
    padding: 13px 30px;
    border: 2px solid var(--navy);
    border-radius: 50px;
    background: var(--navy);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.cta-button:hover { transform: translateY(-2px); background: var(--navy-dark); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); }
.cta-button.outline { background: transparent; color: var(--navy); }
.cta-button.outline:hover { background: #fff; }
.cta-button:disabled { opacity: 0.65; cursor: wait; transform: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 32px; align-items: start; }
.contact-info a { font-weight: 700; overflow-wrap: anywhere; }
.contact-form { background: #fff; padding: clamp(20px, 4vw, 32px); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 14px; min-width: 0; }
label { display: block; font-weight: 600; margin-bottom: 5px; color: var(--navy-dark); }
input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    color: inherit;
    background: #f6fafd;
    border: 1.5px solid #bdd3e6;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(38, 78, 148, 0.2); }
textarea { resize: vertical; min-height: 130px; }
[aria-invalid="true"] { border-color: #b3261e; }
.error { display: block; color: #b3261e; font-size: 0.88rem; min-height: 1.2em; line-height: 1.3; margin-top: 3px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: #e3f4e6; color: #1e6b30; }
.form-status.fail { background: #fdeceb; color: #9c211a; }

/* Footer */
.footer { background: var(--navy); color: #fff; padding: 28px 20px; }
.footer p { margin: 4px 0; }
.footer a { color: #fff; }
.footer-brand { font-weight: 800; font-size: 1.15rem; }
.footer-copy { opacity: 0.8; font-size: 0.9rem; }

@media (max-width: 720px) {
    .nav-links { display: none; }
    .dropdown-toggle { display: block; }
    .dropdown-content.show { display: block; }
    .navbar { padding: 0 12px; }
    .nav-links a { padding: 0; }
    main { padding-inline: 12px; }
    .contact-grid, .row { grid-template-columns: 1fr; }
}

/* Scroll pulses: script.js adds .pulse each time a block scrolls into view */
.pulse { animation: pulse 0.9s ease-out; }
.pulse .card-icon::after { animation: ring 1.2s ease-out 0.15s 2; }
@keyframes pulse {
    40% { scale: 1.025; box-shadow: 0 0 0 8px rgba(38, 78, 148, 0.12); }
}
@keyframes ring {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pulse, .pulse .card-icon::after { animation: none !important; }
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* Center the navbar links on desktop; the mobile menu is unchanged */
@media (min-width: 721px) {
    .navbar { position: relative; }
    .nav-links { position: absolute; left: 50%; transform: translateX(-50%); }
}
