/* ============================================
   BLUE GOAT ROOFING — MAIN STYLESHEET
   Brand colors matched to official logo PDF
   Navy: #16387B  Gold: #E4B00E
   ============================================ */

:root {
  --navy:        #16387B;
  --navy-dark:   #0F2555;
  --blue:        #1E4A9E;
  --blue-light:  #2560CC;
  --gold:        #E4B00E;
  --gold-light:  #F0BF20;
  --gold-dark:   #C99A08;
  --white:       #FFFFFF;
  --off-white:   #F7F8FA;
  --gray-light:  #EEF0F4;
  --gray:        #8A929E;
  --gray-dark:   #4A5260;
  --text:        #1A1F2E;
  --shadow-sm:   0 2px 8px rgba(22,56,123,0.08);
  --shadow-md:   0 6px 24px rgba(22,56,123,0.14);
  --shadow-lg:   0 16px 48px rgba(22,56,123,0.18);
  --radius:      8px;
  --radius-lg:   14px;
  --font:        'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-heading:'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1rem; color: var(--gray-dark); }
p:last-child { margin-bottom: 0; }
a  { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-light); }
img { max-width: 100%; height: auto; display: block; }

/* ---- LAYOUT ---- */
.container   { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section     { padding: 80px 0; }
.section-sm  { padding: 48px 0; }
.section-lg  { padding: 100px 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: 2px solid transparent;
  transition: all 0.2s ease; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* ---- LABELS / BADGES ---- */
.label {
  display: inline-block;
  background: rgba(225,165,15,0.15); color: var(--gold-dark);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 99px; margin-bottom: 14px;
}
.label-gold { background: rgba(225,165,15,0.15); color: var(--gold-dark); }

/* ---- SECTION HEADINGS ---- */
.section-heading { margin-bottom: 48px; }
.section-heading.center { text-align: center; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading p { font-size: 1.05rem; max-width: 600px; }
.section-heading.center p { margin: 0 auto; }

/* ---- CARDS ---- */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-light); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-body { padding: 28px; }

/* ---- GRIDS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }

/* ---- NAVBAR ---- */
.navbar { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: 0 1px 0 var(--gray-light), var(--shadow-sm); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.navbar-logo img { height: 48px; width: auto; }
.navbar-logo span { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.navbar-nav { display: flex; align-items: center; gap: 6px; list-style: none; }
.navbar-nav a { color: var(--gray-dark); font-weight: 500; font-size: 0.93rem; padding: 8px 14px; border-radius: var(--radius); transition: all 0.15s; }
.navbar-nav a:hover { background: var(--off-white); color: var(--navy); }
.navbar-nav a.active { background: transparent !important; color: var(--navy) !important; font-weight: 600; }
.navbar-nav .btn { margin-left: 10px; }
/* Navbar CTA button — exact brand colors, no overrides */
.navbar-nav .btn-primary {
  background: #16387B !important;
  color: #FFFFFF !important;
  border-color: #16387B !important;
  border-radius: 8px !important;
  font-weight: 700;
  padding: 10px 20px;
}
.navbar-nav .btn-primary:hover {
  background: #1E4A9E !important;
  border-color: #1E4A9E !important;
  color: #FFFFFF !important;
}
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.navbar-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: all 0.3s; }

/* ---- HERO ---- */
.hero { background: var(--navy); position: relative; overflow: hidden; padding: 100px 0 90px; color: var(--white); }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy-dark) 45%, #1A3070 100%); }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 span { color: var(--gold); }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.82); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.hero-trust-item svg { color: var(--gold); flex-shrink: 0; }
.hero-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-image img { width: 100%; height: 380px; object-fit: cover; }

/* ---- CTA BANNER ---- */
.cta-banner { background: var(--navy); padding: 56px 0; color: var(--white); text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 28px; font-size: 1.05rem; }

/* ---- SERVICE CARDS ---- */
.service-card { display: flex; flex-direction: column; }
.service-card .card-img { height: 200px; overflow: hidden; }
.service-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service-card:hover .card-img img { transform: scale(1.05); }
.service-icon { width: 52px; height: 52px; border-radius: var(--radius); background: rgba(225,165,15,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service-icon svg { color: var(--gold-dark); }

/* ---- TESTIMONIALS ---- */
.testimonial-card { padding: 32px; }
.testimonial-stars { color: var(--gold); margin-bottom: 14px; font-size: 1.1rem; }
.testimonial-text { font-size: 0.95rem; line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.testimonial-location { font-size: 0.8rem; color: var(--gray); }

/* ---- STATS BAR ---- */
.stats-bar { background: var(--navy); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; color: var(--gold); display: block; }
.stat-label { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ---- TRUST LOGOS ---- */
.trust-logos { background: var(--off-white); padding: 40px 0; }
.trust-logos-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 40px; }
.trust-logos img { height: 60px; width: auto; max-width: 150px; filter: grayscale(0.2); opacity: 0.85; transition: all 0.2s; object-fit: contain; }
.trust-logos img:hover { filter: none; opacity: 1; }

/* ---- PAGE HERO ---- */
.page-hero { background: var(--navy); padding: 60px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: url('../images/hero-roof.jpg') center/cover no-repeat; opacity: 0.1; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ---- FOOTER ---- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer h4 { color: var(--gold); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.9rem; }
.footer-contact-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.75); }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.83rem; color: rgba(255,255,255,0.4); margin: 0; }

/* ---- BLOG ---- */
.blog-card .card-img { height: 210px; overflow: hidden; }
.blog-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .card-img img { transform: scale(1.04); }
.blog-meta { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--gray); margin-bottom: 10px; }
.blog-meta .category { color: var(--gold-dark); font-weight: 600; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--gold-dark); }

/* ---- SCHEDULING ---- */
.schedule-section { background: var(--off-white); padding: 80px 0; }
.schedule-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.schedule-copy h2 { margin-bottom: 16px; }
.schedule-copy p { margin-bottom: 24px; }
.schedule-benefits { list-style: none; }
.schedule-benefits li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 0.95rem; }
.schedule-benefits li::before { content: '✓'; color: var(--gold-dark); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.schedule-widget { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.schedule-widget h3 { margin-bottom: 6px; }
.schedule-widget .sub { color: var(--gray); font-size: 0.9rem; margin-bottom: 24px; }
.calendly-inline-widget { min-height: 630px; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-control { width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-light); border-radius: var(--radius); font-size: 0.95rem; color: var(--text); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; font-family: var(--font); }
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(225,165,15,0.15); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.form-control { min-height: 120px; resize: vertical; }

/* ---- LANDING PAGE ---- */
.urgency-bar { background: var(--gold); color: var(--navy); text-align: center; padding: 10px 0; font-weight: 700; font-size: 0.92rem; }

/* ---- BLOG POST ---- */
.post-content { max-width: 760px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; }
.post-content h2, .post-content h3 { margin: 2rem 0 1rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content strong { color: var(--navy); }
.post-featured-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; }
.post-featured-img img { width: 100%; height: 420px; object-fit: cover; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .schedule-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .navbar-nav { display: none; }
  .navbar-toggle { display: block; }
  .navbar-nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); padding: 12px 16px 20px; box-shadow: var(--shadow-md); z-index: 999; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  h1 { font-size: 1.8rem; }
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-gold   { color: var(--gold) !important; }
.text-navy   { color: var(--navy) !important; }
.bg-navy     { background: var(--navy); }
.bg-off-white{ background: var(--off-white); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---- SCROLL ANIMATIONS ---- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ---- TOP CONTACT BAR ---- */
.top-bar {
  background: var(--navy-dark);
  padding: 8px 0;
  font-size: 0.83rem;
  position: sticky; top: 0; z-index: 1001;
}
.top-bar-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.top-bar-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-bar-item {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-weight: 500; transition: color 0.2s;
}
.top-bar-item:hover { color: var(--gold); }
.top-bar-item svg { color: var(--gold); flex-shrink: 0; }
.top-bar-right {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.5); font-size: 0.8rem;
}
.top-bar-right svg { color: var(--gold); }

/* Adjust navbar sticky so it stacks below top bar */
.navbar { top: 37px; }

/* ---- REVIEWS CAROUSEL ---- */
.reviews-carousel { position: relative; overflow: hidden; }
.reviews-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
}
.review-slide {
  min-width: 100%;
  max-width: 680px;
  margin: 0 auto;
  box-sizing: border-box;
}
/* On wider screens show 3 at a time */
@media (min-width: 900px) {
  .review-slide { min-width: calc(33.333% - 20px); margin: 0 10px; }
  .reviews-track { padding: 8px 4px; }
}
.reviews-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 28px;
}
.review-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; color: var(--navy);
}
.review-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.review-dots { display: flex; gap: 8px; }
.review-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-light); border: none; cursor: pointer;
  transition: all 0.2s; padding: 0;
}
.review-dot.active { background: var(--gold); transform: scale(1.3); }

/* ---- RESPONSIVE MOBILE ---- */
@media (max-width: 640px) {
  .top-bar-right { display: none; }
  .top-bar-left { gap: 12px; }
  .top-bar-item { font-size: 0.78rem; }
  .navbar { top: 33px; }
  .review-slide { min-width: 100%; margin: 0; }
}

/* ============================================
   HERO CAROUSEL
   ============================================ */
.hero-carousel {
  position: relative; overflow: hidden;
  height: 580px; background: var(--navy);
}
.hero-slides { height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.8s ease;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15,37,85,0.88) 40%, rgba(15,37,85,0.4) 100%);
}
.hero-slide-content {
  position: relative; z-index: 2;
  color: var(--white); max-width: 680px;
}
.hero-slide-content h1 { color: var(--white); margin-bottom: 18px; }
.hero-slide-content h1 span { color: var(--gold); }
.hero-slide-content .label {
  background: rgba(228,176,14,0.2); color: var(--gold);
  margin-bottom: 16px;
}
.hero-slide-content .hero-desc {
  font-size: 1.1rem; color: rgba(255,255,255,0.82); margin-bottom: 32px;
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white); width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }
.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 10px;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none;
  cursor: pointer; transition: all 0.2s; padding: 0;
}
.hero-dot.active { background: var(--gold); transform: scale(1.3); }
@media (max-width: 640px) {
  .hero-carousel { height: 480px; }
  .hero-arrow { display: none; }
  .hero-slide-overlay {
    background: rgba(15,37,85,0.75);
  }
}

/* ============================================
   CERTIFICATION CAROUSEL (infinite scroll)
   ============================================ */
.cert-carousel-section {
  background: var(--off-white);
  padding: 32px 0; border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}
.cert-carousel-label {
  text-align: center; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 20px;
}
.cert-track-wrapper {
  overflow: hidden; position: relative;
  max-width: 900px; margin: 0 auto;
}
.cert-track-wrapper::before,
.cert-track-wrapper::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px;
  z-index: 2; pointer-events: none;
}
.cert-track-wrapper::before { left: 0; background: linear-gradient(to right, var(--off-white), transparent); }
.cert-track-wrapper::after  { right: 0; background: linear-gradient(to left, var(--off-white), transparent); }
.cert-track {
  display: flex; align-items: center; gap: 56px;
  animation: certScroll 20s linear infinite;
  width: max-content; padding: 8px 28px;
}
.cert-track:hover { animation-play-state: paused; }
.cert-item { display: flex; align-items: center; justify-content: center; }
.cert-item img {
  height: 68px; width: auto; max-width: 150px;
  filter: grayscale(0.15); opacity: 0.9;
  transition: all 0.3s; flex-shrink: 0;
  object-fit: contain;
}
.cert-item img:hover { filter: none; opacity: 1; transform: scale(1.06); }
@keyframes certScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   SERVICES GRID — responsive 3-col breakpoints
   ============================================ */
@media (max-width: 900px) {
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 560px) {
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   SOCIAL ICONS IN TOP BAR
   ============================================ */
.social-icon-link {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s, transform 0.2s;
  display: flex; align-items: center;
  padding: 2px;
}
.social-icon-link:hover {
  color: var(--gold);
  transform: translateY(-1px);
}
.top-bar-right {
  display: flex; align-items: center; gap: 14px;
  color: rgba(255,255,255,0.5); font-size: 0.8rem;
}

/* ============================================
   STATS BAR VISUAL UPGRADE
   ============================================ */
.stats-bar {
  background: linear-gradient(135deg, #0F2555 0%, #16387B 50%, #0F2555 100%);
  padding: 56px 0;
  position: relative; overflow: hidden;
}
.stats-bar::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(228,176,14,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(228,176,14,0.06) 0%, transparent 60%);
}
.stats-grid { position: relative; z-index: 1; }
.stat-item {
  text-align: center;
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-heading); font-size: 3rem;
  font-weight: 800; color: var(--gold); display: block;
  line-height: 1; margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(228,176,14,0.3);
}
.stat-label {
  color: rgba(255,255,255,0.75); font-size: 0.88rem;
  letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500;
}

/* ============================================
   PAGE HERO VISUAL UPGRADE
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, #0F2555 0%, #16387B 60%, #1E4A9E 100%);
  padding: 72px 0; position: relative; overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../images/roof-texture.jpg") center/cover no-repeat;
  opacity: 0.07;
}
.page-hero::after { display: none; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 {
  color: var(--white); margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }

/* ============================================
   SECTION ALTERNATING BACKGROUNDS — MORE VISUAL
   ============================================ */
.section.bg-off-white {
  background: linear-gradient(180deg, #F0F4FA 0%, #F7F8FA 100%);
  position: relative;
}

/* ============================================
   FOOTER SOCIAL ICONS
   ============================================ */
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-social a:hover {
  background: var(--gold); color: var(--navy);
  border-color: var(--gold); transform: translateY(-2px);
}

/* ============================================
   SCHEDULING / CALENDAR WIDGET
   ============================================ */
.schedule-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.schedule-tab {
  padding: 8px 18px; border-radius: 8px; font-size: 0.88rem;
  font-weight: 600; border: 1.5px solid var(--gray-light);
  background: var(--white); color: var(--gray-dark); cursor: pointer;
  transition: all 0.2s;
}
.schedule-tab.active, .schedule-tab:hover {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}

/* ============================================
   RESPONSIVE — SYMMETRY FIXES
   ============================================ */

/* Team grid — 2x2 on desktop, 1 col on mobile */
@media (max-width: 600px) {
  [style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* City grids — 5 cols to 2 on tablet, 2 on mobile */
@media (max-width: 860px) {
  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 540px) {
  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Maintenance 13-point grid — 3 cols to 2 on tablet, 1 on mobile */
@media (max-width: 860px) {
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 500px) {
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* Performance: lazy load hints */
img { content-visibility: auto; }

/* Top bar social icons — hide on very small screens */
@media (max-width: 480px) {
  .social-icon-link { display: none; }
  .top-bar-right { display: none; }
}
