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

:root {
  --red: #0D1E3C;
  --red-dark: #070F1E;
  --red-light: #162E5C;
  --silver: #A8B8CC;
  --silver-light: #D8E2ED;
  --white: #ffffff;
  --off-white: #F0F4F8;
  --gray-light: #D4DCE6;
  --text: #1a1a1a;
  --text-muted: #666;
  --nav-height: 82px;
  --max-width: 1180px;
  --radius: 6px;
  --shadow: 0 2px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.15);
  --t: .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

/* ─── NAV ─────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--red);
  height: var(--nav-height);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.nav-logo { text-decoration: none; line-height: 1.1; display: flex; align-items: center; }
.nav-logo .logo-name { font-size: 1.6rem; font-weight: 800; color: var(--white); letter-spacing: -.5px; display: block; }
.nav-logo .logo-sub  { font-size: .7rem; color: rgba(255,255,255,.7); letter-spacing: 2px; text-transform: uppercase; }
.logo-img { height: 64px; width: auto; display: block; object-fit: contain; }

.hero-logo-wrap { margin: 0 auto 2.5rem; text-align: center; }
.hero-logo {
  height: 240px;
  width: auto;
  display: inline-block;
  object-fit: contain;
}

.footer-logo { height: 56px; width: auto; display: block; margin-bottom: .75rem; }

.nav-links { display: flex; list-style: none; height: 100%; align-items: center; }

.nav-links > li { position: relative; height: 100%; display: flex; align-items: center; }

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  height: 100%;
  padding: 0 1.2rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  white-space: nowrap;
  transition: background var(--t);
}

.nav-links > li > a:hover { background: var(--red-dark); }
.nav-links > li > a.active { border-top: 3px solid var(--silver); }
.nav-links > li > a.active:hover { background: var(--red-dark); }

.caret { font-size: .65rem; transition: transform var(--t); display: inline-block; }
.nav-links > li.is-open > a .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border-top: 3px solid var(--red);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
}

.nav-links > li.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: .8rem 1.25rem;
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  border-bottom: 1px solid var(--gray-light);
  transition: background var(--t), color var(--t);
}

.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:visited { color: var(--text); }
.dropdown li a:hover,
.dropdown li a.active:hover { background: #c0392b; color: var(--white); }
.dropdown li a.active { color: var(--text); background: transparent; }

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

.nav-toggle span { display: block; width: 25px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--t); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .logo-img { height: 40px; max-width: 160px; }
  .nav-inner { padding: 0 0.75rem; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--red-dark);
    flex-direction: column;
    align-items: stretch;
    height: auto;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    padding: .5rem 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all var(--t);
  }

  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links > li { height: auto; flex-direction: column; align-items: stretch; }
  .nav-links > li > a { height: auto; padding: .85rem 1.5rem; justify-content: space-between; }

  .dropdown {
    position: static;
    box-shadow: none; border: none; border-radius: 0;
    background: rgba(0,0,0,.2);
    transform: none; opacity: 1; visibility: visible;
    display: none;
  }

  .nav-links > li.open .dropdown { display: block; }

  .dropdown li a {
    color: rgba(255,255,255,.85);
    background: transparent;
    border-color: rgba(255,255,255,.1);
    padding-left: 2.5rem;
  }

  .dropdown li a:hover { background: rgba(0,0,0,.25); color: var(--white); }
  .dropdown li a:visited { color: rgba(255,255,255,.85); }
  .dropdown li a.active { color: rgba(255,255,255,.85); background: transparent; }
}

/* ─── HERO (home) ─────────────────────── */

.hero {
  background: var(--red);
  color: var(--white);
  padding: 5rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: var(--white);
  padding: .35rem 1rem;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  opacity: .9;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-phone {
  display: inline-block;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: .02em;
  border-bottom: 3px solid rgba(255,255,255,.4);
  padding-bottom: .15em;
  transition: border-color .2s;
}
.hero-phone:hover { border-color: var(--white); }

/* ─── PAGE HERO (inner pages) ─────────── */

.page-hero {
  background: var(--red);
  color: var(--white);
  padding: 2.5rem 1.5rem 3rem;
}

.page-hero .container { max-width: var(--max-width); margin: 0 auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  margin-bottom: 1rem;
  opacity: .85;
}

.breadcrumb a { color: var(--white); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: .6; }

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: .75rem;
}

.page-hero p { font-size: 1.05rem; opacity: .9; max-width: 600px; }

/* ─── BUTTONS ─────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .8rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  font-family: inherit;
}

.btn-white { background: var(--white); color: var(--red); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); }

.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

/* ─── LAYOUT ──────────────────────────── */

.container { max-width: var(--max-width); margin: 0 auto; }

.section { padding: 4.5rem 1.5rem; }
.section-alt { background: var(--off-white); }

.section-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.5px; margin-bottom: .6rem; }
.section-lead { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin-bottom: 2.5rem; }
.accent-line { width: 48px; height: 4px; background: var(--silver); border-radius: 2px; margin-bottom: 1rem; }

/* ─── HOME SERVICE CARDS ──────────────── */

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-template-rows: auto auto; gap: 1.5rem; }

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  transition: transform var(--t), box-shadow var(--t);
}

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

.service-card-header { background: var(--red); padding: 2rem 1.5rem 1.5rem; color: var(--white); }
.service-card-icon { font-size: 2.5rem; margin-bottom: .75rem; display: block; }
.service-card-header h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .25rem; }
.service-card-header p { font-size: .9rem; opacity: .85; }

.service-card-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between; }

.service-card-body ul { list-style: none; margin-bottom: 1.25rem; }

.service-card-body ul li {
  padding: .4rem 0 .4rem 1.4rem;
  position: relative;
  font-size: .92rem;
  border-bottom: 1px solid var(--gray-light);
  color: var(--text-muted);
}

.service-card-body ul li:last-child { border-bottom: none; }
.service-card-body ul li::before { content: '→'; position: absolute; left: 0; color: var(--red); font-size: .85rem; }

.service-card-link { color: var(--red); font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: .3rem; }

/* ─── SUB-SERVICE GRID ────────────────── */

.sub-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }

.sub-service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform var(--t), box-shadow var(--t);
}

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

.ssc-header { background: var(--red); color: var(--white); padding: 1.25rem 1.5rem; }
.ssc-header h3 { font-size: 1.05rem; font-weight: 700; }

.ssc-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.ssc-body p { font-size: .875rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.ssc-body .card-arrow { color: var(--red); font-weight: 700; font-size: .9rem; margin-top: 1rem; display: block; }

/* ─── SERVICE DETAIL LAYOUT ───────────── */

.service-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 820px) { .service-detail-layout { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .hero-logo { height: auto; max-height: 180px; max-width: 90%; display: block; margin: 0 auto; }
  .hero-logo-wrap { text-align: center; }
}

.service-detail-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; }
.service-detail-content h2:first-child { margin-top: 0; }
.service-detail-content p { color: var(--text-muted); margin-bottom: 1rem; font-size: .97rem; }

.features-list { list-style: none; margin: 1rem 0 1.5rem; }
.features-list li { padding: .6rem 0 .6rem 1.75rem; position: relative; border-bottom: 1px solid var(--gray-light); font-size: .95rem; }
.features-list li:last-child { border-bottom: none; }
.features-list li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

.sidebar { position: sticky; top: calc(var(--nav-height) + 1rem); }

.sidebar-card { background: var(--off-white); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.sidebar-card h3 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--red); }

.sidebar-links { list-style: none; }
.sidebar-links li a { display: flex; align-items: center; gap: .5rem; padding: .6rem 0; color: var(--text); text-decoration: none; font-size: .9rem; border-bottom: 1px solid var(--gray-light); transition: color var(--t); }
.sidebar-links li:last-child a { border-bottom: none; }
.sidebar-links li a:hover, .sidebar-links li a.active { color: var(--red); font-weight: 600; }

.sidebar-cta { background: var(--red); color: var(--white); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.sidebar-cta h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.sidebar-cta p { font-size: .875rem; opacity: .9; margin-bottom: 1rem; }
.sidebar-cta .phone { display: block; font-size: 1.3rem; font-weight: 800; color: var(--white); text-decoration: none; margin-bottom: .75rem; }
.sidebar-cta .phone:hover { text-decoration: underline; }

/* ─── CTA STRIP ───────────────────────── */

.cta-strip { background: var(--red); color: var(--white); padding: 4rem 1.5rem; text-align: center; }
.cta-strip h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: .75rem; }
.cta-strip p { opacity: .9; margin-bottom: 1.75rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-strip .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── WHY CHOOSE US ───────────────────── */

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 2rem; }

.why-item { text-align: center; }
.why-icon { width: 64px; height: 64px; background: var(--red); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 1rem; }
.why-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.why-item p { font-size: .875rem; color: var(--text-muted); }

/* ─── CONTACT ─────────────────────────── */

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 3rem; align-items: start; }
@media (max-width: 820px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .contact-layout > * { min-width: 0; max-width: 100%; }
  .form-group input, .form-group textarea, .form-group select { max-width: 100%; }
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .8rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--t);
  outline: none;
  appearance: none;
}

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

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.contact-info-block { background: var(--off-white); border-radius: var(--radius); padding: 2rem; }
.contact-info-block h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--red); }

.contact-detail { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-detail-icon { background: var(--red); color: var(--white); width: 40px; height: 40px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-detail-text strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: .2rem; }
.contact-detail-text a { color: var(--text); text-decoration: none; font-size: .95rem; }
.contact-detail-text a:hover { color: var(--red); }

/* ─── FOOTER ──────────────────────────── */

footer { background: #111; color: rgba(255,255,255,.65); padding: 3.5rem 1.5rem 1.5rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 1.5rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-name { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: .25rem; display: block; }
.footer-brand-sub { font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: .875rem; line-height: 1.7; }

.footer-col h4 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .875rem; transition: color var(--t); }
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ─── EMERGENCY BANNER ────────────────── */

.emergency-banner { background: #111; color: var(--white); padding: .9rem 1.5rem; text-align: center; font-size: .9rem; }
.emergency-banner a { color: var(--white); font-weight: 700; text-decoration: none; }
.emergency-banner a:hover { text-decoration: underline; }

/* ─── UTILS ───────────────────────────── */

.info-note { background: #fff3f3; border-left: 4px solid var(--red); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: .9rem; color: var(--text-muted); margin: 1.5rem 0; }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
