/* ═══════════════════════════════════════════════════════════════
   DoortronixUSA.com — Shared Stylesheet
   Brand: Blue #1B4F8A | Orange #E87722 | Built in Bullard, TX
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1A1A1A;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1B4F8A; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --blue:    #1B4F8A;
  --dblue:   #163F6E;
  --xblue:   #0F2D52;
  --orange:  #E87722;
  --dorange: #C5621A;
  --lgray:   #F4F6F9;
  --mgray:   #6B7280;
  --border:  #D0D5DD;
  --white:   #FFFFFF;
  --green:   #15803D;
  --lgreen:  #DCFCE7;
  --radius:  6px;
  --shadow:  0 2px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 6px 28px rgba(0,0,0,.14);
  --max-w:   1200px;
}

/* ── Utility ───────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, transform .1s;
  border: none;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary   { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--dorange); }
.btn-outline   { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white     { background: #fff; color: var(--blue); }
.btn-white:hover { background: #E8EFF8; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}
.badge-green  { background: var(--lgreen); color: var(--green); border: 1px solid #BBF7D0; }
.badge-blue   { background: #DBEAFE; color: #1D4ED8; border: 1px solid #BFDBFE; }
.badge-orange { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }

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

/* ── Navigation ────────────────────────────────────────────────── */
.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;
}
.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
  text-decoration: none;
}
.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;
}
.nav-logo .brand span { color: var(--orange); }
.nav-logo .tagline { font-size: 11px; color: #B8CCE4; letter-spacing: .3px; }
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  color: #D1E0F2;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.nav-links .btn-nav-cta {
  background: var(--orange);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  margin-left: 8px;
}
.nav-links .btn-nav-cta:hover { background: var(--dorange); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: " ▾"; font-size: 10px; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 300;
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #1A1A1A;
  font-size: 14px;
  border-bottom: 1px solid #F0F0F0;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--lgray); color: var(--blue); text-decoration: none; }
.nav-dropdown:hover .dropdown-menu { display: block; }

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

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--xblue) 0%, var(--blue) 60%, #2464A8 100%);
  color: #fff;
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-door.jpg?v=2') center/cover no-repeat;
  opacity: .22;
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead {
  font-size: 18px;
  color: #C8DDEF;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #B8CCE4; }
.trust-item .icon { font-size: 18px; }
.trust-item strong { color: #fff; }

/* ── Section base ──────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }
.section-bg { background: var(--lgray); }
.section-blue { background: var(--blue); color: #fff; }
.section-dblue { background: var(--dblue); color: #fff; }
.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title.white { color: #fff; }
.section-subtitle {
  font-size: 17px;
  color: var(--mgray);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 48px;
  margin-left: auto;
  margin-right: auto;
}
.section-subtitle.white { color: #C8DDEF; }
.text-center { text-align: center; }
.text-center .section-subtitle,
.section-subtitle.text-center { margin-left: auto; margin-right: auto; }

/* ── Product cards ─────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-img {
  height: 210px;
  overflow: hidden;
  background: var(--lgray);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.product-card-text { font-size: 14px; color: var(--mgray); line-height: 1.55; margin-bottom: 16px; flex: 1; }
.product-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.product-card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.product-card-link:hover { text-decoration: none; color: var(--dorange); }

/* ── Why cards / icon cards ────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.why-icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.why-icon svg {
  width: 44px;
  height: 44px;
  display: block;
}
@media (min-width: 961px) {
  .why-icon svg {
    width: 36px;
    height: 36px;
  }
}
.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.why-card p { font-size: 14px; color: var(--mgray); line-height: 1.55; }
.why-card .highlight { color: var(--orange); font-weight: 700; }

/* ── Stats bar ─────────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: var(--dblue);
  color: #fff;
}
.stat-item {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 32px 24px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 38px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: #B8CCE4; }

/* ── CTA banner ────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--dorange) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(22px, 3vw, 34px); margin-bottom: 14px; }
.cta-banner p { font-size: 17px; opacity: .9; max-width: 560px; margin: 0 auto 32px; }
.cta-banner .btn-white { font-size: 16px; padding: 14px 32px; }

/* ── Spec table ────────────────────────────────────────────────── */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th {
  background: var(--blue);
  color: #fff;
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
}
.spec-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:nth-child(even) td { background: var(--lgray); }
.spec-table .spec-label { font-weight: 600; color: #333; white-space: nowrap; }

/* ── Compare table ─────────────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; overflow-x: auto; display: block; }
.compare-table th {
  background: var(--blue);
  color: #fff;
  padding: 12px 14px;
  text-align: center;
  font-size: 13px;
}
.compare-table th:first-child { text-align: left; }
.compare-table th.highlight-col { background: var(--orange); }
.compare-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: center; }
.compare-table td:first-child { text-align: left; font-weight: 600; background: #F8F9FB; }
.compare-table td.highlight-col { background: #FFF8F2; font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }
.check { color: var(--green); font-size: 17px; }
.cross { color: #DC2626; font-size: 17px; }

/* ── Accordion ─────────────────────────────────────────────────── */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn {
  width: 100%;
  background: #fff;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .15s;
}
.accordion-btn:hover { background: var(--lgray); }
.accordion-btn .acc-icon { transition: transform .25s; font-size: 18px; color: var(--orange); }
.accordion-btn.open .acc-icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 16px 20px 20px;
  font-size: 14px;
  color: #333;
  line-height: 1.65;
  background: #FAFBFC;
  border-top: 1px solid var(--border);
}
.accordion-body.open { display: block; }

/* ── Contact / form ────────────────────────────────────────────── */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 620px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: #1A1A1A;
  transition: border-color .2s;
  font-family: inherit;
}
.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,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Two-column content layout ─────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.img-right .col-img { order: 2; }
.two-col.img-right .col-text { order: 1; }
.col-img { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); }
.col-img img { width: 100%; height: 380px; object-fit: cover; }
.col-text h2 { font-size: clamp(22px, 2.5vw, 32px); font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.col-text p { color: var(--mgray); line-height: 1.7; margin-bottom: 16px; font-size: 15px; }
.col-text ul.check-list { margin: 16px 0; }
.col-text ul.check-list li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #F0F0F0;
}
.col-text ul.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ── Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb {
  background: var(--lgray);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--mgray);
}
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 6px; }

/* ── Page hero (inner pages) ───────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--xblue) 0%, var(--blue) 100%);
  color: #fff;
  padding: 52px 0 48px;
}
.page-hero h1 { font-size: clamp(26px, 3.5vw, 42px); font-weight: 700; margin-bottom: 10px; }
.page-hero p { font-size: 17px; color: #C8DDEF; max-width: 640px; }

/* ── Callout box ───────────────────────────────────────────────── */
.callout {
  border-left: 4px solid var(--orange);
  background: #FFF8F2;
  padding: 18px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.callout p { font-size: 14px; color: #5A3000; line-height: 1.6; }
.callout strong { color: var(--orange); }

/* ── Footer ────────────────────────────────────────────────────── */
.footer { background: var(--xblue); color: #B8CCE4; padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand .brand span { color: var(--orange); }
.footer-brand p { font-size: 13px; line-height: 1.65; }
.footer-brand .made-in {
  display: inline-block;
  margin-top: 14px;
  background: rgba(232,119,34,.15);
  border: 1px solid rgba(232,119,34,.3);
  color: var(--orange);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}
.footer h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 14px; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: #B8CCE4; font-size: 13px; }
.footer ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  padding: 20px 0;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: #8AAAC8; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.img-right .col-img,
  .two-col.img-right .col-text { order: unset; }
  .col-img img { height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@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; 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); }
  .nav-dropdown .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,.06); }
  .nav-dropdown .dropdown-menu a { color: #C8DDEF; }
  .nav-toggle { display: flex; }
  .navbar { position: relative; }
  .hero { padding: 52px 0 48px; }
  .hero-trust { gap: 16px; }
  .section { padding: 48px 0; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
  .product-grid { grid-template-columns: 1fr; }
}
