/* CELECS — site styles. Charcoal / white with an orange accent, carried over from the Webflow site. */

:root {
  --charcoal: #202122;
  --charcoal-2: #2a2c2e;
  --ink: #1b1d1f;
  --muted: #5d6166;
  --line: #e2e0dc;
  --paper: #f6f5f2;
  --white: #ffffff;
  --accent: #e8772e;
  --accent-dark: #c95f1b;
  --on-dark: #f2f2f2;
  --on-dark-muted: #b9bcc0;

  --radius: 10px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9em;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--ink); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 0.85em 1.4em; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #f08a47; }
.btn-ghost { border-color: rgba(242, 242, 242, .45); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-dark { background: var(--charcoal); color: var(--on-dark); }
.btn-dark:hover { background: var(--charcoal-2); }

/* ---------- Header ---------- */
.site-header {
  background: var(--charcoal);
  color: var(--on-dark);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; line-height: 1; }
.brand-tag { display: block; font-size: .72rem; color: var(--on-dark-muted); letter-spacing: .02em; margin-top: 3px; }

.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  color: var(--on-dark-muted);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); background: rgba(255, 255, 255, .07); }
.nav a.nav-cta { background: var(--accent); color: var(--ink); margin-left: 6px; }
.nav a.nav-cta:hover { background: #f08a47; }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255, 255, 255, .25);
  color: var(--on-dark); border-radius: 8px; padding: 8px 12px;
  font: 600 .9rem var(--font-head); cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--charcoal); border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; }
  .nav a { padding: 12px 14px; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { background: var(--charcoal); color: var(--on-dark); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px);
}
.hero h1 { color: var(--white); }
.hero .lead { color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-photo figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(32, 33, 34, .82); color: var(--on-dark);
  font-size: .8rem; padding: 6px 12px; border-radius: 999px;
}

.page-hero { background: var(--charcoal); color: var(--on-dark); }
.page-hero .wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 60px); }
.page-hero h1 { color: var(--white); margin-bottom: .35em; }
.page-hero .lead { color: var(--on-dark-muted); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 4 / 3; }
}

/* ---------- Facts strip ---------- */
.facts { background: var(--charcoal-2); color: var(--on-dark); }
.facts ul {
  list-style: none; margin: 0; padding: 18px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
  font-family: var(--font-head); font-size: .92rem; color: var(--on-dark-muted);
}
.facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--charcoal); color: var(--on-dark); }
.section-dark h2 { color: var(--white); }
.section-dark .lead { color: var(--on-dark-muted); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column;
}
.section-white .card { background: var(--paper); }
.card .num { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: .85rem; letter-spacing: .1em; margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; }
.card-link { margin-top: auto; padding-top: 18px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink); }
.card-link:hover { color: var(--accent-dark); }

/* Split: text beside photo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 9px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Project highlights */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.project { background: var(--charcoal-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.project img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.project-body { padding: 24px; }
.project .meta { font-size: .82rem; color: var(--accent); font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.project h3 { color: var(--white); }
.project p { color: var(--on-dark-muted); }
.project .ticks li { color: var(--on-dark); font-size: .95rem; }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 16px; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: .85rem; letter-spacing: .1em; margin-bottom: 8px; }
.steps strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .95rem; }

/* Service detail blocks */
.service { padding: clamp(44px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.service:last-child { border-bottom: 0; }
.service h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.sector { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; }
.sector strong { display: block; font-family: var(--font-head); margin-bottom: 4px; }
.sector span { color: var(--muted); font-size: .95rem; }

/* CTA band */
.cta { background: var(--accent); color: var(--ink); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 48px; padding-bottom: 48px; }
.cta h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta p { margin: 6px 0 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.contact-list .label { display: block; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list a, .contact-list .value { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent-dark); }
.contact-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

.prose { max-width: 68ch; }
.prose p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--on-dark-muted); font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-top h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 14px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-top a { text-decoration: none; }
.footer-top a:hover { color: var(--on-dark); }
.footer-brand .brand-name { color: var(--on-dark); }
.footer-brand p { max-width: 36ch; margin-top: 14px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; padding-bottom: 28px; font-size: .8rem; line-height: 1.7; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

/* 404 */
.not-found { min-height: 55vh; display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
