:root {
  --primary: #050505;
  --secondary: #e30613;
  --secondary-dark: #b80510;
  --accent: #fff1f2;
  --dark: #171717;
  --light: #f7f7f8;
  --white: #ffffff;
  --muted: #666b73;
  --border: #e6e6e8;
  --shadow: rgba(0,0,0,.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 92%; max-width: 1180px; margin: 0 auto; }

header {
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; line-height: 1; }
.logo img { width: 230px; height: auto; max-height: 42px; object-fit: contain; }
.nav-links { display: flex; gap: 20px; align-items: center; font-size: .95rem; font-weight: 700; }
.nav-links a { color: #222; position: relative; }
.nav-links a:not(.phone-link)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 3px; background: var(--secondary); transform: scaleX(0); transform-origin: center; transition: .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--secondary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.phone-link { background: var(--secondary); color: var(--white)!important; padding: 11px 17px; border-radius: 8px; font-weight: 800; box-shadow: 0 8px 18px rgba(227,6,19,.24); }
.phone-link:hover { background: var(--secondary-dark); color: var(--white)!important; transform: translateY(-1px); }
.phone-link::after { display: none; }

.hero {
  background: linear-gradient(110deg, rgba(0,0,0,.84), rgba(0,0,0,.62)), url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 96px 0;
}
.hero-content { max-width: 820px; }
.kicker { color: #ff303b; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; font-size: .92rem; }
.hero h1 strong, .page-hero h1 strong { color: var(--secondary); }
.hero h1, .page-hero h1 { font-size: clamp(2.25rem, 5vw, 4.2rem); line-height: 1.08; margin-bottom: 20px; }
.hero p, .page-hero p { font-size: 1.18rem; max-width: 760px; color: #e5e7eb; margin-bottom: 30px; }
.button-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 8px; font-weight: 900; transition: .2s ease; }
.btn-primary { background: var(--secondary); color: var(--white); box-shadow: 0 10px 24px rgba(227,6,19,.26); }
.btn-primary:hover { background: var(--secondary-dark); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: #333; }

section { padding: 72px 0; }
.section-title { text-align: center; max-width: 780px; margin: 0 auto 42px; }
.section-title h2 { font-size: 2.15rem; color: var(--primary); margin-bottom: 12px; }
.section-title p { color: var(--muted); font-size: 1.05rem; }
.light-bg { background: var(--light); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card, .service-card, .detail-box, .why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
}
.service-card { display: flex; flex-direction: column; border-top: 4px solid var(--secondary); transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.service-card img { height: 190px; width: 100%; object-fit: cover; }
.service-card-content { padding: 24px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.service-card h3, .detail-box h3, .why-card h3 { color: var(--primary); margin-bottom: 12px; }
.service-card p, .detail-box p, .why-card p { color: #4b5563; margin-bottom: 16px; }
.text-link { color: var(--secondary); font-weight: 800; }
.text-link:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split h2 { color: var(--primary); font-size: 2rem; margin-bottom: 18px; }
.split p { margin-bottom: 16px; color: #374151; }
.photo-card { border-radius: 16px; overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.12); background: var(--white); }
.photo-card img { height: 380px; width: 100%; object-fit: cover; }
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li { margin-bottom: 12px; padding-left: 28px; position: relative; }
.feature-list li:before { content: '✓'; color: var(--secondary); font-weight: 900; position: absolute; left: 0; }

.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.why-card { padding: 24px; }
.details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.detail-box { padding: 32px; }
.detail-box ul { margin: 18px 0; padding-left: 20px; }
.detail-box li { margin-bottom: 8px; }

.page-hero { color: var(--white); padding: 88px 0; background-size: cover; background-position: center; }
.page-business { background-image: linear-gradient(110deg, rgba(0,0,0,.84), rgba(0,0,0,.58)), url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1800&q=80'); }
.page-residential { background-image: linear-gradient(110deg, rgba(0,0,0,.82), rgba(0,0,0,.56)), url('https://images.unsplash.com/photo-1600494603989-9650cf6ddd3d?auto=format&fit=crop&w=1800&q=80'); }
.page-smart { background-image: linear-gradient(110deg, rgba(0,0,0,.82), rgba(0,0,0,.56)), url('https://images.unsplash.com/photo-1593359677879-a4bb92f829d1?auto=format&fit=crop&w=1800&q=80'); }
.page-contact { background-image: linear-gradient(110deg, rgba(0,0,0,.84), rgba(0,0,0,.58)), url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80'); }

.content-narrow { max-width: 900px; }
.two-col-list { columns: 2; column-gap: 44px; margin-top: 20px; padding-left: 20px; }
.two-col-list li { break-inside: avoid; margin-bottom: 10px; }
.cta { background: linear-gradient(120deg, #050505, #171717 62%, #3b0508); color: var(--white); text-align: center; padding: 76px 0; }
.cta h2 { font-size: 2.25rem; margin-bottom: 14px; }
.cta p { max-width: 720px; margin: 0 auto 28px; color: #d1d5db; font-size: 1.08rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.contact-card { background: var(--white); padding: 30px; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.contact-card h2, .contact-card h3 { color: var(--primary); margin-bottom: 12px; }
.contact-card p { margin-bottom: 12px; color: #374151; }

footer { background: #050505; color: #d1d5db; padding: 36px 0; text-align: center; border-top: 4px solid var(--secondary); }
footer strong { color: var(--white); }
footer a { color: #fff; }

.social-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.social-links a:hover { opacity: .85; }
.social-links img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .details-grid, .contact-grid { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; }
  .logo img { width: 210px; }
  .nav-links { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 620px) {
  .why-grid { grid-template-columns: 1fr; }
  .logo img { width: 190px; }
  .hero, .page-hero { padding: 70px 0; }
  .button-row { flex-direction: column; }
  .btn { text-align: center; }
  .two-col-list { columns: 1; }
}

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-logo { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.footer-logo img { width: 220px; height: auto; max-height: 36px; object-fit: contain; }

.contact-form { margin-top: 22px; display: grid; gap: 12px; }
.contact-form label { font-weight: 800; color: var(--primary); }
.contact-form label span { color: var(--secondary); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: #111827;
  background: #fff;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(227,6,19,.12);
}
.contact-form textarea { resize: vertical; }
.form-submit { border: 0; cursor: pointer; margin-top: 8px; }
.hidden-field { display: none; }

@media (max-width: 620px) {
  .footer-logo img { width: 190px; }
}


/* Mobile header streamlining */
.menu-toggle {
  display: none;
  border: 0;
  background: var(--secondary);
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 760px) {
  header {
    transition: padding .2s ease, box-shadow .2s ease;
  }

  .nav {
    position: relative;
    align-items: center;
    flex-direction: row;
    padding: 12px 0;
  }

  .logo img {
    width: 190px;
    max-height: 38px;
    transition: width .2s ease, max-height .2s ease;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 12px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    z-index: 30;
  }

  .nav-links a {
    padding: 10px 4px;
  }

  .nav-links .phone-link {
    text-align: center;
    padding: 12px 14px;
  }

  body.mobile-menu-open .nav-links {
    display: flex;
  }

  body.mobile-header-condensed header {
    box-shadow: 0 6px 20px rgba(0,0,0,.10);
  }

  body.mobile-header-condensed .nav {
    justify-content: center;
    padding: 8px 0;
  }

  body.mobile-header-condensed .logo img {
    width: 160px;
    max-height: 32px;
  }

  body.mobile-header-condensed .menu-toggle,
  body.mobile-header-condensed .nav-links {
    display: none !important;
  }

  .hero,
  .page-hero {
    padding: 58px 0;
  }

  section {
    padding: 52px 0;
  }

  .services-grid,
  .split,
  .details-grid,
  .contact-grid {
    gap: 22px;
  }

  .photo-card img {
    height: 260px;
  }

  .contact-card {
    padding: 24px;
  }
}
