/* ==========================================================================
   Turbo Construction & Demolition — Styles
   Mobile-first, contractor-professional palette
   ========================================================================== */

:root {
  --navy: #1a2332;
  --navy-light: #243044;
  --charcoal: #2d3748;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f4;
  --gray-200: #dde1e8;
  --gray-400: #9aa3b2;
  --gray-600: #5c6578;
  --gray-800: #3a4252;
  --accent: #e8a020;
  --accent-hover: #cf8e15;
  --accent-dark: #b87a10;

  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 4px 24px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 35, 50, 0.14);
  --header-h: 72px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

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

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--navy);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-full {
  width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(26, 35, 50, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--white);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: var(--radius);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 0.8125rem;
}

.logo-text strong {
  font-size: 0.9375rem;
  font-weight: 700;
}

.logo-text span {
  color: var(--gray-400);
  font-size: 0.75rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 1rem 1.25rem 1.5rem;
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--gray-200);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.site-nav .nav-cta {
  margin-top: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--accent);
  color: var(--navy);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  border-bottom: none;
}

.site-nav .nav-cta:hover {
  background: var(--accent-hover);
  color: var(--navy);
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 35, 50, 0.92) 0%, rgba(26, 35, 50, 0.78) 50%, rgba(26, 35, 50, 0.88) 100%),
    url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1600&q=80&auto=format&fit=crop") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.375rem 0.875rem;
  background: rgba(232, 160, 32, 0.15);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid rgba(232, 160, 32, 0.3);
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--gray-200);
  margin-bottom: 2rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Trust Bar */
.trust-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.trust-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent-dark);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-dark {
  background: var(--navy);
  color: var(--gray-200);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.0625rem;
}

.section-header-light h2 {
  color: var(--white);
}

.section-header-light p {
  color: var(--gray-400);
}

.section-header a {
  color: var(--accent);
  font-weight: 600;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.04);
}

.service-body {
  padding: 1.5rem;
}

.service-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-body p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.service-link:hover {
  color: var(--accent);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.about-list {
  margin: 1.25rem 0 1.75rem;
}

.about-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
  font-weight: 500;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

/* Gallery */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: default;
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-item.hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 0.875rem;
  background: linear-gradient(transparent, rgba(26, 35, 50, 0.85));
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
}

.gallery-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.gallery-note code {
  font-size: 0.75rem;
  background: var(--gray-100);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}

/* Why Choose */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.why-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.why-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.why-item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.why-item p {
  font-size: 0.9375rem;
  color: var(--gray-400);
}

/* Areas */
.areas-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.areas-content > p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.areas-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.areas-list li {
  padding: 0.375rem 0.875rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

.section-alt .areas-list li {
  background: var(--white);
}

.areas-more {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.areas-more a {
  font-weight: 600;
}

/* Form */
.estimate-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form-group label span {
  color: var(--accent-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.15);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.form-status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 1.5em;
}

.form-status.success {
  color: #2d6a4f;
}

.form-status.error {
  color: #c0392b;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--gray-400);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 360px;
}

.logo-footer .logo-text span {
  color: var(--gray-400);
}

.footer-links h3,
.footer-contact h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a,
.footer-contact a {
  color: var(--gray-400);
  font-size: 0.9375rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.footer-area {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  text-align: center;
  color: var(--gray-600);
}

/* ==========================================================================
   Responsive — tablet and up
   ========================================================================== */

@media (min-width: 540px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    padding: 0;
    border: none;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    border-bottom: none;
    border-radius: var(--radius);
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .site-nav .nav-cta {
    margin-top: 0;
    margin-left: 0.5rem;
    padding: 0.625rem 1.125rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 5rem 0;
  }
}
