/* Nashville Construction Solutions concept
   Design language: Bold Contrast (type, spacing, composition, motion)
   Palette: NCS brand blues extracted from their logo gradient */

:root {
  --off-white: #f4f6f9;
  --light-grey: #e7ebf1;
  --near-black: #070c14;
  --deep-dark: #040810;
  --mid-grey: #5c6672;
  --accent: #1078c0;
  --accent-bright: #00a0e0;
  --accent-deep: #283888;
  --accent-hover: #0d63a0;
  --accent-muted: rgba(16, 120, 192, 0.28);
  --text-light: rgba(255, 255, 255, 0.86);
  --text-light-muted: rgba(255, 255, 255, 0.6);
  --text-dark: #0a1420;
  --text-body: #3c4653;
  --font: 'Outfit', sans-serif;
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-height: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 300;
  background: var(--near-black);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(90%, 1200px); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent-bright); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent-bright); }

h2 {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-light);
  max-width: 20ch;
  text-transform: uppercase;
}

section { padding: clamp(2.5rem, 5vw, 4rem) 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.8rem; border-radius: 100px;
  font-family: var(--font); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.03em; text-decoration: none; white-space: nowrap;
  transition: transform 0.4s var(--ease-snap), background 0.3s var(--ease-out),
              color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.btn--lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn--solid { background: var(--accent); color: #ffffff; }
.btn--solid:hover { background: var(--accent-bright); color: var(--near-black); transform: translateY(-2px) scale(1.02); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.35); color: var(--text-light); }
.btn--ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); transform: translateY(-2px); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.nav.scrolled { background: rgba(4, 8, 16, 0.92); backdrop-filter: blur(12px); box-shadow: 0 10px 40px rgba(4, 8, 16, 0.5); }
.nav__inner {
  width: min(94%, 1320px); margin-inline: auto;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  font-size: 0.9rem; font-weight: 400; text-decoration: none;
  color: var(--text-light); position: relative; padding-block: 0.4rem;
  transition: color 0.3s var(--ease-out);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--accent-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-snap);
}
.nav__links a:hover { color: var(--accent-bright); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: inline-flex; }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 10px;
  z-index: 210; position: relative;
}
.nav__burger span {
  width: 24px; height: 2px; background: #ffffff; display: block;
  transition: transform 0.35s var(--ease-snap), opacity 0.25s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--deep-dark);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(5rem, 14vh, 8rem) 8vw 3rem;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.55s var(--ease-out), visibility 0s 0.55s;
}
.mobile-menu.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.55s var(--ease-out); }
.mobile-menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu__links a {
  font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.01em; text-decoration: none; color: var(--text-light);
  padding-block: 0.35rem;
  transition: color 0.3s var(--ease-out);
}
.mobile-menu__links a:hover { color: var(--accent-bright); }
.mobile-menu__foot {
  margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 2rem; width: 100%;
}
.mobile-menu__phone { font-size: 1.15rem; font-weight: 600; color: var(--accent-bright); text-decoration: none; padding-block: 0.4rem; }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(4, 8, 16, 0.25) 0%, rgba(4, 8, 16, 0.72) 55%, rgba(4, 8, 16, 0.95) 100%);
}
.hero__bg img { width: 100%; height: 115%; object-fit: cover; }
.hero__inner {
  position: relative; z-index: 2;
  width: min(94%, 1320px); margin-inline: auto;
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}
.hero__eyebrow {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent-bright); margin-bottom: 1.3rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.hero__eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent-bright); }
.hero__title {
  font-size: clamp(2.6rem, 8.5vw, 6.6rem);
  font-weight: 700; line-height: 0.98; letter-spacing: -0.025em;
  text-transform: uppercase; color: #ffffff;
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: inline-block; transform: translateY(110%); }
.grad {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub {
  margin-top: 1.5rem; max-width: 54ch;
  font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--text-light);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero__scroll {
  position: absolute; right: clamp(1.2rem, 4vw, 3rem); bottom: clamp(3rem, 8vh, 5.5rem); z-index: 2;
  width: 1px; height: 70px; background: rgba(255, 255, 255, 0.2); overflow: hidden;
}
.hero__scroll span {
  position: absolute; top: -40%; left: 0; width: 100%; height: 40%;
  background: var(--accent-bright);
  animation: scrollhint 2.2s var(--ease-out) infinite;
}
@keyframes scrollhint { 0% { top: -40%; } 100% { top: 110%; } }

/* Stats */
.stats { background: var(--accent); padding: 0; }
.stats__inner {
  width: min(94%, 1320px); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.stat {
  padding: clamp(1.8rem, 3.5vw, 2.8rem) clamp(1rem, 2vw, 2rem);
  text-align: center;
}
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.stat__num {
  display: block; font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700; line-height: 1; color: #ffffff; letter-spacing: -0.02em;
}
.stat__label {
  display: block; margin-top: 0.5rem;
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* Intro (light) */
.intro { background: var(--off-white); color: var(--text-body); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.intro h2 { color: var(--text-dark); }
.intro__grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.intro__copy > p { font-size: clamp(1.02rem, 1.4vw, 1.15rem); }
.intro__points { margin-top: 2.2rem; display: grid; gap: 1.6rem; }
.intro__point { border-left: 3px solid var(--accent); padding-left: 1.2rem; }
.intro__point h3 {
  font-size: 1.05rem; font-weight: 600; color: var(--text-dark);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.3rem;
}
.intro__point p { font-size: 0.98rem; }

/* Expertise index */
.expertise { background: var(--near-black); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.expertise__layout {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.svc-index { list-style: none; }
.svc-row { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.svc-row:first-child { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.svc-row a {
  display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.8rem);
  padding: clamp(0.9rem, 1.8vw, 1.25rem) 0.6rem;
  text-decoration: none;
  transition: background 0.3s var(--ease-out), padding-left 0.35s var(--ease-snap);
}
.svc-row__num {
  font-size: 0.8rem; font-weight: 600; color: var(--accent-bright);
  letter-spacing: 0.08em; min-width: 2ch;
}
.svc-row__name {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem); font-weight: 600;
  text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--text-light);
  transition: color 0.3s var(--ease-out);
}
.svc-row__thumb { display: none; }
.svc-row a:hover, .svc-row a:focus-visible { background: rgba(16, 120, 192, 0.12); padding-left: 1.2rem; }
.svc-row a:hover .svc-row__name, .svc-row a:focus-visible .svc-row__name { color: var(--accent-bright); }
.svc-preview { position: sticky; top: calc(var(--nav-height) + 1.5rem); }
.svc-preview__frame {
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.svc-preview__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.35s var(--ease-out), transform 0.6s var(--ease-out);
}
.svc-preview__hint {
  margin-top: 1rem; font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-light-muted);
}

/* Process (light) */
.process { background: var(--light-grey); color: var(--text-body); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.process h2 { color: var(--text-dark); }
.process__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem); margin-top: clamp(2rem, 4vw, 3rem);
}
.step {
  background: #ffffff; padding: 1.8rem 1.5rem; border-radius: 4px;
  border-top: 3px solid var(--accent);
  transition: transform 0.4s var(--ease-snap), box-shadow 0.4s var(--ease-out);
}
.step:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(10, 20, 32, 0.12); }
.step__num {
  font-size: 2rem; font-weight: 700; color: var(--accent-muted);
  display: block; line-height: 1; margin-bottom: 0.9rem;
  -webkit-text-stroke: 1px var(--accent);
  color: transparent;
}
.step h3 {
  font-size: 1.02rem; font-weight: 600; color: var(--text-dark);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem;
}
.step p { font-size: 0.94rem; }

/* Reviews (dark) */
.reviews { background: var(--deep-dark); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.reviews__rail {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(420px, 82vw);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
  overflow-x: auto; padding-bottom: 1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--accent) rgba(255, 255, 255, 0.08);
}
.reviews__rail::-webkit-scrollbar { height: 6px; }
.reviews__rail::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.08); }
.reviews__rail::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 100px; }
.review {
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; gap: 1.4rem;
}
.review blockquote { font-size: 0.98rem; color: var(--text-light); }
.review figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 0.15rem; }
.review figcaption strong { font-weight: 600; color: #ffffff; }
.review figcaption span {
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-bright);
}

/* About (light) */
.about { background: var(--off-white); color: var(--text-body); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.about h2 { color: var(--text-dark); }
.about__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.about__body { margin-top: 1.4rem; font-size: clamp(1rem, 1.3vw, 1.1rem); }
.about__values { display: grid; gap: 1.4rem; }
.value {
  background: #ffffff; border-radius: 4px; padding: 1.5rem 1.6rem;
  border-left: 3px solid var(--accent);
}
.value h3 {
  font-size: 0.95rem; font-weight: 600; color: var(--text-dark);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem;
}
.value p { font-size: 0.95rem; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 55%, var(--accent-bright) 130%);
  padding-block: clamp(4rem, 8vw, 6rem);
}
.cta__inner { text-align: center; }
.cta .eyebrow { color: rgba(255, 255, 255, 0.85); }
.cta .eyebrow::before { background: rgba(255, 255, 255, 0.85); }
.cta h2 { margin-inline: auto; color: #ffffff; }
.cta__sub { margin: 1.2rem auto 0; max-width: 52ch; color: rgba(255, 255, 255, 0.92); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.2rem; }
.cta .btn--solid { background: #ffffff; color: var(--accent); }
.cta .btn--solid:hover { background: var(--near-black); color: #ffffff; }
.cta .btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #ffffff; }
.cta .btn--ghost:hover { border-color: #ffffff; color: #ffffff; }
.cta__meta { margin-top: 2rem; font-size: 0.86rem; color: rgba(255, 255, 255, 0.85); }

/* Footer */
.footer { background: var(--deep-dark); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 0.8fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__logo { height: 26px; width: auto; margin-bottom: 1.1rem; }
.footer__brand p { font-size: 0.92rem; color: var(--text-light-muted); max-width: 34ch; }
.footer__col { display: flex; flex-direction: column; gap: 0.15rem; }
.footer__col h4 {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-bright); margin-bottom: 0.7rem;
}
.footer__col a, .footer__col span {
  font-size: 0.92rem; color: var(--text-light-muted); text-decoration: none;
  padding-block: 0.2rem; overflow-wrap: anywhere;
}
.footer__col a { transition: color 0.3s var(--ease-out); }
.footer__col a:hover { color: var(--accent-bright); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: space-between;
  padding-block: 1.4rem;
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.4);
}
.footer__bottom a { color: rgba(255, 255, 255, 0.55); text-decoration: none; padding-block: 0.65rem; }
.footer__bottom a:hover { color: var(--accent-bright); }

/* Reveal animations (GSAP adds .in; base state set in JS so no-JS users still see content) */

/* 404 page */
.error-section {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--near-black);
  padding-top: var(--nav-height);
}
.error__inner { text-align: left; }
.error__code {
  font-size: clamp(6rem, 22vw, 14rem); font-weight: 700; line-height: 0.9;
  letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 2px var(--accent);
}
.error__title {
  font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.02em;
  color: var(--text-light); margin-top: 1rem;
}
.error__body { margin-top: 1rem; max-width: 46ch; color: var(--text-light-muted); }
.error__inner .btn { margin-top: 2rem; }

/* Responsive */
@media (max-width: 1024px) {
  .nav__links { display: none; }
}
@media (max-width: 900px) {
  .expertise__layout { grid-template-columns: 1fr; }
  .svc-preview { display: none; }
  .svc-row__thumb {
    display: block; width: 64px; height: 64px; object-fit: cover;
    border-radius: 4px; margin-left: auto; flex-shrink: 0;
  }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .intro__grid, .about__grid { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.22); }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.22); }
}
@media (max-width: 768px) {
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero { height: auto; min-height: 100svh; padding-top: 6rem; }
  .hero__scroll { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__col a, .footer__col span { padding-block: 0.65rem; }
}
@media (max-width: 480px) {
  .hero { padding-top: 5rem; }
  .hero__ctas .btn, .cta__btns .btn { width: 100%; }
  .process__grid { grid-template-columns: 1fr; }
  .svc-row__thumb { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll span { animation: none; }
}
