/* ==========================================================================
   Insight Contracting — Site Stylesheet
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --black-soft: #131313;
  --charcoal: #1c1c1e;
  --silver: #c7cbd1;
  --silver-light: #eef0f2;
  --steel-blue: #2b4a6b;
  --sky-blue: #4a90c4;
  --orange: #e8791a;
  --orange-light: #ff9d3d;
  --text-muted: #9aa0a8;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--black);
  color: var(--silver-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(10, 10, 10, 0.92));
  border-bottom: 1px solid rgba(232, 121, 26, 0.25);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

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

.brand img {
  height: 72px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--silver-light);
  text-transform: uppercase;
}

.brand-text .tagline {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--orange-light);
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--silver-light);
  padding: 8px 2px;
  position: relative;
  transition: color var(--transition);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--orange-light);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  white-space: nowrap;
}

.header-phone .icon {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--silver);
  border-radius: 4px;
  color: var(--silver-light);
  font-size: 1.4rem;
  padding: 4px 10px;
  cursor: pointer;
}

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--black);
  box-shadow: 0 6px 20px rgba(232, 121, 26, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(232, 121, 26, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--silver-light);
  border-color: var(--silver);
}

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

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

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 121, 26, 0.18), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #111214 55%, #0a0a0a 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.78), rgba(10, 10, 10, 0.85)),
    repeating-linear-gradient(115deg, rgba(74, 144, 196, 0.06) 0 2px, transparent 2px 90px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 24px;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--orange-light);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 18px;
  border: 1px solid rgba(232, 121, 26, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.hero h1 span {
  color: var(--orange-light);
}

.hero p {
  font-size: 1.15rem;
  color: var(--silver);
  max-width: 560px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------- Trust bar ---------------------------------- */

.trust-bar {
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
}

.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--silver-light);
  font-size: 0.95rem;
}

.trust-item .icon {
  color: var(--orange);
  font-size: 1.2rem;
}

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

section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  color: var(--orange-light);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-alt {
  background: var(--black-soft);
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: linear-gradient(160deg, var(--charcoal), #17181a);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 121, 26, 0.4);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  color: var(--black);
}

.service-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.service-card ul li {
  color: var(--silver);
  padding: 5px 0 5px 22px;
  position: relative;
  font-size: 0.95rem;
}

.service-card ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--orange-light);
  font-weight: 700;
}

/* ---------------------------------- Why us ---------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}

.why-item {
  text-align: center;
  padding: 20px;
}

.why-item .icon-circle {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--orange-light);
}

.why-item h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------------------------------- Service area ---------------------------------- */

.area-box {
  background: linear-gradient(135deg, var(--steel-blue), #17324a);
  border-radius: var(--radius);
  padding: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.area-box h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.area-box p {
  color: var(--silver-light);
  max-width: 480px;
}

/* ---------------------------------- CTA ---------------------------------- */

.cta-band {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(232, 121, 26, 0.25), transparent 65%),
    var(--black-soft);
  text-align: center;
  padding: 80px 24px;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  margin-bottom: 16px;
}

.cta-band p {
  color: var(--silver);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

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

.site-footer {
  background: #060606;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 46px;
}

.footer-brand span {
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--silver-light);
  text-transform: uppercase;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--orange-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------------------------------- Page header (interior pages) ---------------------------------- */

.page-header {
  padding: 70px 0 50px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 121, 26, 0.16), transparent 60%),
    var(--black-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-header .section-eyebrow {
  justify-content: center;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.page-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

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

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info-card {
  background: linear-gradient(160deg, var(--charcoal), #17181a);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-info-card h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.contact-line {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.contact-line .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 1.1rem;
}

.contact-line h4 {
  color: var(--silver-light);
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-line a,
.contact-line span {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.contact-line a:hover {
  color: var(--orange-light);
}

.hours-table {
  margin-top: 10px;
  width: 100%;
}

.hours-table tr td {
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.hours-table tr td:last-child {
  text-align: right;
  color: var(--silver-light);
  font-weight: 600;
}

.contact-form-card {
  background: linear-gradient(160deg, var(--charcoal), #17181a);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form-card h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.contact-form-card > p {
  color: var(--text-muted);
  margin-bottom: 26px;
  font-size: 0.95rem;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--silver-light);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--black-soft);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--silver-light);
  font-size: 0.96rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}

.form-status.success {
  color: #6fd18a;
  display: block;
}

.map-wrap {
  margin-top: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
  filter: grayscale(0.3) invert(0.92) contrast(0.9);
}

/* ---------------------------------- Gallery page ---------------------------------- */

.gallery-filters {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--silver);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange-light);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--black);
  border-color: transparent;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--charcoal);
  aspect-ratio: 4 / 3;
}

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

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

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent);
  color: var(--white);
}

.gallery-caption .tag {
  display: inline-block;
  color: var(--orange-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gallery-caption h4 {
  font-size: 1rem;
  font-weight: 700;
}

.placeholder-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
  background:
    linear-gradient(135deg, rgba(74, 144, 196, 0.12), rgba(232, 121, 26, 0.08)),
    repeating-linear-gradient(45deg, #1c1c1e 0 14px, #191919 14px 28px);
}

.placeholder-photo .icon {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.25);
}

.placeholder-photo span {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lightbox-content img,
.lightbox-content .placeholder-photo {
  width: 100%;
  max-height: 70vh;
  border-radius: var(--radius);
}

.lightbox-content .placeholder-photo {
  aspect-ratio: 16/10;
}

.lightbox-caption {
  color: var(--silver-light);
  margin-top: 18px;
  font-size: 1.05rem;
}

.lightbox-close {
  position: absolute;
  top: 26px;
  right: 34px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ---------------------------------- Utilities ---------------------------------- */

.text-center {
  text-align: center;
}

/* ---------------------------------- Responsive ---------------------------------- */

@media (max-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--black-soft);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .main-nav.open {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
  }

  .main-nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .header-phone span.phone-text {
    display: none;
  }

  .header-cta .btn-primary {
    display: none;
  }

  .brand-text .tagline {
    display: none;
  }

  .brand img {
    height: 52px;
  }

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

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

  section {
    padding: 60px 0;
  }
}
