/* Madchester Design — public site and customer spec form styles */

@font-face { font-family: "League Spartan"; src: url("../fonts/LeagueSpartan-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #14202A;
  --teal: #00A6A6;
  --off: #F5F5F2;
  --white: #FFFFFF;
  --placeholder: #D8DCDF; /* file thumbnails (admin and spec forms) */
  --line: #E2E2DC;
  --border: #A9ACAE;
  --muted: #5B6268;
  --font-head: "League Spartan", "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: 22px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--white); }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { top: 12px; outline-color: var(--teal); }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Section marker: short teal bar above headings */
.marker { display: block; width: 40px; height: 4px; background: var(--teal); margin-bottom: 28px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 12px 28px;
  border: 1px solid transparent; border-radius: 4px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.btn--primary:hover { background: #009494; border-color: #009494; text-decoration: none; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }
.btn--outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--navy); text-decoration: none; }
.btn--wide { min-width: 250px; min-height: 64px; }
.btn--block { width: 100%; }
.btn--square { border-radius: 0; }

/* Header */
.site-header { background: var(--white); position: relative; z-index: 10; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 116px; gap: 24px; }
.site-header__brand { display: inline-block; line-height: 0; flex: none; }
.site-header__brand img { width: 250px; height: auto; }
.site-header__menu { display: flex; align-items: center; flex: 1; justify-content: flex-end; gap: 40px; }
.site-nav ul { list-style: none; display: flex; gap: 40px; margin-right: 90px; }
.site-nav a { font-weight: 600; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.site-header__cta { min-width: 184px; min-height: 56px; }
.nav-toggle { display: none; }

/* Hero (home) */
.hero { background: var(--navy); color: var(--white); padding: 84px 0; }
.hero__inner { display: block; }
.hero h1 { font-size: clamp(3rem, 2rem + 3.2vw, 4.5rem); line-height: 1.15; margin: 0 0 56px; max-width: 14ch; }
.hero__intro { font-size: 1.25rem; margin: 0 0 52px; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__actions .btn { min-width: 198px; min-height: 58px; }
.hero .marker { margin-top: 16px; }

/* Plain navy panel: gives a split layout visual weight (decorative, no content) */
.panel-block { background: var(--navy); width: 100%; }
.panel-block--split { aspect-ratio: 560 / 420; }
.panel-block--story { aspect-ratio: 580 / 436; }
.media-img { display: block; width: 100%; height: auto; }

/* Generic sections */
.section { padding: 84px 0; }
.section--off { background: var(--off); }
.section__title { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); margin-bottom: 20px; }
.section__intro { font-size: 1.125rem; margin-bottom: 0; }
.section__head { margin-bottom: 60px; }

/* Page hero (inner pages) */
.page-hero { background: var(--off); padding: 92px 0 72px; }
.page-hero h1 { font-size: clamp(3rem, 2.2rem + 2.6vw, 4.25rem); margin: 0 0 24px; }
.page-hero p { font-size: 1.25rem; margin: 0; max-width: 34em; }
.page-hero--tall { padding-bottom: 130px; }
.section--roomy { padding: 110px 0; }

/* Service cards (home) */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--white); padding: 34px 35px 54px; }
.card__icon { display: block; margin-bottom: 26px; height: 48px; width: auto; }
.card h3 { font-size: 2rem; margin-bottom: 22px; }
.card p { margin: 0; max-width: 24em; }

/* Notice panel (our work, portfolio) */
.notice-panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; background: var(--off); border-left: 5px solid var(--teal); padding: 44px 48px; }
.notice-panel p { font-size: 1.125rem; line-height: 1.7; margin: 0; max-width: 40em; }
.notice-panel .btn { flex: none; min-width: 198px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; list-style: none; counter-reset: none; }
.step { border-top: 1px solid var(--navy); padding-top: 26px; position: relative; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 4px; background: var(--teal); }
.step__num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; color: var(--navy); margin-bottom: 30px; line-height: 1; }
.step h3 { font-size: 1.75rem; margin-bottom: 18px; }
.step p { max-width: 20em; margin: 0; }

/* Split sections (services, about) */
.split { display: grid; grid-template-columns: 1fr 560px; gap: 80px; align-items: start; }
.split--reverse { grid-template-columns: 560px 1fr; gap: 60px; }
.split--reverse .split__media { order: -1; }
.split--story { grid-template-columns: 1fr 580px; gap: 120px; }
.split h2 { font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem); margin-bottom: 36px; }
.split__text p { font-size: 1.0625rem; line-height: 1.75; }
.ticks { list-style: none; margin-top: 44px; display: grid; gap: 22px; }
.ticks li { position: relative; padding-left: 25px; font-size: 1.0625rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; background: var(--teal); }

/* Values (about) */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
.value { background: var(--white); padding: 38px 36px 54px; }
.value img { display: block; height: 50px; width: auto; margin-bottom: 52px; }
.value h3 { font-size: 2rem; margin-bottom: 24px; }
.value p { margin: 0; max-width: 17em; line-height: 1.7; }


/* CTA band + footer */
.site-footer { background: var(--navy); color: var(--white); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a.btn--primary { color: var(--navy); }
.site-footer a.btn--primary:hover { text-decoration: none; }
.cta { padding: 62px 0 110px; }
.cta__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.cta__title { font-size: clamp(2.25rem, 1.7rem + 1.6vw, 3rem); margin: 0 0 22px; color: var(--white); }
.cta p { font-size: 1.125rem; margin: 0; }
.cta .btn { margin-top: 32px; flex: none; }
.site-footer__main { display: grid; grid-template-columns: 606px 290px 1fr; padding: 50px 0 40px; border-top: 1px solid var(--teal); }
.site-footer__brand img { width: 302px; height: auto; }
.site-footer__heading { font-size: 1.125rem; margin: 6px 0 26px; color: var(--white); }
.site-footer__list { list-style: none; display: grid; gap: 14px; }
.site-footer__list li { line-height: 1.5; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 28px 76px 36px 0; border-top: 1px solid rgba(255, 255, 255, .85); font-size: .875rem; }
.site-footer__bottom p { margin: 0; }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 690px 1fr; gap: 80px; align-items: start; padding: 66px 0 56px; }
.contact-form h2 { font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3rem); margin-bottom: 18px; }
.contact-form__intro { margin-bottom: 52px; }
.contact-details { background: var(--off); padding: 38px 36px 50px; margin-top: 32px; }
.contact-details .marker { width: 34px; height: 4px; margin-bottom: 30px; }
.contact-details h2 { font-size: 2.25rem; margin-bottom: 36px; }
.contact-details p { margin: 0; font-size: 1.125rem; line-height: 1.6; }

/* Forms */
.field { margin-bottom: 22px; }
.field label, .field .label, .field legend { display: block; font-weight: 700; margin-bottom: 10px; padding: 0; }
.field .hint { display: block; font-size: .875rem; color: var(--muted); margin: -4px 0 10px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.input, .select, .textarea {
  display: block; width: 100%; min-height: 66px; padding: 16px 18px;
  background: var(--white); border: 1px solid var(--border); border-radius: 0;
  font-size: 1.0625rem; line-height: 1.4;
}
.input::placeholder, .textarea::placeholder { color: #6E7378; opacity: 1; }
.textarea { min-height: 200px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 54px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpolyline points='1,1 10,10 19,1' fill='none' stroke='%2314202A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 26px center; background-size: 18px 11px;
}
.select:invalid, .select.is-empty { color: #6E7378; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--navy); }
.field--error .input, .field--error .select, .field--error .textarea { border: 2px solid var(--navy); }
.error-text { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; font-size: .9375rem; margin-top: 8px; }
.error-text::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border: 2px solid var(--navy); border-radius: 50%; font-size: .75rem; font-weight: 700; line-height: 1; }

.check, .field label.check { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-weight: 400; margin: 0; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 0; border: 1px solid var(--navy); background: var(--white); border-radius: 0; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--white); }
.check input:checked::after { content: ""; width: 7px; height: 13px; border: solid var(--teal); border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.check input[type="radio"]:checked::after { width: 12px; height: 12px; border: 0; background: var(--navy); transform: none; }
.check input:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.check span { padding-top: 1px; }
.consent { margin: 32px 0 44px; }
.consent .check span { max-width: 30em; }

.honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Alerts */
.alert { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-left: 5px solid var(--teal); background: var(--white); margin-bottom: 32px; font-weight: 600; }
.alert--off { background: var(--off); }
.alert__icon { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--navy); border-radius: 50%; font-weight: 700; font-family: var(--font-body); }
.alert p { margin: 0; }
.alert p + p { margin-top: 6px; font-weight: 400; }
.alert--success .alert__icon { border-color: var(--teal); color: var(--navy); }
.alert ul { margin: 6px 0 0 1.2em; font-weight: 400; }

/* Prose (privacy) */
.prose { max-width: 760px; padding: 72px 0 84px; }
.prose h2 { font-size: 2rem; margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.375rem; margin: 32px 0 12px; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.7; }
.prose ul { padding-left: 1.3em; margin-bottom: 1em; }

/* Error page */
.error-page { padding: 96px 0 120px; }
.error-page h1 { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); }

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */
@media (max-width: 1200px) {
  .site-nav ul { margin-right: 20px; gap: 28px; }
  .split, .split--reverse { grid-template-columns: 1fr 1fr; gap: 48px; }
  .contact-layout { grid-template-columns: 1fr 380px; gap: 48px; }
  .site-footer__main { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .site-header__inner { flex-wrap: wrap; min-height: 0; padding: 20px 0 18px; gap: 0; }
  .site-header__brand img { width: 250px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 8px;
    width: 44px; height: 44px; padding: 6px 6px; margin-right: -6px;
    background: transparent; border: 0; cursor: pointer;
  }
  .nav-toggle__bar { display: block; width: 32px; height: 2px; background: var(--navy); }
  .site-header__menu { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 8px; }
  .site-header[data-collapsed] .site-header__menu { display: none; }
  .site-nav ul { margin: 0; justify-content: space-between; gap: 8px; }
  .site-nav a { font-size: .8125rem; padding: 6px 0; }
  .site-header__cta { width: 100%; min-height: 46px; }

  .hero { padding: 56px 0 86px; }
  .hero .marker { margin-top: 0; }
  .hero h1 { font-size: 3.25rem; margin-bottom: 28px; }
  .hero__intro { font-size: 1rem; margin-bottom: 50px; max-width: 17em; }
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero__actions .btn { min-width: 0; min-height: 50px; padding: 10px 12px; font-size: .9375rem; }

  .section { padding: 64px 0; }
  .section__title { font-size: 2.5rem; }
  .section__intro { font-size: 1rem; max-width: 15em; }
  .section__head { margin-bottom: 48px; }
  .cards-2, .steps, .values { grid-template-columns: 1fr; }
  .cards-2 { gap: 36px; }
  .card { padding: 24px 26px 60px; }
  .card h3 { font-size: 1.75rem; margin-bottom: 26px; }
  .card p { max-width: 13em; }
  .notice-panel { flex-direction: column; align-items: stretch; gap: 32px; padding: 32px 24px 36px; }
  .notice-panel p { font-size: 1rem; }
  .notice-panel .btn { width: 100%; min-width: 0; }
  .steps { gap: 46px; }
  .step h3 { font-size: 1.625rem; }

  .page-hero { padding: 56px 0 60px; }
  .page-hero h1 { font-size: 3.25rem; margin-bottom: 14px; }
  .page-hero p { font-size: 1rem; max-width: 16em; }

  .split, .split--reverse { grid-template-columns: 1fr; gap: 40px; }
  .split__media { display: none; }

  .contact-layout { grid-template-columns: 1fr; gap: 0; padding: 48px 0 0; }
  .contact-form h2 { font-size: 2.25rem; margin-bottom: 8px; }
  .contact-form__intro { font-size: .875rem; margin-bottom: 40px; }
  .contact-aside { background: var(--off); margin: 80px calc(-1 * var(--gutter)) 0; padding: 40px var(--gutter) 52px; }
  .contact-details { background: var(--white); margin: 0; padding: 32px 24px 44px; }
  .contact-details h2 { font-size: 1.875rem; margin-bottom: 22px; }
  .contact-details p { font-size: 1rem; }
  .input, .select, .textarea { min-height: 66px; }
  .textarea { min-height: 200px; }
  .btn--submit { width: 100%; min-height: 66px; }

  .cta { padding: 60px 0 76px; }
  .cta__inner { flex-direction: column; gap: 0; }
  .cta__title { font-size: 2.5rem; margin-bottom: 20px; }
  .cta p { max-width: 16em; font-size: 1rem; }
  .cta .btn { width: 100%; min-height: 52px; margin-top: 50px; }
  .site-footer__main { grid-template-columns: 1fr 1fr; padding: 42px 0 32px; row-gap: 0; }
  .site-footer__brand { grid-column: 1 / -1; margin-bottom: 38px; }
  .site-footer__brand img { width: 284px; }
  .site-footer__col { grid-column: 1 / -1; margin-bottom: 26px; }
  .site-footer__heading { margin: 0 0 18px; font-size: 1.25rem; }
  .site-footer__list { grid-template-columns: 1fr 1fr; gap: 14px 12px; font-size: 1rem; }
  .site-footer__bottom { padding: 32px 12px 44px 0; font-size: .8125rem; }
}

@media (min-width: 901px) {
  .site-header[data-collapsed] .site-header__menu { display: flex; }
}

@media (max-width: 360px) {
  .site-header__brand img { width: 220px; }
  .hero__actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Portfolio projects: three equal cards */
.project-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.project { display: flex; flex-direction: column; background: var(--white); border: 1px solid rgba(20, 32, 42, .15); }
.project__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--navy); }
.project__body { display: flex; flex-direction: column; flex: 1; padding: 28px 28px 32px; }
.project h2 { font-size: 1.5rem; margin-bottom: 12px; }
.project__status { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--off); color: var(--navy); font-weight: 600; font-size: .875rem; padding: 6px 12px; margin-bottom: 18px; }
.project__status::before { content: ""; width: 10px; height: 10px; background: var(--navy); opacity: .35; }
.project__status--live::before { background: var(--teal); opacity: 1; }
.project__text { font-size: 1rem; line-height: 1.65; margin-bottom: 18px; }
.project__tech, .project__url { font-size: .9375rem; line-height: 1.5; margin-bottom: 10px; }
.project__url { margin-bottom: 24px; }
.project .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1020px) { .project-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
