/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #1a3660;
  --navy-dark:  #112347;
  --navy-light: #2a5298;
  --gold:       #d4a017;
  --white:      #ffffff;
  --off-white:  #f4f6fa;
  --gray:       #6b7280;
  --gray-light: #e5e9f2;
  --text:       #1f2937;
  --shadow:     0 4px 18px rgba(26,54,96,0.12);
  --radius:     8px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-brand svg {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  color: #c5cfe6;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--navy-light);
  color: var(--white);
}

/* Scroll-triggered call bar. Sits below the sticky navbar rather than on
   top of it, and stays out of the way on mobile where the floating call
   button already covers this. */
.sticky-call-bar {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  display: none;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sticky-call-bar.show { display: block; }

@media (max-width: 768px) {
  .sticky-call-bar.show { display: none; }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== KEYFRAMES ===== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0f1f3c 0%, #1a3660 25%, #2a5298 50%, #1a3660 75%, #0f1f3c 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: var(--white);
  text-align: center;
  padding: 8rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero-enhanced {
  padding: 7rem 1.5rem 6rem;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(212,160,23,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(42,130,198,0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.02) 49%, rgba(255,255,255,0.02) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255,255,255,0.02) 49%, rgba(255,255,255,0.02) 51%, transparent 52%);
  background-size: 80px 80px;
  background-position: 0 0;
  pointer-events: none;
  animation: slidePattern 20s linear infinite;
}

@keyframes slidePattern {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 80px 80px, -80px 80px; }
}

.hero-background-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0;
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,160,23,0.15) 0%, rgba(212,160,23,0.05) 70%, transparent 100%);
  top: -100px;
  right: -150px;
  animation: float 6s ease-in-out infinite, fadeInOut 8s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 70%, transparent 100%);
  bottom: -50px;
  left: -100px;
  animation: float 8s ease-in-out infinite 1s, fadeInOut 10s ease-in-out infinite 1s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(42,130,198,0.12) 0%, rgba(42,130,198,0.04) 70%, transparent 100%);
  top: 50%;
  right: -50px;
  animation: float 7s ease-in-out infinite 2s, fadeInOut 9s ease-in-out infinite 2s;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.06; }
  50% { opacity: 0.15; }
}

.hero-content { position: relative; max-width: 760px; margin: 0 auto; }

/* The logo supplies its own background and border, so it needs no panel
   behind it. Sized to its natural width so it is never upscaled. */
.hero-logo {
  display: block;
  width: auto;
  max-width: min(340px, 100%);
  margin: 0 auto 1.6rem;
  animation: slideDown 0.6s ease;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #d4e4ff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  animation: slideDown 0.8s ease 0.1s both;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #c5d8f0;
  max-width: 560px;
  margin: 0 auto 2.2rem;
  animation: slideDown 1s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease 0.3s both;
}

.nav-logo {
  height: 50px;
  display: block;
}

.contact-section {
  padding: 4rem 1.5rem;
  background: #f7f9fc;
}

.contact-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 26px;
  box-shadow: 0 22px 60px rgba(15,23,42,0.08);
  display: grid;
  gap: 2rem;
}

.contact-copy {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-copy .section-label {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-light);
}

.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 1rem;
}

.contact-copy p {
  color: #475569;
  line-height: 1.8;
}

.estimate-form {
  display: grid;
  gap: 1rem;
}

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

.estimate-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
  color: #1f2937;
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 4px rgba(42,82,152,0.12);
}

.form-full {
  grid-column: 1 / -1;
}

.form-note {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
}

.form-note a {
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 790px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: #e6b01e;
  border-color: #e6b01e;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(212,160,23,0.5);
}

/* White-on-transparent — only legible over the dark hero/CTA bands. */
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

/* Same shape for light backgrounds. .btn-outline over white renders white
   text on white, which is how the homepage phone CTA became invisible. */
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  position: relative;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 0;
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.4rem;
  color: var(--gold);
  position: relative;
}

.stat-plus, .stat-percent, .stat-slash {
  font-size: 60%;
  margin-left: 0.2em;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: #b8cde8;
  letter-spacing: 0.05em;
}

/* ===== FEATURED PROJECTS ===== */
.featured-projects-section {
  padding-top: 3rem !important;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.featured-project {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.featured-project:hover {
  transform: translateY(-8px);
}

.featured-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.featured-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-project:hover .featured-image-wrap img {
  transform: scale(1.08);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,54,96,0.8) 0%, rgba(42,82,152,0.9) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
  text-align: center;
}

.featured-project:hover .featured-overlay {
  opacity: 1;
}

.featured-overlay h4 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.featured-overlay p {
  font-size: 0.95rem;
  color: #d0dfe8;
}

/* ===== SERVICE CARD ENHANCEMENTS ===== */
.service-card-enhanced {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 50%;
  margin-bottom: 1.2rem;
  transition: all var(--transition);
}

.service-card-enhanced:hover .service-icon-wrap {
  background: var(--gold);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(212,160,23,0.3);
}

.service-icon {
  font-size: 2.2rem;
}

/* ===== WHY CHOOSE US ===== */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem;
}

.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.why-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.why-item p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ===== SECTION BASE ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 2.8rem;
}

.divider {
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.75rem 0 1rem;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
}

.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.trust-item svg { color: var(--gold); }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--navy-light));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26,54,96,0.25);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.service-card:hover h3 {
  color: var(--navy-light);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  background: var(--off-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,54,96,0.18);
}

.testimonial-card .stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}

.testimonial-text {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testimonial-author strong {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-author span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: #c5d8f0;
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
}

.phone-link {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

/* ===== STICKY MOBILE CALL BUTTON ===== */
.sticky-call-btn {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
  background: linear-gradient(135deg, var(--gold) 0%, #e6b01e 100%);
  color: var(--navy-dark);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212,160,23,0.4);
  transition: all var(--transition);
  align-items: center;
  justify-content: center;
  animation: slideUp 0.4s ease;
}

.sticky-call-btn:active {
  transform: scale(0.95);
}

.sticky-call-btn:hover {
  box-shadow: 0 12px 32px rgba(212,160,23,0.6);
  transform: scale(1.1);
}

/* ===== SCROLL POPUP ===== */
.scroll-popup {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 45;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(26,54,96,0.35);
  animation: slideUp 0.4s ease-out;
  max-width: 320px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-popup.show {
  display: block;
}

.scroll-popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.scroll-popup-close:hover {
  opacity: 1;
}

.scroll-popup-content {
  padding: 1.5rem;
  padding-top: 2rem;
}

/* Show only on tablet and smaller */
@media (max-width: 768px) {
  .scroll-popup {
    bottom: 1rem;
    right: 1rem;
    max-width: 280px;
  }
  .scroll-popup-content {
    padding: 1.2rem;
    padding-top: 1.8rem;
  }
}

@media (max-width: 480px) {
  .scroll-popup {
    bottom: 0.75rem;
    right: 0.75rem;
    max-width: 260px;
  }
  .scroll-popup-content {
    padding: 1rem;
    padding-top: 1.5rem;
  }
}

/* Show only on mobile */
@media (max-width: 768px) {
  .sticky-call-btn {
    display: flex;
  }
  /* The button floats over whatever is beneath it, which at the end of the
     page is the footer text. Give the footer room to clear it. */
  footer { padding-bottom: 6rem; }
}

@media (max-width: 480px) {
  .sticky-call-btn {
    width: 56px;
    height: 56px;
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 1.6rem;
  }
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy-dark);
  color: #8fa3c8;
  text-align: center;
  padding: 1.8rem 1.5rem;
  font-size: 0.88rem;
}

footer strong { color: var(--white); }

/* The footer is hand-copied into all six pages, so its layout lives here as
   classes rather than as six sets of inline styles. */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.footer-col h4 {
  color: var(--gold);
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col p { margin: 0 0 0.5rem; line-height: 1.6; }
.footer-col p:last-child { margin-bottom: 0; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--gold) !important; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-bottom p { margin: 0; }
.footer-bottom .fine {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}
.footer-bottom .fine a { color: var(--gold); text-decoration: none; }
.footer-bottom .fine a:hover { text-decoration: underline; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-header p { color: #c5d8f0; font-size: 1.05rem; }

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-stars { color: #f5a623; font-size: 1.2rem; letter-spacing: 2px; }

.review-text {
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}

.review-text::before { content: '\201C'; }
.review-text::after  { content: '\201D'; }

.reviewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--gray-light);
  padding-top: 1rem;
}

.reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.reviewer-meta {
  font-size: 0.8rem;
  color: var(--gray);
}

.rating-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.big-rating {
  font-size: 4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.big-stars { font-size: 1.6rem; color: #f5a623; }
.rating-count { color: var(--gray); font-size: 0.9rem; margin-top: 0.25rem; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(26,54,96,0.2);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img-wrap img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,54,96,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-caption {
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-caption strong {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 700;
}

.gallery-tag {
  font-size: 0.75rem;
  background: var(--off-white);
  color: var(--navy-light);
  border: 1px solid var(--gray-light);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
}

/* ===== ESTIMATE FORM ===== */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  border: 1px solid var(--gray-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group label span { color: #e53e3e; margin-left: 2px; }

/* "(optional)" sits in the same slot as the required asterisk, so it has to
   opt out of the red. */
.form-group label span.optional {
  color: var(--gray);
  font-weight: 400;
  text-transform: none;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--gray);
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42,82,152,0.15);
}

.form-group textarea { min-height: 130px; resize: vertical; }

.btn-submit {
  width: 100%;
  padding: 0.95rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,54,96,0.3);
}

.form-note {
  font-size: 0.82rem;
  color: var(--gray);
  text-align: center;
  margin-top: 1rem;
}

.success-msg {
  display: none !important;
  background: #f0fff4;
  border: 1.5px solid #68d391;
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  color: #276749;
  font-weight: 600;
  margin-top: 1.5rem;
}

.success-msg.show {
  display: block !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 1rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.9rem 1rem; border-radius: var(--radius); font-size: 1rem; }
  .hamburger { display: flex; }
  .navbar { position: relative; }
  .nav-inner { padding: 0 1rem; }

  /* Hero Section */
  .hero { padding: 4rem 1rem 3.5rem; }
  .hero-enhanced { padding: 4rem 1rem 3.5rem; }
  .hero h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); margin-bottom: 0.8rem; }
  .hero p { font-size: clamp(0.9rem, 2.5vw, 1.05rem); margin-bottom: 1.8rem; }
  .hero-badge { font-size: 0.75rem; padding: 0.3rem 0.8rem; }
  .hero-cta { gap: 0.75rem; }
  .btn-lg { padding: 0.85rem 1.5rem; font-size: 0.95rem; }

  /* Stats */
  .stats-container { gap: 1rem; grid-template-columns: repeat(2, 1fr); padding: 0 1rem; }
  .stat-item { padding: 1rem 0; }
  .stat-number { font-size: clamp(1.8rem, 4vw, 2.4rem); }
  .stat-label { font-size: 0.85rem; }

  /* Trust Bar */
  .trust-bar-inner { gap: 0.6rem; padding: 1rem; justify-content: space-around; }
  .trust-item { font-size: 0.75rem; flex: 0 1 auto; }
  .trust-item svg { width: 14px; height: 14px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem 1rem; }
  .form-group label { font-size: 0.85rem; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; padding: 0.65rem 0.9rem; }
  .form-group textarea { min-height: 100px; }
  /* The one button the whole page exists for - keep it a comfortable thumb target. */
  .btn-submit { padding: 1rem; font-size: 1.02rem; min-height: 52px; }

  /* Sections */
  .section { padding: 3rem 1rem; }
  .section-title { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 0.4rem; }
  .section-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }

  /* Grids */
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .featured-grid { grid-template-columns: 1fr; }
  .why-choose-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
  .reviews-grid { grid-template-columns: 1fr; }

  /* Review Rating */
  .rating-summary { flex-direction: column; padding: 1.5rem 1rem; gap: 1.5rem; }
  .big-rating { font-size: 3rem; }

  /* CTA Band */
  .cta-band { padding: 3rem 1rem; }
  .cta-band h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-bottom: 0.4rem; }
  .cta-band p { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .phone-link { font-size: 1.4rem; margin-bottom: 1.2rem; }

  /* Page Header */
  .page-header { padding: 2.5rem 1rem 2rem; }
  .page-header h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
  .page-header p { font-size: 0.95rem; }

  /* Service Cards */
  .service-card { padding: 1.5rem 1rem; margin-bottom: 0.5rem; }
  .service-card h3 { font-size: 1rem; }
  .service-card p { font-size: 0.85rem; }

  /* Footer */
  footer { padding: 1.5rem 1rem; font-size: 0.8rem; }
  footer p { margin-bottom: 0.4rem; }

  /* Buttons */
  .btn { padding: 0.7rem 1.4rem; font-size: 0.9rem; }
  .phone-link { font-size: 1.3rem; }
}

@media (max-width: 640px) {
  html { font-size: 14px; }

  .nav-inner { height: 60px; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .shape-1 { width: 300px; height: 300px; top: -100px; right: -100px; }
  .shape-2 { width: 200px; height: 200px; }
  .shape-3 { width: 150px; height: 150px; }
}

@media (max-width: 480px) {
  /* Mobile First Adjustments */
  .nav-links { top: 60px; }

  .hero { padding: 2.5rem 0.75rem 2rem; }
  .hero h1 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .btn-lg { padding: 0.75rem 1.2rem; font-size: 0.9rem; width: 100%; }
  .hero-cta { flex-direction: column; }

  .stats-container { grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 0 0.75rem; }
  .stat-item { padding: 0.8rem 0; }
  .stat-number { font-size: clamp(1.5rem, 4vw, 2rem); }
  .stat-label { font-size: 0.75rem; }

  .section { padding: 2.5rem 0.75rem; }
  .section-title { font-size: clamp(1.2rem, 3vw, 1.6rem); }

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

  .form-card { padding: 1.2rem 0.75rem; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }

  .cta-band { padding: 2.5rem 0.75rem; }
  .cta-band h2 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
  .phone-link { font-size: 1.2rem; }

  .trust-bar-inner { flex-direction: column; gap: 0.5rem; padding: 0.75rem; }
  .trust-item { font-size: 0.7rem; justify-content: center; }

  .page-header { padding: 2rem 0.75rem 1.5rem; }
  .rating-summary { padding: 1.2rem 0.75rem; }

  footer { padding: 1.2rem 0.75rem; }

  /* Service Cards Stacked */
  .service-card { padding: 1.2rem 0.75rem; }
  .service-icon-wrap { width: 60px; height: 60px; margin-bottom: 0.8rem; }
}

/* ===== ACCESSIBILITY ===== */

/* Nothing had a visible focus ring outside the estimate form, so keyboard
   users had no idea where they were. */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.gallery-item:focus-visible,
.filter-btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.lightbox button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Footer contact details were --gray (#6b7280) on navy: 3.2:1, under the 4.5:1
   minimum, on the one block that carries the phone number and address. */
footer .footer-col a,
footer .footer-col p,
footer p[style*="var(--gray)"] {
  color: #a9bcd9 !important;
}

/* --gold (#d4a017) on white is 2.4:1. Fine on navy, not on light panels. */
.on-light-gold { color: #8a6508; }

/* The site runs an infinite background gradient plus entrance animations. */
@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;
  }
  html { scroll-behavior: auto; }
}

/* The floating call button and the scroll popup both sat bottom-right on a
   phone and overlapped each other. Move the popup clear of it. */
@media (max-width: 480px) {
  .scroll-popup {
    bottom: 5.5rem;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }
  .scroll-popup-close {
    min-width: 44px;
    min-height: 44px;
  }
}

/* 122 photos in a single column is a ~33,000px scroll; the closing call to
   action at the bottom was effectively unreachable. Keep two columns. */
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Filter buttons were ~38px tall, under the 44px touch-target guidance. */
@media (max-width: 768px) {
  .filter-btn { min-height: 44px; }
}

/* Off-screen until focused, so keyboard users can jump the 8-item navbar. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}
