/* Michael Robin College Counseling — base styles
   Hand-written for the static (Cloudflare) version of the site.
   Layout per section lives in each page (grid rules); site-specific
   adjustments live in custom.css. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-italic.woff2") format("woff2"); }

:root {
  /* palette */
  --cream: #F4F1EA;        /* lightest */
  --sand: #E3DCCB;         /* light */
  --sienna: #7C442B;       /* accent */
  --navy: #2C4468;         /* dark */
  --ink: #2B2A2E;          /* darkest */
  /* same colours as H,S,L triplets (used by some layout rules) */
  --white-hsl: 42,31.25%,93.73%; --lightAccent-hsl: 42.5,30%,84.31%; --accent-hsl: 18.52,48.5%,32.75%;
  --darkAccent-hsl: 216,40.54%,29.02%; --black-hsl: 255,4.55%,17.25%;
  --safeLightAccent-hsl: 42,31.25%,93.73%; --safeDarkAccent-hsl: 18.52,48.5%,32.75%;
  --safeInverseAccent-hsl: 42,31.25%,93.73%; --safeInverseLightAccent-hsl: 255,4.55%,17.25%;

  --heading-font-font-family: "Fraunces", Georgia, "Times New Roman", serif;
  --body-font-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-weight: 340;
  --heading-bold-weight: 640;

  --heading-1-size-value: 5.6;
  --heading-2-size-value: 3.2;
  --heading-3-size-value: 2.5;
  --heading-4-size-value: 1.6;
  --large-text-size-value: 1.5;
  --normal-text-size-value: 1.2;
  --small-text-size-value: 1;
  --button-size-value: 0.9;

  --sqs-site-gutter: 2vw;
  --sqs-mobile-site-gutter: 6vw;
  --sqs-site-max-width: 3000px;
  --pagePadding: 2vw;
  --header-height: 120px;
  --fs-unit: 1.2vw;          /* desktop type scale */
  --image-radius: 20px;
}
@media (max-width: 767px) {
  :root { --fs-unit: 0.675rem; --header-height: 79px; }
}

/* ---------- section themes ---------- */
[data-section-theme="white"], [data-section-theme="white-bold"] {
  --bg: var(--cream); --text: var(--ink); --heading: var(--ink); --link: var(--sienna);
  --btn-bg: var(--sienna); --btn-text: var(--cream); --btn2-bg: var(--sienna); --btn2-text: var(--cream);
  --line: rgba(43, 42, 46, .25); --field-border: rgba(43, 42, 46, .35);
}
[data-section-theme="white-bold"] { --heading: var(--sienna); }
[data-section-theme="light"] {
  --bg: var(--sand); --text: var(--ink); --heading: var(--ink); --link: var(--sienna);
  --btn-bg: var(--sienna); --btn-text: var(--cream); --btn2-bg: var(--sienna); --btn2-text: var(--cream);
  --line: rgba(43, 42, 46, .25); --field-border: rgba(43, 42, 46, .35);
}
[data-section-theme="dark"] {
  --bg: var(--navy); --text: var(--cream); --heading: var(--cream); --link: var(--cream);
  --btn-bg: var(--sienna); --btn-text: var(--cream); --btn2-bg: var(--cream); --btn2-text: var(--ink);
  --line: rgba(244, 241, 234, .35); --field-border: rgba(244, 241, 234, .45);
}
[data-section-theme="dark-bold"] {
  --bg: var(--navy); --text: #fff; --heading: var(--cream); --link: var(--cream);
  --btn-bg: var(--cream); --btn-text: var(--ink); --btn2-bg: var(--cream); --btn2-text: var(--ink);
  --line: rgba(244, 241, 234, .35); --field-border: rgba(244, 241, 234, .45);
}
[data-section-theme="black"] {
  --bg: var(--ink); --text: var(--cream); --heading: var(--cream); --link: var(--cream);
  --btn-bg: var(--cream); --btn-text: var(--ink); --btn2-bg: var(--cream); --btn2-text: var(--ink);
  --line: rgba(244, 241, 234, .35); --field-border: rgba(244, 241, 234, .45);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: var(--body-font-font-family); font-weight: 400;
  font-size: calc((var(--normal-text-size-value) - 1) * var(--fs-unit) + 1rem);
  line-height: 1.4; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--cream); color: var(--ink); padding: 10px 16px; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--heading-font-font-family); font-weight: var(--heading-weight);
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 36;
  letter-spacing: -0.015em; color: var(--heading, inherit); margin: 2rem 0;
}
h1 strong, h2 strong, h3 strong, h4 strong, h1 b, h2 b, h3 b, h4 b { font-weight: var(--heading-bold-weight); }
h1 { font-size: calc((var(--heading-1-size-value) - 1) * var(--fs-unit) + 1rem); line-height: 0.98; }
h2 { font-size: calc((var(--heading-2-size-value) - 1) * var(--fs-unit) + 1rem); line-height: 1.094; }
h3 { font-size: calc((var(--heading-3-size-value) - 1) * var(--fs-unit) + 1rem); line-height: 1.128; }
h4 { font-size: calc((var(--heading-4-size-value) - 1) * var(--fs-unit) + 1rem); line-height: 1.171; }
p { margin: 1rem 0; }
.sqs-html-content p:empty::before { content: "\200b"; }
.sqsrte-large { font-size: calc((var(--large-text-size-value) - 1) * var(--fs-unit) + 1rem); line-height: 1.4; }
.sqsrte-small { font-size: calc((var(--small-text-size-value) - 1) * var(--fs-unit) + 1rem); line-height: 1.4; }
.sqs-html-content > :first-child { margin-top: 0; }
.sqs-html-content > :last-child { margin-bottom: 0; }
.sqs-html-content a { color: var(--link); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.sqs-html-content ul, .sqs-html-content ol { margin: 1em 0; padding-left: 40px; }
.sqs-html-content li > p { margin: 0.5em 0; }
.sqs-html-content li::marker { color: currentColor; }
strong, b { font-weight: 700; }

/* ---------- header ---------- */
.header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  color: var(--cream); pointer-events: none;
}
.header-inner {
  display: flex; align-items: center; gap: 2.9vw;
  padding: 1vw 2vw; pointer-events: auto;
}
.header-title-logo { flex: none; line-height: 0; }
.header-title-logo img { height: 91px; width: auto; }
.header-nav { display: flex; flex-wrap: wrap; gap: 6px 1.5vw; font-size: 16px; line-height: 1.4; margin-right: auto; }
.header-nav-link { text-decoration: none; padding: 1.6px 0; background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s ease; }
.header-nav-link:hover, .header-nav-link.is-active { background-size: 100% 1px; }
.header-cta, .mobile-cta {
  flex: none; text-decoration: none; text-transform: uppercase; font-weight: 500;
  font-size: calc((var(--button-size-value) - 1) * var(--fs-unit) + 1rem); line-height: 1.2;
  border: 1px solid currentColor; border-radius: 8px; padding: 16px 19.2px;
  transition: background-color .2s ease, color .2s ease;
}
.header-cta:hover { background: var(--cream); color: var(--ink); }
.header-burger { display: none; }
.mobile-menu[hidden] { display: none; }
body.header-on-light .header { color: var(--ink); }
body.header-on-light .header-cta:hover { background: var(--ink); color: var(--cream); }

@media (max-width: 1023px) {
  .header-nav { font-size: 14px; }
}
@media (max-width: 799px) {
  .header-inner { justify-content: center; position: relative; min-height: 79px; padding: 14px 6vw; }
  .header-title-logo img { height: 50px; }
  .header-nav, .header-cta { display: none; }
  .header-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 9px;
    position: absolute; left: 6vw; top: 50%; transform: translateY(-50%);
    width: 40px; height: 37px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer;
  }
  .header-burger span { display: block; height: 1px; width: 100%; background: currentColor; transition: transform .25s ease; }
  body.menu-open .header-burger span:first-child { transform: translateY(5px) rotate(45deg); }
  body.menu-open .header-burger span:last-child { transform: translateY(-5px) rotate(-45deg); }
  body.menu-open .header { color: var(--cream); position: fixed; }
  body.menu-open { overflow: hidden; }
  .mobile-menu {
    position: fixed; inset: 0; z-index: -1; pointer-events: auto;
    background: var(--ink); color: var(--cream);
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 36px;
    padding: 100px 6vw 40px;
  }
  .mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .mobile-menu nav a { font-size: 2.07rem; text-decoration: none; }
  .mobile-cta { padding: 16px 28px; }
}

/* ---------- sections ---------- */
main { display: block; }
.page-section {
  position: relative; display: flex; flex-direction: row; justify-content: center; align-items: center;
  background: var(--bg); color: var(--text);
}
.page-section.vertical-alignment--top { align-items: flex-start; }
.page-section.vertical-alignment--bottom { align-items: flex-end; }
.page-section.section-height--small { min-height: 33vh; }
.page-section.section-height--medium { min-height: 66vh; }
.page-section.section-height--large { min-height: 100vh; }
.section-border { position: absolute; inset: 0; overflow: hidden; }
.section-background { position: absolute; inset: 0; background: var(--bg); }
.section-background > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section-background-overlay { position: absolute; inset: 0; background: #000; }
.content-wrapper { position: relative; width: 100%; }
.page-section.vertical-alignment--middle.section-height--small > .content-wrapper { padding-top: 3.3vmax; padding-bottom: 3.3vmax; }
.page-section.vertical-alignment--middle.section-height--medium > .content-wrapper { padding-top: 6.6vmax; padding-bottom: 6.6vmax; }
.page-section.vertical-alignment--middle.section-height--large > .content-wrapper { padding-top: 10vmax; padding-bottom: 10vmax; }
.page-section.vertical-alignment--bottom > .content-wrapper { padding-bottom: var(--pagePadding); }
.page-section.vertical-alignment--bottom.section-height--small > .content-wrapper { padding-top: 6.6vmax; }
.page-section.vertical-alignment--bottom.section-height--medium > .content-wrapper { padding-top: 13.2vmax; }
.page-section.vertical-alignment--top:not(.section-height--custom) > .content-wrapper { padding-top: var(--pagePadding); }
.page-section.vertical-alignment--top.section-height--small:not(.section-height--custom) > .content-wrapper { padding-bottom: 6.6vmax; }
/* header sits over the first section */
main > .page-section:first-child { padding-top: var(--header-height); }

/* wavy bottom edge */
.page-section.has-section-divider { padding-bottom: 6vw; }
.section-divider { position: absolute; left: 0; right: 0; bottom: -1px; height: 6vw; pointer-events: none; z-index: 1; }
.section-divider svg { display: block; width: 100%; height: 100%; }
.section-divider path { fill: var(--sand); }

/* ---------- fluid grid blocks ---------- */
.fluid-engine { position: relative; }
.fe-block { position: relative; min-width: 0; }
.fe-block > .sqs-block { height: 100%; display: flex; flex-direction: column; }
.sqs-block-content { width: 100%; }
.image-block .sqs-block-content, .shape-block .sqs-block-content { height: 100%; }
.image-block .sqs-block-content > a { display: block; height: 100%; }
.fluid-image-container { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: var(--image-radius); }
.fluid-image-container img { position: absolute; inset: 0; width: 100%; height: 100%; }
.fluid-image-container.fit-contain { border-radius: 0; }
.fluid-image-container.mask-vertical-oval, .fluid-image-container.mask-oval, .fluid-image-container.mask-circle { border-radius: 50%; }
.shape { width: 100%; height: 100%; }
.horizontalrule-block { justify-content: center; }
hr { border: 0; height: 1px; margin: 0; background: var(--line); width: 100%; }

/* buttons */
.sqs-block-button-container--left { text-align: left; }
.sqs-block-button-container--center { text-align: center; }
.sqs-block-button-container--right { text-align: right; }
.sqs-block-button-element {
  display: inline-block; font-family: var(--body-font-font-family); font-weight: 500; text-transform: uppercase;
  font-size: calc((var(--button-size-value) - 1) * var(--fs-unit) + 1rem); line-height: 1.2;
  text-decoration: none; border-radius: 8px; padding: 16px 48px; border: 0; cursor: pointer;
  transition: opacity .2s ease;
}
.sqs-block-button-element:hover { opacity: .85; }
.sqs-button-element--primary { background: var(--sienna); color: var(--cream); }
.sqs-button-element--secondary { background: transparent; color: var(--heading); border: 1px solid currentColor; padding: 16px 19.2px; }
.sqs-button-element--secondary:hover { opacity: 1; background: var(--heading); color: var(--bg); }
.sqs-button-element--tertiary { background: transparent; color: var(--link); border: 1px solid currentColor; }
.sqs-block-button-element--small { padding: 12px 32px; }
.sqs-block-button-element--large { padding: 20px 60px; }

/* ---------- forms ---------- */
.mrcc-form { font-size: 16px; }
.mrcc-form .hp { position: absolute; left: -9999px; }
.field-list { display: flex; flex-direction: column; gap: 28px; }
.form-item { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-item .title { display: block; font-size: 16px; line-height: 1.4; margin: 0 0 6px; padding: 0; }
.form-item .required { opacity: .6; font-size: 0.95em; }
.form-item .description { font-size: 14px; opacity: .75; margin: 0 0 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.caption { display: flex; flex-direction: column; gap: 4px; }
.caption-text { font-size: 14px; }
.field-element {
  width: 100%; font: inherit; font-size: calc((var(--normal-text-size-value) - 1) * var(--fs-unit) + 1rem);
  color: var(--text); background: transparent; border: 1px solid var(--field-border); border-radius: 10px;
  padding: 10px 20px; line-height: 1.4;
}
.field-element::placeholder { color: currentColor; opacity: .55; }
textarea.field-element { min-height: 100px; resize: vertical; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select.field-element { appearance: none; -webkit-appearance: none; padding-right: 44px; }
select.field-element.is-empty { color: color-mix(in srgb, var(--text) 55%, transparent); }
select.field-element option { color: var(--ink); }
.options { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.option { display: inline-flex; align-items: center; gap: 8px; font-size: calc((var(--normal-text-size-value) - 1) * var(--fs-unit) + 1rem); cursor: pointer; }
.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--sienna); }
.form-button-wrapper { margin-top: 26px; }
.form-button-wrapper button { background: var(--ink); color: var(--cream); }
[data-section-theme="dark"] .form-button-wrapper button, [data-section-theme="black"] .form-button-wrapper button { background: var(--cream); color: var(--ink); }
.form-status { min-height: 1.4em; margin: 14px 0 0; font-size: 16px; }
.form-status.is-error { color: #9b2c1f; }
.mrcc-form.is-sent .field-list, .mrcc-form.is-sent .form-button-wrapper { display: none; }
.mrcc-form.is-sent .form-status { font-size: calc((var(--large-text-size-value) - 1) * var(--fs-unit) + 1rem); }
.field-element:user-invalid { border-color: #9b2c1f; }

/* ---------- list section (testimonials) ---------- */
.user-items-list { padding: 6.6vmax 0; }
.list-section-title { text-align: center; padding: 0 6vw 70px; }
.list-section-title p, .list-section-title h1 {
  font-family: var(--heading-font-font-family); font-weight: var(--heading-weight); font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 36;
  letter-spacing: -0.015em; margin: 0; line-height: 1.4;
  font-size: calc((var(--heading-2-size-value) - 1) * var(--fs-unit) + 1rem);
}
.user-items-list-simple { list-style: none; margin: 0; padding: 0 var(--pagePadding); }
.list-item-content__title {
  font-family: var(--heading-font-font-family); font-weight: var(--heading-weight); font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 36;
  font-size: calc((1.2 - 1) * var(--fs-unit) + 1rem); line-height: 1.094; letter-spacing: -0.015em; margin: 0;
}
.list-item-content__description { margin-top: 6%; font-size: calc((0.9 - 1) * var(--fs-unit) + 1rem); line-height: 1.4; }
.list-item-content__description p { margin: 0; }

/* ---------- footer ---------- */
.site-footer .page-section { color: var(--text); }
.site-footer .sqs-html-content a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* light-page logo turns white on the dark mobile menu */
body.menu-open.header-on-light .header-title-logo img { filter: brightness(0) invert(0.96); }
