/* =====================================================================
   Top Horizon Nursery & Primary School - public website
   School colours: navy (crest) and yellow (uniform).
   Header and footer markup come from js/site.js.
   ===================================================================== */

:root {
    --navy: #1e2d6e;
    --navy-dark: #131d4a;
    --navy-soft: #eef1f9;
    --yellow: #f5c400;
    --yellow-dark: #c99f00;
    --yellow-soft: #fff8d9;
    --text: #222632;
    --text-muted: #5b6070;
    --border: #dfe2ea;
    --bg-alt: #f6f7fa;
    --white: #ffffff;
    --container: 1160px;

    /* names used by the inner pages */
    --primary: var(--navy);
    --primary-dark: var(--navy-dark);
    --primary-soft: var(--navy-soft);
    --gold: var(--yellow);
    --gold-soft: var(--yellow-soft);
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    font-size: 17px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    line-height: 1.25;
    color: var(--navy-dark);
    margin: 0 0 0.5em;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--navy);
}

img {
    max-width: 100%;
    display: block;
}

svg.lucide {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 1000;
    background: white;
    padding: 8px 14px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: var(--navy);
    color: white;
}

.btn-primary:hover {
    background: var(--navy-dark);
}

.btn-gold {
    background: var(--yellow);
    color: var(--navy-dark);
}

.btn-gold:hover {
    background: #e6b800;
}

.btn-outline {
    border-color: var(--navy);
    color: var(--navy);
    background: transparent;
}

.btn-outline:hover {
    background: var(--navy);
    color: white;
}

.btn-outline-light {
    border-color: white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--navy-dark);
}

.btn svg.lucide {
    width: 17px;
    height: 17px;
}

/* ---------- Top strip ---------- */
.topbar {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.topbar .container {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 38px;
}

.topbar a,
.topbar span {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar a:hover {
    color: var(--yellow);
}

.topbar svg.lucide {
    width: 14px;
    height: 14px;
    color: var(--yellow);
}

.topbar .right {
    margin-left: auto;
    display: flex;
    gap: 18px;
}

/* ---------- Masthead: crest + school name ---------- */
.masthead {
    background: white;
}

.masthead .container {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.crest {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.crest img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.crest .name {
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.15;
    color: var(--navy-dark);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.crest .motto {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    color: var(--yellow-dark);
    font-size: 16px;
    margin-top: 2px;
}

.crest .place {
    font-size: 14px;
    color: var(--text-muted);
}

.masthead-side {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: right;
}

.masthead-side .call {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.3;
}

.masthead-side .call a {
    display: block;
    font-weight: 700;
    font-size: 19px;
    color: var(--navy-dark);
    text-decoration: none;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 9px 12px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    align-items: center;
    gap: 6px;
}

/* ---------- Navigation bar ---------- */
.navbar {
    background: var(--navy);
    border-bottom: 4px solid var(--yellow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    align-items: stretch;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 15px 18px;
}

.main-nav a:hover {
    background: var(--navy-dark);
}

.main-nav a.active {
    background: var(--yellow);
    color: var(--navy-dark);
}

.main-nav .nav-portal {
    margin-left: auto;
    background: var(--navy-dark);
}

/* ---------- Home: photo slider ---------- */
.slider {
    position: relative;
    height: 560px;
    background: var(--navy-dark);
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Darken only the bottom so the caption is readable; the photo keeps its real colours */
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 16, 45, 0.78) 0%, rgba(10, 16, 45, 0.2) 45%, transparent 70%);
}

.slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 48px;
    z-index: 2;
    color: white;
}

.slide-caption .box {
    max-width: 640px;
    border-left: 6px solid var(--yellow);
    padding-left: 22px;
}

.slide-caption h1,
.slide-caption h2 {
    color: white;
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 10px;
}

.slide-caption p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 20px;
}

.slide-caption .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.slider-dots {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.slider-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.slider-dots button.active {
    background: var(--yellow);
    border-color: var(--yellow);
}

/* ---------- Notice strip ---------- */
.notice {
    background: var(--yellow);
    color: var(--navy-dark);
}

.notice .container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 17px;
}

.notice strong {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--navy-dark);
    color: var(--yellow);
    padding: 4px 10px;
    font-size: 14px;
}

.notice a {
    margin-left: auto;
    font-weight: 700;
    color: var(--navy-dark);
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
    position: relative;
    color: white;
    background: var(--navy-dark) center / cover no-repeat;
    padding: 70px 0 60px;
    isolation: isolate;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 20, 55, 0.72);
    z-index: -1;
}

.page-banner h1 {
    color: white;
    font-size: clamp(30px, 4vw, 42px);
    margin-bottom: 8px;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    max-width: 640px;
    margin: 0;
}

.breadcrumb {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
}

.breadcrumb a {
    color: var(--yellow);
    text-decoration: none;
}

/* ---------- Sections ---------- */
.section {
    padding: 72px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-head h2,
.split h2,
.heading {
    font-size: clamp(26px, 3.2vw, 34px);
}

.section-head h2::after,
.heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--yellow);
    margin: 14px auto 0;
}

.heading::after {
    margin-left: 0;
}

.section-head p {
    color: var(--text-muted);
    font-size: 18px;
    margin: 14px 0 0;
}

.kicker {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--yellow-dark);
    margin-bottom: 6px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.split p {
    color: var(--text-muted);
}

.photo {
    overflow: hidden;
    border: 1px solid var(--border);
    background: white;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-frame {
    position: relative;
}

.photo-caption {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

.photo-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--navy-dark);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.photo-badge strong {
    display: block;
    color: white;
    font-size: 15px;
}

.photo-badge span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.quote {
    border-left: 4px solid var(--yellow);
    padding: 4px 0 4px 18px;
    font-family: 'Lora', Georgia, serif;
    font-size: 20px;
    font-style: italic;
    color: var(--navy-dark) !important;
    margin: 18px 0;
}

.signoff {
    font-weight: 700;
    color: var(--navy-dark);
}

.signoff span {
    display: block;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 15px;
}

.signature {
    height: 48px;
    width: auto;
    margin: 6px 0 2px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 28px;
    display: grid;
    gap: 14px;
}

.check-list li {
    display: flex;
    gap: 12px;
}

.check-list svg.lucide {
    color: var(--yellow-dark);
    margin-top: 4px;
}

.check-list strong {
    display: block;
    color: var(--navy-dark);
}

/* ---------- Card grids ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-top: 4px solid var(--navy);
    padding: 26px;
}

.card h3 {
    font-size: 21px;
    margin-top: 14px;
}

.card h3:first-child {
    margin-top: 0;
}

.card p {
    color: var(--text-muted);
}

.card ul {
    padding-left: 20px;
    margin: 12px 0 0;
}

.card li {
    margin-bottom: 6px;
}

.card li::marker {
    color: var(--yellow-dark);
}

.card-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--yellow-dark);
}

.icon-box {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy-soft);
    color: var(--navy);
    flex-shrink: 0;
}

.icon-box svg.lucide {
    width: 22px;
    height: 22px;
}

.icon-box.gold {
    background: var(--yellow-soft);
    color: var(--yellow-dark);
}

/* ---------- Navy band ---------- */
.band {
    background: var(--navy);
    color: white;
}

.band h2,
.band h3 {
    color: white;
}

.band p {
    color: rgba(255, 255, 255, 0.82);
}

.band .kicker {
    color: var(--yellow);
}

.band .section-head p {
    color: rgba(255, 255, 255, 0.82);
}

.values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.value {
    background: var(--navy);
    padding: 28px 24px;
}

.value .icon-box {
    background: rgba(245, 196, 0, 0.15);
    color: var(--yellow);
}

.value h3 {
    margin-top: 14px;
    font-size: 20px;
}

.value p {
    margin: 0;
    font-size: 16px;
}

/* ---------- Call to action ---------- */
.cta {
    background: var(--navy-dark);
    color: white;
    border-left: 8px solid var(--yellow);
    padding: 40px 44px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta h2 {
    color: white;
    font-size: clamp(24px, 2.8vw, 30px);
    margin-bottom: 6px;
}

.cta p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cta .actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- News ---------- */
.news-card {
    background: white;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.news-thumb {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    color: white;
    background: var(--navy) !important;
}

.news-thumb svg.lucide {
    width: 44px;
    height: 44px;
    color: var(--yellow);
}

.date-badge {
    background: var(--yellow);
    color: var(--navy-dark);
    text-align: center;
    padding: 6px 12px;
    line-height: 1.1;
    font-family: 'Lora', Georgia, serif;
}

.date-badge strong {
    display: block;
    font-size: 24px;
}

.date-badge span {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.news-body {
    padding: 20px 22px 24px;
    flex: 1;
}

.news-body h3 {
    font-size: 20px;
    margin: 6px 0 8px;
}

.news-body p {
    color: var(--text-muted);
    margin: 0;
}

/* Home: dated news list */
.news-list {
    border-top: 1px solid var(--border);
}

.news-row {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.news-row .date-badge {
    flex-shrink: 0;
    width: 68px;
    align-self: flex-start;
}

.news-row h3 {
    font-size: 19px;
    margin: 0 0 4px;
}

.news-row p {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
}

/* Home: sidebar boxes */
.side-box {
    border: 1px solid var(--border);
    background: white;
    margin-bottom: 20px;
}

.side-box h3 {
    background: var(--navy);
    color: white;
    font-size: 18px;
    margin: 0;
    padding: 12px 18px;
    border-bottom: 3px solid var(--yellow);
}

.side-box .body {
    padding: 16px 18px;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-list li {
    border-bottom: 1px solid var(--border);
}

.link-list li:last-child {
    border-bottom: none;
}

.link-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--navy-dark);
    font-weight: 600;
}

.link-list a:hover {
    background: var(--navy-soft);
}

.link-list svg.lucide {
    color: var(--yellow-dark);
}

/* Home: classes offered */
.class-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
}

.class-strip>div {
    padding: 26px;
    border-right: 1px solid var(--border);
    background: white;
}

.class-strip>div:last-child {
    border-right: none;
}

.class-strip h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.class-strip .classes {
    font-weight: 700;
    color: var(--yellow-dark);
    margin-bottom: 10px;
}

.class-strip p {
    color: var(--text-muted);
    margin: 0;
}

/* ---------- Steps ---------- */
.steps {
    display: grid;
    gap: 16px;
}

.step {
    display: flex;
    gap: 18px;
    background: white;
    border: 1px solid var(--border);
    padding: 22px;
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--yellow);
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: 20px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.step h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.step p,
.step ul {
    color: var(--text-muted);
    margin: 0;
}

.step ul {
    padding-left: 18px;
    margin-top: 8px;
}

/* ---------- Side panels ---------- */
.layout-sidebar {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 40px;
    align-items: start;
}

.panel {
    background: white;
    border: 1px solid var(--border);
    padding: 26px;
    margin-bottom: 20px;
}

.panel.dark {
    background: var(--navy-dark);
    color: white;
    border: none;
    border-top: 4px solid var(--yellow);
}

.panel.dark h3 {
    color: white;
}

.panel.dark p {
    color: rgba(255, 255, 255, 0.8);
}

.panel h3 {
    font-size: 20px;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-top: 10px;
    color: inherit;
    text-decoration: none;
}

.contact-line svg.lucide {
    color: var(--yellow);
}

/* ---------- Tables ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

th,
td {
    text-align: left;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--navy);
    color: white;
    font-weight: 700;
}

tr:nth-child(even) td {
    background: var(--bg-alt);
}

.subject-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subject-list span {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 5px 12px;
    font-size: 15px;
    font-weight: 600;
}

/* ---------- Forms ---------- */
.form-card {
    background: white;
    border: 1px solid var(--border);
    border-top: 5px solid var(--navy);
    padding: 36px;
}

.form-card h2 {
    font-size: 28px;
}

.form-card>p {
    color: var(--text-muted);
}

.form-section {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 26px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--yellow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 700;
    font-size: 15px;
    color: var(--navy-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
    font: inherit;
    font-size: 16px;
    padding: 11px 13px;
    border: 1px solid #c9cdd8;
    border-radius: 4px;
    background: white;
    color: var(--text);
    width: 100%;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 3px solid rgba(30, 45, 110, 0.2);
    border-color: var(--navy);
}

.form-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.form-actions small {
    color: var(--text-muted);
}

.map {
    border: 1px solid var(--border);
    min-height: 100%;
}

.map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    display: block;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.78);
    border-top: 6px solid var(--yellow);
    padding-top: 56px;
    font-size: 16px;
}

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

.site-footer .crest {
    margin-bottom: 14px;
}

.site-footer .crest img {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    padding: 4px;
}

.site-footer .crest .name {
    color: white;
    font-size: 18px;
}

.site-footer .crest .motto {
    color: var(--yellow);
    font-size: 15px;
}

.site-footer h4 {
    color: var(--yellow);
    font-size: 17px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Source Sans 3', Arial, sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--yellow);
    text-decoration: underline;
}

.footer-contact {
    display: grid;
    gap: 12px;
}

.footer-contact a,
.footer-contact div {
    display: flex;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.footer-contact svg.lucide {
    color: var(--yellow);
    margin-top: 4px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 16px 0;
    font-size: 15px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: var(--yellow);
    text-decoration: none;
}

/* Inner pages used fade-ins before; content now simply shows */
.reveal {
    opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .main-nav a {
        padding: 14px 12px;
        font-size: 14px;
    }

    .grid-4,
    .values {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .crest .name {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .masthead-side {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .navbar {
        position: static;
    }

    .main-nav {
        display: none;
        flex-direction: column;
    }

    body.nav-open .main-nav {
        display: flex;
    }

    .main-nav a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 15px;
    }

    .main-nav .nav-portal {
        margin-left: 0;
    }

    .split,
    .layout-sidebar {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .grid-2,
    .grid-3,
    .class-strip {
        grid-template-columns: 1fr;
    }

    .class-strip>div {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .slider {
        height: 480px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .topbar .hide-sm {
        display: none;
    }

    .crest img {
        width: 56px;
        height: 56px;
    }

    .crest .name {
        font-size: 16px;
    }

    .crest .motto {
        font-size: 14px;
    }

    .crest .place {
        display: none;
    }

    .menu-toggle span {
        display: none;
    }

    .slider {
        height: 460px;
    }

    /* On a narrow screen the caption covers most of the photo, so darken it more for readability */
    .slide::after {
        background: linear-gradient(to top, rgba(10, 16, 45, 0.88) 0%, rgba(10, 16, 45, 0.6) 60%, rgba(10, 16, 45, 0.35) 100%);
    }

    .slide-caption {
        bottom: 54px;
    }

    .slide-caption p {
        font-size: 17px;
    }

    .slider-dots {
        left: 20px;
        right: auto;
        bottom: 20px;
    }

    .section {
        padding: 52px 0;
    }

    .grid-4,
    .values,
    .footer-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 30px 24px;
    }

    .cta .actions {
        margin-left: 0;
    }

    .form-card {
        padding: 24px 18px;
    }

    .page-banner {
        padding: 50px 0 44px;
    }

    .notice a {
        margin-left: 0;
    }
}
