:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  color: #102a43;
  background: #e8f1f8;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

/* Brand border variables and targeted border system (selective borders instead of global) */
:root {
  --brand-border: 3px solid #000; /* primary bold border for major containers */
  --thin-border: 1px solid rgba(0,0,0,0.6); /* subtle for controls */
  --img-border: 1px solid rgba(0,0,0,0.18); /* delicate frame for images */
}

/* Apply brand border to primary structural containers and key UI elements */
.sticky-nav,
.hero-banner,
.card,
.service-card,
.service-panel,
.service-item,
.before-after-card,
/* logo-3d intentionally excluded here per user request */
.carousel-track,
.slideshow,
.footer-panel,
.contact-pill {
  border: var(--brand-border);
}

/* Logo tile: remove the boxed border and keep depth */
.logo-3d {
  border: none !important;
  box-shadow: 0 36px 80px rgba(0,0,0,0.28);
}

/* Navigation bar specifically: keep a clear brand border */
.sticky-nav {
  border: var(--brand-border);
  border-radius: 999px;
}

/* Hero first-heading: remove border around hero images and give the hero paragraph a rounded border */
.page-home .slideshow-slide img,
.page-services .hero-card img,
.page-about .hero-gallery img { 
  border: none !important;
}
.page-home .hero-copy .hero-text,
.page-services .hero-copy .hero-text {
  border: var(--thin-border);
  border-radius: 0.9rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.02);
}

/* Trust signals: rounded border */
.testimonial-banner,
.trust-panel,
.footer-trust {
  border: var(--thin-border);
  border-radius: 0.9rem;
  padding: 0.6rem;
}

/* Slideshow 'next' button: white border */
.slideshow-next {
  border: 2px solid #fff;
  border-radius: 0.45rem;
}

/* Footer bottom call button: gradient shine back and forth nonstop */
.call-now-cta {
  background: linear-gradient(90deg, #fff 0%, #ffd700 30%, #fff 60%);
  background-size: 200% 100%;
  color: #0f172a;
  padding: 0.7rem 1rem;
  display: inline-block;
  border-radius: 0.8rem;
  animation: call-shine 2.6s linear infinite alternate;
}
@keyframes call-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* About page: remove borders site-wide except the nav */
.page-about * {
  border: none !important;
}
.page-about .sticky-nav {
  border: var(--brand-border) !important;
}

/* Gallery: groundwater overlay on images to 'ground' photos */
.page-gallery .gallery-item {
  position: relative;
  overflow: hidden;
}
.page-gallery .gallery-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,20,40,0.18) 100%);
  pointer-events: none;
}

/* Services page: remove square border on carousel and main header; put border around call number and Meet the Team */
.page-services .carousel-track,
.page-services .service-card {
  border: none !important;
}
.page-services .hero-banner {
  border: none !important;
}
.page-services .contact-pill {
  border: var(--brand-border);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.98);
}
.page-services .hero-actions .hero-button.secondary {
  border: var(--brand-border);
  border-radius: 0.9rem;
  padding: 0.45rem 0.8rem;
}

/* Remove square border on main header on services already above; ensure logo tile keeps no border */
.logo-3d { border: none !important; }

/* Small helpers: images and controls keep subtle frames */
img, .thumbnail, .gallery-item { border: none; }
button, input, select, textarea { border: none; border-radius: 0.9rem; }

/* User request: remove all squared borders — override common rectangular elements */
.panel,
.card,
.service-card,
.service-panel,
.service-item,
.before-after-card,
.carousel-track,
.slideshow,
.gallery-item,
.footer-panel,
.site-header,
.hero-card,
.hero-banner,
.hero-card img,
.page-home .slideshow-slide img,
.page-services .hero-card img,
.page-about .hero-gallery img,
img {
  border: none !important;
  box-shadow: none !important;
}

/* Keep pill and rounded elements intact: sticky-nav, contact-pill, call-now-cta */
.sticky-nav, .contact-pill, .call-now-cta { border-radius: 999px; }

img {
  display: block;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.1), transparent 28%),
              radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.12), transparent 30%),
              linear-gradient(180deg, #eef7fb 0%, #f8fbff 100%);
}

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

.site-header {
  padding: 1rem 1.5rem 0;
  background-image: radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 28%),
                    linear-gradient(135deg, #0f172a, #0d3b66, #0f766e, #f59e0b);
  background-size: 300% 300%;
  animation: gradient-rotate 18s ease infinite;
}

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

.top-bar {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-3d {
  position: relative;
  width: 7.5rem; /* increased for a beefier logo */
  height: 7.5rem; /* increased for a beefier logo */
  display: grid;
  place-items: center;
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.85);
  overflow: hidden;
  transform-style: preserve-3d;
  animation: logo-border-animate 7s ease-in-out infinite;
}

.logo-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.65) 18%, transparent 55%);
  opacity: 0.75;
  transform: translateZ(6px);
}

.logo-3d::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border-radius: 1.2rem;
  box-shadow: inset 0 12px 18px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.logo-image {
  width: 92%;
  height: 92%;
  object-fit: contain;
  display: block;
  z-index: 2;
  opacity: 1;
  filter: saturate(1.12) contrast(1.12);
  border-radius: 1rem;
  padding: 0.22rem;
  background: rgba(255, 255, 255, 0.96);
  animation: logo-content-animate 3.75s ease-in-out infinite;
}

@keyframes logo-border-animate {
  0%, 100% {
    transform: perspective(700px) rotateX(12deg) rotateY(-10deg) scale(1);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.85);
  }
  25% {
    transform: perspective(700px) rotateX(14deg) rotateY(-8deg) scale(1.02);
    box-shadow: 0 34px 76px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  }
  50% {
    transform: perspective(700px) rotateX(10deg) rotateY(-12deg) scale(0.98);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.82);
  }
  75% {
    transform: perspective(700px) rotateX(13deg) rotateY(-11deg) scale(1.01);
    box-shadow: 0 30px 64px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.88);
  }
}

@keyframes logo-content-animate {
  0%, 100% {
    transform: scale(1) rotateZ(0deg);
    filter: saturate(1.12) contrast(1.12) brightness(1);
  }
  20% {
    transform: scale(1.04) rotateZ(-0.35deg);
    filter: saturate(1.18) contrast(1.15) brightness(1.05);
  }
  50% {
    transform: scale(0.98) rotateZ(0.35deg);
    filter: saturate(1.08) contrast(1.08) brightness(0.98);
  }
  80% {
    transform: scale(1.02) rotateZ(-0.2deg);
    filter: saturate(1.15) contrast(1.1) brightness(1.02);
  }
}

/* visually-hidden utility for screen readers */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.slideshow-controls {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slideshow-controls button {
  background: rgba(255,255,255,0.9);
  border: 0; padding: 0.45rem 0.7rem; border-radius: 0.6rem; font-weight: 700; cursor: pointer;
}

.carousel-track:focus {
  outline: 3px solid rgba(15,118,110,0.3);
  outline-offset: 6px;
}

@keyframes logo-lift {
  0%, 100% { transform: perspective(700px) rotateX(16deg) rotateY(-10deg) translateY(0); }
  50% { transform: perspective(700px) rotateX(18deg) rotateY(-12deg) translateY(-4px) scale(1.01); }
}

.eyebrow,
.brand-subtitle {
  margin: 0;
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  color: rgba(248, 250, 252, 0.94);
  text-transform: uppercase;
}

/* Make the brand eyebrow (Fields Exteriors) prominent in the main header */
.brand-wrap .eyebrow {
  position: relative;
  display: inline-block;
  padding: 0.12rem 0.6rem;
  font-size: 1.55rem; /* larger headline */
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #ffffff;
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.85);
  text-stroke: 1.5px rgba(0,0,0,0.85);
  text-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 10px rgba(0,0,0,0.45);
  margin: 0;
  line-height: 1;
  z-index: 3;
}

.brand-wrap .eyebrow::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: 1;
  border-radius: 0.6rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.20));
  box-shadow: 0 8px 24px rgba(0,0,0,0.45), inset 0 2px 6px rgba(255,255,255,0.05);
  transform: translateY(4px) rotateX(6deg);
  filter: blur(0.6px);
  pointer-events: none;
}

.brand-wrap .eyebrow::after {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: 2;
  border-radius: 0.45rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02));
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Slightly smaller on narrow screens */
@media (max-width: 600px) {
  .brand-wrap .eyebrow {
    font-size: 1.15rem;
  }
}

.brand-subtitle {
  color: rgba(248, 250, 252, 0.94);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,0.92);
}


.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  color: #0f172a;
  background: linear-gradient(90deg, #fff 0%, #ffd700 30%, #fff 60%);
  background-size: 200% 100%;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
  animation: call-shine 2.6s linear infinite alternate;
}

.contact-pill:hover,
.contact-pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  background: #ffffff;
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 auto;
  max-width: 1220px;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.5rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.nav-link {
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem;
  border-radius: 999px;
  color: #0f172a;
  font-weight: 700;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: #0d3b66;
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-banner {
  max-width: 1220px;
  margin: 0 auto 2rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: stretch;
  border-radius: 2rem;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255,255,255,0.18);
}

.hero-home {
  background: linear-gradient(135deg, #0d3b66, #0f766e 40%, #0f766e 60%, #f59e0b);
}

.hero-services {
  background: linear-gradient(135deg, #102a43, #0f766e 35%, #14b8a6 65%, #f59e0b);
}

.hero-gallery {
  background: linear-gradient(135deg, #0d3b66, #0f766e 30%, #0d9488 70%, #fbbf24);
}

.hero-about {
  background: linear-gradient(135deg, #102a43, #0f766e 35%, #14b8a6 65%, #fde68a);
}

.hero-copy {
  display: grid;
  gap: 1rem;
  color: #f8fafc;
}

.hero-title,
.section-title {
  margin: 0;
  letter-spacing: -0.03em;
  color: #ffffff;
  -webkit-text-stroke: 0.8px rgba(15, 23, 42, 0.95);
  text-stroke: 0.8px rgba(15, 23, 42, 0.95);
}

.hero-title {
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 900;
}

.section-title {
  font-size: clamp(1.75rem, 2vw, 2.4rem);
  color: #ffffff;
  -webkit-text-stroke: 1px rgba(15, 23, 42, 0.95);
  text-stroke: 1px rgba(15, 23, 42, 0.95);
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 1.25rem;
}

.hero-text {
  margin: 0;
  color: rgba(248, 250, 252, 0.92);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d3b66, #0f766e);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero-button.secondary {
  background: rgba(255,255,255,0.95);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-button:hover,
.hero-button:focus-visible {
  transform: translateY(-2px);
}

.hero-gallery,
.services-gallery,
.gallery-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.hero-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.95);
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.hero-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1.25rem;
}

.hero-card h3 {
  margin: 0;
  color: #0f172a;
}

.hero-card p {
  margin: 0;
  color: #475569;
}

.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.about-hero img {
  min-height: 330px;
}

.slideshow {
  position: relative;
  width: 100%;
  min-height: 420px;
  border-radius: 1.75rem;
  overflow: hidden;
  background: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: grid;
  place-items: center;
}

.slideshow-slide.active {
  opacity: 1;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-weight: 700;
  z-index: 2;
}

.slideshow-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
}

.slideshow-progress::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--progress-width, 0%);
  background: linear-gradient(90deg, #0f766e, #f59e0b);
  transition: width 3s linear;
}

.hero-gallery img,
.services-gallery img,
.about-hero img,
.gallery-hero img {
  width: 100%;
  min-height: 260px;
  height: 100%;
  object-fit: cover;
  border-radius: 1.75rem;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
  transition: transform 320ms ease;
}

.hero-gallery img:hover,
.services-gallery img:hover,
.about-hero img:hover,
.gallery-hero img:hover {
  transform: translateY(-4px) scale(1.02);
}

.page-content {
  max-width: 1220px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  gap: 2rem;
}

.panel {
  padding: 2rem;
  border-radius: 2rem;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  border: 1px solid rgba(255,255,255,0.65);
}

.panel:hover {
  transform: translateY(-3px);
}

.panel-intro {
  margin-bottom: 1.25rem;
}

.stat-grid,
.feature-grid,
.service-grid,
.gallery-grid,
.about-grid,
.highlight-grid,
.before-after-row {
  display: grid;
  gap: 1.5rem;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.service-grid,
.feature-grid,
.about-grid,
.highlight-grid,
.before-after-row {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stat-card,
.feature-card,
.service-card,
.gallery-item,
.about-card,
.highlight-card,
.testimonial-banner,
.value-card,
.before-after-card,
.carousel-slide {
  padding: 1.5rem;
  border-radius: 1.75rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.hover-card:hover,
.tilt-card:hover .tilt-inner,
.before-after-card:hover,
.value-card:hover,
.reveal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.18);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0d3b66;
}

.feature-card img,
.service-card img,
.carousel-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1.35rem;
  margin-bottom: 1rem;
}

.service-card {
  min-height: 360px;
  padding: 0;
  overflow: hidden;
}

.tilt-inner {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  transform-origin: center;
  will-change: transform;
  transition: transform 220ms ease;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), #f8fafc);
}

.service-card h3,
.feature-card h3,
.about-card h3,
.highlight-card h3,
.slide-caption {
  margin-top: 0;
  color: #0f172a;
}

.slide-caption {
  font-weight: 700;
  color: #102a43;
}

.gallery-page .gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-item {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-item img {
  transition: transform 360ms ease;
  min-height: 240px;
}

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

.gallery-item figcaption {
  margin: 0;
  padding: 1rem 0.75rem;
  color: #0f172a;
  font-weight: 600;
}

.before-after-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.before-after-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.75rem;
  display: block;
}

.before-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 320ms ease, transform 320ms ease;
  z-index: 2;
}

.before-after-card:hover .before-image {
  opacity: 1;
  transform: scale(1);
}

/* keyboard/touch accessible state for before/after cards */
.before-after-card {
  cursor: pointer;
}

.before-after-card.show-before .before-image {
  opacity: 1;
  transform: scale(1);
}

.before-after-card.show-before::after {
  opacity: 1;
  transform: translateY(0);
}

.before-after-card::after {
  content: "Before";
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 0.9rem;
  z-index: 3;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.before-after-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.project-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-weight: 700;
  z-index: 3;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,255,0.98));
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.7);
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  min-width: 320px;
  flex: 0 0 320px;
  scroll-snap-align: center;
  background: #fff;
  border-radius: 1.75rem;
  overflow: hidden;
}

.carousel-slide img {
  border-radius: 1.75rem 1.75rem 0 0;
}

.carousel-slide .slide-caption {
  padding: 1.2rem 1.25rem;
}

.reveal-card {
  position: relative;
  overflow: hidden;
}

.reveal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,118,110,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.reveal-card:hover::before {
  opacity: 1;
}

.reveal-card h3 {
  margin-bottom: 0.75rem;
}

.value-card ul {
  margin: 1rem 0 0;
  padding-left: 1.35rem;
}

.value-card li {
  margin-bottom: 0.85rem;
}

.footer-panel {
  background: linear-gradient(180deg, #071020 0%, #0f172a 100%);
  color: #f8fafc;
  padding: 2.25rem 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 28px 80px rgba(2,6,23,0.45);
  border: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.footer-col h4 {
  margin: 0 0 0.5rem 0;
  color: #fde68a;
  font-size: 1rem;
}

.footer-brand p {
  margin: 0.5rem 0 1rem 0;
  color: rgba(248,250,252,0.9);
}

.footer-logo {
  height: 56px;
  display: block;
  margin-bottom: 0.6rem;
}

.call-now-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(90deg, #0f766e, #f59e0b);
  color: #07102a;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15,23,42,0.28);
}

.call-now-cta.pulse {
  animation: pulse-glow 2.4s ease-in-out infinite;
}

.footer-links ul,
.footer-trust ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a,
.footer-contact a,
.footer-bottom a {
  color: rgba(248,250,252,0.9);
  text-decoration: none;
}

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.social svg { filter: drop-shadow(0 6px 8px rgba(0,0,0,0.35)); }

.footer-bottom {
  max-width: 1220px;
  margin: 1.25rem auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(248,250,252,0.78);
}

@media (max-width: 980px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-col { align-items: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
}

@media (max-width: 960px) {
  .hero-banner,
  .footer-panel {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    grid-template-columns: 1fr;
  }

  .top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .top-bar,
  .site-header,
  .page-content,
  .footer-panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .sticky-nav {
    padding: 0.75rem 0.5rem;
  }

  .hero-gallery,
  .services-gallery,
  .about-hero,
  .gallery-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .contact-pill,
  .hero-button,
  .hero-button.secondary {
    width: 100%;
  }

  .page-content {
    padding: 0 0.75rem;
  }

  .service-grid,
  .stat-grid,
  .about-grid,
  .highlight-grid,
  .hero-card-grid,
  .before-after-row,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .carousel-slide {
    min-width: 260px;
    flex: 0 0 260px;
  }
}

/* Global: prevent horizontal scrolling and scale down oversized elements so no single object is too large */
html, body {
  overflow-x: hidden; /* no side-scrolling */
}

/* Ensure gallery previously-set overflow:hidden is reverted to allow vertical scrolling */
body.page-gallery { overflow: auto !important; }

/* Reduce some of the largest elements across all pages */
.logo-3d {
  width: 5.5rem !important;
  height: 5.5rem !important;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem) !important;
}

.slideshow {
  min-height: 320px !important;
}

/* Reduce large image heights site-wide to be more compact */
.feature-card img,
.service-card img,
.carousel-slide img,
.hero-card img,
.gallery-item img {
  height: 180px !important;
  min-height: 140px !important;
  object-fit: cover !important;
}

/* Carousel: hide native horizontal overflow and rely on animation/transform where used */
.carousel-track {
  overflow-x: hidden !important;
  scroll-snap-type: none !important;
}

/* Slightly tighten carousel container padding */
.carousel {
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

/* Make page content a bit tighter site-wide */
.page-content {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* Allow horizontal scrolling for small narrow viewports where layout requires it */
@media (max-width: 900px) {
  .carousel-track { overflow-x: auto !important; scroll-snap-type: x mandatory !important; }
  .feature-card img, .service-card img, .carousel-slide img, .hero-card img, .gallery-item img { height: auto !important; min-height: 160px !important; }
}


/* Gallery one-page compression (Option B) */
body.page-gallery { overflow: hidden; }
.page-gallery .site-header { padding: 0.6rem 1rem 0; }
.page-gallery .top-bar { gap: 0.4rem; padding: 0.4rem 0; }
.page-gallery .page-content { max-width: 1220px; margin: 0 auto; padding: 0 1rem; gap: 0.8rem; max-height: none; overflow: visible; }
.page-gallery .hero-banner { padding: 1rem; grid-template-columns: 1fr; gap: 0.6rem; }
.page-gallery .hero-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.page-gallery .hero-text, .page-gallery .brand-subtitle { font-size: 0.95rem; }
.page-gallery .panel { padding: 0.9rem; border-radius: 1rem; box-shadow: none; }
.page-gallery .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.5rem; }
.page-gallery .gallery-item img { min-height: 120px; height: 120px; object-fit: cover; border-radius: 0.9rem; }
.page-gallery .feature-card img, .page-gallery .carousel-slide img, .page-gallery .hero-card img { height: 120px; }
.page-gallery .slideshow { min-height: 220px; }
.page-gallery .carousel-slide { min-width: 220px; flex: 0 0 220px; }
.page-gallery footer.footer-panel { padding: 0.6rem 1rem; }
@media (max-width: 900px) {
  body.page-gallery { overflow: auto; }
  .page-gallery .page-content { max-height: none; overflow: auto; }
  .page-gallery .gallery-item img, .page-gallery .carousel-slide img { height: auto; min-height: 160px; }
}

