/* ============================================================
   EXTERIOR ARMOR — Commercial Page Styles
   css/commercial.css
   ============================================================ */

/* ── NAV ── */
.comm-nav {
  background: var(--steel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.comm-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.nav-logo-img {
  width: 38px;
  height: 38px;
}
.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: .1em;
  color: var(--white);
  line-height: 1;
}
.nav-logo-text em {
  color: var(--red);
  font-style: normal;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-links a {
  color: var(--silver);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links .nav-cta {
  background: var(--red);
  color: #fff;
  padding: .45rem 1.1rem;
  border-radius: 3px;
  transition: background .2s;
}
.nav-links .nav-cta:hover { background: var(--red-dk); color: #fff; }

.nav-right {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.nav-right .nav-cta {
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .42rem 1rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background .2s;
}
.nav-right .nav-cta:hover { background: var(--red-dk); }

.nav-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--light);
  font-size: 1.3rem;
  padding: .3rem .55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .2s;
}
.nav-toggle:hover { border-color: var(--red); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: .75rem 0 1rem;
  border-top: 1px solid var(--border);
  gap: .1rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--silver);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--white); }

/* ── HERO ── */
.comm-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Placeholder tint when image missing */
  background: var(--steel);
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,10,10,.92) 0%,
    rgba(10,10,10,.75) 50%,
    rgba(10,10,10,.45) 100%
  );
}

/* Placeholder gradient when no image is present */
.hero-bg-img[src="assets/images/commercial/hero-bg.jpg"] {
  background: linear-gradient(135deg, var(--steel) 0%, var(--mid) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 5rem;
  max-width: 760px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.2rem;
}
.eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  letter-spacing: .04em;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 1.4rem;
}
.hero-headline span { color: var(--red); }

.hero-sub {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  font-weight: 400;
  color: rgba(255,255,255,.88);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  color: rgba(255,255,255,.28);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  animation: scrollBob 2s ease-in-out infinite;
  z-index: 1;
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── SECTION SHELL ── */
.comm-section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}
.comm-section--dark {
  background: var(--steel);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-eyebrow {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .6rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: .05em;
  color: var(--white);
  line-height: 1;
  margin-bottom: .75rem;
}
.section-sub {
  font-size: .88rem;
  font-weight: 300;
  color: var(--silver);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── SERVICE GRID ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .service-grid { grid-template-columns: 1fr; }
}

.svc-tile {
  background: var(--mid);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  border-left: 3px solid var(--red);
}
.svc-tile:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(200,40,30,.14);
}

.svc-img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--mid);
}
.svc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.svc-tile:hover .svc-img { transform: scale(1.05); }
.svc-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.6) 0%, transparent 60%);
}

/* Placeholder when no image */
.svc-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--mid) 0%, var(--steel) 100%);
  z-index: 0;
}
.svc-img { position: relative; z-index: 1; }

.svc-body {
  padding: 1.4rem 1.3rem 1.6rem;
}
.svc-icon {
  font-size: 1.5rem;
  color: var(--red);
  display: block;
  margin-bottom: .6rem;
}
.svc-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  letter-spacing: .05em;
  color: var(--white);
  margin-bottom: .5rem;
}
.svc-desc {
  font-size: .8rem;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.6;
  margin: 0;
}

/* ── DIFFERENTIATOR CARDS ── */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 768px) {
  .diff-grid { grid-template-columns: 1fr; }
}

.diff-card {
  position: relative;
  background: var(--mid);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 2rem 1.8rem 1.8rem;
  overflow: hidden;
  transition: border-color .3s;
}
.diff-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.diff-card:hover { border-color: rgba(200,40,30,.35); }
.diff-card:hover::after { transform: scaleX(1); }

.diff-num {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  letter-spacing: .04em;
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
}
.diff-icon {
  font-size: 1.8rem;
  color: var(--red);
  display: block;
  margin-bottom: .9rem;
}
.diff-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: .05em;
  color: var(--white);
  margin-bottom: .6rem;
}
.diff-desc {
  font-size: .82rem;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.65;
  margin: 0;
}

/* ── PROJECT CARDS GRID ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 860px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .project-grid { grid-template-columns: 1fr; }
}

.proj-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--mid);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.proj-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(200,40,30,.15);
}

.proj-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--mid);
}
.proj-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.proj-card:hover .proj-card-img { transform: scale(1.05); }

.proj-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mid) 0%, var(--steel) 100%);
  font-size: 3rem;
  color: rgba(255,255,255,.1);
}

.proj-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  opacity: 0;
  transition: opacity .3s;
}
.proj-card:hover .proj-card-overlay { opacity: 1; }
.proj-card-overlay i {
  font-size: 2rem;
  color: #fff;
}
.proj-card-overlay span {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}

.proj-card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.proj-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: .06em;
  color: var(--white);
  line-height: 1;
}
.proj-card-count {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
}
.proj-card-count i { color: var(--red); margin-right: .3rem; }

/* ── PROJECT MODAL ── */
.proj-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.proj-modal.open {
  opacity: 1;
  visibility: visible;
}

.pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
}

.pm-shell {
  position: relative;
  z-index: 1;
  background: var(--steel);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Modal header */
.pm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pm-title-wrap {
  display: flex;
  align-items: baseline;
  gap: .8rem;
}
.pm-project-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: .08em;
  color: var(--white);
  line-height: 1;
}
.pm-counter {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--silver);
}
.pm-close {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.pm-close:hover { background: var(--red); border-color: var(--red); }

/* Main image area */
.pm-img-area {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  background: var(--black);
}
.pm-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity .2s ease;
  display: block;
}
.pm-img-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}
.pm-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,.1);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.pm-prev,
.pm-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background .2s;
  z-index: 2;
}
.pm-prev { left: .75rem; }
.pm-next { right: .75rem; }
.pm-prev:hover,
.pm-next:hover { background: var(--red); border-color: var(--red); }

/* Thumbnail strip */
.pm-thumbs {
  display: flex;
  gap: .4rem;
  padding: .7rem 1rem;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}
.pm-thumbs::-webkit-scrollbar { height: 3px; }
.pm-thumbs::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

.pm-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 44px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s, opacity .2s;
  opacity: .5;
}
.pm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pm-thumb:hover { opacity: .8; }
.pm-thumb.active {
  border-color: var(--red);
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .pm-shell { max-height: 96vh; border-radius: 8px; }
  .pm-prev  { left: .3rem; }
  .pm-next  { right: .3rem; }
  .pm-thumb { width: 48px; height: 36px; }
}

/* ── CTA STRIP ── */
.comm-cta-strip {
  background: var(--steel);
  border-top: 1px solid var(--border);
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}
.comm-cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at left center, rgba(200,40,30,.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.cta-strip-text { flex: 1; min-width: 260px; }
.cta-strip-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: .04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: .6rem;
}
.cta-strip-sub {
  font-size: .84rem;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.6;
  margin: 0;
}
.cta-strip-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .comm-cta-strip { padding: 2.5rem 0; }
  .cta-strip-inner { gap: 1.5rem; }
  .cta-strip-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-strip-actions .btn-est,
  .cta-strip-actions .btn-ph {
    width: 100%;
    justify-content: center;
  }
  .cta-hours { width: 100%; text-align: center; }
}
.cta-hours {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--silver);
}
.cta-hours i { color: var(--red); margin-right: .3rem; }