:root {
  --sgi-primary: #c84624;
  --sgi-primary-dark: #a3381c;
  --sgi-dark: #1a1a1a;
  --sgi-muted: #666;
  --sgi-bg: #f6f6f6;
  --sgi-border: #e5e5e5;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, background 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* Top bar */
.top-bar {
  background: var(--sgi-dark);
  color: #fff;
  font-size: 0.875rem;
  padding: 0.45rem 0;
}

.top-bar a {
  color: #fff;
}

.top-bar a:hover {
  color: var(--sgi-primary);
}

.top-bar .bi {
  color: var(--sgi-primary);
  margin-right: 0.35rem;
}

.top-bar .quote-link {
  color: var(--sgi-primary);
  font-weight: 600;
}

/* Header / Nav */
.main-header {
  background: #fff;
  border-bottom: 1px solid var(--sgi-border);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand img {
  height: 58px;
  width: auto;
}

.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.15);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 26, 26, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .nav-link {
  color: var(--sgi-dark) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 0.85rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--sgi-primary) !important;
}

.navbar .dropdown-menu {
  border: 1px solid var(--sgi-border);
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: 70vh;
  overflow-y: auto;
}

.navbar .dropdown-item {
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
}

.navbar .dropdown-item:hover {
  background: #fff3ef;
  color: var(--sgi-primary);
}

.btn-sgi {
  background: var(--sgi-primary);
  border-color: var(--sgi-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 2px;
  padding: 0.65rem 1.4rem;
}

.btn-sgi:hover,
.btn-sgi:focus {
  background: var(--sgi-primary-dark);
  border-color: var(--sgi-primary-dark);
  color: #fff;
}

.btn-sgi-outline {
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  border-radius: 2px;
  padding: 0.6rem 1.3rem;
  background: transparent;
}

.btn-sgi-outline:hover {
  background: #fff;
  color: var(--sgi-primary);
}

/* Hero */
.hero-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  color: #fff;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.25) 100%);
}

.hero-banner .container {
  position: relative;
  z-index: 1;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.hero-banner .eyebrow {
  color: #ffb399;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.hero-banner h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-banner .lead {
  font-size: 1.1rem;
  color: #f0f0f0;
  max-width: 640px;
}

.hero-banner p {
  max-width: 680px;
  color: #e6e6e6;
}

/* Why Choose / Infra */
.section-pad {
  padding: 4rem 0;
}

.infra-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.infra-visual {
  position: relative;
}

.infra-visual img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: var(--sgi-primary);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(200, 70, 36, 0.45);
}

.play-btn:hover {
  background: var(--sgi-primary-dark);
}

.tag {
  color: var(--sgi-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.infra-content h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}

.stat-box {
  background: var(--sgi-bg);
  padding: 1rem;
  text-align: center;
  border-top: 3px solid var(--sgi-primary);
}

.stat-box h3 {
  color: var(--sgi-primary);
  font-weight: 800;
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}

.stat-box p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--sgi-muted);
}

.infra-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.phone-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--sgi-border);
  padding: 0.55rem 1rem;
}

.phone-box .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff3ef;
  color: var(--sgi-primary);
  display: grid;
  place-items: center;
}

.phone-box .small-text {
  font-size: 0.75rem;
  color: var(--sgi-muted);
}

/* Marquee */
.marquee-section {
  background: var(--sgi-primary);
  color: #fff;
  overflow: hidden;
  padding: 0.9rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  gap: 2.5rem;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  font-weight: 600;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate {
  animation: spin-slow 8s linear infinite;
}

/* Service cards */
.service-box {
  border: 1px solid var(--sgi-border);
  height: 100%;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.service-box-thumb {
  height: 180px;
  overflow: hidden;
}

.service-box-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-box-content {
  padding: 1.25rem;
}

.service-box-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-box-content ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--sgi-muted);
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.category-link {
  display: block;
  background: var(--sgi-bg);
  color: #000;
  text-align: center;
  padding: 1.35rem 1rem;
  font-weight: 700;
  border: 2px solid var(--sgi-bg);
}

.category-link:hover {
  background: var(--sgi-primary);
  border-color: var(--sgi-primary);
  color: #fff;
}

/* Products */
.section-heading h2 {
  font-weight: 800;
  position: relative;
  display: inline-block;
  margin-bottom: 1.75rem;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--sgi-primary);
  margin-top: 0.5rem;
}

.product-grid {
  border: 1px solid var(--sgi-border);
  height: 100%;
  transition: box-shadow 0.2s ease;
}

.product-grid:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.product-thumb {
  padding: 1rem;
  background: #fff;
}

.product-thumb img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.product-content {
  padding: 0 1rem 1.25rem;
}

.product-content > p {
  color: var(--sgi-muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.product-title a:hover {
  color: var(--sgi-primary);
}

.star-rating {
  color: #f5a623;
  font-size: 0.85rem;
}

.rating-text {
  color: var(--sgi-muted);
}

/* Content sections */
.content-section h2 {
  font-weight: 800;
  margin-bottom: 1rem;
}

.content-section h3 {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--sgi-dark);
  margin-top: 1.5rem;
}

.model-card {
  background: #fff;
  border: 1px solid var(--sgi-border);
  border-left: 4px solid var(--sgi-primary);
  padding: 1.25rem;
  height: 100%;
}

.model-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--sgi-primary);
}

.parts-list {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.parts-list li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  break-inside: avoid;
}

.parts-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--sgi-primary);
  font-weight: 700;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 1.5rem;
}

.check-list li {
  padding-left: 1.6rem;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sgi-primary);
  font-weight: 800;
}

.industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.industry-chips span {
  background: #fff3ef;
  color: var(--sgi-primary-dark);
  border: 1px solid #f0d2c8;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* FAQ */
.accordion-button:not(.collapsed) {
  background: #fff3ef;
  color: var(--sgi-primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(200, 70, 36, 0.2);
}

.accordion-button::after {
  filter: none;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--sgi-border);
  padding: 1.5rem;
  height: 100%;
}

.testimonial-card p {
  font-style: italic;
  color: #444;
}

.testimonial-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sgi-primary);
  margin: 0;
}

/* CTA */
.cta-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  padding: 4rem 0;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

/* Footer */
.site-footer {
  background: #151515;
  color: #cfcfcf;
  padding-top: 3.5rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.site-footer a {
  color: #cfcfcf;
}

.site-footer a:hover {
  color: var(--sgi-primary);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.footer-contact dd {
  margin-bottom: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  margin-top: 2.5rem;
  padding: 1rem 0;
  font-size: 0.9rem;
}

.social-links a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  margin-right: 0.4rem;
}

.social-links a:hover {
  background: var(--sgi-primary);
  border-color: var(--sgi-primary);
  color: #fff;
}

/* Video modal */
.video-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: min(900px, 100%);
}

.video-close {
  position: absolute;
  right: -8px;
  top: -36px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

#videoContainer iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

@media (max-width: 991.98px) {
  .infra-split {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .parts-list,
  .check-list {
    columns: 1;
    grid-template-columns: 1fr;
  }

  .navbar-brand img {
    height: 46px;
  }
}

@media (max-width: 575.98px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .top-bar .top-links {
    display: none;
  }
}

/* Presence / States & Cities */
.presence-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #3a1f18 55%, #c84624 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.presence-hero h1 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 0.65rem;
}

.presence-hero .tag {
  color: #ffb399;
}

.presence-section {
  background: #f6f6f6;
}

.presence-accordion .accordion-item {
  border: 1px solid var(--sgi-border);
  margin-bottom: 0.75rem;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.presence-accordion .accordion-button {
  font-weight: 700;
  color: var(--sgi-dark);
  background: #fff;
  box-shadow: none;
  gap: 1rem;
}

.presence-accordion .accordion-button:not(.collapsed) {
  background: #fff3ef;
  color: var(--sgi-primary);
}

.presence-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(200, 70, 36, 0.18);
}

.presence-accordion .state-name {
  flex: 1;
  text-align: left;
}

.presence-accordion .city-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sgi-muted);
  background: var(--sgi-bg);
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  white-space: nowrap;
}

.presence-accordion .accordion-button:not(.collapsed) .city-count {
  background: #fff;
  color: var(--sgi-primary);
}

.city-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem 1rem;
}

.city-list a {
  display: block;
  padding: 0.45rem 0.7rem;
  background: #fafafa;
  border: 1px solid var(--sgi-border);
  color: #333;
  font-size: 0.92rem;
}

.city-list a:hover {
  background: var(--sgi-primary);
  border-color: var(--sgi-primary);
  color: #fff;
}

@media (max-width: 991.98px) {
  .city-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .city-list {
    grid-template-columns: 1fr;
  }
}
/* Footer explore cities */
.footer-explore-cities {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #2a2a2a;
}

.footer-explore-cities h4 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-city-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem 1.25rem;
}

.footer-city-links a {
  color: #cfcfcf;
  font-size: 0.9rem;
  display: inline-block;
}

.footer-city-links a:hover {
  color: var(--sgi-primary);
}

@media (max-width: 991.98px) {
  .footer-city-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .footer-city-links {
    grid-template-columns: 1fr;
  }
}
