/* Homepage visual refresh — flow, rhythm, premium consistency */

:root {
  --vr-surface: #ffffff;
  --vr-surface-soft: #f4f7fb;
  --vr-border: #e7ecf3;
  --vr-text: #1c2430;
  --vr-shadow-sm: 0 6px 18px rgba(0, 26, 61, 0.08);
  --vr-shadow-md: 0 12px 30px rgba(0, 26, 61, 0.12);
  --vr-shadow-lg: 0 22px 52px rgba(0, 26, 61, 0.18);
  --vr-section-y: clamp(52px, 6vw, 72px);
}

body {
  color: var(--vr-text);
  background-color: #f4f7fb;
}

html {
  background-color: #060e1a;
}

/* Header */
.gds-nav {
  border-bottom: 1px solid rgba(0, 102, 204, 0.08);
  box-shadow: 0 6px 20px rgba(0, 17, 51, 0.08);
  backdrop-filter: blur(6px);
}

.gds-nav-inner {
  height: 74px;
}

.gds-nav-logo img {
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.gds-nav-links > li > a,
.gds-nav-links > li > button {
  border: 1px solid transparent;
}

.gds-nav-links > li > a:hover,
.gds-nav-links > li > button:hover {
  border-color: rgba(0, 102, 204, 0.14);
}

/* Hero */
.gds-hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.gds-hero-h1 {
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.gds-hero-sub {
  max-width: 60ch;
}

.gds-hero-cta-buttons .gds-hero-phone-cta,
.gds-hero-cta-buttons .gds-hero-text-cta,
.gds-hero-cta-buttons .gds-hero-schedule-btn {
  box-shadow: var(--vr-shadow-md);
}

/* Trust bar → hero handoff */
.gds-trust-bar {
  border-bottom: 1px solid #e7ecf3;
}

/* Trust badge row (below hero) */
.gds-trust-badges-section {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 2rem 1.25rem;
  text-align: center;
}

.gds-trust-badges-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gds-trust-badges-heading {
  margin: 0 0 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
}

.gds-trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.gds-trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gds-trust-badge--link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.gds-trust-badge--link:hover {
  transform: scale(1.05);
}

.gds-trust-badge-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin-bottom: 0.75rem;
}

.gds-trust-badge-logo img,
.gds-trust-badge-logo svg {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
}

.gds-trust-badge-logo--bbb img {
  height: 40px;
  max-height: 48px;
  width: auto;
}

.gds-trust-badge-primary {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
}

.gds-trust-badge-secondary {
  margin: 0.25rem 0 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.gds-trust-badge-icon {
  color: #374151;
}

.gds-trust-badge-logo--flag img {
  height: 24px;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
  .gds-trust-badge-logo--flag img {
    height: 28px;
  }
}

@media (min-width: 768px) {
  .gds-trust-badges-section {
    padding: 2.5rem 1.25rem;
  }

  .gds-trust-badges-heading {
    margin-bottom: 2rem;
  }

  .gds-trust-badges-grid {
    gap: 1.5rem;
  }

  .gds-trust-badge-logo {
    height: 44px;
  }

  .gds-trust-badge-logo img,
  .gds-trust-badge-logo svg {
    height: 44px;
  }

  .gds-trust-badge-logo--bbb img {
    height: 48px;
  }
}

@media (min-width: 1024px) {
  .gds-trust-badges-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* Problems */
.gds-problems-section {
  background: #ffffff;
  padding-top: var(--vr-section-y);
  padding-bottom: calc(var(--vr-section-y) * 0.65);
}

/* Section dividers */
.gds-section-divider {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px) 24px;
  background: transparent;
}

.gds-section-divider-line {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 102, 204, 0.35) 18%,
    #0066cc 42%,
    #ff6600 58%,
    rgba(13, 148, 136, 0.5) 82%,
    transparent 100%
  );
  box-shadow: 0 2px 14px rgba(0, 102, 204, 0.18);
}

.gds-section-divider-mark {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066cc, #ff6600);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.85),
    0 0 0 6px rgba(0, 102, 204, 0.12),
    0 4px 16px rgba(0, 102, 204, 0.35);
}

.gds-section-divider--problems-services {
  margin-top: 0;
  margin-bottom: 0;
}

.gds-section-divider--services-estimator,
.gds-section-divider--estimator-hiw {
  margin-top: 4px;
  margin-bottom: 0;
}

/* Services block */
.services-homepage.gds-home-band--white,
.gds-home-band--white {
  background: #ffffff;
}

.services-homepage {
  padding-top: var(--vr-section-y) !important;
  padding-bottom: calc(var(--vr-section-y) * 0.85) !important;
}

.services-header h2 {
  letter-spacing: -0.01em;
}

/* Post-FAQ flow: consistent vertical rhythm */
.reviews-section,
.gallery-homepage-section,
.trust-homepage-section,
.brands-section,
.map-section,
.social-section,
.gds-home-blog-strip,
.estimator-section,
.hiw-section,
.faq-section {
  scroll-margin-top: 90px;
}

.estimator-section {
  padding-top: var(--vr-section-y) !important;
  padding-bottom: var(--vr-section-y) !important;
}

.hiw-section {
  padding-top: var(--vr-section-y) !important;
  padding-bottom: var(--vr-section-y) !important;
}

.faq-section {
  padding-top: var(--vr-section-y) !important;
  padding-bottom: calc(var(--vr-section-y) * 0.75) !important;
}

.reviews-section {
  padding-top: var(--vr-section-y) !important;
  padding-bottom: var(--vr-section-y) !important;
  background: #ffffff !important;
}

.reviews-section::before {
  height: 3px;
}

.reviews-section::after {
  display: none;
}

.gallery-homepage-section {
  padding-top: var(--vr-section-y) !important;
  padding-bottom: var(--vr-section-y) !important;
  background: var(--vr-surface-soft) !important;
}

.trust-homepage-section {
  padding-top: var(--vr-section-y) !important;
  padding-bottom: var(--vr-section-y) !important;
  background: #ffffff !important;
}

.trust-grid {
  margin-bottom: 0 !important;
}

.brands-section {
  padding-top: var(--vr-section-y) !important;
  padding-bottom: var(--vr-section-y) !important;
}

.brands-section .logo-carousel {
  max-width: 100%;
}

.map-section {
  padding-top: var(--vr-section-y) !important;
  padding-bottom: var(--vr-section-y) !important;
}

.social-section {
  padding-top: var(--vr-section-y) !important;
  padding-bottom: var(--vr-section-y) !important;
  background: #ffffff !important;
}

.gds-home-blog-strip {
  padding-top: calc(var(--vr-section-y) * 0.55) !important;
  padding-bottom: calc(var(--vr-section-y) * 0.55) !important;
  background: var(--vr-surface-soft) !important;
  border-bottom: none !important;
}

/* Slim secondary CTAs (reviews + gallery) */
.reviews-cta,
.gallery-cta {
  margin-top: 32px !important;
  padding: 24px 20px !important;
  background: #ffffff !important;
  border: 1px solid var(--vr-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--vr-shadow-sm) !important;
  text-align: center;
}

.reviews-cta p,
.gallery-cta p {
  margin: 0 !important;
}

.reviews-cta .reviews-btn-white,
.gallery-cta .gallery-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gallery-cta .gallery-btn-white {
  background: #0066cc !important;
  color: #ffffff !important;
  border: 2px solid #0066cc !important;
}

.gallery-cta .gallery-btn-white:hover {
  background: #004999 !important;
  border-color: #004999 !important;
  transform: translateY(-2px);
  box-shadow: var(--vr-shadow-md);
}

/* Cards */
.photo-card,
.review-card,
.faq-item,
.trust-card,
.gds-process-card,
.gds-proof-card,
.gds-stat-card,
.content-box {
  background: var(--vr-surface);
  border: 1px solid var(--vr-border);
  box-shadow: var(--vr-shadow-sm);
}

.photo-card:hover,
.review-card:hover,
.faq-item:hover,
.trust-card:hover,
.gds-process-card:hover,
.gds-proof-card:hover,
.gds-stat-card:hover {
  box-shadow: var(--vr-shadow-md);
}

/* Headings */
section {
  scroll-margin-top: 90px;
}

h2,
.section-title,
.gds-section-title,
.services-header h2,
.reviews-title,
.trust-section-header h2,
.gallery-section-header h2 {
  letter-spacing: -0.01em;
}

/* Scroll-in animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Footer */
.gds-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gds-footer-top-btn {
  box-shadow: var(--vr-shadow-lg), 0 0 0 3px rgba(0, 102, 204, 0.22);
}

.gds-seo-links {
  background: var(--vr-surface-soft);
  border: 1px solid var(--vr-border);
  border-left: 4px solid #0066cc;
  box-shadow: var(--vr-shadow-sm);
}

/* Mobile */
@media (max-width: 768px) {
  .gds-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .gds-nav-inner {
    height: 70px;
    padding: 0 16px;
  }

  .gds-hero-h1 {
    font-size: clamp(1.8rem, 7vw, 2.3rem);
  }

  .gds-hero-sub {
    font-size: 1rem;
  }

  .trust-grid {
    grid-template-columns: 1fr !important;
  }

  .review-card,
  .faq-item,
  .content-box,
  .photo-card,
  .trust-card {
    border-radius: 14px;
  }

  .reviews-cta .reviews-btn-white,
  .gallery-cta .gallery-btn-white {
    width: 100%;
    max-width: 400px;
  }
}
