/* AiBriQ — lightweight landing page
   Palette & type mirror the original Squarespace (Bedford) theme:
   futura-pt -> Jost, europa -> Nunito Sans (free Google Fonts look-alikes). */

:root {
  --orange: #f76b05;
  --orange-dark: #d85a00;
  --ink: #1f1f1f;
  --ink-soft: #4a4542;
  --muted: #8a8380;
  --brown: #201a16;
  --brown-2: #2b2420;
  --bg: #ffffff;
  --bg-alt: #f6f4f2;
  --line: #e6e1dd;
  --radius: 4px;
  --max: 1180px;
  --font-head: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .3px;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { font-weight: 700; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 300; line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.mt { margin-top: 48px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: 0;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--orange); border-color: var(--orange); }
.btn-light { background: transparent; border-color: #fff; color: #fff; }
.btn-light:hover, .btn-light:focus-visible { background: var(--orange); border-color: var(--orange); }
.btn-outline { background: transparent; border-color: currentColor; color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 11px; letter-spacing: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brown);
  color: #fff;
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) {
  font-family: var(--font-head);
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; color: #fff; opacity: .85;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.site-nav a:not(.btn):hover, .site-nav a.active { opacity: 1; border-bottom-color: var(--orange); }
.site-nav .btn-outline:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--brown); }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(1) sepia(.25) brightness(.6);
  transform: scale(1.05);
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32,26,22,.35), rgba(32,26,22,.55)); }
.hero-content { position: relative; z-index: 1; text-align: center; padding-top: 80px; padding-bottom: 80px; }
.hero-title { color: #fff; font-size: clamp(42px, 7.5vw, 92px); font-weight: 300; line-height: 1.08; margin-bottom: .45em; }
.hero-sub {
  font-family: var(--font-head); font-style: italic; font-weight: 300;
  font-size: clamp(15px, 2.2vw, 24px); letter-spacing: .25em; text-transform: uppercase;
  color: rgba(255,255,255,.75); max-width: 860px; margin: 0 auto 2.2em;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--brown); color: #fff; }
.section-dark h2, .section-dark .section-title, .section-dark .lead-statement { color: #fff; }
.section-dark .large { color: rgba(255,255,255,.82); }
.eyebrow {
  font-family: var(--font-head); font-size: 13px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase; color: var(--orange); margin-bottom: 14px;
}
.section-title { font-size: clamp(30px, 4vw, 44px); }
.section-sub { font-family: var(--font-head); font-size: clamp(19px, 2.2vw, 26px); color: var(--ink-soft); margin-bottom: 1.6em; line-height: 1.35; }
.large { font-size: 18px; line-height: 1.7; }
.lead-statement { font-family: var(--font-head); font-weight: 300; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.35; max-width: 980px; margin: 0 auto 72px; text-align: center; }
.lead-statement.light { margin-bottom: 28px; }
#mission .lead-statement { margin-bottom: 0; }
.prose p { font-size: 17px; }
.caps { font-size: 16px; font-weight: 400; letter-spacing: 4px; text-transform: uppercase; }
.callout { font-family: var(--font-head); font-size: 22px; color: var(--orange); margin-top: 1.2em; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 28px; }

.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 28px; background: var(--bg-alt); }
.card h2 { font-size: 30px; }
.card h3 { margin-bottom: .7em; }
.card p { color: var(--ink-soft); }
.programs .card { background: #fff; padding: 0 0 28px; border: 1px solid var(--line); }
.programs .card img { margin-bottom: 24px; object-fit: contain; background: #fff; padding: 12px; }
.programs .card h3, .programs .card ul { padding: 0 26px; }
.programs .card h3 { font-size: 22px; }
.card ul, .tile ul { margin: 0; padding-left: 0; list-style: none; }
.card li, .tile li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--ink-soft); }
.card li::before, .tile li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 2px; background: var(--orange); }
.programs .card li { margin-left: 0; }

.deliver { margin-top: 56px; }
.tile { background: #fff; padding: 34px 30px; border-top: 3px solid var(--orange); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.tile h3 { font-size: 22px; font-weight: 400; }
.values .tile p { color: var(--ink-soft); margin: 0; }
.values { margin-top: 40px; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split-media.square img { aspect-ratio: 1; }
.split-media.tall img { aspect-ratio: auto; max-height: 760px; object-fit: contain; margin: 0 auto; }
.hybrid { margin-top: 56px; align-items: start; }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 14px; font-size: 17px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 8px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

.features { margin: 0; }
.features div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.features div:last-child { border-bottom: 0; }
.features dt { font-family: var(--font-head); font-size: 20px; font-weight: 400; margin-bottom: 4px; }
.features dd { margin: 0; color: var(--ink-soft); }

/* ---------- Accordion ---------- */
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:first-child { border-top: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--font-head); font-size: 22px; font-weight: 400;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--orange); font-weight: 300; transition: transform .2s; }
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion details > *:not(summary) { color: var(--ink-soft); }
.accordion details ul { padding-left: 20px; }
.accordion details li { margin-bottom: 8px; }
.accordion details[open] { padding-bottom: 14px; }

/* ---------- Contact ---------- */
.contact { align-items: start; }
address { font-style: normal; font-size: 17px; margin-bottom: 1em; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 8px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid transparent; }
.contact-list a:hover { border-bottom-color: var(--orange); }
.contact-form { background: var(--bg-alt); padding: 36px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: 14px; font-weight: 400; margin-bottom: 18px; }
.contact-form .req { color: var(--muted); font-size: 12px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,107,5,.15); }
.contact-form .invalid { border-color: #c0392b; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 14px 0 0; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: #2e7d32; }
.form-status.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: #fff; padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 36px; width: auto; margin-bottom: 14px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: rgba(255,255,255,.6); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-nav { gap: 22px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; justify-content: flex-start; gap: 6px; padding: 32px 24px;
    background: var(--brown); transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav a:not(.btn) { font-size: 18px; padding: 14px 0; }
  .site-nav .btn { margin-top: 18px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse .split-media { order: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .lead-statement { margin-bottom: 48px; }
  .brand img { height: 32px; }
  .contact-form { padding: 22px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-sub { letter-spacing: .15em; }
}
