@import url("fonts.css");

:root {
  color-scheme: light;
  --ink: #202e28;
  --muted: #54615a;
  --green: #25493b;
  --green-deep: #19372e;
  --cream: #faf9f5;
  --paper: #fffefa;
  --line: #e2e6dd;
  --coral: #a94a36;
  --font: Inter, Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--font); }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
i[data-icon] { display: inline-flex; line-height: 0; flex: 0 0 auto; }
i[data-icon] svg { width: 1.13em; height: 1.13em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a94a36; outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 8px 12px; background: white; color: var(--ink); }
.wrap { width: min(1260px, calc(100% - 112px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid #e7e9e1; background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 30px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand img { object-fit: contain; width: 110px; height: 46px; }
.nav { display: flex; gap: clamp(22px, 3.25vw, 49px); align-items: center; font-size: 14px; font-weight: 650; }
.nav > a[aria-current="page"], .nav > a:not(.button):hover, .footer-inner a:hover, .footer-bottom a:hover { color: var(--coral); }
.menu-toggle { display: none !important; }

.button, .quiet-link, .text-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 650; }
.button { min-height: 50px; padding: 12px 19px; border: 1px solid transparent; border-radius: 9px; background: var(--green); color: #fff; font-size: 14px; transition: background .16s ease; }
.button:hover { background: var(--green-deep); }
.button-small { min-height: 43px; padding: 9px 15px; }
.quiet-link, .text-button { width: fit-content; min-height: 44px; padding: 4px 0; border: 0; background: none; color: var(--green); font-size: 14px; }
.quiet-link:hover, .text-button:hover { color: var(--coral); text-decoration: underline; text-underline-offset: 4px; }
.icon-button { width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--green); font-size: 20px; }
.icon-button:hover { background: #f0f4ee; }

.hero { overflow: hidden; background: #edf1e8; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr); gap: clamp(22px, 4.2vw, 65px); min-height: 556px; align-items: center; padding-block: 37px; }
.hero-copy { padding-block: 18px 25px; }
.hero-kicker, .eyebrow { display: flex; align-items: center; gap: 9px; color: #435c4d; font-size: 11px; font-weight: 750; line-height: 1.5; letter-spacing: .14em; }
.hero-kicker span { width: 17px; height: 2px; background: var(--coral); }
.hero h1 { margin-top: 20px; font-size: clamp(42px, 5.02vw, 76px); font-weight: 720; letter-spacing: -.071em; line-height: 1.12; }
.hero h1 em { display: inline-block; margin-top: 4px; color: var(--coral); font: italic 600 1.02em/1.11 var(--serif); letter-spacing: -.069em; }
.hero-lead { max-width: 375px; margin-top: 25px; color: #46584e; font-size: 16px; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 30px; }
.hero-figure { position: relative; isolation: isolate; min-width: 0; height: clamp(389px, 35.6vw, 530px); overflow: hidden; border-radius: 8px; background: #a8b4a3; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; z-index: -2; position: relative; }
.hero-figure figcaption { position: absolute; right: 20px; bottom: 17px; display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: #21382e; color: #fff; border-radius: 5px; font-size: 11px; }

.section { padding-block: 81px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 26px 42px; margin-bottom: 30px; }
.section-head > p { max-width: 345px; padding-bottom: 1px; color: var(--muted); font-size: 14px; }
h2 { margin-top: 8px; font-size: clamp(32px, 3.4vw, 49px); font-weight: 720; line-height: 1.16; letter-spacing: -.055em; }
h3 { font-weight: 710; line-height: 1.3; letter-spacing: -.035em; }
.program-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.program-card { min-height: 212px; padding: 21px 20px 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; display: flex; flex-direction: column; align-items: stretch; }
.program-card:hover { border-color: #b3c1b7; }
.program-card-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 19px; }
.program-icon { display: inline-grid; width: 43px; height: 43px; place-items: center; border-radius: 10px; background: #e6efe7; color: #315e49; font-size: 22px; }
.program-card:nth-child(2) .program-icon { background: #f6eadf; color: #8d472e; }
.program-card:nth-child(3) .program-icon { background: #e9ecf4; color: #414e7c; }
.program-card:nth-child(4) .program-icon { background: #f2ebd7; color: #685222; }
.program-code { padding: 3px 8px; border-radius: 5px; background: #f3f4f1; color: #4d5d54; font-size: 11px; font-weight: 650; }
.program-card h3 { font-size: 22px; }
.program-card p { margin-top: 7px; margin-bottom: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.card-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 9px; width: 100%; min-height: 35px; margin-top: auto; padding: 5px 0; border: 0; background: none; color: var(--green); font-size: 13px; font-weight: 700; text-align: left; }
.card-button:hover { color: var(--coral); }

.schools { background: #f3f5ee; }
.school-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin-bottom: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { min-height: 39px; padding: 6px 14px; border: 1px solid #dce2d8; border-radius: 7px; background: #fffefa; color: var(--green); font-size: 13px; font-weight: 620; }
.filters button:hover { border-color: #718a7b; }
.filters button[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.search-box { display: flex; align-items: center; gap: 7px; width: min(100%, 255px); padding: 0 12px; border: 1px solid #dce2d8; border-radius: 7px; background: white; color: #5b6d62; }
.search-box:focus-within { outline: 2px solid var(--coral); outline-offset: 2px; }
.search-box input { width: 100%; min-height: 40px; padding: 7px 0; border: 0; outline: none; color: var(--ink); font-size: 13px; }
.school-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.school-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: white; }
.school-card img { width: 100%; height: auto; aspect-ratio: 1.66; object-fit: cover; }
.school-card-body { display: flex; flex: 1; flex-direction: column; padding: 15px 16px 11px; }
.school-location { display: flex; align-items: center; gap: 5px; color: #4e6357; font-size: 11px; font-weight: 650; }
.school-card h3 { margin: 6px 0 6px; font-size: 19px; }
.empty-state { grid-column: 1/-1; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.empty-state .text-button { margin-top: 4px; }

.questions { padding-block: 62px; background: #f5f2eb; }
.faq-grid { display: grid; grid-template-columns: .77fr 1.23fr; align-items: start; gap: 32px; }
.faq-list { border-top: 1px solid #dcded2; }
.faq-list details { border-bottom: 1px solid #dcded2; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 0; list-style: none; cursor: pointer; font-size: 15px; font-weight: 690; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { color: var(--green); transition: transform .15s; }
.faq-list details[open] summary i { transform: rotate(45deg); }
.faq-list details p { max-width: 580px; margin: -1px 0 17px; color: var(--muted); font-size: 14px; }

.consultation { padding-block: 75px; }
.contact-panel { display: grid; grid-template-columns: .81fr 1.19fr; gap: 35px; padding: clamp(24px, 4.5vw, 63px); border-radius: 8px; background: var(--green-deep); color: white; }
.contact-intro { align-self: center; }
.contact-intro .eyebrow { color: #b6d1bb; }
.contact-intro h2 { font-size: clamp(36px, 4.25vw, 60px); }
.contact-intro > p:not(.eyebrow) { max-width: 340px; margin-top: 18px; color: #e1ebe2; font-size: 15px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 5px 17px; margin-top: 15px; }
.contact-links a { display: flex; align-items: center; gap: 6px; min-height: 44px; color: #f4f9f4; font-size: 14px; font-weight: 650; }
.contact-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-links :focus-visible { outline-color: #f8c5a9; }
.form-shell { min-width: 0; padding: clamp(16px, 2.6vw, 29px); border-radius: 7px; background: #fffefa; color: var(--ink); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.field { min-width: 0; margin-bottom: 12px; }
.field label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, textarea { width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid #ccd4cb; border-radius: 7px; background: #fff; color: var(--ink); font-size: 14px; }
.field input[aria-invalid="true"] { border-color: #a23122; }
.field-error { display: block; margin-top: 3px; color: #a23122; font-size: 12px; }
.field-error:empty { display: none; }
.form-note { margin-top: 8px; color: #556359; font-size: 12px; }
#consult-result h3 { font-size: 23px; }
#consult-result textarea { margin-top: 10px; resize: vertical; }
.result-actions { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 8px; }

.site-footer { padding-block: 32px 15px; border-top: 1px solid var(--line); background: var(--cream); color: var(--ink); font-size: 13px; }
.footer-inner { display: grid; grid-template-columns: 118px 1fr auto; align-items: center; gap: 16px 22px; }
.footer-inner p { margin-top: 4px; color: var(--muted); }
.footer-links { display: grid; gap: 5px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-bottom a { display: flex; align-items: center; gap: 5px; min-height: 30px; }

dialog { width: min(630px, calc(100% - 30px)); max-height: min(88dvh, 790px); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #10251dc4; }
body:has(dialog[open]) { overflow: hidden; }
.detail-inner { position: relative; padding: clamp(20px, 4vw, 40px); }
.dialog-close { position: absolute; top: 15px; right: 15px; }
#detail-content .eyebrow { padding-right: 50px; }
#detail-content h2 { padding-right: 35px; font-size: clamp(29px, 4.5vw, 43px); }
#detail-content .detail-lead { margin-top: 12px; color: var(--muted); }
#detail-content img { width: 100%; height: auto; max-height: 240px; margin-top: 17px; border-radius: 9px; object-fit: cover; }
#detail-content h3 { margin-top: 17px; font-size: 18px; }
#detail-content h3 + p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.detail-facts { display: grid; gap: 0; margin: 17px 0 0; padding: 0; }
.detail-facts div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.detail-facts dt { font-weight: 690; }
.detail-facts dd { margin: 0; color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 16px; margin-top: 18px; }

@media (max-width: 1080px) {
  .wrap { width: calc(100% - 68px); }
  .hero-grid { min-height: 490px; gap: 24px; }
  .hero h1 { font-size: clamp(42px, 5.7vw, 65px); }
  .hero-figure { height: 411px; }
  .section { padding-block: 65px; }
}
@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .hero-grid { grid-template-columns: .94fr 1.06fr; gap: 17px; min-height: 440px; }
  .hero-figure { height: 360px; }
  .hero h1 { font-size: clamp(36px, 5.8vw, 49px); }
  .hero-lead { margin-top: 18px; }
  .hero-actions { margin-top: 19px; gap: 3px 13px; }
  .school-grid, .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-panel { grid-template-columns: 1fr; gap: 20px; }
  .contact-intro h2 br { display: none; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 76px; }
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 62px; }
  .brand img { width: 91px; height: 40px; }
  .menu-toggle { display: inline-flex !important; }
  .nav { position: absolute; top: 100%; inset-inline: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 18px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .nav.is-open { display: flex; }
  .nav > a:not(.button) { display: flex; align-items: center; min-height: 45px; padding-inline: 6px; }
  .nav .button { align-self: start; margin-top: 6px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 27px 24px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(39px, 10.6vw, 61px); margin-top: 10px; }
  .hero-lead { max-width: 385px; margin-top: 15px; font-size: 15px; }
  .hero-actions { margin-top: 15px; }
  .hero-figure { height: clamp(224px, 62vw, 360px); border-radius: 6px; }
  .hero-figure figcaption { bottom: 10px; right: 10px; }
  .section { padding-block: 43px; }
  .section-head { display: block; margin-bottom: 20px; }
  .section-head > p { margin-top: 9px; }
  h2 { font-size: clamp(29px, 7.8vw, 39px); }
  .program-grid, .school-grid { gap: 9px; }
  .program-card { min-height: 197px; padding: 13px 12px 10px; }
  .program-card-top { margin-bottom: 12px; }
  .program-icon { width: 34px; height: 34px; font-size: 17px; }
  .program-card h3 { font-size: 18px; }
  .program-card p { margin-bottom: 6px; }
  .school-card-body { padding: 10px 9px 6px; }
  .school-card h3 { font-size: 16px; }
  .school-controls { margin-bottom: 13px; }
  .search-box { width: 100%; }
  .filters button { min-height: 38px; padding-inline: 10px; font-size: 12px; }
  .faq-grid { grid-template-columns: 1fr; gap: 17px; }
  .contact-panel { padding: 19px; border-radius: 7px; }
  .contact-intro h2 { font-size: clamp(31px, 8.9vw, 43px); }
  .contact-intro > p:not(.eyebrow) { margin-top: 9px; }
  .contact-links { margin-top: 7px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .field input, .field select, .search-box input, textarea { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 11px; }
  .detail-facts div { grid-template-columns: 99px 1fr; }
}
@media (max-width: 355px) {
  .hero h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
