/* ==========================================
   contact.css — CONTACT PAGE
   ========================================== */

:root {
    --green-dark: #205c3b;
    --green-main: #318354;
    --green-light: #eaf5ed;
    --green-pale: #f5faf6;
    --text-dark: #25372c;
    --text-muted: #68766d;
    --white: #ffffff;
    --border: #dce8df;
    --yellow: #ffd166;
    --shadow: 0 8px 25px rgba(32, 92, 59, .09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
}

main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.container { width: min(1120px, 90%); margin-inline: auto; }

/* Header */
.site-header { position: relative; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); }
.header-content { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: var(--green-dark); color: var(--white); font-size: 23px; font-weight: 800; }
.brand-name { color: var(--green-dark); font-size: 17px; font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav a { padding: 8px 0; color: var(--text-muted); font-size: 13px; font-weight: 700; }
.main-nav a:hover, .main-nav a.active { color: var(--green-main); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--green-dark); font-size: 28px; cursor: pointer; }

/* Page banner */
.page-banner { padding: 65px 0; text-align: center; background: var(--green-light); }
.page-banner h1 { margin-bottom: 12px; color: var(--green-dark); font-size: clamp(32px, 4vw, 44px); line-height: 1.2; }
.page-banner p { max-width: 700px; margin: 0 auto; color: var(--text-muted); }
.eyebrow { margin-bottom: 12px; color: var(--green-main); font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.section { padding: 70px 0; }
.section-light { background: var(--green-pale); }

/* Contact layout */
.contact-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: start;
    gap: 30px;
}

.contact-information,
.contact-form-wrapper {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-information h2,
.contact-form-wrapper h2 {
    margin-bottom: 20px;
    color: var(--green-dark);
    font-size: 25px;
}

.contact-information > p {
    margin-bottom: 24px;
    color: var(--text-muted);
}

/* Contact details */
.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.contact-detail-icon {
    width: 43px;
    height: 43px;
    display: grid;
    flex-shrink: 0;
    place-items: center;
    border-radius: 10px;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 20px;
}

.contact-detail h3 {
    margin-bottom: 4px;
    color: var(--green-dark);
    font-size: 15px;
}

.contact-detail p,
.contact-detail a {
    color: var(--text-muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.contact-detail a:hover {
    color: var(--green-main);
    text-decoration: underline;
}

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccdacf;
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--green-main);
    box-shadow: 0 0 0 3px rgba(49, 131, 84, .12);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9aa79e;
}

.contact-form .btn {
    min-height: 46px;
    align-self: flex-start;
    padding: 11px 21px;
    border: 0;
    border-radius: 8px;
    background: var(--green-dark);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
}

.contact-form .btn:hover { background: var(--green-main); }

.contact-note {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 12px;
}

/* Optional map or location image */
.contact-map {
    width: 100%;
    min-height: 250px;
    margin-top: 30px;
    border: 0;
    border-radius: 14px;
}

/* Skip link (hidden until focused) */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 8px; background: var(--green-dark); color: var(--white); font-size: 14px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Breadcrumb */
.breadcrumb { margin-bottom: 14px; color: var(--text-muted); font-size: 13px; }
.breadcrumb a { color: var(--green-main); font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }

/* Form note and status */
.contact-details { margin-top: 10px; }
.form-note { color: var(--text-muted); font-size: 12px; }
.form-status { padding: 12px 14px; border-radius: 8px; background: var(--green-light); color: var(--green-dark); font-size: 14px; font-weight: 700; }
.form-status[hidden] { display: none; }

/* Logo image (replaces the "S" box) */
.brand-logo-img { width: 50px; height: 50px; object-fit: contain; }
.footer-logo .brand-logo-img { padding: 4px; border-radius: 50%; background: var(--white); }

/* Longer school name: let it wrap on tablets so the menu still fits */
@media (min-width: 701px) and (max-width: 900px) {
    .brand-name { max-width: 140px; font-size: 14px; line-height: 1.25; }
}

@media (max-width: 700px) {
    .brand-logo-img { width: 44px; height: 44px; }
}

@media (max-width: 420px) {
    .brand-name { max-width: 165px; font-size: 14px; line-height: 1.25; }
}

/* Footer */
.site-footer { padding-top: 55px; background: #173f2a; color: var(--white); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--white);
    font-size: 18px;
    font-weight: 800;
}

.footer-logo .brand-logo { background: var(--white); color: var(--green-dark); }

.footer-brand p { max-width: 340px; color: #cfe2d5; font-size: 14px; }

.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.footer-column h3 {
    margin-bottom: 6px;
    color: var(--white);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-column a { color: #cfe2d5; font-size: 14px; }
.footer-column a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.footer-bottom p { color: #b5ccbc; font-size: 13px; text-align: center; }

@media (max-width: 700px) {
    .site-footer { padding-top: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 30px; }
    .footer-brand { grid-column: 1 / -1; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

/* Responsive */
@media (max-width: 900px) {
    .main-nav { gap: 12px; }
    .main-nav a { font-size: 12px; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .header-content { min-height: 72px; flex-wrap: wrap; }
    .brand-name { font-size: 15px; }
    .brand-logo { width: 39px; height: 39px; }
    .menu-toggle { display: block; }
    .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 14px; }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 11px 10px; border-top: 1px solid var(--border); font-size: 14px; }
    .page-banner { padding: 45px 0; }
    .section { padding: 50px 0; }
    .contact-information, .contact-form-wrapper { padding: 22px; }
    .contact-form .btn { width: 100%; }
}