/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f8;
  --bg-dark: #0a0a0a;
  --ink: #0a0a0a;
  --ink-2: #1f1f1f;
  --muted: #5b6168;
  --line: #e6e8ec;
  --line-dark: #1f2227;
  --accent: #00C853;
  --accent-bright: #00E676;
  --accent-ink: #0a0a0a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.06), 0 20px 60px rgba(0,0,0,.12);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); font-weight: 900; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.18rem; }
h4 { font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

p { margin: 0 0 1em; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); }

.accent { color: var(--accent); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-narrow { max-width: 820px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px;
  background: var(--accent); color: #000;
  padding: .5rem 1rem; border-radius: 6px;
  font-weight: 700; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1rem; }

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover {
  background: var(--accent-bright);
  color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 200, 83, .35);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: #fff;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 30px; height: 30px;
  fill: var(--accent);
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .02em;
  display: inline-flex;
  gap: .22em;
}
.logo-text-accent {
  color: var(--accent);
}

.nav-list {
  display: flex; align-items: center; gap: 1.75rem;
}
.nav-list li a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-list li a:hover { color: var(--accent); }
.nav-list li a.btn { color: var(--accent-ink); font-weight: 700; }

.nav-toggle {
  display: none;
  background: none; border: 0;
  width: 40px; height: 40px;
  padding: 0;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle-bar {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(ellipse at top right, #16221a 0%, #0a0a0a 55%);
  color: #fff;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(0,230,118,.18), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(0,200,83,.12), transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; }

.hero-copy {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 { color: #fff; margin-bottom: .5em; }
.hero .lead {
  color: rgba(255,255,255,.78);
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: .8rem;
  justify-content: center;
  margin: 1.5rem 0 1.75rem;
}

.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .92rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin: 0 auto;
}
.hero-trust strong {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
  margin-right: .15em;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-dark p { color: rgba(255,255,255,.75); }

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head-light h2 { color: #fff; }
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: .5em;
}
.section-head-light .section-sub { color: rgba(255,255,255,.7); }

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
}
.services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Services carousel — 4-card slider on desktop, responsive grid on mobile */
.services-carousel { position: relative; }
.services-track {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.services-nav { display: none; }

@media (min-width: 900px) {
  .services-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 1.25rem) / 4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: .5rem;
  }
  .services-track::-webkit-scrollbar { display: none; }
  .services-track > .card { scroll-snap-align: start; }

  .services-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: #0a0a0a;
    font-size: 1.6rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background .2s ease, opacity .2s ease, transform .2s ease;
    z-index: 3;
  }
  .services-nav:hover { background: var(--accent); }
  .services-nav[disabled] { opacity: .25; cursor: not-allowed; }
  .services-prev { left: -20px; }
  .services-next { right: -20px; }
}
.projects { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.why-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.testimonials { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- Service cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card h3 { margin: 1.2rem 1.5rem .5em; font-size: 1.15rem; }
.card p { margin: 0 1.5rem 1.5rem; font-size: .94rem; }

.card-visual {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}
.card-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.card-visual img.is-active {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-in;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.35);
  color: #0a0a0a;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 2;
}
.card-visual:hover .carousel-btn,
.card-visual:focus-within .carousel-btn { opacity: 1; }
.carousel-btn:hover,
.carousel-btn:active,
.carousel-btn:focus { background: rgba(255,255,255,.35); color: #0a0a0a; }
.carousel-prev { left: .5rem; }
.carousel-next { right: .5rem; }
@media (hover: none) {
  .carousel-btn { opacity: 1; }
}

/* ---------- Projects ---------- */
.project {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--g1, #222), var(--g2, #000));
  display: flex; align-items: center; justify-content: center;
}
.project-media svg {
  width: 55%;
  height: 55%;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.project-body {
  padding: 1.2rem 1.3rem 1.4rem;
}
.project-body h3 { font-size: 1.05rem; margin: .3em 0 .3em; }
.project-body p { font-size: .9rem; color: var(--muted); margin: 0; }
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: #eaf9ef;
  padding: .25em .65em;
  border-radius: 999px;
}

/* ---------- Process / Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
  padding: 0;
}
.steps li {
  position: relative;
  padding: 1.5rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  list-style: none;
}
.step-num {
  display: inline-block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -.04em;
  margin-bottom: .3em;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .3em; }
.steps p { font-size: .93rem; margin: 0; }

/* ---------- Why ---------- */
.why-card {
  padding: 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #111;
}
.why-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: .3em; }
.why-card p { font-size: .93rem; margin: 0; color: rgba(255,255,255,.7); }
.why-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(0,200,83,.15);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ---------- Testimonials ---------- */
.testimonial {
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -.15em; left: .5rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
  opacity: .3;
}
.testimonial blockquote {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.55;
  font-weight: 500;
}
.testimonial figcaption {
  font-size: .88rem;
  color: var(--ink);
  font-weight: 700;
}
.testimonial figcaption span {
  color: var(--muted);
  font-weight: 400;
}

/* ---------- Service Areas ---------- */
.areas-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.areas-grid h3 {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .8em;
}
.areas-grid ul li {
  padding: .3em 0;
  color: var(--ink-2);
  font-size: .95rem;
  border-bottom: 1px solid var(--line);
}
.areas-note {
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
}
.areas-note a { color: var(--accent); text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: .7rem;
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.faq details[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  list-style: none;
  padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after {
  content: '–';
}
.faq p {
  padding: 0 1.3rem 1.2rem;
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Quote form ---------- */
.quote-form {
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.quote-form label {
  display: flex; flex-direction: column; gap: .4em;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}
.quote-form label.full { grid-column: 1 / -1; }
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: #111;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, .25);
}
.quote-form textarea { resize: vertical; min-height: 120px; }
.quote-form button { justify-self: start; margin-top: .5rem; }

.form-note {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  margin: .5rem 0 0;
}
.form-note a { color: var(--accent); }
.form-status {
  font-size: .95rem;
  margin: .5rem 0 0;
  color: var(--accent);
  font-weight: 600;
}
.form-status.error { color: #ff6b6b; }
.form-status.success {
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid rgba(0, 200, 83, 0.35);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-bright);
  line-height: 1.55;
}
.form-status.success strong {
  color: #fff;
  font-weight: 700;
  display: block;
  margin-bottom: .25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #050505;
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-grid h4 { color: #fff; margin-bottom: 1em; }
.footer-grid ul li { padding: .3em 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-tag {
  margin-top: 1rem;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  max-width: 36ch;
}
.logo-footer .logo-text { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom p { margin: 0; color: inherit; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-list.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list li { width: 100%; }
  .nav-list li a {
    display: block;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-list li a.btn {
    display: flex;
    padding: .85rem 1.4rem;
    margin: .75rem 0 .25rem;
    justify-content: center;
    border-bottom: 0;
    width: fit-content;
    align-self: flex-start;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ---------- Mobile readability — bump all small text to 16px baseline ---------- */
@media (max-width: 760px) {
  /* Body paragraphs across all sections — 16px minimum */
  .steps p,
  .why-card p,
  .faq p,
  .form-note,
  .areas-grid ul li,
  .nav-list li a {
    font-size: 1rem;
  }

  /* Card text needs more room on mobile — bumped past baseline */
  .card p,
  .project-body p {
    font-size: 1.1rem;
    line-height: 1.55;
  }

  /* Secondary / caption text bumped to 16px */
  .hero-trust,
  .testimonial figcaption,
  .quote-form label,
  .site-footer,
  .footer-tag,
  .footer-grid ul li {
    font-size: 1rem;
  }
  .hero-trust strong { font-size: 1.15rem; }
  .faq summary { font-size: 1.05rem; }

  /* Small labels / tags — still smaller than body, but bumped for legibility */
  .eyebrow { font-size: .82rem; }
  .tag { font-size: .75rem; }

  /* Footer copyright — nudged up */
  .footer-bottom p { font-size: .88rem; }

  /* Heading sizes — slightly larger on mobile */
  .steps h3,
  .why-card h3 {
    font-size: 1.15rem;
  }

  /* Card headings need more presence on mobile */
  .card h3,
  .project-body h3 {
    font-size: 1.3rem;
  }

  /* Section subheads — ensure readable */
  .section-sub { font-size: 1.05rem; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 1rem; }
  .section-head { margin-bottom: 2rem; }
  .btn { padding: .85rem 1.2rem; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  padding: clamp(1rem, 4vw, 3rem);
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  user-select: none;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .95);
  color: #0a0a0a;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 400;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease;
  z-index: 1001;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #fff;
  transform: scale(1.05);
  outline: none;
}
