/* EICSM: rebuild of the 2018-2025 eicsm.org design (RapidWeaver Foundry theme). */

@font-face { font-family: "Roboto"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-700.woff2") format("woff2"); }

:root {
  --text: #373a3c;
  --muted: #6c757d;
  --grey: #f6f6f6;
  --border: #dcdcdc;
  --navy: #142343;
  --logo-navy: #1a3055;
  --accent: #0275d8;
  --error: #b02a37;
  --success: #1e7b34;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: .01em;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: #014c8c; }

h1, h2, h3 { color: var(--text); font-weight: 700; line-height: 1.2; margin: 0 0 1.25rem; }
h1 { font-size: 1.75rem; text-transform: uppercase; letter-spacing: .03em; }
h1.h-normal { text-transform: none; letter-spacing: 0; }
h2 { font-size: 1.5rem; }
h2.display { font-size: 2.1rem; padding-bottom: 1.25rem; border-bottom: 1px solid #e8e8e8; margin-bottom: 1.25rem; }
p { margin: 0 0 1.25rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 576px) { .container { padding: 0 30px; } }

/* Header */
.site-header { padding: 40px 0 56px; }
.site-header .container { max-width: none; padding-left: 40px; }
.logo { display: inline-block; }
.logo img { display: block; width: 335px; }
@media (max-width: 575px) {
  .site-header { padding: 24px 0 28px; }
  .site-header .container { padding-left: 16px; }
  .logo img { width: 240px; }
}

/* Sections */
.band { padding: 60px 0; }
.band--grey { background: var(--grey); }
.welcome { text-align: center; padding: 60px 0 70px; }
.welcome h1:last-child { margin-bottom: 0; }
.lead { font-size: 1.25rem; font-weight: 300; color: #5d6266; max-width: 64rem; margin: 0 auto; letter-spacing: .02em; }

.columns { display: grid; gap: 40px; }
@media (min-width: 768px) { .columns { grid-template-columns: 1fr 1fr; gap: 30px; } }
.column > :last-child { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 2.2rem; margin-bottom: .1rem; }
.checklist li::before {
  content: ""; position: absolute; left: .5rem; top: .35em; width: .95em; height: .95em;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 3.5 6 11 2.5 7.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 3.5 6 11 2.5 7.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Contact form */
.contact-form { max-width: 520px; }
.form-row { margin-bottom: .7rem; }
.form-row label { display: block; font-size: .95rem; margin-bottom: .15rem; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; font: inherit; color: var(--text);
  padding: .35rem .5rem; border: 1px solid #ccc; border-radius: 3px; background: #fff;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid rgba(2, 117, 216, .35); outline-offset: 0; border-color: var(--accent); }
.contact-form [aria-invalid="true"] { border-color: var(--error); }
.contact-form button {
  margin-top: .8rem; font: inherit; font-size: .85rem; color: var(--text);
  background: #fff; border: 1px solid #bbb; border-radius: 3px; padding: .3rem .7rem; cursor: pointer;
}
.contact-form button:hover { background: #f0f0f0; }
.req { color: var(--error); }
.form-legend { font-size: .8rem; color: var(--muted); margin: .4rem 0 0; }
.form-error { color: var(--error); font-size: .875rem; margin: .25rem 0 0; }
.form-notice { padding: .75rem 1rem; border-radius: 3px; border: 1px solid; }
.form-notice--success { color: var(--success); background: #eaf6ec; border-color: #b9e0c1; }
.form-notice--error { color: var(--error); background: #fbeaec; border-color: #efc2c7; }
.form-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Testimonials */
.cards { display: grid; gap: 20px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { margin: 0; background: #fff; border: 1px solid #e3e3e3; border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; }
.card-banner { height: 157px; background: #0b0f14 url("../images/testimonial-banner.jpg") center / cover no-repeat; }
.card-photo {
  display: block; width: 140px; height: 140px; margin: -70px auto 0; border-radius: 50%;
  border: 5px solid #fff; object-fit: cover; background: #ddd; position: relative;
}
.card-quote { margin: 1.5rem 20px 1.25rem; }
.card-quote p { margin-bottom: 1.25rem; }
.card-quote p:last-child { margin-bottom: 0; }
.card-author { margin: 0 20px 20px; }

/* About + text pages */
.about { padding: 70px 0 80px; }
.prose { max-width: 900px; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: 0 0 1.25rem; }
.prose h2, .prose h3 { margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; padding: 60px 0; font-size: .95rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 35, 67, .85); color: #fff;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { color: #fff; background: var(--navy); }
