/* =========================================================================
   Accipio Technologies — styles.css
   Mobile-first. Tokens → reset → typography → primitives → layout.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --background: 30 33% 99%;
  --foreground: 217 33% 12%;
  --card: 0 0% 100%;
  --card-foreground: 217 33% 12%;
  --primary: 217 65% 18%;
  --primary-foreground: 30 33% 99%;
  --secondary: 30 12% 96%;
  --secondary-foreground: 217 33% 12%;
  --muted: 30 12% 96%;
  --muted-foreground: 217 15% 40%;
  --accent: 38 88% 50%;
  --accent-foreground: 217 33% 12%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 30 33% 99%;
  --border: 30 10% 90%;
  --input: 30 10% 90%;
  --ring: 217 65% 18%;
  --radius: 0.5rem;

  /* Layout tokens */
  --container-max: 72rem;       /* ~1152px */
  --container-pad: 1.25rem;     /* 20px on mobile */
  --section-pad-y: 4rem;        /* 64px on mobile */
  --header-height: 4rem;

  /* Typography scale (mobile) */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 2.75rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t-med: 250ms;

  /* Shadow */
  --shadow-sm: 0 1px 2px hsl(217 33% 12% / 0.04);
  --shadow-md: 0 4px 16px hsl(217 33% 12% / 0.06);
  --shadow-lg: 0 12px 40px hsl(217 33% 12% / 0.08);
}

/* Dark mode via system preference (fallback when no manual override) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: 217 39% 7%;
    --foreground: 30 20% 95%;
    --card: 217 33% 10%;
    --card-foreground: 30 20% 95%;
    --primary: 217 60% 65%;
    --primary-foreground: 217 39% 7%;
    --secondary: 217 25% 15%;
    --secondary-foreground: 30 20% 95%;
    --muted: 217 25% 15%;
    --muted-foreground: 217 15% 65%;
    --accent: 38 88% 60%;
    --accent-foreground: 217 39% 7%;
    --destructive: 0 62% 50%;
    --destructive-foreground: 30 20% 95%;
    --border: 217 25% 18%;
    --input: 217 25% 18%;
    --ring: 217 60% 65%;

    --shadow-sm: 0 1px 2px hsl(0 0% 0% / 0.3);
    --shadow-md: 0 4px 16px hsl(0 0% 0% / 0.35);
    --shadow-lg: 0 12px 40px hsl(0 0% 0% / 0.45);
  }
}

/* Manual dark override */
:root[data-theme="dark"] {
  --background: 217 39% 7%;
  --foreground: 30 20% 95%;
  --card: 217 33% 10%;
  --card-foreground: 30 20% 95%;
  --primary: 217 60% 65%;
  --primary-foreground: 217 39% 7%;
  --secondary: 217 25% 15%;
  --secondary-foreground: 30 20% 95%;
  --muted: 217 25% 15%;
  --muted-foreground: 217 15% 65%;
  --accent: 38 88% 60%;
  --accent-foreground: 217 39% 7%;
  --destructive: 0 62% 50%;
  --destructive-foreground: 30 20% 95%;
  --border: 217 25% 18%;
  --input: 217 25% 18%;
  --ring: 217 60% 65%;

  --shadow-sm: 0 1px 2px hsl(0 0% 0% / 0.3);
  --shadow-md: 0 4px 16px hsl(0 0% 0% / 0.35);
  --shadow-lg: 0 12px 40px hsl(0 0% 0% / 0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: 2px;
}
::selection { background: hsl(var(--accent) / 0.3); color: hsl(var(--foreground)); }

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

/* ---------- Base ---------- */
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: hsl(var(--foreground));
}
h1 { font-size: var(--fs-4xl); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { color: hsl(var(--muted-foreground)); }
strong { color: hsl(var(--foreground)); font-weight: 600; }

a.text-link {
  color: hsl(var(--foreground));
  text-decoration: underline;
  text-decoration-color: hsl(var(--accent));
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: color var(--t-fast) var(--ease-out);
}
a.text-link:hover { color: hsl(var(--accent)); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--section-pad-y); }
.section--alt { background: hsl(var(--secondary)); }
.section--tight { padding-block: 3rem; }

/* Sections that host a texture canvas need a positioning context */
.why,
.section--tight,
[aria-labelledby="testimonial-h"],
[aria-labelledby="contact-h"] {
  position: relative;
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--accent));
  margin-bottom: 0.75rem;
}

.lead {
  font-size: var(--fs-lg);
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
  border: 1px solid transparent;
  min-height: 44px; /* tap target */
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn--primary:hover { background: hsl(var(--primary) / 0.92); }
.btn--secondary {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.btn--secondary:hover {
  background: hsl(var(--secondary));
  border-color: hsl(var(--foreground) / 0.25);
}
.btn--ghost {
  background: transparent;
  color: hsl(var(--foreground));
}
.btn--ghost:hover { background: hsl(var(--secondary)); }
.btn--lg { padding: 0.95rem 1.5rem; font-size: var(--fs-base); }
.btn .icon { width: 1rem; height: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid hsl(var(--border));
}
/* Glassmorphism on a pseudo-element so backdrop-filter does NOT make
   .site-header the containing block for position:fixed children (the drawer). */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: hsl(var(--background) / 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}
.brand__logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.brand__name { display: inline; }
.brand__name--full { display: none; }

.nav {
  display: none; /* mobile: hidden, shown via .nav.is-open or md+ */
}
.nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  line-height: 1;
  color: hsl(var(--muted-foreground));
  transition: color var(--t-fast) var(--ease-out),
              background-color var(--t-fast) var(--ease-out);
}
.nav__link:hover { color: hsl(var(--foreground)); background: hsl(var(--secondary)); }
.nav__link[aria-current="page"] {
  color: hsl(var(--foreground));
  font-weight: 500;
}
.nav__link[aria-current="page"]::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 0.4rem;
  border-radius: 50%;
  background: hsl(var(--accent));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Book a call in header-actions: hidden on mobile (lives in the drawer instead) */
.nav__cta--header { display: none; }

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  border: 1px solid transparent;
  transition: background-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.icon-btn:hover { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
.icon-btn .icon { width: 18px; height: 18px; }

.theme-toggle .icon--sun { display: none; }
.theme-toggle .icon--moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon--sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon--moon { display: none; }
}

/* Mobile menu (off-canvas drawer) */
.menu-toggle { display: inline-flex; }
.nav.is-open {
  display: block;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: hsl(var(--background));
  padding: 1.5rem var(--container-pad);
  border-top: 1px solid hsl(var(--border));
  overflow-y: auto;
  animation: drawerIn 250ms var(--ease-out);
}
.nav.is-open .nav__list {
  flex-direction: column;
  gap: 0.25rem;
}
.nav.is-open .nav__link {
  padding: 1rem;
  font-size: var(--fs-lg);
  border-radius: var(--radius);
}
.nav.is-open .nav__cta {
  margin-top: 1.25rem;
  display: block;
}
@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
body.is-locked { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 4rem 4.5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, hsl(var(--accent) / 0.08) 0%, transparent 60%),
    radial-gradient(50% 60% at 0% 100%, hsl(var(--primary) / 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }
.hero__title {
  font-size: var(--fs-4xl);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: 22ch;
}
.hero__title {
  background: linear-gradient(120deg, hsl(var(--foreground)) 0%, hsl(var(--accent)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title .accent {
  color: inherit;
}
.hero__copy {
  font-size: var(--fs-lg);
  color: hsl(var(--muted-foreground));
  max-width: 38rem;
  margin-bottom: 2rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Social proof strip ---------- */
.proof {
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  padding-block: 2rem;
}
.proof__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}
.proof__item .num {
  display: block;
  font-size: var(--fs-3xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}
.proof__item .label {
  font-size: var(--fs-sm);
  color: hsl(var(--muted-foreground));
}

/* ---------- Section heading ---------- */
.section__head {
  margin-bottom: 2.5rem;
  max-width: 42rem;
}
.section__head h2 { margin-bottom: 0.75rem; }
.section__head--center {
  text-align: center;
  margin-inline: auto;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.5rem;
  transition: border-color var(--t-med) var(--ease-out),
              transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out);
}
.card:hover {
  border-color: hsl(var(--foreground) / 0.18);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
:root[data-theme="dark"] .card__icon { color: hsl(var(--accent)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card__icon { color: hsl(var(--accent)); }
}
.card__icon .icon { width: 20px; height: 20px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: var(--fs-sm); }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: hsl(var(--foreground));
}
.card__link:hover { color: hsl(var(--accent)); }
.card__link .icon {
  width: 14px; height: 14px;
  transition: transform var(--t-fast) var(--ease-out);
}
.card__link:hover .icon { transform: translateX(2px); }

/* Why cards (denser) */
.why .card { display: flex; gap: 1rem; align-items: flex-start; }
.why .card__icon { flex: 0 0 auto; margin: 0; }
.why .card__body h3 { font-size: var(--fs-base); margin-bottom: 0.25rem; }

/* Built-by-builders */
.builders__values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.value {
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
}
.value h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--accent));
  margin-bottom: 0.4rem;
}
.value p { font-size: var(--fs-sm); }

/* Selected work */
.work .card { padding: 0; overflow: hidden; }
.work__media {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, hsl(var(--primary) / 0.12), hsl(var(--accent) / 0.12)),
    hsl(var(--secondary));
  display: grid;
  place-items: center;
  color: hsl(var(--muted-foreground));
  font-size: var(--fs-sm);
  border-bottom: 1px solid hsl(var(--border));
}
.work__body { padding: 1.5rem; }
.work__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--accent));
  margin-bottom: 0.5rem;
}
.work dl {
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1rem;
  row-gap: 0.5rem;
  font-size: var(--fs-sm);
}
.work dt {
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}
.work dd { margin: 0; color: hsl(var(--foreground)); }
.work dd .outcome {
  color: hsl(var(--accent));
  font-weight: 600;
}
.illustrative-flag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.5rem;
  font-size: var(--fs-xs);
  background: hsl(var(--accent) / 0.12);
  color: hsl(var(--accent-foreground));
  border: 1px dashed hsl(var(--accent));
  border-radius: 4px;
}
:root[data-theme="dark"] .illustrative-flag { color: hsl(var(--accent)); background: hsl(var(--accent) / 0.08); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .illustrative-flag { color: hsl(var(--accent)); background: hsl(var(--accent) / 0.08); }
}

/* Testimonial */
.testimonial {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}
.testimonial blockquote {
  font-size: var(--fs-2xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}
.testimonial blockquote::before {
  content: '"';
  display: block;
  font-size: 3rem;
  color: hsl(var(--accent));
  line-height: 1;
  margin-bottom: 0.5rem;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-size: var(--fs-sm);
  color: hsl(var(--muted-foreground));
}
.testimonial__placeholder {
  margin-top: 1.5rem;
  font-size: var(--fs-xs);
  color: hsl(var(--muted-foreground));
}

/* CTA banner */
.cta-banner {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: calc(var(--radius) * 2);
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 100% 0%, hsl(var(--accent) / 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner__inner { position: relative; }
.cta-banner h2 {
  color: hsl(var(--primary-foreground));
  margin-bottom: 0.75rem;
  font-size: var(--fs-3xl);
}
.cta-banner p {
  color: hsl(var(--primary-foreground) / 0.85);
  max-width: 38rem;
  margin: 0 auto 1.75rem;
}
.cta-banner .btn--primary {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.cta-banner .btn--primary:hover { background: hsl(var(--accent) / 0.9); }

/* ---------- Services page ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-block: 2.5rem;
  border-bottom: 1px solid hsl(var(--border));
}
.service-block:last-child { border-bottom: 0; }
.service-block__label {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-block__num {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  font-weight: 600;
  color: hsl(var(--accent));
  text-transform: uppercase;
}
.service-block__label p {
  font-size: var(--fs-base);
  color: hsl(var(--muted-foreground));
  margin: 0;
}
.service-block__main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-block__main h2 {
  font-size: var(--fs-2xl);
  margin: 0;
}
.service-block__main p {
  font-size: var(--fs-base);
  color: hsl(var(--muted-foreground));
  margin: 0;
}
.service-block .best-for {
  padding: 1.1rem 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  font-size: var(--fs-sm);
  color: hsl(var(--muted-foreground));
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  cursor: default;
}
.service-block .best-for:hover {
  border-color: hsl(var(--accent) / 0.55);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px hsl(var(--primary) / 0.10);
}
.service-block .best-for strong {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Industries */
.industry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.industry {
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
}
.industry h3 {
  font-size: var(--fs-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.industry h3 .icon { width: 16px; height: 16px; color: hsl(var(--accent)); }
.industry p { font-size: var(--fs-sm); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.contact-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
.contact-details .item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.contact-details .item .icon {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  color: hsl(var(--accent));
  margin-top: 2px;
}
.contact-details dt {
  font-size: var(--fs-sm);
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.15rem;
}
.contact-details dd {
  margin: 0;
  font-size: var(--fs-base);
  color: hsl(var(--foreground));
  font-weight: 500;
}
.contact-details a { color: hsl(var(--foreground)); }
.contact-details a:hover { color: hsl(var(--accent)); }

.trust-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: hsl(var(--secondary));
  border-radius: var(--radius);
}
.trust-list .item {
  display: flex;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: hsl(var(--foreground));
  align-items: flex-start;
}
.trust-list .item .icon {
  width: 16px; height: 16px;
  color: hsl(var(--accent));
  flex: 0 0 auto;
  margin-top: 3px;
}

/* Form */
.form {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.75rem;
  display: grid;
  gap: 1.25rem;
}
.form__row {
  display: grid;
  gap: 0.4rem;
}
.form label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: hsl(var(--foreground));
}
.form label .req { color: hsl(var(--destructive)); }
.form label .opt {
  font-weight: 400;
  color: hsl(var(--muted-foreground));
  margin-left: 0.25rem;
}
.form input,
.form select,
.form textarea {
  appearance: none;
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  font-size: var(--fs-base);
  transition: border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
  min-height: 44px;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:hover,
.form select:hover,
.form textarea:hover { border-color: hsl(var(--foreground) / 0.25); }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.18);
}
.form input[aria-invalid="true"],
.form select[aria-invalid="true"],
.form textarea[aria-invalid="true"] {
  border-color: hsl(var(--destructive));
}
.form .field-error {
  font-size: var(--fs-xs);
  color: hsl(var(--destructive));
  min-height: 1em;
}
.form__submit {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.form__status {
  font-size: var(--fs-sm);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  display: none;
}
.form__status.is-success {
  display: block;
  background: hsl(150 50% 95%);
  color: hsl(150 60% 22%);
  border: 1px solid hsl(150 40% 80%);
}
.form__status.is-error {
  display: block;
  background: hsl(0 80% 96%);
  color: hsl(var(--destructive));
  border: 1px solid hsl(0 60% 85%);
}
:root[data-theme="dark"] .form__status.is-success {
  background: hsl(150 40% 12%); color: hsl(150 60% 78%); border-color: hsl(150 40% 22%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form__status.is-success {
    background: hsl(150 40% 12%); color: hsl(150 60% 78%); border-color: hsl(150 40% 22%);
  }
  :root:not([data-theme="light"]) .form__status.is-error {
    background: hsl(0 50% 14%); color: hsl(0 80% 80%); border-color: hsl(0 40% 28%);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 2rem;
  padding-block: 3rem 2rem;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.site-footer h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a {
  color: hsl(var(--foreground));
  font-size: var(--fs-sm);
}
.site-footer a:hover { color: hsl(var(--accent)); }
.site-footer__about p {
  font-size: var(--fs-sm);
  margin-top: 0.75rem;
  max-width: 28rem;
}
.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: hsl(var(--muted-foreground));
}

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding-block: 6rem;
}
.notfound .code {
  font-size: var(--fs-5xl);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: hsl(var(--accent));
}
.notfound h1 { margin-block: 0.5rem 0.75rem; }
.notfound p { max-width: 36rem; margin-inline: auto; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* =========================================================================
   Animations
   ========================================================================= */

/* Hero entrance — CSS-only, no JS required.
   `both` fill-mode holds the from-state before each delay fires. */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__inner > * {
  animation: heroFadeUp 0.7s var(--ease-out) both;
}
.hero__inner > *:nth-child(2) { animation-delay: 80ms; }
.hero__inner > *:nth-child(3) { animation-delay: 160ms; }
.hero__inner > *:nth-child(4) { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .hero__inner > * { animation: none; }
}

/* Scroll fade-up — class added by JS via IntersectionObserver.
   Because the class is applied by JS, elements are fully visible
   when JS is disabled (progressive enhancement). */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  will-change: opacity, transform;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}
/* Safety net in case the JS check is missed */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =========================================================================
   Breakpoints (mobile-first)
   ========================================================================= */

/* Small tablets */
@media (min-width: 640px) {
  :root {
    --container-pad: 1.5rem;
    --section-pad-y: 5rem;
    --fs-3xl: 2rem;
    --fs-4xl: 2.75rem;
    --fs-5xl: 3.5rem;
  }
  .hero { padding-block: 5rem 5.5rem; }
  .hero__title { font-size: var(--fs-4xl); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .proof__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .builders__values { grid-template-columns: repeat(3, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .form { padding: 2rem; }
  .form__row--split { grid-template-columns: 1fr 1fr; gap: 1rem; display: grid; }
}

/* Tablets / small laptops */
@media (min-width: 768px) {
  :root {
    --section-pad-y: 6rem;
    --fs-4xl: 3rem;
    --fs-5xl: 4rem;
  }
  .brand__name--full { display: inline; }
  .brand__name { display: none; }
  .nav { display: block; }
  .menu-toggle { display: none; }
  .nav.is-open {
    position: static;
    background: transparent;
    padding: 0;
    border: 0;
    overflow: visible;
    animation: none;
  }
  .nav.is-open .nav__list { flex-direction: row; gap: 0.25rem; }
  .nav.is-open .nav__link { padding: 0.5rem 0.85rem; font-size: var(--fs-sm); }
  .nav.is-open .nav__cta { margin: 0; display: inline-flex; }
  /* On desktop, hide the CTA inside the nav list (shown in header-actions instead) */
  .nav__list .nav__cta { display: none; }
  /* Show the header-actions CTA on desktop */
  .nav__cta--header { display: inline-flex; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.industry-grid { grid-template-columns: repeat(3, 1fr); }

  .service-block {
    grid-template-columns: 14rem 1fr minmax(200px, 260px);
    align-items: start;
    gap: 2.5rem;
    padding-block: 3.5rem;
  }

  .contact-grid { grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; }

  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }

  .cta-banner { padding: 4rem 2rem; }
  .cta-banner h2 { font-size: var(--fs-4xl); }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --fs-4xl: 3.5rem;
    --fs-5xl: 4.5rem;
  }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .hero__title { max-width: 18ch; }
  .hero__copy { font-size: var(--fs-xl); }
}
