:root {
    --navy: #0b3569;
    --navy-dark: #062754;
    --teal: #089b9d;
    --teal-dark: #057779;
    --ink: #17243a;
    --muted: #526072;
    --soft: #eef8fb;
    --soft-blue: #e8f3fb;
    --white: #ffffff;
    --border: #c9dce6;
    --danger: #8b1e1e;
    --success: #145c37;
    --focus: #f4b942;
    --radius: 16px;
    --shadow: 0 12px 30px rgba(11, 53, 105, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.6;
}
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 54px; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
img, svg { max-width: 100%; height: auto; }
.container { width: min(1240px, calc(100% - 36px)); margin-inline: auto; }
.narrow { max-width: 850px; margin-inline: auto; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 1000;
    background: var(--white);
    color: var(--ink);
    padding: 12px 16px;
    border: 3px solid var(--ink);
}
.skip-link:focus { top: 12px; }

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid #e5edf2;
    background: rgba(255,255,255,.98);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 92px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy-dark);
    flex: 0 0 auto;
}
.brand-logo { width: 54px; height: 54px; color: var(--teal); display: inline-grid; place-items: center; }
.brand-logo svg { width: 54px; height: 54px; }
.brand-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.25rem, 2.1vw, 2rem);
    font-weight: 700;
    white-space: nowrap;
}
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; }
nav a {
    padding: 14px 13px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 8px;
    color: var(--navy-dark);
    white-space: nowrap;
}
nav a:hover { background: var(--soft); }
nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--teal); }

.hero { background: linear-gradient(90deg, #ffffff 0%, #ffffff 40%, #f5fafc 100%); }
.hero-grid {
    display: grid;
    grid-template-columns: .95fr 1.25fr;
    align-items: stretch;
    min-height: 500px;
}
.hero-copy { padding: 50px 38px 48px 0; align-self: center; }
.hero h1 {
    margin: 0 0 20px;
    color: var(--navy-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.35rem, 4.5vw, 4.15rem);
    line-height: 1.08;
    letter-spacing: -.03em;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 760px; }
.hero-photo { overflow: hidden; min-height: 500px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 8px;
    background: var(--teal);
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
    border: 3px solid var(--teal);
    cursor: pointer;
    text-align: center;
}
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.button-secondary { background: var(--white); color: var(--teal-dark); }
.button-secondary:hover { background: var(--teal-dark); color: var(--white); }
.button-dark { background: var(--navy); border-color: var(--navy); }
.button-dark:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

.services-strip { padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 14px;
    align-items: start;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
}
.service-icon, .action-icon, .contact-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e7f1f7;
    color: var(--navy);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -4px;
}
.service-card h3 { margin: 0 0 6px; color: var(--navy-dark); font-family: Georgia, 'Times New Roman', serif; font-size: 1.25rem; line-height: 1.15; }
.service-card p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.45; }

.section { padding: 70px 0; }
.compact-section { padding: 48px 0; }
.section-soft { background: linear-gradient(180deg, #f6fbfd, #edf7fb); }
.eyebrow { margin: 0 0 10px; color: var(--teal-dark); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; font-size: .88rem; }
h1, h2, h3 { line-height: 1.15; color: var(--navy-dark); }
h1 { margin: 0 0 18px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.65rem, 3vw, 2.45rem); margin-top: 0; }
h3 { font-size: 1.25rem; }

.lower-grid { display: grid; grid-template-columns: 1.55fr .75fr .75fr; gap: 18px; align-items: stretch; }
.accessible-card, .action-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 5px 18px rgba(11,53,105,.04);
    overflow: hidden;
}
.accessible-card { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 280px; }
.accessible-card img { width: 100%; height: 100%; object-fit: cover; }
.accessible-copy { padding: 30px; align-self: center; }
.accessible-copy h2 { font-size: clamp(1.65rem, 2.5vw, 2.4rem); }
.check-list { list-style: none; margin: 20px 0 0; padding: 0; }
.check-list li { position: relative; padding-left: 34px; margin: 15px 0; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: var(--teal); font-size: .8rem; font-weight: 900; }
.action-card { padding: 26px 22px; display: flex; flex-direction: column; text-align: center; align-items: center; justify-content: center; }
.action-card h2 { font-family: Arial, Helvetica, sans-serif; font-size: 1.25rem; margin: 14px 0 10px; }
.action-card p { color: var(--muted); margin: 0 0 22px; }
.action-card .button { margin-top: auto; width: 100%; }
.action-icon { background: var(--teal); color: var(--white); letter-spacing: normal; }
.action-icon.lock { background: var(--navy); }
.portal-card { background: linear-gradient(180deg, #f4f9ff, #eaf4fc); }

.support-callout {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}
.support-callout h2 { margin-bottom: 8px; }
.support-callout p { margin: 0; color: var(--muted); }

.page-hero { padding: 70px 0 55px; background: linear-gradient(180deg, #f5fbfd, #ffffff); border-bottom: 1px solid var(--border); }
.service-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.detail-card, .contact-card, .notice-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    padding: 30px;
    box-shadow: 0 5px 18px rgba(11,53,105,.04);
}
.detail-card h2 { font-size: 1.55rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { text-align: center; }
.contact-card .contact-icon { margin: 0 auto 18px; background: var(--navy); color: var(--white); letter-spacing: normal; }
.large-link { font-size: 1.15rem; font-weight: 900; overflow-wrap: anywhere; }
.notice-panel { max-width: 850px; margin-inline: auto; text-align: center; }

.form-wrap { max-width: 900px; margin: 48px auto; padding: 32px; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); background: var(--white); }
fieldset { border: 0; padding: 0; margin: 0 0 34px; }
legend { font-size: 1.45rem; font-weight: 900; color: var(--navy-dark); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
label { display: block; font-weight: 800; margin-bottom: 7px; }
.required { color: var(--danger); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="file"], select, textarea {
    width: 100%;
    min-height: 54px;
    border: 2px solid #8299a9;
    border-radius: 9px;
    padding: 12px 13px;
    background: var(--white);
    color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.help { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.check-row { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; margin: 16px 0; }
.check-row input { width: 25px; height: 25px; margin-top: 4px; }
.alert { padding: 16px 18px; border-radius: 10px; border-left: 6px solid; margin: 20px 0; }
.alert-error { background: #fff0f0; border-color: var(--danger); }
.alert-success { background: #edf9f1; border-color: var(--success); }
.notice { background: #fff8e8; border: 1px solid #e1c276; padding: 16px; border-radius: 10px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--soft); color: var(--navy-dark); }
.data-list { display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.data-list dt, .data-list dd { margin: 0; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.data-list dt { background: var(--soft); font-weight: 800; }
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin-bottom: 22px; }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 34px 0 20px; background: #f2f8fb; border-top: 1px solid var(--border); color: var(--ink); }
.footer-contact { display: grid; grid-template-columns: 1.1fr 1.3fr .75fr 1.2fr; gap: 24px; align-items: center; }
.footer-item { display: flex; gap: 12px; align-items: center; min-width: 0; }
.footer-item a { font-weight: 800; overflow-wrap: anywhere; }
.round-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); font-weight: 900; }
.footer-brand { text-align: right; color: var(--navy-dark); }
.footer-brand strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; }
.footer-brand span { display: block; color: var(--teal-dark); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 18px; font-size: .93rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }
.footer-bottom p { margin: 0; }

@media (max-width: 1100px) {
    .header-inner { align-items: flex-start; flex-direction: column; padding: 15px 0; }
    nav { width: 100%; justify-content: flex-start; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .lower-grid { grid-template-columns: 1fr 1fr; }
    .accessible-card { grid-column: 1 / -1; }
    .footer-contact { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { text-align: left; }
}

@media (max-width: 760px) {
    body { font-size: 17px; }
    .container { width: min(100% - 24px, 1240px); }
    .brand-name { white-space: normal; }
    nav { flex-direction: column; align-items: stretch; }
    nav a { border: 1px solid var(--border); padding: 12px; }
    nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--teal); }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { padding: 38px 0 34px; }
    .hero-photo { min-height: 310px; border-radius: 14px; margin-bottom: 24px; }
    .hero-photo img { object-position: 42% center; }
    .hero h1 { font-size: clamp(2.25rem, 11vw, 3.35rem); }
    .actions { flex-direction: column; }
    .actions .button { width: 100%; }
    .service-grid, .lower-grid, .service-detail-grid, .contact-grid, .form-grid, .support-callout, .footer-contact { grid-template-columns: 1fr; }
    .accessible-card { grid-template-columns: 1fr; }
    .accessible-card img { height: 260px; }
    .section { padding: 48px 0; }
    .page-hero { padding: 48px 0 38px; }
    .form-wrap { padding: 22px; margin: 28px auto; }
    .data-list { grid-template-columns: 1fr; }
    .data-list dt { border-bottom: 0; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
