/* ===========================================
  PROJECT: Denton Garage Doors
  DOMAIN: dentongaragedoors.com
  NICHE: Garage Door Repair & Installation
  DESIGN SIGNATURE: Steel Blue Industrial Grid
  COLOR SCHEME: #123047 (Steel Blue) + #f97316 (Safety Orange) + #f7fafc (Light Gray)
  FONTS: Manrope + Source Sans 3
  LAYOUT PATTERN: Layout 1 Emergency Service Landing
  HEADER VARIANT: B
  HERO VARIANT: E
  SERVICES VARIANT: A
  TRUST SECTION VARIANT: B
  CTA VARIANT: A
  FOOTER VARIANT: B
  COUPON PLACEMENT: CTA band + sidebar block
  IMAGE STYLE: Technician action + hardware detail close-up
=========================================== */

/* ---------- FONT IMPORT ---------- */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Source+Sans+3:wght@400;600;700&display=swap");

/* ---------- CSS VARIABLES ---------- */
:root {
  --primary: #123047;
  --primary-dark: #0c1f30;
  --accent: #f97316;
  --accent-hover: #ea6c05;
  --light: #f7fafc;
  --white: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --font-heading: "Manrope", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(18,48,71,0.10);
  --shadow-lg: 0 8px 40px rgba(18,48,71,0.15);
  --transition: 0.3s ease;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.2; font-weight: 800; color: var(--primary); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; }

/* ---------- TOPBAR ---------- */
.topbar { background: var(--primary-dark); color: rgba(255,255,255,0.85); font-size: 13px; padding: 7px 0; }
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--accent); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- NAVBAR ---------- */
.navbar { background: var(--white); padding: 8px 0; box-shadow: 0 2px 12px rgba(18,48,71,0.08); transition: var(--transition); }
.navbar.scrolled { box-shadow: 0 4px 24px rgba(18,48,71,0.18); }
.navbar-brand { display: flex; align-items: center; flex-shrink: 0; margin-right: 22px; }
.navbar-brand img { width: 210px; max-width: 42vw; height: auto; object-fit: contain; }
.nav-link { color: var(--primary) !important; font-weight: 600; font-size: 15px; padding: 8px 14px !important; border-radius: var(--radius); transition: var(--transition); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--accent) !important; background: rgba(249,115,22,0.07); }
.nav-link:focus, .dropdown-item:focus { color: var(--accent); background: rgba(249,115,22,0.07); box-shadow: none; }
.nav-link:focus-visible, .dropdown-item:focus-visible { outline: 2px solid rgba(249,115,22,0.45); outline-offset: 2px; }
.dropdown-menu { border: none; box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: 10px; min-width: 220px; }
.dropdown-item { font-size: 14px; font-weight: 600; color: var(--primary); padding: 8px 14px; border-radius: 6px; }
.dropdown-item:hover { background: rgba(249,115,22,0.1); color: var(--accent); }
.header-badge { display: inline-block; background: var(--light); color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border); }
.header-phone { background: var(--accent); color: var(--white) !important; font-weight: 700; font-size: 15px; padding: 10px 20px; border-radius: 50px; white-space: nowrap; }
.header-phone:hover { background: var(--accent-hover); color: var(--white) !important; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.navbar-toggler { border: 2px solid var(--primary); padding: 6px 10px; }
.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='%23123047' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

@media (min-width: 992px) {
  .navbar .container { max-width: 1280px; }
}

@media (max-width: 1399px) and (min-width: 992px) {
  .navbar-brand { margin-right: 16px; }
  .navbar-brand img { width: 185px; }
  .nav-link { font-size: 14px; padding: 8px 9px !important; }
  .header-badge { display: none; }
  .header-phone { font-size: 14px; padding: 10px 18px; }
}

/* ---------- HERO ---------- */
.hero { min-height: 82vh; background: var(--primary); position: relative; display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(12,31,48,0.95) 0%, rgba(18,48,71,0.80) 100%); z-index: 1; }
.hero-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; z-index: 0; }
.hero-content { position: relative; z-index: 2; padding: 60px 0; }
.hero-badge { display: inline-block; background: var(--accent); color: var(--white); font-size: 13px; font-weight: 700; padding: 5px 16px; border-radius: 50px; letter-spacing: 0.5px; margin-bottom: 18px; text-transform: uppercase; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero .hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 560px; }
.hero-phone { font-size: 2.2rem; font-weight: 800; color: var(--accent); font-family: var(--font-heading); margin-bottom: 28px; display: block; }
.hero-phone:hover { color: #fbbf70; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-accent { background: var(--accent); color: var(--white); font-weight: 700; border-radius: 50px; padding: 13px 30px; border: none; font-size: 16px; transition: var(--transition); display: inline-block; }
.btn-accent:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,115,22,0.3); }
.btn-outline-wh { border: 2px solid rgba(255,255,255,0.5); color: var(--white); border-radius: 50px; padding: 11px 28px; font-weight: 700; font-size: 16px; transition: var(--transition); display: inline-block; }
.btn-outline-wh:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 600; }
.hero-trust-item .ht-icon { color: var(--accent); font-size: 18px; }

/* ---------- TRUST STRIP ---------- */
.trust-strip { background: var(--accent); padding: 14px 0; }
.trust-strip-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; font-size: 15px; }

/* ---------- SECTION SPACING ---------- */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }
.section-header { margin-bottom: 50px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--muted); max-width: 600px; font-size: 1.05rem; }
.section-label { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 10px; }
.bg-light-gray { background: var(--light); }

/* ---------- SERVICE CARDS ---------- */
.service-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 26px; transition: var(--transition); border-bottom: 3px solid transparent; height: 100%; text-align: center; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-bottom-color: var(--accent); }
.service-icon { width: 68px; height: 68px; background: rgba(249,115,22,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--accent); font-size: 28px; transition: var(--transition); }
.service-card:hover .service-icon { background: var(--accent); color: var(--white); }
.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.service-link { color: var(--accent); font-weight: 700; font-size: 14px; }
.service-link:hover { color: var(--accent-hover); }

/* ---------- ABOUT SECTION ---------- */
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; height: 420px; object-fit: cover; }
.about-check-list { margin-top: 24px; }
.about-check-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.check-icon { width: 28px; height: 28px; background: var(--accent); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; font-weight: 700; font-size: 14px; }

/* ---------- COUPON SECTION ---------- */
.coupon-section { background: var(--primary); padding: 60px 0; }
.coupon-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.coupon-img a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); transition: var(--transition); }
.coupon-img a:hover { transform: scale(1.03); }
.coupon-img img { width: 280px; height: 280px; object-fit: cover; border-radius: var(--radius); }
.coupon-text { color: var(--white); max-width: 480px; }
.coupon-offer { font-size: 2.6rem; font-weight: 800; color: var(--accent); font-family: var(--font-heading); margin-bottom: 8px; line-height: 1.1; }
.coupon-text h3 { color: var(--white); margin-bottom: 10px; }
.coupon-text p { color: rgba(255,255,255,0.8); margin-bottom: 20px; }
.coupon-offer-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 20px; }
.coupon-offer-item { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); padding: 12px 14px; }
.coupon-offer-item strong { color: var(--accent); display: block; font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.1; }
.coupon-offer-item span { color: rgba(255,255,255,0.88); display: block; font-size: 0.95rem; font-weight: 700; margin-top: 4px; }

/* ---------- BEFORE & AFTER ---------- */
.before-after-section { background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%); }
.before-after-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.before-after-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.before-after-card img { aspect-ratio: 16 / 10; height: auto; object-fit: cover; width: 100%; }
.ba-label { background: var(--primary); border-radius: 999px; color: var(--white); font-size: 13px; font-weight: 800; left: 16px; letter-spacing: 0.08em; padding: 7px 13px; position: absolute; text-transform: uppercase; top: 16px; }
.before-after-card.after .ba-label { background: var(--accent); }

/* ---------- FAQ ---------- */
.accordion-button { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--primary); background: var(--light); border-radius: var(--radius) !important; padding: 18px 20px; }
.accordion-button:not(.collapsed) { color: var(--accent); background: rgba(249,115,22,0.07); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-body { font-size: 15px; color: var(--muted); line-height: 1.7; }
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius) !important; margin-bottom: 10px; overflow: hidden; }

/* ---------- CTA ---------- */
.cta-section { background: var(--accent); padding: 70px 0; text-align: center; }
.cta-section h2 { color: var(--white); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.88); font-size: 1.1rem; margin-bottom: 30px; }
.btn-cta-wh { background: var(--white); color: var(--accent); font-weight: 700; border-radius: 50px; padding: 14px 36px; font-size: 17px; transition: var(--transition); display: inline-block; }
.btn-cta-wh:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-cta-outline { border: 2px solid rgba(255,255,255,0.7); color: var(--white); border-radius: 50px; padding: 12px 30px; font-size: 16px; font-weight: 700; transition: var(--transition); display: inline-block; }
.btn-cta-outline:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* ---------- CONTACT FORM ---------- */
.form-control { border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 15px; padding: 12px 16px; color: var(--text); background: var(--white); font-family: var(--font-body); transition: var(--transition); }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,0.15); outline: none; }
.service-textarea { height: 120px; resize: vertical; }
.btn-submit { background: var(--accent); color: var(--white); font-weight: 700; border: none; border-radius: 50px; padding: 14px 40px; font-size: 16px; cursor: pointer; transition: var(--transition); }
.btn-submit:hover { background: var(--accent-hover); transform: translateY(-2px); }
fieldset { border: none; padding: 0; margin: 0; }
legend { display: none; }

/* ---------- FOOTER ---------- */
.footer-main { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 60px 0 30px; }
.footer-brand img { width: 215px; max-width: 100%; height: auto; margin-bottom: 16px; background: var(--white); border-radius: 6px; padding: 8px 10px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); max-width: 260px; }
.footer-heading { color: var(--white); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 18px; font-family: var(--font-heading); }
.footer-link { display: block; color: rgba(255,255,255,0.65); font-size: 14px; margin-bottom: 9px; transition: var(--transition); }
.footer-link:hover { color: var(--accent); padding-left: 6px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px; color: rgba(255,255,255,0.7); align-items: flex-start; }
.footer-contact-item a { color: rgba(255,255,255,0.7); }
.footer-contact-item a:hover { color: var(--accent); }
.footer-locations-strip { background: var(--primary); padding: 16px 0; }
.footer-locations-strip p { color: rgba(255,255,255,0.65); font-size: 13px; margin: 0; text-align: center; }
.footer-locations-strip a { color: rgba(255,255,255,0.75); margin: 0 6px; font-size: 13px; }
.footer-locations-strip a:hover { color: var(--accent); }
.footer-bottom { background: #080f18; padding: 16px 0; text-align: center; color: rgba(255,255,255,0.4); font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--accent); }
.footer-map { border-radius: var(--radius); overflow: hidden; height: 200px; }
.footer-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero { background: var(--primary); padding: 70px 0 50px; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero .lead { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 600px; }
.breadcrumb-wrap { margin-bottom: 14px; }
.breadcrumb { background: transparent; padding: 0; margin: 0; }
.breadcrumb-item a { color: var(--accent); font-size: 14px; }
.breadcrumb-item.active { color: rgba(255,255,255,0.7); font-size: 14px; }
.breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ---------- CHECKLIST / FEATURE ITEMS ---------- */
.checklist-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-bottom: 18px; }
.checklist-card h4 { color: var(--primary); margin-bottom: 14px; }
.checklist-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.checklist-item:last-child { border-bottom: none; }
.checklist-item .ci-label { color: var(--accent); font-weight: 700; flex-shrink: 0; }
.service-photo-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-bottom: 22px; overflow: hidden; }
.service-photo-card img { height: 280px; object-fit: cover; width: 100%; }
.feature-list { margin: 0; padding: 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.feature-list li:last-child { border-bottom: none; }
.feature-list .fi { color: var(--accent); font-size: 18px; flex-shrink: 0; margin-top: 2px; font-weight: 700; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- MOBILE STICKY CTA ---------- */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: var(--accent); display: none; align-items: center; justify-content: center; padding: 12px; }
@media (max-width: 768px) { .sticky-cta { display: flex; } }
.sticky-cta a { color: var(--white); font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }

/* ---------- UTILITIES ---------- */
.text-accent { color: var(--accent); }
.bg-primary-dark { background: var(--primary); }
.divider { height: 3px; width: 50px; background: var(--accent); border-radius: 2px; margin: 12px 0 24px; }
.divider-center { margin: 12px auto 24px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .hero { min-height: 70vh; }
  .header-badge { display: none; }
  .trust-strip-inner { gap: 20px; }
  .navbar-brand img { width: 190px; }
  .navbar { padding: 8px 0; }
  .navbar .container { align-items: center; }
  .navbar-collapse {
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 14px 0 16px;
  }
  .navbar-nav { gap: 4px; }
  .nav-link {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 11px 14px !important;
    width: 100%;
  }
  .navbar-nav .dropdown-menu {
    background: var(--light);
    border: 1px solid var(--border);
    box-shadow: none;
    margin: 4px 0 8px;
    min-width: 0;
    padding: 8px;
    position: static;
    width: 100%;
  }
  .navbar-nav .dropdown-item {
    padding: 10px 12px;
    white-space: normal;
  }
  .header-actions {
    align-items: stretch;
    border-top: 1px solid var(--border);
    margin: 12px 0 0;
    padding-top: 12px;
    width: 100%;
  }
  .header-phone {
    display: block;
    text-align: center;
    width: 100%;
  }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .topbar-inner { flex-direction: column; align-items: center; gap: 3px; font-size: 12px; }
  .section-pad { padding: 50px 0; }
  .coupon-inner { flex-direction: column; text-align: center; }
  .coupon-offer-grid, .before-after-grid { grid-template-columns: 1fr; }
  .hero-phone { font-size: 1.7rem; }
  .hero-cta { flex-direction: column; }
  .footer-map { height: 160px; }
  body { padding-bottom: 60px; }
  .about-img img { height: 280px; }
  .navbar-brand img { width: 170px; max-width: 58vw; }
}
@media (max-width: 575px) {
  .trust-strip-inner { flex-direction: column; gap: 10px; align-items: center; }
}
