/* ═══════════════════════════════════════════════════════════════
   Doortronix — NY · NJ · CT Sales & Service
   Same brand palette as doortronixusa.com, service-oriented tone
═══════════════════════════════════════════════════════════════ */

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

:root {
  --blue:    #1B4F8A;
  --dblue:   #163F6E;
  --xblue:   #0F2D52;
  --orange:  #E87722;
  --dorange: #C5621A;
  --lgray:   #F2F4F7;
  --mgray:   #6B7280;
  --border:  #D0D5DD;
  --text:    #111827;
  --radius:  6px;
  --max-w:   1200px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  background: var(--xblue);
  color: #B8CCE4;
  font-size: 12px;
  padding: 6px 0;
  text-align: center;
}
.topbar a { color: #B8CCE4; }
.topbar a:hover { color: #fff; }
.topbar strong { color: #fff; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  width: 100%;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
  flex-shrink: 0;
}
.nav-logo-mark { height: 44px; width: auto; display: block; flex-shrink: 0; }
.nav-logo .brand {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
  line-height: 1.1;
}
.nav-logo .brand span { color: var(--orange); }
.nav-logo .tagline { font-size: 11px; color: #B8CCE4; letter-spacing: .3px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: #D1E0F2;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-links a:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}
.nav-links .btn-nav-cta {
  background: var(--orange) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  margin-left: 8px;
}
.nav-links .btn-nav-cta:hover {
  background: var(--dorange) !important;
  text-decoration: none;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 5px; }
.nav-dropdown > a::after { content: '▾'; font-size: 10px; opacity: .6; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 200px;
  padding: 6px 0;
  z-index: 200;
}
.dropdown-menu a { display: block; padding: 9px 16px; font-size: 13.5px; color: var(--text); border-radius: 0; }
.dropdown-menu a:hover { background: var(--lgray); }
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }

/* Mobile toggle */
.nav-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  text-align: center;
  transition: background .15s, color .15s;
  border: 2px solid transparent;
}
.btn-primary  { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #c9650f; text-decoration: none; }
.btn-white    { background: #fff; color: var(--blue); }
.btn-white:hover { background: #e8eef6; text-decoration: none; }
.btn-outline  { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; text-decoration: none; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); text-decoration: none; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--dblue) 0%, var(--blue) 100%);
  color: #fff;
  padding: 80px 20px 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-door.jpg') center/cover no-repeat;
  opacity: .18;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; }
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
  color: #fff;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.lead { font-size: 17px; color: #B8CCE4; line-height: 1.65; margin-bottom: 32px; max-width: 620px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.15); padding-top: 28px; }
.trust-item { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; color: #B8CCE4; }
.trust-item .icon { font-size: 22px; line-height: 1; flex-shrink: 0; margin-top: 1px; display:flex; align-items:center; }
.trust-item strong { display: block; color: #fff; font-size: 13.5px; margin-bottom: 2px; }

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 72px 20px; }
.section-bg { background: var(--lgray); }
.section-dblue { background: var(--dblue); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-title { font-size: clamp(22px, 3vw, 32px); font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.section-title.white { color: #fff; }
.section-subtitle { font-size: 16px; color: var(--mgray); margin-bottom: 40px; max-width: 640px; }
.section-subtitle.white { color: #B8CCE4; }
.text-center { text-align: center; }
.text-center .section-subtitle,
.section-subtitle.text-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title.text-center { text-align: center; }

/* ── Service cards grid ─────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  transition: box-shadow .2s, border-color .2s;
}
.service-card:hover { box-shadow: 0 6px 20px rgba(27,79,138,.1); border-color: var(--blue); }
.service-icon { margin-bottom: 14px; line-height: 1; }
.service-icon svg { width: 28px; height: 28px; display: block; }
.service-card h3 { font-size: 16.5px; color: var(--blue); margin-bottom: 8px; font-weight: 700; }
.service-card p { font-size: 14px; color: var(--mgray); line-height: 1.6; }
.service-card .learn-more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--orange); }
.service-card .learn-more:hover { text-decoration: underline; }

/* ── Why grid (feature cards) ───────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}
.why-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--mgray); line-height: 1.6; }
.why-icon { margin-bottom: 14px; line-height: 1; }
.why-icon svg { width: 28px; height: 28px; display: block; }
.highlight { background: #FEF3E2; color: #92400E; padding: 1px 4px; border-radius: 3px; }

/* ── Stats bar ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--blue);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.stat-item {
  padding: 26px 36px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.15);
  flex: 1;
  min-width: 160px;
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 34px; font-weight: 700; color: #fff; line-height: 1.1; }
.stat-label { font-size: 12px; color: #B8CCE4; margin-top: 4px; max-width: 120px; margin-inline: auto; }

/* ── Two-column layout ──────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col.img-right .col-img { order: 2; }
.two-col.img-left  .col-img { order: -1; }
.col-text h2 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.col-text p { color: var(--mgray); line-height: 1.7; margin-bottom: 14px; font-size: 15px; }
.col-img img { border-radius: 10px; box-shadow: 0 6px 28px rgba(0,0,0,.12); width: 100%; }
.check-list { list-style: none; padding: 0; margin: 16px 0; }
.check-list li { padding: 5px 0 5px 26px; position: relative; font-size: 14.5px; color: var(--text); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

/* ── Service area list ──────────────────────────────────────── */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.area-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.area-card h4 { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.area-card p { font-size: 13px; color: var(--mgray); line-height: 1.5; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin: 2px 2px 2px 0;
}
.badge-green { background: #DCFCE7; color: #166534; }
.badge-blue  { background: #DBEAFE; color: #1e40af; }
.badge-orange{ background: #FEF3E2; color: #92400E; }

/* ── CTA banner ─────────────────────────────────────────────── */
.cta-banner {
  background: var(--orange);
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-bottom: 12px; }
.cta-banner p { font-size: 16px; opacity: .9; margin-bottom: 28px; max-width: 560px; margin-inline: auto; margin-bottom: 28px; }

/* ── Emergency callout ──────────────────────────────────────── */
.emergency-callout-icon { margin: 0 auto 16px; line-height: 0; }
.emergency-callout-icon svg { width: 72px; height: 72px; display: block; margin: 0 auto; }
.emergency-bar {
  background: #7F1D1D;
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
}
.emergency-bar a { color: #FCA5A5; font-weight: 700; }

/* ── Form ───────────────────────────────────────────────────── */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 32px;
  max-width: 640px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,79,138,.12); }
.form-group textarea { resize: vertical; min-height: 100px; }
.required { color: var(--orange); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 56px 20px 28px;
  font-size: 13.5px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand .brand span { color: var(--orange); }
.footer-brand p { line-height: 1.65; color: #64748B; }
.made-in { margin-top: 16px; font-size: 12px; color: #475569; }
.footer h4 { color: #CBD5E1; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: #64748B; transition: color .15s; }
.footer ul a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #1E293B;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}

/* ── Page header (inner pages) ──────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--dblue) 0%, var(--blue) 100%);
  padding: 52px 20px 44px;
  color: #fff;
}
.page-header .container h1 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; margin-bottom: 10px; }
.page-header .container p { font-size: 16px; color: #B8CCE4; max-width: 560px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.img-right .col-img,
  .two-col.img-left  .col-img { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--blue);
    padding: 12px 16px;
    gap: 4px;
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    width: 100%;
  }
  .nav-links .btn-nav-cta { margin-left: 0 !important; margin-top: 4px; text-align: center; }
  .nav-toggle { display: flex; }
  .navbar { position: relative; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; display: block !important; }
  .nav-dropdown > a::after { display: none; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-trust { gap: 18px; }
}
