/* TrueFit Ceilings & Partitions
   Palette sampled from the original logo image: black, white and its greens. */

:root {
  --black: #000;
  --white: #fff;
  --lime: #71d84e;
  --emerald: #01c55c;
  --deep: #01ae53;
  --fit: #67d144;
  --muted: #b3b3b3;
  --line: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.05);
  --max: 1120px;
  --gutter: 20px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--lime);
  color: var(--black);
  padding: 10px 16px;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand .mark {
  width: 30px;
  height: 35px;
}

.wordmark {
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.32em;
  color: var(--white);
}

.wordmark .fit {
  color: var(--fit);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--white);
}

.site-nav .nav-phone {
  color: var(--black);
  background: var(--lime);
  padding: 9px 18px;
  font-weight: 600;
  border-radius: 4px;
}

.site-nav .nav-phone:hover {
  color: var(--black);
  background: var(--emerald);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  font: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--lime);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--emerald);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

.hero .lead {
  margin: 0 0 32px;
  max-width: 46ch;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-art {
  justify-self: end;
  width: min(100%, 380px);
}

.hero-art img {
  width: 100%;
  height: auto;
}

/* ---------- Sections ---------- */

.section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

.section-intro {
  margin: 0 0 40px;
  max-width: 56ch;
  color: var(--muted);
}

.section-label {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lime);
}

/* ---------- Services ---------- */

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 12px 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.service-list h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-list h3::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--lime);
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 82%);
}

.service-list p {
  margin: 0;
  color: var(--muted);
}

.services-note {
  margin: 28px 0 0;
}

.services-note a {
  color: var(--lime);
  font-weight: 600;
}

/* ---------- Simple services list ---------- */

.simple-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  border-top: 1px solid var(--line);
}

.simple-services li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
  font-weight: 500;
}

.simple-services li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--lime);
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 82%);
}

/* ---------- About and detailed services ---------- */

.hero .tagline {
  margin: 0 0 16px;
  max-width: 34ch;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--lime);
}

.about-copy {
  max-width: 64ch;
}

.about-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.simple-services.detailed li {
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 14px;
  row-gap: 2px;
  align-items: start;
  align-content: start;
  padding: 18px 0;
}

.simple-services.detailed li::before {
  margin-top: 0.45em;
}

.simple-services.detailed strong {
  grid-column: 2;
  font-weight: 600;
}

.simple-services.detailed span {
  grid-column: 2;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- Service groups ---------- */

.service-group + .service-group {
  margin-top: 48px;
}

.group-title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--lime);
}

/* ---------- Recent work ---------- */

.case-study {
  display: grid;
  gap: 32px;
}

.case-copy h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 600;
}

.case-copy p {
  margin: 0 0 24px;
  max-width: 62ch;
  color: var(--muted);
}

.case-copy h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lime);
}

.case-scope {
  margin: 0 0 24px;
  padding-left: 1.2em;
  color: var(--white);
}

.case-scope li {
  margin-bottom: 6px;
}

.case-scope li::marker {
  color: var(--lime);
}

.case-link {
  color: var(--lime);
  font-weight: 600;
}

.case-study figure {
  margin: 0;
}

.case-study img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: var(--surface);
}

.case-study figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 18px;
  border-top: 3px solid var(--lime);
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 8px;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--lime);
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-size: 1.08rem;
  font-weight: 600;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--lime);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 62ch;
}

.faq details a {
  color: var(--lime);
}

/* ---------- Contact ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.contact-card {
  display: block;
  text-decoration: none;
  padding: 36px 32px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.15s, background 0.15s;
}

.contact-card:hover {
  border-color: var(--lime);
  background: rgba(113, 216, 78, 0.08);
}

.contact-card .card-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lime);
}

.contact-card .card-main {
  display: block;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact-card .card-sub {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand .mark {
  width: 34px;
  height: 40px;
}

.footer-brand .wordmark {
  font-size: 1.05rem;
}

.footer-tag {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.footer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--black);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-phone {
    margin-top: 16px;
    padding: 14px 18px;
    text-align: center;
    border-bottom: 0;
  }

  .hero {
    padding: 44px 0 56px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-art {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .section {
    padding: 56px 0;
  }

  .service-list li {
    grid-template-columns: 1fr;
    padding: 22px 0;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .simple-services {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .contact-card {
    padding: 28px 22px;
  }
}

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .wordmark {
    font-size: 1.05rem;
    letter-spacing: 0.26em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
