/* ============ Tokens & reset ============ */
:root {
  --brand: #ea580c;
  --brand-strong: #c2410c;
  --brand-soft: #fff7ed;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #f8fafc;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 45px -25px rgba(15, 23, 42, 0.35);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 750;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ============ Layout helpers ============ */
.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.center {
  text-align: center;
  margin-top: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--ink-soft);
}

.section-lead {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.75rem;
}

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn--small {
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
}
.btn--primary {
  background: var(--brand-strong);
  color: var(--white);
}
.btn--primary:hover {
  background: #9a3412;
  color: var(--white);
}
.btn--outline {
  border-color: var(--brand-strong);
  color: var(--brand-strong);
  background: transparent;
}
.btn--outline:hover {
  background: var(--brand-soft);
}
.btn--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}
.btn--ghost:hover {
  border-color: var(--muted);
  color: var(--ink);
}
.btn--light {
  background: var(--white);
  color: var(--brand-strong);
  flex-shrink: 0;
}

/* ============ Header / nav ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand__text strong {
  font-size: 1rem;
  font-weight: 800;
}
.brand__text small {
  color: var(--muted);
  font-size: 0.7rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.nav__link {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav__link:hover {
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.nav__link.is-active {
  color: var(--brand-strong);
  background: var(--brand-soft);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ============ Page hero (inner pages) ============ */
.page-hero {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(160deg, var(--brand-soft), var(--white) 70%);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner {
  max-width: 48rem;
}
.page-hero h1 {
  margin-bottom: 0.7em;
}
.page-hero .lead {
  margin-bottom: 0;
}

/* ============ Home hero ============ */
.hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(4.5rem, 9vw, 7rem);
  background: radial-gradient(1000px 500px at 85% -10%, #ffedd5, transparent 60%), var(--white);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero__copy .badge {
  display: inline-block;
  margin-bottom: 1.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.hero__copy h1 {
  max-width: 13ch;
}
.hero__copy .lead {
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* CSS-only dashboard illustration */
.hero__art {
  position: relative;
  min-height: 340px;
}
.hero__panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-2deg);
}
.hero__panel-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero__panel-head .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}
.hero__panel-head .dot:first-child {
  background: var(--brand);
}
.hero__panel-title {
  margin-left: 0.6rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.hero__panel-body {
  padding: 1.3rem;
}
.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.mock-line {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--line);
}
.mock-line.w60 {
  width: 60%;
}
.mock-pill {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.65rem;
  font-weight: 700;
}
.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 130px;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
}
.mock-chart span {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(var(--brand), #fb923c);
}
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 1rem;
}
.mock-stats span {
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.hero__chip {
  position: absolute;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  font-weight: 700;
}
.hero__chip--a {
  top: -10px;
  right: -10px;
  color: #15803d;
}
.hero__chip--b {
  bottom: -10px;
  left: -20px;
  color: var(--brand-strong);
}

/* ============ Cards ============ */
.card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -28px rgba(15, 23, 42, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #fed7aa;
  box-shadow: var(--shadow);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.card__icon svg {
  width: 24px;
  height: 24px;
}
.card p {
  color: var(--muted);
  font-size: 0.94rem;
}
.service-card h3 {
  margin-bottom: 0.5rem;
}
.tick-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.tag {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.72rem;
  font-weight: 800;
}
.project-card__year {
  color: var(--muted);
  font-size: 0.8rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.tags span {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

/* ============ Values, steps, stats ============ */
.value,
.step {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.value__num,
.step__num {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.value p,
.step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat {
  padding: 1.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat strong {
  display: block;
  color: var(--brand-strong);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}
.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============ Story / mission ============ */
.story {
  max-width: 46rem;
}
.story p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.mission {
  margin-top: 2rem;
  padding: 2rem;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--brand-soft);
}
.mission p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ============ CTA band ============ */
.cta {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: var(--white);
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta h2 {
  margin-bottom: 0.4rem;
}
.cta p {
  margin-bottom: 0;
  color: #ffedd5;
}

/* ============ Contact ============ */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-details {
  display: grid;
  gap: 0.8rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.contact-item:hover {
  border-color: #fed7aa;
  text-decoration: none;
}
.contact-item__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 1.1rem;
}
.contact-item small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}
.contact-item strong {
  font-size: 0.95rem;
  word-break: break-word;
}
.contact-form-card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form-card > p {
  color: var(--muted);
  font-size: 0.9rem;
}
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-status {
  min-height: 1.4em;
  margin: 0.6rem 0 0;
  color: #15803d;
  font-size: 0.85rem;
}
.form-status.is-error {
  color: #b91c1c;
}

/* ============ Footer ============ */
#site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding-top: clamp(3rem, 6vw, 4rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer__about .brand {
  color: var(--white);
  margin-bottom: 1rem;
}
.footer__about p {
  max-width: 26rem;
  font-size: 0.9rem;
}
#site-footer h3 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer__links li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.footer__links a {
  color: #cbd5e1;
}
.footer__links a:hover {
  color: var(--white);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid #1e293b;
  font-size: 0.8rem;
}
.footer__bottom p {
  margin: 0;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero__inner,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .hero__art {
    max-width: 520px;
    margin-inline: auto;
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .header__cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open {
    display: flex;
  }
  .nav__link {
    padding: 0.75rem;
  }
  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (max-width: 560px) {
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .brand__text small {
    display: none;
  }
  .hero__chip--a {
    right: 0;
  }
  .hero__chip--b {
    left: 0;
  }
}

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