/* ECOM305 L.L.C. — site styles */

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --paper: #f4f6f9;
  --ink: #0f1f38;        /* deep navy — headings */
  --text: #37424f;       /* charcoal — body */
  --muted: #5f6b7a;
  --rule: #dfe4ea;
  --accent: #24507d;     /* steel blue — links, focus */
  --accent-dark: #1a3b5d;
  --ok: #2f6f5b;

  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  --radius-s: 4px;
  --radius-m: 8px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); letter-spacing: -0.032em; line-height: 1.05; font-weight: 680; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.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;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.brand-name { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-name small { font-weight: 500; font-size: 0.78rem; color: var(--muted); margin-left: 0.2rem; letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  color: var(--text); text-decoration: none; font-size: 0.97rem; font-weight: 500;
  padding: 0.35rem 0; border-bottom: 1.5px solid transparent;
}
.nav-list a:hover { color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: var(--radius-s);
  width: 2.75rem; height: 2.75rem; padding: 0; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  font: inherit; font-size: 0.98rem; font-weight: 600; line-height: 1;
  border-radius: var(--radius-s); border: 1.5px solid var(--ink);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--paper); color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }
.btn-small { min-height: 2.5rem; padding: 0.55rem 1rem; font-size: 0.92rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text); max-width: 36rem; line-height: 1.6; }

/* ---------- Hero ---------- */

.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 6.5rem); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero h1 { max-width: 13ch; margin-bottom: 1.5rem; }
.hero .lede { margin-bottom: 2.25rem; }

/* The desk board: a decorative illustration of routine admin work falling into order */
.board {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  box-shadow: 0 1px 0 rgba(15, 31, 56, 0.04), 0 24px 48px -28px rgba(15, 31, 56, 0.28);
  padding: 1.5rem 1.5rem 1.25rem;
}
.board-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); margin-bottom: 0.25rem; }
.board-title { font-weight: 650; color: var(--ink); font-size: 1rem; }
.board-sub { font-size: 0.85rem; color: var(--muted); }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-item {
  display: grid; grid-template-columns: 1.25rem 1fr auto; gap: 0.85rem; align-items: center;
  padding: 0.9rem 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; color: var(--ink);
}
.board-item:last-child { border-bottom: 0; }
.check {
  width: 1.25rem; height: 1.25rem; border: 1.5px solid #b9c2cd; border-radius: 3px;
  display: grid; place-items: center; background: var(--white);
}
.check svg { width: 0.8rem; height: 0.8rem; stroke: var(--white); opacity: 0; }
.status { font-size: 0.8rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.status-done { display: none; color: var(--ok); }

.board.is-done .check,
.board-item.is-done .check { background: var(--ink); border-color: var(--ink); }
.board-item.is-done .check svg { opacity: 1; }
.board-item.is-done .status-open { display: none; }
.board-item.is-done .status-done { display: inline; }
.board-item .check, .board-item .check svg { transition: background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease; }

/* ---------- About (home) ---------- */

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split .prose p { font-size: 1.1rem; }
.prose { max-width: 40rem; }
.split h2 { margin: 0; }

/* ---------- Services index ---------- */

.service-index { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.service-row {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1rem 3rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--rule);
}
.service-row h3 { margin: 0; font-size: 1.22rem; }
.service-row p { margin: 0; color: var(--text); max-width: 34rem; }
.service-index + .actions { margin-top: 2.5rem; }

/* Services page detail blocks */
.service-detail {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1rem 3rem;
  padding: 2.5rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 6rem;
}
.service-detail:first-child { border-top: 1.5px solid var(--ink); }
.service-detail h2 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); margin: 0; }
.service-detail .summary { font-size: 1.1rem; color: var(--ink); margin-bottom: 1rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.42em; width: 0.35rem; height: 0.65rem;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

/* ---------- Why ---------- */

.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 4rem; }
.point { border-left: 2px solid var(--ink); padding-left: 1.25rem; }
.point h3 { margin-bottom: 0.5rem; }
.point p { color: var(--text); }

/* ---------- Process ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.step { counter-increment: step; border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.step::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--ink);
  color: var(--ink); font-weight: 650; font-size: 0.9rem; margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.98rem; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--ink); color: #d4dbe5; padding: clamp(3.5rem, 7vw, 5rem) 0; }
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-inner p { max-width: 34rem; font-size: 1.1rem; }
.cta-band a:not(.btn) { color: var(--white); }

/* ---------- Page header ---------- */

.page-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 20ch; margin-bottom: 1.25rem; }

.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb ol { list-style: none; display: flex; gap: 0.5rem; margin: 0; padding: 0; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: #a3adb9; }
.breadcrumb a { color: var(--muted); }

/* ---------- Scope note ---------- */

.note {
  border: 1px solid var(--rule); background: var(--paper); border-radius: var(--radius-m);
  padding: 1.5rem 1.75rem; max-width: 48rem; font-size: 0.98rem;
}
.note h2, .note h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-details { font-style: normal; }
.contact-details dl { margin: 0; }
.contact-details dt { font-size: 0.88rem; color: var(--muted); font-weight: 500; margin-top: 1.5rem; }
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd { margin: 0.2rem 0 0; color: var(--ink); font-size: 1.08rem; }
.contact-details dd a { font-weight: 600; }

.form { border: 1px solid var(--rule); border-radius: var(--radius-m); padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.93rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid #c8d0da; border-radius: var(--radius-s); background: var(--white);
  padding: 0.75rem 0.85rem; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36, 80, 125, 0.18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a4332b; }
.field-error { font-size: 0.86rem; color: #a4332b; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.form-foot small { color: var(--muted); font-size: 0.88rem; max-width: 26rem; }
.form-status { margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: var(--radius-s); font-size: 0.97rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #eaf3ef; color: #1f4d3f; border: 1px solid #c4ddd2; }
.form-status.is-error { background: #fbeeed; color: #7a2620; border: 1px solid #efcfcc; }

/* ---------- Legal pages ---------- */

.legal { max-width: 46rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.75rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .updated { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--paper); border-top: 1px solid var(--rule); padding: 3.5rem 0 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand p { color: var(--muted); margin: 0.75rem 0 0; }
.footer-col h2 { font-size: 0.95rem; margin-bottom: 0.85rem; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.88rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .board { max-width: 32rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 4.5rem; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--white); border-bottom: 1px solid var(--rule);
    padding: 1rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--rule); font-weight: 650; }
  .nav .btn { width: 100%; }
}

@media (max-width: 680px) {
  .service-row, .service-detail { grid-template-columns: 1fr; gap: 0.5rem; }
  .points { grid-template-columns: 1fr; gap: 2rem; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .nav-toggle, .cta-band, .form { display: none; }
  body { color: #000; }
}

/* ---------- Illustrations ---------- */

.art { width: 100%; height: auto; display: block; }
.art text, .hero-art text { font-family: var(--font); }
.art-frame { width: 100%; }

.hero-art { position: relative; padding: 3.25rem 0 7rem 2.75rem; }
.art-backdrop {
  position: absolute; inset: 0 0 2.5rem 0; border-radius: 16px;
  background-color: var(--paper);
  background-image: radial-gradient(#c9d3de 1.3px, transparent 1.4px);
  background-size: 16px 16px;
}
.hero-art .board { position: relative; z-index: 2; margin-right: 2rem; }
.art-card {
  position: absolute; z-index: 3; border-radius: 10px;
  box-shadow: 0 1px 0 rgba(15, 31, 56, 0.05), 0 18px 36px -20px rgba(15, 31, 56, 0.35);
  border: 1px solid var(--rule); background: #fff; overflow: hidden;
}
.art-card svg { display: block; width: 100%; height: auto; }
.art-cal { width: 9.5rem; top: 0; right: 0; }
.art-doc { width: 10.5rem; left: 0; bottom: 0; }
.art-chip {
  position: absolute; z-index: 4; right: 1rem; bottom: 5.6rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: #fff; font-size: 0.85rem; font-weight: 600;
  padding: 0.55rem 0.95rem; border-radius: 999px;
  box-shadow: 0 14px 28px -14px rgba(15, 31, 56, 0.6);
  opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.art-chip.is-visible { opacity: 1; transform: none; }
.chip-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #7fd1ae; }

.split-art { align-items: center; }
.split-art .prose h2 { margin-bottom: 1.25rem; }

.page-head-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-head-art .art-frame { max-width: 32rem; justify-self: end; }

.service-name { display: flex; align-items: center; gap: 1rem; }
.service-name h3 a { color: inherit; text-decoration: none; }
.service-name h3 a:hover { color: var(--accent); }
.icon-tile {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 10px; background: var(--white); border: 1px solid var(--rule); color: var(--ink);
}
.section-paper .icon-tile { background: var(--white); }
.icon-tile .icon { width: 1.35rem; height: 1.35rem; }
.icon-tile-lg { width: 3.25rem; height: 3.25rem; background: var(--ink); border-color: var(--ink); color: #fff; }
.icon-tile-lg .icon { width: 1.5rem; height: 1.5rem; }
.service-row { align-items: center; }
.service-detail { align-items: start; }

@media (max-width: 960px) {
  .page-head-grid { grid-template-columns: 1fr; }
  .page-head-art .art-frame { justify-self: start; }
  .hero-art { max-width: 34rem; }
}
@media (max-width: 520px) {
  .hero-art { padding: 2.75rem 0 5.75rem 0.75rem; }
  .hero-art .board { margin-right: 1rem; }
  .art-cal { width: 7.5rem; }
  .art-doc { width: 8.5rem; }
  .art-chip { right: 0.5rem; bottom: 4.6rem; }
}
