/* DB-TIP site styles: black theme
   Visual direction from the client's references (asli.com: black page, heavy
   headings; boostlingo.com: very large clean headings, whitespace, number
   callouts, one bright call-to-action colour).

   Built for low-vision and screen-reader users first:
   - every text/background pair is above WCAG AAA (7:1); see ratios below
   - large base font in rem units, so browser zoom and text-size settings work
   - thick, always-visible focus outlines
   - layouts reflow to one column at high zoom with no sideways scrolling
   - respects reduced-motion and Windows high-contrast (forced-colors) */

:root {
  --bg: #000000;
  --surface: #141414;        /* cards, alternating sections */
  --surface-2: #1f1f1f;
  --text: #f5f5f2;           /* 19.2:1 on black, 16.9:1 on surface */
  --muted: #c9c9c4;          /* 12.6:1 on black, 11.1:1 on surface */
  --accent: #ffc23d;         /* gold: 13.0:1 on black, 11.4:1 on surface */
  --accent-text: #000000;    /* text on gold buttons: 13.0:1 */
  --border: #3a3a3a;
  --border-strong: #5c5c5c;
  --focus: #ffffff;
  --radius: 6px;
  --measure: 68ch;
  color-scheme: dark;
}

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

html {
  font-size: 112.5%; /* 18px base, still scales with user settings */
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.7rem); }
h3 { font-size: 1.35rem; letter-spacing: 0; }
p, ul, ol { margin: 0 0 1em; max-width: var(--measure); }
li + li { margin-top: 0.35em; }
strong { color: var(--text); }

a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 4px; }

:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 8px var(--accent);
  border-radius: 4px;
}

.container { width: min(100% - 2rem, 74rem); margin-inline: auto; }

/* Skip link: hidden until focused */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-text);
  padding: 0.75rem 1.25rem; font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: relative; }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; padding-block: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--text); }
.brand img { width: 60px; border-radius: 4px; background: #fff; }
.brand-text { display: flex; flex-direction: column; }
.brand-short { font-weight: 700; font-size: 1.4rem; letter-spacing: 0.02em; }
.brand-long { font-size: 0.8rem; color: var(--muted); max-width: 22rem; line-height: 1.35; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.35rem; max-width: none; }
.nav-list li + li { margin-top: 0; }
.nav-list a {
  display: inline-block; padding: 0.5rem 0.75rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 700; color: var(--text);
}
.nav-list a:hover { color: var(--accent); }
.nav-list a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav-list a.nav-cta { background: var(--accent); color: var(--accent-text); border: 2px solid var(--accent); margin-left: 0.5rem; text-decoration: none; }
.nav-list a.nav-cta:hover { background: transparent; color: var(--accent); }

/* Sections */
.section { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-intro { font-size: 1.2rem; color: var(--muted); }
.section-head { max-width: 50rem; margin-bottom: 2.5rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center p { margin-inline: auto; }

/* Hero */
.hero {
  padding-block: clamp(3.5rem, 2rem + 7vw, 8rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(255, 194, 61, 0.13), transparent 60%),
    var(--bg);
}
.hero h1 { max-width: 18ch; }
.hero .lead { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); max-width: 58ch; color: var(--muted); }
.hero .lead strong { color: var(--text); }
.eyebrow {
  font-weight: 700; color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.85rem; margin-bottom: 1rem;
}
.hero-split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .hero-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero-photo { border-radius: var(--radius); width: 100%; max-height: min(34rem, 60vh); object-fit: cover; object-position: center 15%; border: 1px solid var(--border-strong); }

/* Stats strip (Boostlingo-style number callouts) */
.stats { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.stats li { margin: 0; padding: 2rem 1.5rem; border-left: 1px solid var(--border); }
.stats li:first-child { border-left: 0; }
@media (max-width: 40rem) { .stats li { border-left: 0; border-top: 1px solid var(--border); } .stats li:first-child { border-top: 0; } }
.stat-number { display: block; font-size: clamp(2rem, 1.5rem + 1.5vw, 2.7rem); overflow-wrap: anywhere; font-weight: 700; color: var(--accent); line-height: 1.1; }
.stat-label { display: block; color: var(--muted); margin-top: 0.4rem; }

.split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 52rem) {
  .split { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4rem; }
  .split.reverse > :first-child { order: 2; }
  .split.reverse { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
.split img, .photo { border-radius: var(--radius); }

/* Buttons */
.button {
  display: inline-block; padding: 0.9rem 1.6rem; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-text); border: 2px solid var(--accent);
  font-weight: 700; text-decoration: none; font-size: 1.05rem;
}
.button:hover { background: transparent; color: var(--accent); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--text); }
.button.secondary:hover { background: var(--text); color: var(--bg); }
.button-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Cards */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); list-style: none; padding: 0; margin: 2.5rem 0 0; max-width: none; }
.card-grid > li + li { margin-top: 0; }
.card {
  background: var(--bg); border: 1px solid var(--border-strong); border-top: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.75rem; height: 100%;
}
.section-alt .card { background: var(--surface-2); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* Service rows */
.service { padding-block: 3rem; border-top: 1px solid var(--border); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service p { color: var(--muted); }

/* Team */
.team { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.person { display: grid; gap: 1.5rem; grid-template-columns: 1fr; border-top: 1px solid var(--border); padding-top: 2.5rem; }
@media (min-width: 52rem) { .person { grid-template-columns: 14rem 1fr; } }
.person img { width: 14rem; border-radius: var(--radius); }
.person .role { color: var(--accent); font-weight: 700; margin-bottom: 1rem; }
.person h3 { margin-bottom: 0.25rem; }
.person p { color: var(--muted); }
@media (min-width: 52rem) { .person.no-photo { grid-template-columns: 1fr; } }

/* Definition-style lists */
.def-list { max-width: var(--measure); }
.def-list dt { font-weight: 700; margin-top: 1.25rem; color: var(--text); }
.def-list dd { margin: 0.25rem 0 0; color: var(--muted); }

/* Testimonials */
.testimonial { margin: 0; padding: 2.25rem; border-left: 6px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.section-alt .testimonial { background: var(--bg); }
.testimonial blockquote { margin: 0 0 1.25rem; font-size: 1.2rem; }
.testimonial blockquote p { max-width: 65ch; }
.testimonial figcaption { font-weight: 700; }
.testimonial figcaption span { display: block; font-weight: 400; color: var(--muted); }

/* FAQ */
.faq details { border: 1px solid var(--border-strong); border-radius: var(--radius); margin-bottom: 1rem; background: var(--surface); max-width: 60rem; }
.faq summary { cursor: pointer; padding: 1.2rem 1.4rem; font-weight: 700; font-size: 1.15rem; list-style-position: outside; margin-left: 1rem; }
.faq summary::marker { color: var(--accent); }
.faq details[open] { border-color: var(--accent); }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .answer { padding: 1.2rem 1.4rem 0.4rem; color: var(--muted); }

/* Notice / callout */
.callout { border: 2px solid var(--accent); border-radius: var(--radius); padding: 1.5rem 1.75rem; max-width: 60rem; background: var(--surface); }
.callout > :last-child { margin-bottom: 0; }

/* Third-party form embed: kept on a light panel so the Knack form stays readable */
.embed { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 1.5rem; min-height: 12rem; background: #ffffff; color: #111111; }
.embed a { color: #0b4fa8; }

/* Footer */
.site-footer { background: var(--surface); color: var(--text); padding-block: 3.5rem 1.5rem; border-top: 4px solid var(--accent); }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.footer-name { font-weight: 700; font-size: 1.1rem; }
.footer-heading { font-size: 0.9rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; }
.footer-links { list-style: none; padding: 0; }
.copyright { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); }

.spaced { margin-top: 1.5rem; }

/* Keep tall phone photos from dominating the page; anchor crops near the top so faces stay in frame */
.photo { width: 100%; max-height: 28rem; object-fit: cover; object-position: center 15%; }
.service img.photo { max-height: 26rem; }

/* Motion and high-contrast modes */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .button, .nav-list a.nav-cta, .card, .testimonial, .faq details, .callout { border: 2px solid CanvasText; }
  :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
}
