/* ClassroomRevolution — site styles
   Measurements match the Squarespace site at a 1440px-wide window.
   Fonts: Poppins (body, menu, buttons) and Archivo Regular (headings; free stand-in
   for Squarespace's licensed Acumin Pro). Change --font-heading to swap. */

@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 300; font-style: italic; font-display: swap;
  src: url("../fonts/poppins-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); }

:root {
  --blue: #2b518d;          /* header, "Moodle Made Easy", footer */
  --button: #1470af;        /* buttons */
  --grey: #c9c9cf;          /* contact section */
  --text: #000;
  --font-body: "Poppins", system-ui, sans-serif;
  --font-heading: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: 3vw;            /* 43px at 1440px */
  --gap: 34px;              /* space between the two columns */
  --header-h: 100px;
  --h1: clamp(30px, 3.27vw, 56px);     /* 47px at 1440 */
  --h3: clamp(26px, 2.55vw, 44px);     /* 37px at 1440 */
  --h4: clamp(22px, 1.83vw, 32px);     /* 26px at 1440 */
  --lead: clamp(18px, 1.71vw, 28px);   /* 24.6px at 1440 */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 300 16px/1.8 var(--font-body); color: var(--text); background: #fff;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }  /* same as Squarespace: thinner, lighter text on Mac */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
main a:not(.button) { color: var(--button); text-decoration: underline; text-underline-offset: 3.2px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.3; margin: 0 0 .6em; }
h1, h2 { font-size: var(--h1); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
p { margin: 0 0 1em; }
.lead { font-size: var(--lead); line-height: 1.8; }
.small { font-size: 14.3px; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 var(--gutter);
  background: var(--blue); color: #fff;
}
.site-logo img { width: 282px; height: 42px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 18px; }
.site-nav a, .dropdown-toggle {
  display: block; padding: 2px 0; color: #fff; text-decoration: none;
  font: 300 16px/1.8 var(--font-body); background: none; border: 0; cursor: pointer;
}
.site-nav a:hover, .dropdown-toggle:hover { opacity: .75; }
.site-nav a[aria-current="page"], .dropdown-toggle.is-current { text-decoration: underline; text-underline-offset: 6px; }
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; left: 50%; transform: translateX(-50%);
  top: 100%; min-width: 180px; padding: 10px 18px; background: var(--blue); text-align: center;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown,
.dropdown-toggle[aria-expanded="true"] + .dropdown { display: block; }
.nav-toggle { display: none; }

/* ---------- Sections ---------- */
.section { padding: 43px var(--gutter) 95px; }

.hero { position: relative; display: flex; justify-content: flex-end; align-items: flex-start;
  min-height: clamp(260px, 26.8vw, 540px); padding-top: 43px; background: #000; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-title { position: relative; font-size: var(--h1); text-align: right; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.split--intro .split-a img { width: 74%; margin-left: auto; }
.split--intro .split-b .lead { max-width: 74%; }
.split--blue { background: var(--blue); color: #fff; }
.split--blue .badge { width: 206px; margin: 1.5em auto 0; }
.split--blue .split-b .lead { max-width: 82%; margin-left: auto; }

.services { display: grid; gap: 40px; }
.service { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.service-img img, .service-text { width: 92%; }
.service-text { justify-self: end; padding-top: 8px; }
.service--reverse .service-img { order: 2; }
.service--reverse .service-img img { margin-left: auto; }
.service--reverse .service-text { justify-self: start; }
.service-text--middle { align-self: center; }

.button {
  display: inline-block; padding: 17.6px 29.4px; border: 0; border-radius: 0;
  background: var(--button); color: #fff; text-decoration: none;
  font: 500 16px/1.2 var(--font-body); letter-spacing: .02em; cursor: pointer;
}
.button:hover { opacity: .85; }

/* ---------- Inner pages ---------- */
.section--tight { padding-top: 48px; }
.section--flush-top { padding-top: 0; }
.page-intro--spaced { padding-top: 95px; }
.narrow { max-width: 75%; margin: 0 auto; }          /* 1015px of 1354px */
.page-title { font-size: var(--h3); text-align: right; margin-bottom: .9em; }
.narrow h4 { margin-top: 1.2em; }
.policies h4 { margin: 32px 0; }
.policies p { margin: 0 0 28.8px; }   /* old site: a blank line between paragraphs */
.page-intro .lead { margin-bottom: 1.2em; }
.quote { margin: clamp(40px, 8vw, 140px) 4.9%; }
.quote blockquote { margin: 0; font-size: var(--lead); line-height: 1.8; }
.quote blockquote p { margin: 0; }
.quote figcaption { text-align: right; font-weight: 400; font-size: 16px; line-height: 1; }

/* Image with an overlapping grey text card (Squarespace "collage" layout).
   Image covers 70% of the width, the card 50%, overlapping by 20%. */
.collage { display: grid; align-items: center; margin-top: 52px; }
.collage + .collage { margin-top: 100px; }
.collage--image-right { grid-template-columns: 30fr 20fr 50fr; }
.collage--image-left  { grid-template-columns: 50fr 20fr 30fr; }
.collage-img, .collage-card { grid-row: 1; }
.collage--image-right .collage-img  { grid-column: 2 / 4; }
.collage--image-right .collage-card { grid-column: 1 / 3; }
.collage--image-left  .collage-img  { grid-column: 1 / 3; }
.collage--image-left  .collage-card { grid-column: 2 / 4; }
.collage-img { width: 100%; height: auto; }
.collage-card { position: relative; z-index: 1; background: #eaeaee; padding: 4.7vw; }
.collage-card p:last-child, .collage-card ul:last-child { margin-bottom: 0; }
.collage-card ul { margin: 0; padding-left: 40px; }
.after-collage { margin-top: 2.6em; }

/* Square photo cut to a quarter circle (corner at top right), as on the old site. */
.shape-quarter { aspect-ratio: 1 / 1; object-fit: cover; clip-path: circle(100% at 100% 0); }

.three-col { display: grid; grid-template-columns: 544fr 313fr 313fr; column-gap: var(--gap); align-items: start; }
.three-col > :first-child { margin-right: 8vw; }   /* 116px at 1440 */
.three-col h4 { margin-top: 1.4em; }

/* ---------- Contact ---------- */
.section--contact { background: var(--grey); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.contact-info a { text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.contact-info strong { font-weight: 700; }

.form { font-size: 16px; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend, .form .label { display: block; padding: 0; margin-bottom: 2px; }
.form-row { display: block; margin-bottom: 26px; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.form-row--split legend { grid-column: 1 / -1; }
.form .caption { display: block; font-size: 14.3px; }
.form .required { opacity: .6; }
.form input, .form select, .form textarea {
  display: block; width: 100%; padding: 5px 0; margin-top: 2px;
  font: 300 16px/1.6 var(--font-body); color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid rgba(0,0,0,.6); border-radius: 0;
}
.form select { appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; }
.form textarea { resize: vertical; border: 1px solid rgba(0,0,0,.6); padding: 8px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--button); outline-offset: 2px; }
.form [aria-invalid="true"] { border-color: #b00020; }
.form .hp { position: absolute; left: -9999px; }
.form .button { font-size: 14.3px; padding: 15.7px 26.2px; }
.form-status { margin-top: 1em; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { padding: 43px var(--gutter) 95px; background: var(--blue); color: #fff; text-align: center; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    position: absolute; left: 10px; width: 24px; height: 2px; background: #fff; content: ""; }
  .nav-toggle-bars { top: 21px; }
  .nav-toggle-bars::before { top: -8px; left: 0; }
  .nav-toggle-bars::after { top: 8px; left: 0; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--blue); padding: 10px var(--gutter) 24px; }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; gap: 6px; }
  .site-nav a, .dropdown-toggle { font-size: 20px; }
  .dropdown { position: static; transform: none; padding: 0 0 0 18px; text-align: left; min-width: 0; }
  .site-logo img { width: 220px; height: auto; }
}
@media (max-width: 767px) {
  :root { --gutter: 6vw; --header-h: 80px; }
  .section { padding-bottom: 60px; }
  .split, .service, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .split--intro .split-a img, .split--intro .split-b .lead, .split--blue .split-b .lead,
  .service-img img, .service-text { width: 100%; max-width: none; margin: 0; }
  .service--reverse .service-img { order: 0; }
  .service-text { justify-self: start; }
  .hero { justify-content: center; }
  .hero-title { text-align: center; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
  .services { gap: 56px; }
  .narrow { max-width: none; }
  .page-title { text-align: left; }
  .quote { margin: 2em 0; }
  .collage, .collage--image-right, .collage--image-left { grid-template-columns: 1fr; margin-top: 40px; }
  .collage + .collage { margin-top: 56px; }
  .collage .collage-img, .collage .collage-card { grid-column: 1; grid-row: auto; }
  .collage-card { padding: 28px 24px; }
  .three-col { grid-template-columns: 1fr; }
  .three-col > :first-child { margin-right: 0; }
}
