/* ==========================================================================
   MUSLOW INSURANCE - MASTER STYLESHEET
   ========================================================================== */

:root {
  --brand-red: #A82020;
  --dark-text: #222222;
  --light-gray: #f4f4f4;
  --white: #ffffff;
  --gold-star: #f5c518;
  --border-gray: #dddddd;
  --success-green: #2e7d32;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  background-color: var(--light-gray);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 15px;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
  background-color: var(--white);
  padding: 2px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.header-left {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  margin-right: 35px;
}

.logo-container {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  pointer-events: none; /* Prevents container bounding box from capturing clicks */
}

.logo img, .logo-container img {
  max-height: 172px; 
  width: auto;
  display: block;
  margin-top: -35px; 
  margin-bottom: -35px; 
  position: relative;
  z-index: 10;
  pointer-events: auto; /* Ensures the logo image itself remains clickable */
}

/* Hamburger Button (Hidden on Desktop) */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--brand-red);
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s;
  position: relative;
  z-index: 20;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

nav ul li a {
  font-weight: 600;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--brand-red);
}

/* Dropdown Menus */
header nav ul > li {
  position: relative; 
}

header nav ul li.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 15px;
}

.dropdown {
  position: absolute;
  top: calc(100% + 4px); 
  left: 50%;
  transform: translateX(-50%); 
  background-color: var(--white);
  border: 1.5px solid var(--brand-red);
  border-radius: 4px;
  width: max-content;
  min-width: 135px; 
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 1000;
  gap: 0; 
  overflow: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Updated for Keyboard Accessibility (Hover + Focus-Within) */
header nav ul li.has-dropdown:hover .dropdown,
header nav ul li.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
}

.dropdown li {
  width: 100%;
}

.dropdown li:not(:last-child) {
  border-bottom: 1.5px solid var(--brand-red);
}

.dropdown li a {
  padding: 12px 16px;
  display: block;
  color: var(--dark-text);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown li a:hover {
  background-color: var(--light-gray);
  color: var(--brand-red);
}

/* Header Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 30;
}

.header-btn {
  background-color: var(--brand-red);
  color: var(--white);
  padding: 10px 0;
  width: 170px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 2px solid var(--dark-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  text-align: center;
  position: relative;
  z-index: 50;
  pointer-events: auto;
}

.header-btn:hover {
  background-color: var(--dark-text);
  color: var(--white);
}

.header-call-btn {
  background-color: var(--white);
  color: var(--dark-text);
}

.header-call-btn i {
  color: var(--brand-red);
  transition: color 0.3s ease;
}

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

.header-call-btn:hover i {
  color: var(--white);
}

/* Header Variations (Quote Page) */
.header-center-text {
  flex: 2;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-center-text .logo-subtext {
  font-family: 'Montserrat', sans-serif;
  font-size: 16.8px; 
  font-weight: 800;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 1.5px; 
  margin: 0; 
  line-height: 1; 
  display: inline-block;
  transform: scaleY(1.15); 
}

.header-contact-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.header-contact-btn {
  padding: 8px 15px;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--brand-red);
}

.call-btn { background-color: var(--brand-red); color: var(--white); }
.call-btn:hover { background-color: var(--white); color: var(--brand-red); }
.text-btn { background-color: var(--white); color: var(--brand-red); }
.text-btn:hover { background-color: var(--brand-red); color: var(--white); }

/* ==========================================================================
   GLOBAL SHARED COMPONENTS
   ========================================================================== */

/* Inner Page Standard Hero */
.about-hero {
  position: relative;
  background-color: var(--brand-red);
  color: var(--white);
  padding: 50px 5% 75px 5%; 
  text-align: center;
  overflow: hidden;
}

.about-hero-badge {
  display: block;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
  opacity: 0.85;
}

.about-hero h1 {
  font-size: 38px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.45);
}

.about-hero p {
  font-size: 17px;
  font-weight: 600;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
  text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Inner Page Slant Divider */
.inner-shape-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
  filter: drop-shadow(0px -6px 15px rgba(0, 0, 0, 0.35));
}

.inner-shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 25px; 
}

.inner-shape-divider .shape-fill {
  fill: var(--white);
}

/* Call to Action Banner */
.cta-banner {
  background-color: var(--dark-text);
  color: var(--white);
  padding: 30px 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 45px; 
  flex-wrap: wrap;
  border-bottom: 3px solid var(--brand-red);
}

.cta-banner h2 {
  font-size: 28px;
  color: var(--white);
  margin: 0; 
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8.5px; 
  background-color: var(--brand-red);
  color: var(--white);
  padding: 8.5px 17px; 
  font-family: 'Montserrat', sans-serif;
  font-size: 11.8px; 
  font-weight: 700;
  border-radius: 5px; 
  text-transform: uppercase;
  letter-spacing: 0.85px; 
  transition: all 0.3s ease;
  border: 1.7px solid var(--brand-red); 
  margin: 0;
}

.cta-btn:hover {
  background-color: var(--white);
  color: var(--brand-red);
}

/* Universal Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-red);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 30px;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--dark-text);
}

/* ==========================================================================
   HOMEPAGE SPECIFIC (index.html)
   ========================================================================== */

.reviews-section {
  background-color: var(--white);
  padding: 8px 5%;
  text-align: center;
  border-top: 1px solid #eaeaea; 
  border-bottom: 1.5px solid var(--dark-text); 
  position: relative;
  z-index: 90;
}

.local-agency-banner {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 8px;
  margin-bottom: 2px;
}

.reviews-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  margin-bottom: 4px;
  font-weight: 700;
}

.review-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  height: 75px;
}

.review-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.review-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.stars { color: var(--gold-star); font-size: 13px; margin-bottom: 4px; }
.review-text { font-size: 15px; font-style: italic; font-weight: 600; color: var(--dark-text); margin-bottom: 2px; line-height: 1.4; }
.review-author { font-size: 13px; color: #555; font-weight: 700; }

/* =========================================
   CUSTOM HERO LAYOUT (Overlapping Card)
   ========================================= */
.custom-hero-layout {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 55vh; 
  padding: 40px 5% 70px 5%; 
  overflow: hidden;
  background-color: #111;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.hero-content-card {
  position: relative;
  z-index: 1;
  background-color: var(--brand-red);
  color: var(--white);
  max-width: 500px; 
  padding: 35px 35px; 
  border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  margin-top: 15px; 
}

.trust-badge {
  display: block;
  color: rgba(255, 255, 255, 0.75); 
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.hero-content-card h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.1rem; 
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
}

.hero-tagline {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 25px;
  opacity: 0.95;
}

.hero-cta {
  display: inline-block;
  background-color: var(--white);
  color: var(--brand-red);
  padding: 12px 25px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  background-color: #f8f8f8;
  color: var(--brand-red);
}

.custom-shape-divider-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
  filter: drop-shadow(0px -6px 15px rgba(0, 0, 0, 0.35));
}

.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px; 
}

.custom-shape-divider-bottom .shape-fill {
  fill: var(--white); 
}

.why-us {
  padding: 40px 5% 60px 5%;
  background-color: var(--white);
  text-align: center;
  position: relative;
  z-index: 5;
}

.why-us h2 { font-size: 36px; color: var(--brand-red); margin-bottom: 15px; }
.why-us > p { max-width: 700px; margin: 0 auto 50px auto; font-size: 18px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.pillar-card {
  background: var(--light-gray);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.pillar-card:hover { transform: translateY(-5px); }
.pillar-card i { font-size: 40px; color: var(--brand-red); margin-bottom: 20px; }

.carrier-carousel-section {
  background-color: var(--white);
  padding: 20px 0 15px 0;
  border-top: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
  text-align: center;
  overflow: hidden;
}

.carrier-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #333333;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
  position: relative;
  top: 14px;
}

.carousel-track-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  position: relative;
  width: 100%;
}

.carousel-track-container::before, .carousel-track-container::after {
  content: ""; position: absolute; top: 0; width: 120px; height: 100%; z-index: 2; pointer-events: none;
}
.carousel-track-container::before { left: 0; background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0)); }
.carousel-track-container::after { right: 0; background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0)); }

.carousel-track {
  display: flex; gap: 55px; align-items: center; width: max-content;
  animation: infiniteScroll 85s linear infinite;
  animation-play-state: paused;
}

.carrier-logo-item { height: 130px; width: auto; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.carrier-logo-item.wrap-lloyds { margin-left: -20px; }
.carrier-logo-item.wrap-safeway { margin-left: -30px; }
.carrier-logo-item img { width: auto; height: auto; object-fit: contain; opacity: 0.95; transition: transform 0.3s ease, opacity 0.3s ease; }
.carrier-logo-item img:hover { opacity: 1; transform: scale(1.05); }

.carrier-logo-item img.logo-progressive { max-height: 92px; max-width: 270px; }
.carrier-logo-item img.logo-geico { max-height: 78px; max-width: 250px; transform: translateY(4px); }
.carrier-logo-item img.logo-geico:hover { transform: translateY(4px) scale(1.05); }
.carrier-logo-item img.logo-allstate { max-height: 92px; max-width: 260px; }
.carrier-logo-item img.logo-natgen { max-height: 72px; max-width: 250px; transform: translateY(6px); }
.carrier-logo-item img.logo-natgen:hover { transform: translateY(6px) scale(1.05); }
.carrier-logo-item img.logo-liberty { max-height: 110px; max-width: 290px; }
.carrier-logo-item img.logo-farmers { max-height: 105px; max-width: 230px; }
.carrier-logo-item img.logo-foremost { max-height: 112px; max-width: 300px; transform: translateX(15px); }
.carrier-logo-item img.logo-emc { max-height: 78px; max-width: 220px; }
.carrier-logo-item img.logo-lloyds { max-height: 72px; max-width: 220px; }
.carrier-logo-item img.logo-safeway { max-height: 140px; max-width: 400px; }
.carrier-logo-item img.logo-towerhill { max-height: 75px; max-width: 220px; }

@keyframes infiniteScroll { 0% { transform: translateX(calc(-33.33333% + 22vw)); } 100% { transform: translateX(calc(-66.66666% + 22vw)); } }

.quote-section {
  background-color: var(--light-gray);
  padding: 40px 5% 60px 5%;
  text-align: center;
  box-shadow: inset 0 5px 15px rgba(0,0,0,0.03);
}

.quote-section h2 { color: var(--dark-text); font-size: 36px; font-weight: 800; margin-bottom: 30px; }
.quote-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; max-width: 900px; margin: 0 auto; }

.quote-btn {
  background-color: var(--white);
  color: var(--brand-red);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 3px solid var(--brand-red);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  aspect-ratio: 1 / 1;
  width: 100%;
}

.quote-btn:hover {
  transform: translateY(-6px);
  background-color: var(--brand-red);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(168, 32, 32, 0.3);
}

.quote-btn i { font-size: 36px; margin-bottom: 12px; color: var(--brand-red); transition: color 0.3s ease; }
.quote-btn:hover i { color: var(--white); }
.icon-group { display: flex; gap: 5px; align-items: center; }

.agents-section {
  padding: 40px 5% 60px 5%;
  background-color: var(--white);
  text-align: center;
}

.agents-section h2 { font-size: 36px; color: var(--brand-red); margin-bottom: 15px; }
.agents-section > p { max-width: 700px; margin: 0 auto 25px auto; font-size: 18px; color: #555; }

.team-cta {
  display: inline-flex;
  align-items: center;
  background-color: var(--brand-red);
  color: var(--white);
  padding: 10px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  border: 2px solid var(--brand-red);
}

.team-cta:hover {
  background-color: var(--white);
  color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

/* ==========================================================================
   ABOUT PAGE SPECIFIC (about.html)
   ========================================================================== */

.our-story {
  padding: 48px 5% 100px 5%; 
  background-color: var(--white);
  display: flex;
  justify-content: center;
  flex: 1; 
}

.story-container {
  max-width: 900px;
  text-align: center;
}

.story-container h2 {
  font-size: 32px;
  color: var(--brand-red);
  margin-bottom: 11px;
}

.story-container p {
  font-size: 17px;
  color: #444;
  margin-bottom: 15px;
  line-height: 1.8;
}

.story-container p:last-child {
  margin-bottom: 0; 
}

/* ==========================================================================
   TEAM PAGE SPECIFIC (team.html)
   ========================================================================== */

.team-section {
  padding: 40px 5% 60px 5%; 
  background-color: var(--light-gray);
  text-align: center;
  flex: 1; 
}

.team-section h2 {
  font-size: 36px;
  color: var(--dark-text);
  margin-bottom: 8px; 
}

.team-section > p {
  font-size: 18px;
  color: #444; 
  max-width: 700px;
  margin: 0 auto 30px auto; 
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px; 
  max-width: 800px; 
  margin: 0 auto;
}

.team-card {
  background: var(--white);
  padding: 25px 20px; 
  border-radius: 12px;
  border: 1.5px solid var(--brand-red); 
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); 
}

.team-card:hover {
  transform: translate(3px, -3px); 
}

.team-img-wrapper {
  width: 130px;
  height: 130px;
  margin: 0 auto 15px auto;
  border-radius: 50%;
  border: 4px solid var(--light-gray);
  overflow: hidden;
  background-color: #e2e2e2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-img-wrapper i { font-size: 50px; color: #aaa; }
.team-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.team-card h3 { font-size: 22px; color: var(--dark-text); margin-bottom: 5px; }
.team-card .agent-title { font-size: 14px; color: var(--brand-red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }
.team-card .agent-bio { font-size: 14px; color: #555; line-height: 1.5; }

/* ==========================================================================
   BLOG & ARTICLES SPECIFIC (blog.html & posts)
   ========================================================================== */

.blog-hero {
  background-color: var(--light-gray);
  color: var(--brand-red);
  padding: 45px 5%; 
  text-align: center;
  border-bottom: 2px solid var(--brand-red);
}

.blog-hero h1 {
  font-size: 38px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-hero p {
  font-size: 17px;
  font-weight: 600;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
  color: var(--dark-text);
}

.blog-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 5%;
  flex: 1;
}

/* Featured Post */
.featured-post {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--brand-red);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 50px;
  transition: transform 0.25s ease;
}

.featured-post:hover { transform: translate(1px, -1px); }

.featured-img { background: url('images/storm.png') center/cover no-repeat; min-height: 300px; }

.featured-content { padding: 35px; display: flex; flex-direction: column; justify-content: center; }

.post-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
  align-items: center;
  font-weight: 600;
}

.post-category {
  background-color: var(--brand-red);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-content h2 { font-size: 26px; color: var(--dark-text); line-height: 1.3; margin-bottom: 15px; }
.featured-content p { font-size: 15px; color: #555; margin-bottom: 20px; }

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-red);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.read-more-btn:hover { color: var(--dark-text); }

/* Articles Grid */
.section-title {
  font-size: 28px;
  color: var(--dark-text);
  margin-bottom: 25px;
  border-bottom: 2px solid var(--brand-red);
  padding-bottom: 10px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.article-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 30px;
  border: 2px solid var(--brand-red);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease;
}

.article-card:hover { transform: translate(1px, -1px); }
.article-card h3 { font-size: 20px; color: var(--dark-text); margin-bottom: 12px; line-height: 1.4; }
.article-card p { font-size: 14px; color: #555; margin-bottom: 20px; line-height: 1.6; }

.archive-section {
  text-align: center;
  padding: 30px 0 20px 0;
  border-top: 2px solid var(--brand-red);
  margin-top: 10px;
}

.archive-section h3 { font-size: 20px; color: var(--dark-text); margin-bottom: 15px; }
.archive-btn { width: auto; padding: 12px 30px; font-size: 15px; }

/* Individual Article Pages */
.article-hero {
  background: linear-gradient(rgba(168, 32, 32, 0.9), rgba(168, 32, 32, 0.9)), url('../images/shreveport.png') center/cover no-repeat;
  color: var(--white);
  padding: 30px 5%;
  text-align: center;
  border-bottom: 2px solid var(--dark-text);
}

.article-hero-content { max-width: 900px; margin: 0 auto; }
.article-hero .post-category {
  background-color: var(--white);
  color: var(--brand-red);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 12px;
}
.article-hero h1 { font-size: 23px; margin-bottom: 12px; text-transform: uppercase; }
.article-hero .post-meta {
  font-size: 13px; font-weight: 600; opacity: 0.9; display: flex; justify-content: center; gap: 20px;
}

.article-main {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 5%;
  flex: 1;
  background-color: var(--white);
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding-top: 40px;
  padding-bottom: 40px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.article-body h2 { font-size: 26px; color: var(--dark-text); margin-top: 40px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.article-body h3 { font-size: 20px; color: var(--dark-text); margin-top: 30px; margin-bottom: 15px; }
.article-body p { margin-bottom: 20px; font-size: 16px; color: #444; }
.article-body ul { margin-bottom: 25px; padding-left: 20px; }
.article-body li { margin-bottom: 10px; font-size: 16px; color: #444; }
.article-body strong { color: var(--dark-text); }

.article-cta {
  background-color: #f9f9f9;
  border-left: 6px solid var(--brand-red);
  border: 1px solid #eaeaea;
  border-left-width: 6px;
  padding: 30px;
  margin-top: 50px;
  border-radius: 16px;
}

.article-cta h3 { margin-top: 0; color: var(--brand-red); }
.article-cta p { margin-bottom: 20px; }
.article-cta .header-btn { width: auto; padding: 12px 35px; font-size: 15px; }

/* ==========================================================================
   ARCHIVE PAGE SPECIFIC (archive.html)
   ========================================================================== */

.archive-years-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 20px 0 80px 0;
}

.year-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  border: 2px solid #eaeaea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 100%;
  max-width: 300px; 
}

.year-card:hover {
  border-color: var(--brand-red);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(168, 32, 32, 0.12);
}

.year-card i { font-size: 40px; color: var(--brand-red); margin-bottom: 15px; transition: transform 0.3s ease; }
.year-card:hover i { transform: scale(1.1); }
.year-card h2 { font-size: 32px; color: var(--dark-text); margin-bottom: 5px; }
.year-card p { font-size: 13px; color: #666; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   QUOTE REQUEST SPECIFIC (quote-request.html)
   ========================================================================== */

.landing-wrapper {
  max-width: 1250px;
  margin: 35px auto;
  padding: 0 4%;
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 40px;
  align-items: flex-start;
}

.trust-panel { padding-top: 10px; }
.trust-panel h1 { font-size: 34px; color: var(--brand-red); line-height: 1.2; margin-bottom: 15px; }
.trust-panel p { font-size: 15px; color: #555; margin-bottom: 25px; }

.benefit-list { list-style: none; margin-bottom: 20px; }
.benefit-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 18px; }
.benefit-list i { font-size: 22px; color: var(--brand-red); margin-top: 3px; }
.benefit-text h4 { font-size: 15px; color: var(--dark-text); margin-bottom: 2px; }
.benefit-text p { font-size: 13px; color: #666; margin-bottom: 0; }

.security-badge {
  display: inline-flex; 
  align-items: center;
  gap: 10px;
  background: #eef5e9;
  border: 1px solid #c8e6c9;
  padding: 10px 16px; 
  border-radius: 8px;
  color: var(--success-green);
}

.security-badge i { font-size: 22px; }
.security-badge div { font-size: 12px; font-weight: 600; line-height: 1.4; text-align: left; }

.form-card {
  background: var(--white);
  padding: 30px 35px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border-top: 3px solid var(--brand-red);
}

.form-card h2 { font-size: 22px; text-align: center; margin-bottom: 20px; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--dark-text); }
.form-group label strong { color: var(--brand-red); font-weight: 800; font-family: 'Montserrat', sans-serif; }
.form-group label .sub-label { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-red); font-style: italic; margin-left: 6px; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fbfbfb;
  box-shadow: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(168, 32, 32, 0.08);
  background-color: var(--white);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23222222%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: 12px auto;
  cursor: pointer;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.upload-container { margin-bottom: 20px; }
.upload-area {
  border: 2px dashed #cccccc;
  border-radius: 8px;
  padding: 16px 20px;
  text-align: center;
  background-color: #fafafa;
  transition: border-color 0.3s;
  cursor: pointer;
  position: relative;
  margin-bottom: 8px;
}
.upload-area:hover { border-color: var(--brand-red); background-color: #fff9f9; }
.upload-area i { font-size: 24px; color: var(--brand-red); margin-bottom: 4px; }
.upload-area span { display: block; font-weight: 600; font-size: 14px; color: var(--dark-text); }
.upload-area small { display: block; font-size: 11px; color: #777; margin-top: 2px; }
.upload-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.file-success-bar {
  background-color: #eef5e9;
  border: 1px solid #c8e6c9;
  color: var(--success-green);
  padding: 10px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.add-another-btn {
  background-color: #fbfbfb;
  color: var(--dark-text);
  border: 1px dashed var(--border-gray);
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none; 
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
  font-family: 'Open Sans', sans-serif;
}
.add-another-btn:hover { border-color: var(--brand-red); color: var(--brand-red); background-color: var(--white); }

.upload-tip {
  font-size: 12px;
  color: #666;
  background: #f0f0f0;
  padding: 10px;
  border-radius: 6px;
  border-left: 3px solid var(--brand-red);
  margin-top: 5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.upload-tip i { color: var(--brand-red); margin-top: 2px; }

.submit-btn {
  width: 100%;
  background-color: var(--brand-red);
  color: var(--white);
  border: none;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}
.submit-btn:hover { background-color: var(--dark-text); transform: translateY(-2px); }

.privacy-note { text-align: center; font-size: 11px; color: #888; margin-top: 12px; }

/* ==========================================================================
   CONTACT PAGE SPECIFIC (contact.html)
   ========================================================================== */

.modern-contact-hero {
  background: linear-gradient(135deg, var(--white) 0%, #f4f4f4 100%);
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 5%;
  padding-right: 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid #e2e2e2;
}

.modern-contact-hero h1 { font-size: 32px; color: var(--dark-text); margin-top: 0; margin-bottom: 5px; line-height: 1.2; text-transform: uppercase; letter-spacing: 1px; }
.modern-contact-hero p { font-size: 16px; color: #555; max-width: 600px; margin-top: 0; margin-bottom: 15px; font-weight: 600; line-height: 1.4; }

.quick-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 0; }
.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.btn-text { background-color: var(--brand-red); color: var(--white); border: 2px solid var(--brand-red); box-shadow: 0 4px 15px rgba(168, 32, 32, 0.25); }
.btn-text:hover { background-color: var(--white); color: var(--brand-red); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(168, 32, 32, 0.15); }
.btn-call { background-color: var(--dark-text); color: var(--white); border: 2px solid var(--dark-text); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); }
.btn-call:hover { background-color: var(--white); color: var(--dark-text); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }

.contact-page-section { padding: 40px 5% 80px 5%; background-color: var(--light-gray); flex: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 1100px; margin: 0 auto 35px auto; align-items: flex-start; }

.contact-info { display: flex; flex-direction: column; justify-content: flex-start; padding-top: 0; margin-top: -5px; }
.contact-info h2 { font-size: 28px; color: var(--brand-red); margin-bottom: 10px; }
.contact-info > p { font-size: 16px; color: #555; margin-bottom: 30px; max-width: 450px; }

.info-item { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 25px; }
.info-item i { font-size: 24px; color: var(--brand-red); margin-top: 2px; width: 30px; text-align: center; }
.info-item h4 { font-size: 15px; color: var(--dark-text); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.info-item p { font-size: 14px; color: #555; line-height: 1.5; }
.info-item a { color: #555; transition: color 0.3s ease; }
.info-item a:hover { color: var(--brand-red); text-decoration: underline; }

.contact-form-container {
  background: var(--white);
  padding: 30px 35px;
  border-radius: 12px;
  border: 1.5px solid var(--brand-red);
  transform: translateY(-8px);
}
.contact-form-container h2 { font-size: 28px; color: var(--dark-text); margin-bottom: 20px; text-align: left; }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 16px; border: 1.5px solid #e0e0e0; border-radius: 6px; font-family: 'Open Sans', sans-serif; font-size: 15px; transition: all 0.3s ease; background-color: #fafafa; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand-red); background-color: var(--white); box-shadow: 0 0 0 3px rgba(168, 32, 32, 0.1); }

.map-container {
  max-width: 1100px;
  margin: 0 auto;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #cccccc;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  background-color: var(--white);
}

/* ==========================================================================
   THANK YOU PAGE SPECIFIC (thank-you.html)
   ========================================================================== */

.thank-you-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 5%; }
.thank-you-card {
  background: var(--white);
  padding: 60px 50px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 650px;
  border-top: 5px solid var(--brand-red);
}
.thank-you-card i.fa-circle-check { font-size: 70px; color: var(--success-green); margin-bottom: 25px; }
.thank-you-card h1 { font-size: 36px; color: var(--brand-red); margin-bottom: 20px; line-height: 1.2; }
.thank-you-card p { font-size: 18px; color: #555; margin-bottom: 35px; }

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--brand-red);
  color: var(--white);
  padding: 12px 24px; 
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
.home-btn:hover { background-color: var(--dark-text); transform: translateY(-2px); color: var(--white); }

/* ==========================================================================
   FOOTER (UNIVERSAL)
   ========================================================================== */

/* GLOBAL FOOTER DISCLAIMER */
.legal-disclaimer {
  font-size: 11px;
  color: #888888;
  text-align: center;
  line-height: 1.5;
  max-width: 800px;
  margin: 20px auto 10px auto;
  padding: 0 15px;
}

footer {
  background-color: var(--dark-text);
  color: var(--white);
  padding: 20px 5% 15px 5%;
  text-align: center;
}

/* Note: Specific margin-top override for articles */
.article-main + footer {
  margin-top: 50px;
}

/* Note: Quote page uses a lighter footer */
.landing-wrapper + footer {
  background-color: var(--white);
  padding: 25px 5%;
  border-top: 1px solid #eaeaea;
  margin-top: 40px;
  color: #777;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-bottom: 15px;
  border-bottom: 1px solid #333333;
}

.footer-nav { width: 100%; }
.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 35px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.footer-nav ul li a { font-weight: 600; font-size: 15px; color: #e0e0e0; transition: color 0.3s ease; }
.footer-nav ul li a:hover { color: var(--brand-red); }

.footer-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  width: 100%;
  padding: 0;
  text-align: center;
}

.footer-info-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; color: #cccccc; }
.footer-info-item i { font-size: 16px; color: var(--brand-red); margin-bottom: 2px; }
.footer-info-item h4 { font-size: 13px; color: var(--white); margin-bottom: 0; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-info-item a { color: #cccccc; transition: color 0.3s ease; }
.footer-info-item a:hover { color: var(--brand-red); }

.service-areas { width: 100%; padding-top: 8px; border-top: 1px solid #333333; }
.service-areas h3 { font-size: 12px; color: var(--brand-red); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }

.area-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; list-style: none; }
.area-tags li { font-size: 12px; font-weight: 400; color: #aaaaaa; }
.area-tags li:not(:last-child)::after { content: "•"; margin-left: 12px; color: #555555; }

/* GLOBAL FOOTER HOVER ANIMATIONS */
.area-tags a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease-in-out;
}

.area-tags a:hover {
  color: var(--brand-red); 
  transform: translateY(-3px); 
  text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.copyright { font-size: 11px; color: #777777; margin-top: 0; }
.copyright-link { color: #777777; text-decoration: underline; transition: color 0.3s ease; }
.copyright-link:hover { color: var(--brand-red); }

/* ==========================================================================
   MEDIA QUERIES (MOBILE BREAKPOINT)
   ========================================================================== */

@media (max-width: 950px) {
  /* HAMBURGER HEADER OVERRIDES - FORCED TO TWO ROWS */
  header {
    flex-direction: column !important;
    align-items: center !important;
    padding: 8px 5% 10px 5% !important;
    position: sticky !important; 
    top: 0 !important;
    z-index: 999 !important;
    gap: 0 !important; 
  }

  .header-left {
    width: 100%;
    display: flex;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-right: 0 !important;
    padding-bottom: 0 !important;
    margin-top: -25px !important;
  }

  .logo-container img {
    max-height: 120px !important; 
    margin: 0 !important;
  }

  .hamburger-btn {
    display: block;
  }

  nav {
    display: none !important;
    width: 100%;
  }

  /* PERMANENT MOBILE CTA BUTTON ROW WITH ULTRA-SMOOTH EASING */
  .header-actions {
    display: flex !important;
    width: 100%;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 10px;
    margin-top: -18px !important; 
    max-height: 60px;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    position: relative;
    z-index: 50;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), 
                margin-top 0.45s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.45s ease !important;
    will-change: max-height, margin-top, opacity, transform;
    transform: translateY(0);
  }

  /* ZERO-GAP SMOOTH COLLAPSE */
  .hidden-on-scroll {
    max-height: 0 !important;
    margin-top: -25px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-6px) !important;
    pointer-events: none !important;
  }

  .header-actions .header-btn {
    width: 100% !important; 
    flex: 1; 
    padding: 10px 0;
    font-size: 13px;
    position: relative;
    z-index: 50;
    pointer-events: auto;
  }

  /* ABSOLUTE NAVIGATION */
  nav {
    display: none !important; 
    position: absolute !important;
    top: 100% !important; 
    left: 0 !important;
    width: 100% !important;
    background-color: var(--white) !important;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
    z-index: 1000 !important;
    border-top: 1.5px solid var(--brand-red);
  }

  header.menu-open nav {
    display: block !important;
  }

  header.menu-open nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0;
  }

  header.menu-open nav ul > li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  header.menu-open nav ul > li > a {
    display: block;
    padding: 15px 5%;
    text-align: left;
  }

  header.menu-open nav ul li.has-dropdown:hover .dropdown {
    display: none !important; 
  }
  
  header.menu-open nav ul li.has-dropdown.dropdown-active .dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important; 
    border: none !important;
    border-top: 1.5px solid #eee !important;
    box-shadow: none !important;
    background-color: #fafafa !important;
    margin-top: 0 !important;
  }

  .dropdown li a {
    padding: 10px 8% !important; 
    white-space: normal !important; 
    text-align: left !important;
    font-size: 13.5px !important;
  }
  
  .featured-post { grid-template-columns: 1fr; }
  .article-hero h1 { font-size: 20px; }
  
  .landing-wrapper { grid-template-columns: 1fr; gap: 30px; }
  .trust-panel { text-align: center; }
  .benefit-list li { text-align: left; }
  .security-badge { justify-content: flex-start; }
  .header-center-text { margin-top: 15px; }
  .header-contact-actions { justify-content: center; margin-top: 15px; width: 100%; }
}

@media (max-width: 768px) {
  /* PREVENT IOS SAFARI AUTO-ZOOM ON FORM FIELD FOCUS */
  .form-control,
  select.form-control,
  .contact-form input,
  .contact-form textarea {
    font-size: 16px !important;
  }

  /* =========================================
     HERO IMAGE STAGGER & OVERLAP (MOBILE ONLY)
     ========================================= */
  .custom-hero-layout { 
    padding-top: 200px !important; 
    padding-bottom: 60px !important; 
  }
  .hero-image {
    position: relative !important;
    top: -60px !important;
    height: calc(100% + 60px) !important;
    background-position: center bottom !important;
    transform: none !important;
  }
  .hero-content-card { 
    padding: 25px 20px !important; 
    margin-top: 0 !important;
    box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.4) !important; 
  }
  .hero-content-card h1 { font-size: 1.6rem !important; margin-bottom: 10px !important; }
  .hero-tagline { font-size: 0.9rem !important; margin-bottom: 20px !important; }

  /* =========================================
     COMPRESSED REVIEWS SECTION (MOBILE ONLY)
     ========================================= */
  .reviews-section { padding: 6px 5% !important; }
  .local-agency-banner { font-size: 11.5px !important; margin-top: 4px !important; }
  .reviews-header { margin-bottom: 2px !important; font-size: 10px !important; }
  .review-carousel { height: 80px !important; }
  .review-text { font-size: 12.5px !important; line-height: 1.3 !important; margin-bottom: 2px !important; }
  .review-author { font-size: 11px !important; }
  .stars { font-size: 11px !important; margin-bottom: 2px !important; }

  /* =========================================
     MOBILE CAROUSEL CENTERING
     ========================================= */
  .carousel-track {
    animation-name: infiniteScrollMobile !important;
  }

  /* Quote specific overrides for 768px */
  .header-center-text {
    display: none !important; 
  }
  .header-contact-actions {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 10px;
    margin-top: 15px !important;
  }
  .header-contact-btn {
    padding: 8px 14px !important;
    font-size: 13px !important;
    flex: 1; 
    justify-content: center;
  }

  /* Core 768px Fixes */
  .quote-section h2 { font-size: 32px; }
  .quote-grid { grid-template-columns: repeat(2, 1fr); max-width: 400px; }
  
  .team-grid { grid-template-columns: 1fr; }
  
  .footer-top-row { flex-direction: column; justify-content: center; gap: 20px; }
  .footer-nav ul { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .area-tags li:not(:last-child)::after { margin-left: 8px; }
  .area-tags { gap: 2px 8px; }
  
  .blog-hero h1 { font-size: 32px; }
  
  .about-hero { padding: 50px 5% 80px 5%; }
  .about-hero h1 { font-size: 32px; }
  
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-info { text-align: center; align-items: center; padding-top: 0; }
  .info-item { flex-direction: column; align-items: center; gap: 8px; }
  .contact-form-container { transform: translateY(0); padding: 30px 20px; }
  .contact-form-container h2 { text-align: center; }
  .map-container { height: 350px; }
  .quick-actions { flex-direction: column; padding: 0 10%; }
  .quick-btn { width: 100%; justify-content: center; }
}

@media (max-width: 650px) {
  .form-card { padding: 25px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .trust-panel h1 { font-size: 28px; }
}

@media (max-width: 600px) {
  .thank-you-card { padding: 40px 20px; }
  .thank-you-card h1 { font-size: 28px; }
}

/* ==========================================================================
   SCROLL ANIMATIONS (FADE-IN) & KEYFRAMES
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for items in a row/grid */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Mobile-Specific Carousel Center Alignment */
@keyframes infiniteScrollMobile {
  0% { transform: translateX(calc(-50% + 50vw - 135px)); }
  100% { transform: translateX(calc(-100% + 50vw - 135px)); }
}

/* ==========================================================================
   ACCESSIBILITY: VISIBLE FOCUS STATES (KEYBOARD NAVIGATION)
   ========================================================================== */

/* Universal Focus Outline for Keyboard Users Only */
:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 3px;
  transition: outline-offset 0.1s ease;
}

/* Rounded Buttons Focus Ring */
button:focus-visible,
.header-btn:focus-visible,
.cta-btn:focus-visible,
.home-btn:focus-visible,
.quote-btn:focus-visible,
.submit-btn:focus-visible,
.quick-btn:focus-visible,
.team-cta:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Contrast Adjustments for Dark Backgrounds (Footer & Banner) */
footer a:focus-visible,
.cta-banner a:focus-visible,
.article-hero a:focus-visible,
.custom-hero-layout a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* ==========================================================================
   ACCESSIBILITY: REDUCED MOTION (OS SETTING RESPECT)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .carousel-track {
    animation: none !important;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   CONTEXTUAL INLINE PARAGRAPH LINKS
   ========================================================================== */

.hero-content-card p a,
.why-us p a,
.agents-section p a,
.article-body p a,
.contact-info p a,
.story-container p a {
  color: var(--brand-red);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.hero-content-card p a:hover,
.why-us p a:hover,
.agents-section p a:hover,
.article-body p a:hover,
.contact-info p a:hover,
.story-container p a:hover {
  color: var(--dark-text);
}

/* ==========================================================================
   BREADCRUMB NAVIGATION
   ========================================================================== */

.breadcrumb-nav {
  padding: 12px 0;
  background-color: transparent;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.breadcrumb-nav a {
  color: var(--brand-red);
  text-decoration: underline;
  font-weight: 600;
}

.breadcrumb-nav span[aria-current="page"] {
  color: var(--dark-text);
  font-weight: 600;
}

.breadcrumb-nav i {
  font-size: 10px;
  color: #888888;
}