/*
  PROJECT: Garage Door Channelview
  DOMAIN: garagedoorchannelview.com
  NICHE: Garage Door Repair and Installation
  DESIGN SIGNATURE: Channelview Precision Grid
  COLOR SCHEME: #1E40AF + #EA580C + #EFF6FF
  FONTS: Poppins + Open Sans
  LAYOUT PATTERN: Trust & Proof Focused
  HEADER VARIANT: Top contact bar
  HERO VARIANT: Full photographic hero
  SERVICES VARIANT: Numbered modular cards
  TRUST SECTION VARIANT: Proof strip
  CTA VARIANT: High-contrast phone band
  FOOTER VARIANT: Four-column grid plus map
  COUPON PLACEMENT: Inside approved content flow
  IMAGE STYLE: Photorealistic technician action and mechanical detail
*/

:root {
  --primary: #1e40af;
  --primary-dark: #102a73;
  --primary-deep: #091a47;
  --secondary: #3b82f6;
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --background: #eff6ff;
  --surface: #ffffff;
  --surface-soft: #f7faff;
  --ink: #172033;
  --muted: #526078;
  --border: #bfdbfe;
  --focus: #f97316;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 10px 30px rgba(15, 42, 90, .08);
  --shadow-lg: 0 24px 60px rgba(15, 42, 90, .16);
  --transition: 200ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 10% 12%, rgba(59, 130, 246, .08), transparent 28rem),
    radial-gradient(circle at 90% 45%, rgba(234, 88, 12, .06), transparent 24rem);
  pointer-events: none;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

a:hover {
  color: var(--accent-dark);
}

a,
button,
input[type="submit"],
select {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--primary-deep);
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(2.35rem, 5.3vw, 5.6rem);
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 3rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: .75rem 1rem;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--primary-deep);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.utility-bar {
  position: relative;
  z-index: 1031;
  background: var(--primary-deep);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
}

.utility-inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: flex-end;
  gap: 1.35rem;
}

.utility-inner span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.utility-inner span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.utility-inner a {
  color: #fff;
  text-decoration: none;
}

.navbar {
  min-height: 84px;
  border-bottom: 1px solid rgba(30, 64, 175, .12);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  transition: box-shadow var(--transition), min-height var(--transition);
}

.navbar.scrolled {
  min-height: 72px;
  box-shadow: 0 8px 28px rgba(9, 26, 71, .11);
}

.navbar-brand {
  display: inline-flex;
  width: clamp(190px, 22vw, 268px);
  min-height: 56px;
  align-items: center;
}

.navbar-brand img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
}

.navbar-nav {
  gap: .18rem;
}

.nav-link {
  min-height: 44px;
  padding: .7rem .72rem !important;
  border-radius: 8px;
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
  font-size: .94rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: var(--background);
  color: var(--primary);
}

.dropdown-menu {
  max-height: min(68vh, 620px);
  overflow-y: auto;
  padding: .6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.dropdown-item {
  min-height: 44px;
  padding: .68rem .8rem;
  border-radius: 8px;
  font-weight: 600;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--background);
  color: var(--primary);
}

.navbar-toggler {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
}

.btn {
  min-height: 48px;
  padding: .72rem 1.15rem;
  border-radius: 9px;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-accent {
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(234, 88, 12, .25);
}

.btn-accent:hover,
.btn-accent:focus {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.header-phone {
  margin-left: .65rem;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(620px, 76vh, 810px);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--primary-deep);
}

.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 15, 48, .93) 0%, rgba(9, 26, 71, .84) 42%, rgba(9, 26, 71, .18) 74%, rgba(9, 26, 71, .08) 100%);
}

.hero::after {
  position: absolute;
  right: -13vw;
  bottom: -23vw;
  width: 42vw;
  height: 42vw;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  content: "";
}

.hero-content {
  padding-top: 5rem;
  padding-bottom: 5rem;
  color: #fff;
}

.hero-content > * {
  max-width: 770px;
}

.hero h1 {
  margin: .8rem 0 1.2rem;
  color: #fff;
  text-wrap: balance;
}

.hero p {
  max-width: 690px;
  color: #e7efff;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--accent-dark);
  font-family: "Poppins", Arial, sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.eyebrow.light {
  color: #ffb689;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}

.btn-outline-light {
  border-width: 2px;
}

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.section-heading h2 {
  margin-top: .65rem;
}

.proof-strip {
  position: relative;
  z-index: 2;
  padding: 0;
  background: var(--surface);
}

.proof-grid {
  display: grid;
  margin-top: -44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  grid-template-columns: repeat(4, 1fr);
}

.proof-grid div {
  padding: 1.35rem 1.5rem;
  border-right: 1px solid var(--border);
}

.proof-grid div:last-child {
  border-right: 0;
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  color: var(--primary-deep);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.08rem;
}

.proof-grid span {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .92rem;
}

.services-section {
  background: linear-gradient(180deg, #fff, var(--background));
}

.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  position: relative;
  min-height: 260px;
  padding: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.service-card::after {
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 90px;
  height: 90px;
  border: 16px solid var(--background);
  border-radius: 50%;
  content: "";
  transition: transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  border-color: var(--secondary);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.service-card:hover::after {
  border-color: #dbeafe;
  transform: translate(-5px, -5px);
}

.service-number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--accent);
  font-family: "Poppins", Arial, sans-serif;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.service-card h3 {
  margin-bottom: .65rem;
}

.service-card p {
  color: var(--muted);
}

.card-link {
  color: var(--primary);
  font-weight: 700;
}

.before-after {
  background: var(--primary-deep);
}

.before-after .section-heading h2 {
  color: #fff;
}

.comparison-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, 1fr);
}

.comparison-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
}

.comparison-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.comparison-grid figcaption {
  padding: 1rem 1.2rem;
  color: var(--ink);
  font-weight: 600;
}

.gallery-section {
  background: var(--surface-soft);
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.35fr 1fr 1fr;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.gallery-grid img:first-child {
  min-height: 430px;
}

.word-content {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  background: #fff;
}

.content-stack {
  display: grid;
  gap: 1rem;
}

.content-panel {
  position: relative;
  display: grid;
  padding: clamp(1.6rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid #dbe7fb;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.content-panel:nth-of-type(even) {
  background: var(--surface-soft);
}

.content-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
  content: "";
}

.content-panel.has-image {
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.4rem);
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
}

.content-panel h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
}

.content-panel p {
  max-width: 82ch;
  color: #34435b;
}

.content-panel p + p {
  margin-top: .85rem;
}

.content-callout {
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: #fff7ed;
  color: var(--primary-deep) !important;
  font-weight: 700;
}

.content-visual img {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.coupon-section {
  padding: 1.2rem 0;
}

.coupon-layout {
  display: grid;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.6rem, 4vw, 3.2rem);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(239, 246, 255, .98), rgba(255, 247, 237, .98)),
    var(--surface);
  grid-template-columns: 1fr minmax(260px, 420px);
}

.coupon-layout h2 {
  margin: .65rem 0;
}

.coupon-link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.coupon-link:hover {
  transform: translateY(-4px);
}

.coupon-link img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.faq-section {
  background: var(--background);
}

.accordion {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.accordion-item {
  border: 0;
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: 0;
}

.accordion-button {
  min-height: 64px;
  color: var(--primary-deep);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.accordion-button:not(.collapsed) {
  background: #dbeafe;
  color: var(--primary-deep);
  box-shadow: none;
}

.accordion-body {
  color: #34435b;
}

.cta-band {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  background: var(--primary);
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 {
  margin: .5rem 0 0;
  color: #fff;
}

.contact-section {
  background: var(--surface-soft);
}

.contact-shell {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.CUS fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.CUS label {
  display: block;
  margin-bottom: .35rem;
  color: var(--primary-deep);
  font-weight: 700;
}

.form-control {
  min-height: 50px;
  border: 1px solid #9db8e8;
  border-radius: 9px;
  background-color: #fff;
  color: var(--ink);
  font-size: 16px;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .23rem rgba(30, 64, 175, .17);
}

.service-textarea {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  margin-top: .6rem;
}

.page-hero {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(120deg, #eff6ff 0 62%, #fff7ed 62% 100%);
}

.page-hero::after {
  position: absolute;
  right: 6vw;
  bottom: -130px;
  width: 310px;
  height: 310px;
  border: 58px solid rgba(30, 64, 175, .08);
  border-radius: 50%;
  content: "";
}

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

.page-hero h1 {
  max-width: 900px;
  margin: .7rem 0 1rem;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.15rem;
}

.split-card,
.location-card {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  grid-template-columns: 1.2fr .8fr;
}

.info-card,
.status-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.location-card iframe,
.footer-map iframe {
  max-width: 100%;
  border: 0;
  border-radius: var(--radius-md);
}

.contact-intro {
  padding-bottom: 0;
}

.contact-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

.contact-cards > div {
  min-height: 190px;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.contact-cards h2 {
  font-size: 1.25rem;
}

.status-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.status-icon {
  display: grid;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.4rem;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  font-size: 2.6rem;
  font-weight: 800;
}

.error-code {
  display: block;
  color: var(--accent);
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 800;
  line-height: .9;
}

.sitemap-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}

.sitemap-grid section {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.sitemap-grid li + li {
  margin-top: .55rem;
}

.site-footer {
  padding-top: 4.5rem;
  background: var(--primary-deep);
  color: #ced9ee;
}

.footer-grid {
  display: grid;
  gap: 2rem 1.4rem;
  grid-template-columns: 1.25fr 1fr .9fr 1fr 1.55fr;
}

.site-footer h2 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.site-footer p,
.site-footer address,
.site-footer li {
  color: #c7d4eb;
  font-size: .95rem;
}

.site-footer a {
  color: #fff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: .42rem;
}

.site-footer img {
  width: 250px;
  max-width: 100%;
  border-radius: 8px;
  background: #fff;
}

.footer-map iframe {
  width: 100%;
  height: 210px;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #b8c7e2;
  text-align: center;
}

.mobile-call {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Blog styles adapted from the supplied blog.php file. */
.blog-content {
  max-width: 980px;
}

.blogbox,
.blogpost {
  clear: both;
  margin-bottom: 1.2rem;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.blogbox .blogimg img,
.blogpost .blog_wrapper img {
  float: right;
  width: min(38%, 380px);
  height: auto;
  margin: 0 0 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.blogbox .read-more a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .65rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.blogpost h1,
.blogbox h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.blogpost h2,
.blogbox h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.socialbox {
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.social-share-btns {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.social-share-btns .share-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .65rem 1rem;
  border-radius: 7px;
  background: #64748b;
  color: #fff;
  text-decoration: none;
}

.social-share-btns .share-btn svg {
  width: 1rem;
  height: 1rem;
  margin-right: .55rem;
  fill: currentColor;
}

.share-btn-twitter {
  background: #0ea5e9 !important;
}

.share-btn-facebook {
  background: #1d4ed8 !important;
}

.share-btn-linkedin {
  background: #0369a1 !important;
}

@media (max-width: 1199.98px) {
  .header-phone {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-map {
    grid-column: 1 / -1;
  }

  .footer-map iframe {
    height: 260px;
  }
}

@media (max-width: 991.98px) {
  .utility-inner span:nth-child(3) {
    display: none;
  }

  .navbar-collapse {
    max-height: calc(100vh - 130px);
    padding: 1rem 0;
    overflow-y: auto;
  }

  .navbar-nav {
    align-items: stretch !important;
  }

  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin-top: .35rem;
    padding: .5rem;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
  }

  .navbar-nav .dropdown-item {
    min-height: 44px;
    padding: .7rem .9rem;
    white-space: normal;
  }

  .header-phone {
    display: inline-flex;
    margin: 1rem 0 0;
  }

  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(4, 15, 48, .94), rgba(9, 26, 71, .79));
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-grid div:nth-child(2) {
    border-right: 0;
  }

  .proof-grid div:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid img:first-child {
    grid-column: 1 / -1;
  }

  .content-panel.has-image,
  .coupon-layout,
  .split-card,
  .location-card {
    grid-template-columns: 1fr;
  }

  .content-panel.has-image .content-visual {
    order: -1;
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 64px;
  }

  .utility-inner {
    justify-content: space-between;
    gap: .65rem;
  }

  .utility-inner span:nth-child(2),
  .utility-inner span:nth-child(3) {
    display: none;
  }

  .navbar {
    min-height: 74px;
  }

  .navbar-brand {
    width: 205px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-media {
    object-position: 62% center;
  }

  .hero-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.8rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .proof-grid {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: 1fr;
  }

  .proof-grid div,
  .proof-grid div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .proof-grid div:last-child {
    border-bottom: 0;
  }

  .services-grid,
  .comparison-grid,
  .gallery-grid,
  .contact-cards,
  .sitemap-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 220px;
  }

  .gallery-grid img,
  .gallery-grid img:first-child {
    min-height: 280px;
    grid-column: auto;
  }

  .content-panel {
    padding: 1.35rem;
  }

  .content-panel.has-image {
    grid-template-columns: minmax(0, 1fr);
  }

  .coupon-layout {
    padding: 1.35rem;
  }

  .cta-band .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-band .btn {
    width: 100%;
  }

  .page-hero {
    background: var(--background);
  }

  .page-hero::after {
    display: none;
  }

  .footer-map {
    grid-column: auto;
  }

  .mobile-call {
    position: fixed;
    z-index: 1060;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    border-top: 2px solid #fff;
    background: var(--accent);
    color: #fff;
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 -8px 24px rgba(9, 26, 71, .25);
  }

  .blogbox .blogimg img,
  .blogpost .blog_wrapper img {
    float: none;
    width: 100%;
    margin: 0 0 1rem;
  }
}

@media (max-width: 374.98px) {
  .utility-inner {
    font-size: .76rem;
  }

  .navbar-brand {
    width: 180px;
  }

  .section {
    padding: 4rem 0;
  }
}

/* Professional editorial redesign — clearer hierarchy and long-form navigation. */
:root {
  --primary: #1746a2;
  --primary-dark: #10377f;
  --primary-deep: #071b36;
  --secondary: #2e65c4;
  --accent: #e85d13;
  --accent-dark: #bd4308;
  --background: #f1f5f9;
  --surface-soft: #f7f9fc;
  --ink: #142238;
  --muted: #526173;
  --border: #d5deea;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 8px 24px rgba(7, 27, 54, .07);
  --shadow-lg: 0 24px 56px rgba(7, 27, 54, .14);
}

html,
body { overflow-x: clip; }

body::before { display: none; }

h1,
h2,
h3,
h4 { letter-spacing: -.035em; }

.navbar { min-height: 88px; border-bottom-color: #dce3ec; }
.navbar.scrolled { min-height: 76px; box-shadow: 0 10px 30px rgba(7, 27, 54, .09); }
.nav-link { border-radius: 4px; }
.nav-link:hover,
.nav-link.active { background: transparent; box-shadow: inset 0 -2px 0 var(--accent); }

.hero { min-height: clamp(640px, 77vh, 800px); }
.hero-overlay { background: linear-gradient(90deg, rgba(4, 18, 39, .96) 0%, rgba(7, 27, 54, .91) 45%, rgba(7, 27, 54, .34) 76%, rgba(7, 27, 54, .13) 100%); }
.hero::after { right: 0; bottom: 0; width: 34%; height: 10px; border: 0; border-radius: 0; background: var(--accent); }
.hero-layout { display: grid; align-items: end; gap: clamp(2rem, 6vw, 6rem); padding-top: 6rem; padding-bottom: 5.5rem; grid-template-columns: minmax(0, 1fr) 290px; }
.hero-content { padding: 0; }
.hero-content > * { max-width: 760px; }
.hero h1 { max-width: 820px; font-size: clamp(2.8rem, 5.5vw, 5.5rem); }
.hero p { max-width: 650px; line-height: 1.65; }
.hero-brief { display: grid; align-self: end; gap: .32rem; padding: 1.6rem; border-top: 4px solid var(--accent); background: rgba(255, 255, 255, .96); color: var(--muted); box-shadow: var(--shadow-lg); }
.hero-brief strong { color: var(--primary-deep); font-family: "Poppins", Arial, sans-serif; font-size: 1.08rem; }
.hero-brief hr { width: 100%; margin: .75rem 0; border-color: var(--border); opacity: 1; }
.hero-brief a { margin-top: .9rem; color: var(--primary); font-family: "Poppins", Arial, sans-serif; font-weight: 800; text-decoration: none; }
.brief-label { margin-bottom: .55rem; color: var(--accent-dark); font-family: "Poppins", Arial, sans-serif; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.proof-grid { margin-top: -38px; border-radius: 8px; box-shadow: 0 16px 40px rgba(7, 27, 54, .12); }
.proof-grid div { position: relative; padding: 1.5rem; }
.proof-grid div::before { display: block; margin-bottom: .65rem; color: var(--accent); font-family: "Poppins", Arial, sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .12em; content: "VERIFIED DETAIL"; }

.services-section { background: #fff; }
.services-grid { gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.service-card { min-height: 250px; border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 0; }
.service-card::after { display: none; }
.service-card:hover { z-index: 1; border-color: var(--border); background: var(--surface-soft); box-shadow: inset 0 4px 0 var(--accent); transform: none; }
.service-number { margin-bottom: 2rem; color: var(--primary); }
.card-link { display: inline-block; margin-top: .5rem; }

.before-after { background: var(--primary-deep); }
.comparison-grid { gap: 2px; background: rgba(255,255,255,.22); }
.comparison-grid figure,
.comparison-grid img { border-radius: 0; }
.gallery-section { background: var(--background); }
.gallery-grid { gap: .75rem; }
.gallery-grid img { border-radius: 8px; box-shadow: none; }

.word-content { padding-top: clamp(5rem, 9vw, 8rem); background: #fff; }
.content-layout { display: grid; align-items: start; gap: clamp(2.5rem, 6vw, 6.5rem); grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); }
.article-rail { position: sticky; top: 120px; min-width: 0; }
.article-rail-inner { padding-top: 1.25rem; border-top: 4px solid var(--primary); }
.rail-kicker,
.chapter-label { color: var(--accent-dark); font-family: "Poppins", Arial, sans-serif; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.article-rail h2 { margin: .55rem 0 1rem; font-size: 1.25rem; }
.article-rail ol { margin: 0; padding: 0; border-top: 1px solid var(--border); list-style: none; }
.article-rail li { border-bottom: 1px solid var(--border); }
.article-rail li a { display: grid; min-width: 0; padding: .72rem 0; color: var(--muted); font-size: .86rem; font-weight: 700; line-height: 1.35; text-decoration: none; grid-template-columns: 30px minmax(0, 1fr); }
.article-rail li a span { color: var(--primary); font-family: "Poppins", Arial, sans-serif; font-size: .7rem; }
.article-rail li a:hover { color: var(--primary-deep); }
.rail-contact { display: grid; gap: .25rem; margin-top: 1.5rem; padding: 1.25rem; background: var(--primary-deep); color: #dce7f5; }
.rail-contact strong { color: #fff; font-family: "Poppins", Arial, sans-serif; }
.rail-contact span { font-size: .84rem; }
.rail-contact a { margin-top: .55rem; color: #ffb286; font-weight: 800; text-decoration: none; }
.content-stack { gap: 0; min-width: 0; }
.content-panel { padding: clamp(1.75rem, 3vw, 3rem) 0; overflow: visible; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: #fff !important; scroll-margin-top: 120px; }
.content-panel:first-child { padding-top: 0; }
.content-panel::before { display: none; }
.content-panel h2 { max-width: 22ch; margin: .55rem 0 1.25rem; font-size: clamp(1.65rem, 2.8vw, 2.5rem); text-wrap: balance; }
.content-panel p { max-width: 72ch; color: #344256; font-size: 1.02rem; }
.content-panel.has-image { gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); }
.content-visual img { border-radius: 8px; box-shadow: none; }
.content-callout { max-width: 70ch !important; margin: 1.4rem 0; padding: 1.05rem 1.25rem; border-left-width: 4px; background: #fff5ee; }
.coupon-section { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.coupon-layout { padding: clamp(1.5rem, 3vw, 2.4rem); border: 1px solid var(--border); border-top: 5px solid var(--accent); border-radius: 8px; background: var(--surface-soft); box-shadow: none; }
.coupon-link { border-radius: 6px; box-shadow: var(--shadow-sm); }

.faq-section { background: var(--background); }
.accordion { border-radius: 8px; box-shadow: none; }
.contact-shell { border-radius: 12px; box-shadow: none; }
.cta-band { position: relative; background: var(--primary); }
.cta-band::before { position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--accent); content: ""; }
.page-hero { background: linear-gradient(90deg, #f1f5f9 0 72%, #e8eef6 72%); }
.page-hero::after { border-radius: 0; transform: rotate(12deg); }
.site-footer { background: #06182f; }

@media (max-width: 991.98px) {
  .hero-layout { align-items: center; grid-template-columns: 1fr; }
  .hero-brief { display: none; }
  .content-layout { grid-template-columns: 1fr; }
  .article-rail { position: static; }
  .article-rail-inner { display: grid; column-gap: 2rem; grid-template-columns: 1fr 2fr; }
  .article-rail h2 { grid-column: 1; }
  .article-rail ol { grid-row: 1 / span 4; grid-column: 2; }
  .rail-contact { align-self: start; grid-column: 1; }
}

@media (max-width: 767.98px) {
  .navbar { min-height: 76px; }
  .nav-link:hover,
  .nav-link.active { box-shadow: inset 3px 0 0 var(--accent); }
  .hero { min-height: 620px; }
  .hero-layout { padding-top: 4rem; padding-bottom: 4.5rem; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3.65rem); }
  .article-rail-inner { display: block; }
  .article-rail ol { max-height: 300px; overflow-y: auto; }
  .rail-contact { display: none; }
  .content-panel.has-image { grid-template-columns: 1fr; }
  .content-panel.has-image .content-visual { order: 0; }
  .proof-grid div::before { margin-bottom: .35rem; }
  .page-hero { background: var(--background); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
