/* -------------------------------------------------------------
   RP Construbase - Premium Layout Redesign
   Aesthetic Upgrade with Glassmorphism, Sophisticated Palettes, 
   Radial Glows, and Interactive Micro-animations.
   ------------------------------------------------------------- */

:root {
  /* Colors */
  --blue: #06195f;
  --blue-dark: #040d30;
  --blue-light: #0c2a88;
  --ink: #070b16;
  --muted: #64748b;
  --yellow: #e5a93b; /* Premium Golden Amber */
  --yellow-light: #f2b842;
  --bg: #f8fafc; /* Premium Light Gray-Blue */
  --white: #ffffff;
  
  /* Gradients */
  --grad-hero: linear-gradient(135deg, rgba(4, 13, 48, 0.95) 0%, rgba(6, 25, 95, 0.85) 100%);
  --grad-gold: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-light) 100%);
  
  /* Shadows */
  --shadow-sm: 0 4px 20px rgba(7, 11, 22, 0.03);
  --shadow-md: 0 12px 30px rgba(9, 18, 50, 0.06);
  --shadow-lg: 0 24px 60px rgba(9, 18, 50, 0.08);
  --shadow-glow: 0 10px 30px rgba(229, 169, 59, 0.25);
  
  /* Layout */
  --radius: 20px;
  --radius-lg: 32px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Styling */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.5;
}

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

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

/* Dynamic Header (Top: full-width, solid white, no shadow. Scrolled: floating pill) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  z-index: 50;
  width: 100%;
  height: 86px;
  border-radius: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(6, 25, 95, 0.08);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: all 0.5s var(--ease);
}

.header.scrolled {
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  border-radius: 999px;
  border: 1px solid rgba(6, 25, 95, 0.08);
  box-shadow: var(--shadow-md);
  padding: 0 24px;
}

.header.scrolled:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 25, 95, 0.12);
}

.brand img {
  width: 140px;
  transition: var(--transition);
}

.brand:hover img {
  transform: scale(1.03);
}

.nav {
  display: flex;
  gap: 6px;
}

.nav a {
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--blue);
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav a:hover {
  background: rgba(6, 25, 95, 0.05);
}

.nav a.active {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(6, 25, 95, 0.2);
}

.menu-toggle {
  display: none;
}

/* Premium Loader Screen */
.loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
}

.loader-logo-wrap {
  width: 230px;
  height: 128px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: 0 30px 90px rgba(6, 25, 95, 0.1);
}

.loader-logo {
  width: 180px;
  animation: spinLogo 2s var(--ease) infinite alternate;
}

.loader-line {
  width: 200px;
  height: 4px;
  background: #f1f5f9;
  border-radius: 100px;
  overflow: hidden;
}

.loader-line span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--grad-gold);
  animation: load 1.5s var(--ease) forwards;
}

.loader p {
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

@keyframes load {
  to { width: 100%; }
}

@keyframes spinLogo {
  from { transform: rotateY(0) scale(0.95); }
  to { transform: rotateY(360deg) scale(1); }
}

/* Custom Magnetic Cursor */
.cursor, .cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: block;
  transition: transform 0.1s ease;
}

.cursor {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(229, 169, 59, 0.8);
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--yellow);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
  padding-top: 130px;
  padding-bottom: 80px;
}

/* Glowing Orbs */
.hero::before {
  content: "";
  position: absolute;
  top: -15%;
  right: -5%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(229, 169, 59, 0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 55%;
  height: 75%;
  background: radial-gradient(circle, rgba(12, 42, 136, 0.25) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-hero), url('https://rpconstrubase.com.br/wp-content/uploads/2020/10/Sem-T%C3%ADtulo-1.png') center/cover;
  transform: scale(1.35); /* Increased scale to cover viewport even when shifted by parallax */
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  font-weight: 800;
  font-size: 13px;
}

.eyebrow:before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
  border-radius: 10px;
}

h1, h2 {
  font-size: clamp(38px, 5.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 20px 0 24px;
  font-weight: 900;
}

h2 {
  font-size: clamp(34px, 4.5vw, 64px);
  color: var(--blue);
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 76px);
  color: var(--white);
}

.hero p {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 999px;
  padding: 0 32px;
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.btn.primary {
  background: var(--grad-gold);
  color: var(--blue-dark);
  box-shadow: var(--shadow-glow);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(229, 169, 59, 0.4);
}

.btn.primary:active {
  transform: translateY(0);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn.ghost:hover {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.15);
}

.btn.ghost:active {
  transform: translateY(0);
}

/* Premium Glass Card */
/* Hero Background SVG Vectors */
.hero-svg-vectors {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.85;
}

.hero-svg-vectors svg {
  width: 120%;
  height: 120%;
  position: absolute;
  top: -10%;
  left: -10%;
  animation: floatSVG 18s ease-in-out infinite alternate;
}

/* Animate the stroke paths to simulate wave motion */
.vector-line-1, .vector-line-2, .vector-line-3 {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawVector 15s linear infinite alternate;
}

.vector-line-2 {
  animation-duration: 20s;
  animation-delay: -5s;
}

.vector-line-3 {
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes drawVector {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes floatSVG {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-15px, 20px) rotate(1deg);
  }
  100% {
    transform: translate(15px, -20px) rotate(-1deg);
  }
}

/* Hero Right Side Premium Photo Wrap */
.hero-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 4/5;
  width: 100%;
  max-height: 380px; /* Limit height to prevent downward overflow */
  margin: auto;
  z-index: 2;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.hero-photo-wrap:hover .hero-photo {
  transform: scale(1.05);
}

.hero-photo-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(4, 13, 48, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 16px 22px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.hero-photo-badge b {
  font-size: 36px;
  color: var(--yellow);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(229, 169, 59, 0.2);
}

.hero-photo-badge span {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* Animated Mouse Icon Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mouse-icon {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  position: relative;
  display: block;
}

.mouse-wheel {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--yellow);
  border-radius: 4px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollMouse 1.8s ease-in-out infinite;
}

@keyframes scrollMouse {
  0% {
    top: 8px;
    opacity: 1;
    height: 8px;
  }
  50% {
    top: 18px;
    opacity: 0.5;
    height: 12px;
  }
  100% {
    top: 24px;
    opacity: 0;
    height: 4px;
  }
}

/* Layout Utilities & Grids */
.two-col {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 70px;
  align-items: start;
}

/* Company Section Photo */
.company-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(6, 25, 95, 0.06);
  aspect-ratio: 4/3;
  width: 100%;
}

.company-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.company-photo-wrap:hover .company-photo {
  transform: scale(1.04);
}

.values-grid, .service-grid, .benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

/* Values Section (Missão, Visão, Valores) */
.value-card {
  background: var(--white);
  border: 1px solid rgba(6, 25, 95, 0.04);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 25, 95, 0.08);
}

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

.value-card span {
  display: inline-block;
  color: var(--yellow);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  transition: var(--transition);
}

.value-card:hover span {
  transform: scale(1.1) rotate(-5deg);
}

.value-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  margin: 0 0 12px 0;
}

.value-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
  margin: 0;
}

/* Services Section */
.services {
  background: var(--white);
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.section-head .eyebrow {
  justify-content: center;
}

.section-head p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 18px;
}

/* Service Card Hover Revelations */
.service-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--blue-dark);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
  filter: brightness(0.8);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 13, 48, 0.95) 0%, rgba(4, 13, 48, 0.6) 40%, rgba(4, 13, 48, 0.1) 100%);
  z-index: 1;
  transition: var(--transition);
}

.service-card div {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 40px;
  transform: translateY(60px); /* Hide description off-screen initially */
  transition: var(--transition);
}

.service-card span {
  color: var(--yellow);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.1em;
}

.service-card h3 {
  font-size: 26px;
  font-weight: 900;
  margin: 10px 0 14px;
}

.service-card p {
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 15px;
  margin: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.65);
}

.service-card:hover div {
  transform: translateY(0);
}

.service-card:hover p {
  opacity: 1;
}

/* Asphalt Section (Usina de Asfalto) - Full screen (100vh) */
.asphalt {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 40px 0;
  overflow: hidden;
  position: relative;
}

.asphalt-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  height: 100%;
}

.asphalt-copy h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 14px 0 18px;
}

.asphalt-copy p {
  color: var(--blue-dark);
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 24px;
}

/* Contacts mini-cards */
.asphalt-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: rgba(6, 25, 95, 0.03);
  border: 1px solid rgba(6, 25, 95, 0.05);
  transition: var(--transition);
}

.contact-item-mini:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-color: rgba(229, 169, 59, 0.3);
  transform: translateX(4px);
}

.mini-icon {
  font-size: 20px;
  background: rgba(229, 169, 59, 0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.contact-item-mini h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.05em;
}

.contact-item-mini p {
  font-size: 14px;
  margin: 2px 0 0 0;
  color: var(--blue-dark);
  opacity: 0.8;
}

/* Video Frame on Usina Section */
.asphalt-video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(6, 25, 95, 0.06);
  width: 100%;
}

.asphalt-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery Section (Trabalhos Recentes) */
.gallery-section {
  background: var(--white);
  padding: 80px 0;
  position: relative;
}

.gallery-marquee {
  white-space: nowrap;
  font-size: clamp(38px, 6vw, 80px); /* Slightly smaller marquee to fit the screen */
  font-weight: 900;
  letter-spacing: -0.06em;
  color: rgba(6, 25, 95, 0.04);
  margin: 10px 0 20px;
  animation: marquee 24s linear infinite;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* 7 columns on desktop (single row for 7 images) */
  gap: 8px; /* Decreased gap between thumbs */
  width: min(1180px, calc(100% - 48px));
  margin: 24px auto 0;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1/1; /* Square, single size */
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(6, 25, 95, 0.06);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: none;
  padding: 0;
  width: 100%;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-item::after {
  content: "+";
  position: absolute;
  inset: 0;
  background: rgba(4, 13, 48, 0.5);
  color: var(--white);
  font-size: 32px;
  font-weight: 300;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  border-radius: var(--radius);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

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

.gallery-more-btn-wrap {
  display: none;
}

/* Benefits Section */
.benefits {
  background: var(--blue);
  color: var(--white);
}

.benefits-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
}

.benefit {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: none;
  transition: var(--transition);
}

.benefit:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
}

.benefit span {
  color: var(--yellow);
  font-weight: 900;
  font-size: 20px;
}

.benefit h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 14px 0 10px 0;
}

.benefit p {
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  font-size: 14px;
}



/* Contact Section */
.contact {
  background: var(--blue-dark);
  color: var(--white);
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.contact h2 {
  color: var(--white);
}

.contact::before {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(229, 169, 59, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch; /* All cards stretch to have the exact same height! */
  width: min(1180px, calc(100% - 48px));
  height: 100%;
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px 20px; /* Reduced padding for another 20% height reduction */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Aligns content vertically centered */
  gap: 16px; /* Added spacing between blocks */
  height: 100%;
  box-shadow: var(--shadow-lg);
}

.contact-card-title {
  font-size: clamp(18px, 1.8vw, 24px); /* Slightly smaller to fit compact height */
  line-height: 1.25;
  margin: 4px 0 0 0;
  font-weight: 800;
  color: var(--white);
}

.contact-info {
  margin-top: 0; /* Reset margin since we use gap on flex container */
}

.contact-info p {
  line-height: 1.5;
  color: #cbd5e1;
  font-size: 13px; /* Slightly smaller for compact height */
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info p b {
  color: var(--yellow);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

/* Sleek Minimalist Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 20px; /* Reduced padding for another 20% height reduction */
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(6, 25, 95, 0.04);
  display: grid;
  gap: 10px; /* Reduced gap to 10px */
  height: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid #e2e8f0;
  background: transparent;
  border-radius: 0;
  padding: 6px 4px; /* Reduced padding from 8px to 6px */
  font: inherit;
  outline: none;
  color: var(--ink);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--yellow);
  padding-left: 8px;
}

.contact-form textarea {
  resize: none;
  height: 38px; /* Compact height for message box */
}

.contact-form button {
  margin-top: 4px;
  align-self: flex-start;
}

.contact-form small {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}

/* Premium Dark-Themed Map Container */
.contact-map {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(6, 25, 95, 0.04);
  width: 100%;
  height: 100%;
  z-index: 2;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(0.65) invert(0.92) contrast(1.1); /* Custom premium dark themed map filter */
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 13, 48, 0.96);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-height: 84vh;
  max-width: 84vw;
  border-radius: var(--radius);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  border: none;
  background: var(--white);
  color: var(--blue-dark);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--yellow);
  color: var(--blue-dark);
  transform: scale(1.08);
}

.lb-close {
  right: 32px;
  top: 32px;
}

.lb-prev {
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev:hover {
  transform: translateY(-50%) scale(1.08) translateX(-3px);
}

.lb-next:hover {
  transform: translateY(-50%) scale(1.08) translateX(3px);
}

.lb-caption {
  position: absolute;
  bottom: 24px;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  background: rgba(4, 13, 48, 0.8);
  padding: 8px 20px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Utilities for Animations */
.char {
  display: inline-block;
  will-change: transform;
}

.reveal {
  will-change: transform, opacity;
}

.magnetic {
  will-change: transform;
}

.form-status {
  min-height: 24px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.45;
  color: #64748b;
}

.form-status.loading { color: var(--blue); }
.form-status.success { color: #10b981; }
.form-status.error { color: #ef4444; }

.contact-form button:disabled {
  opacity: 0.75;
  cursor: wait;
  filter: saturate(0.65);
}

/* Footer Styles */
.footer {
  background: var(--white);
  color: var(--blue-dark);
  padding: 80px 0 0;
  border-top: 1px solid rgba(6, 25, 95, 0.08);
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 24px;
}

.footer-about p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: #64748b;
  font-size: 14px;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--blue);
  transform: translateX(4px);
}

.footer-contact-info {
  display: grid;
  gap: 16px;
  color: #64748b;
  font-size: 14px;
}

.footer-contact-info span {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(6, 25, 95, 0.06);
  padding: 30px 0;
  background: #f8fafc;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 13px;
  margin: 0;
}

/* Magnetic Back to Top Button */
.back-to-top {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(6, 25, 95, 0.03);
  border: 1px solid rgba(6, 25, 95, 0.08);
  color: var(--blue);
  display: grid;
  place-items: center;
  transition: var(--transition);
  cursor: pointer;
}

.back-to-top:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 10px 20px rgba(12, 42, 136, 0.2);
  transform: translateY(-4px);
}

/* -------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------- */

@media (max-width: 1100px) {
  .header {
    width: calc(100% - 24px);
  }
  .nav {
    gap: 2px;
  }
  .nav a {
    font-size: 13px;
    padding: 10px 14px;
  }
  .hero-grid {
    gap: 40px;
  }
  .values-grid, .service-grid {
    gap: 18px;
  }
  .asphalt-list {
    gap: 24px;
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .cursor, .cursor-dot {
    display: none !important;
  }
  .container {
    width: calc(100% - 32px);
  }
  .section {
    padding: 80px 0;
  }
  
  /* Mobile Header Menu (Slide-down) */
  .header {
    top: 0;
    width: 100%;
    height: auto;
    min-height: 74px;
    border-radius: 0;
    padding: 12px 24px;
    align-items: center;
    border: none;
    border-bottom: 1px solid rgba(6, 25, 95, 0.08);
    box-shadow: none;
    transform: none;
    left: 0;
    background: var(--white);
  }
  .header.scrolled {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    border-radius: 20px;
    padding: 12px 18px;
    border: 1px solid rgba(6, 25, 95, 0.08);
    box-shadow: var(--shadow-md);
  }
  .brand img {
    width: 120px;
  }
  .menu-toggle {
    display: grid;
    gap: 4px;
    background: var(--blue);
    border: 0;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    place-items: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
  }
  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    transition: var(--transition);
  }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: top 0.5s var(--ease);
  }
  .header.scrolled .nav {
    top: 64px;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    width: 100%;
    text-align: center;
    padding: 14px 18px;
  }
  
  .hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 80px;
  }
  .hero-grid, .two-col, .asphalt-grid, .video-wrap, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .asphalt, .contact {
    height: auto;
    min-height: auto;
    padding: 80px 0;
  }
  .hero-card {
    max-width: 100%;
  }
  .values-grid, .service-grid, .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-card {
    min-height: 420px;
  }
  .asphalt-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .gallery-section {
    height: auto;
    min-height: auto;
    padding: 80px 0;
  }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    columns: unset;
  }
  .gallery-item {
    margin: 0;
    aspect-ratio: 1/1;
  }
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .video-frame {
    aspect-ratio: 16/10;
  }
  .lightbox {
    padding: 24px;
  }
  .lightbox img {
    max-width: 94vw;
    max-height: 76vh;
  }
  .lb-prev, .lb-next {
    top: auto;
    bottom: 60px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
  .lb-close {
    width: 48px;
    height: 48px;
    font-size: 24px;
    right: 18px;
    top: 18px;
  }

  /* Responsive Map */
  .contact-map {
    aspect-ratio: 16/9;
    height: auto;
  }

  /* Responsive Contact Card */
  .contact-info-card {
    height: auto;
    min-height: auto;
    justify-content: flex-start;
    gap: 20px;
  }

  /* Responsive Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }
  .footer-bottom-flex {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(34px, 10vw, 56px);
  }
  h2 {
    font-size: clamp(30px, 8vw, 44px);
  }
  .hero p, .section-head p, .text-block p {
    font-size: 16px;
    line-height: 1.6;
  }
  .eyebrow {
    font-size: 12px;
    gap: 10px;
  }
  .eyebrow:before {
    width: 24px;
  }
  .hero-actions {
    display: grid;
    gap: 12px;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .btn {
    min-height: 52px;
    padding: 0 24px;
  }
  .hero-card {
    padding: 28px;
  }
  .hero-card b {
    font-size: 54px;
  }
  .value-card, .benefit, .contact-form {
    padding: 28px;
  }
  .service-card {
    min-height: 360px;
  }
  .service-card div {
    padding: 28px;
  }
  .asphalt-card {
    padding: 32px;
  }
  .gallery-marquee {
    font-size: clamp(40px, 14vw, 80px);
  }
  .contact-form input, .contact-form textarea {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 24px);
  }
  .section {
    padding: 60px 0;
  }
  .header {
    top: 8px;
    width: calc(100% - 12px);
    min-height: 66px;
    border-radius: 20px;
    padding: 8px 12px;
  }
  .header.scrolled {
    top: 8px;
    width: calc(100% - 12px);
    min-height: 66px;
    padding: 8px 12px;
    border-radius: 20px;
  }
  .brand img {
    width: 110px;
  }
  .menu-toggle {
    width: 44px;
    height: 44px;
  }
  .nav {
    top: 70px;
    border-radius: 16px;
    padding: 12px;
    max-height: calc(100dvh - 86px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .header.scrolled .nav {
    top: 70px;
  }
  .hero {
    padding-top: 110px;
    padding-bottom: 60px;
  }
  .hero-grid, .two-col, .video-wrap, .contact-grid {
    gap: 24px;
  }
  h1, h2 {
    margin: 14px 0 18px;
  }
  .hero-actions {
    margin-top: 20px;
  }
  .hero-photo-badge {
    left: 16px;
    bottom: 16px;
    padding: 12px 16px;
  }
  .hero-photo-badge b {
    font-size: 32px;
  }
  .hero-card b {
    font-size: 42px;
  }
  .value-card, .benefit, .contact-form {
    padding: 24px;
    border-radius: var(--radius);
  }
  .value-card h3, .benefit h3, .service-card h3 {
    font-size: 20px;
  }
  .service-card {
    min-height: 320px;
    border-radius: var(--radius);
  }
  .service-card div {
    padding: 24px;
    transform: translateY(0); /* On small screens, keep content fully visible */
  }
  .service-card p {
    opacity: 1;
    margin-top: 8px;
  }
  .video-frame {
    border-radius: var(--radius);
    aspect-ratio: 4/3;
  }
  .asphalt-card {
    padding: 24px;
    border-radius: var(--radius);
  }
  .contact-item-mini p,
  .contact-info p,
  .footer-contact-info span {
    overflow-wrap: anywhere;
  }
  
  /* CRITICAL: Premium 3-column Mobile Gallery Layout */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    columns: unset;
  }
  .gallery-item {
    margin: 0;
    border-radius: 12px;
    aspect-ratio: 1/1;
  }
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .gallery-item::after {
    display: none;
  }

  /* Hide gallery items after the 12th one when not expanded */
  .gallery-grid:not(.expanded) .gallery-item:nth-child(n+13) {
    display: none;
  }

  .gallery-more-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    width: 100%;
  }

  /* When expanded is active on the grid, hide the show more button! */
  .gallery-grid.expanded + .gallery-more-btn-wrap {
    display: none;
  }

  /* Mobile footer: keep essential company and contact information visible */
  .footer {
    padding: 30px 0;
  }
  .footer-grid {
    display: grid;
    justify-items: center;
    gap: 28px;
    padding-bottom: 30px;
    text-align: center;
  }
  .footer-about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
  }
  .footer-logo {
    margin-bottom: 0;
  }
  .footer-links {
    display: none !important;
  }
  .footer-links:last-child {
    display: block !important;
  }
  .footer-contact-info {
    align-items: center;
  }
  .footer-contact-info span {
    justify-content: center;
  }
  .footer-bottom {
    display: block;
    padding: 22px 0 0;
  }
  
  .benefits-grid {
    gap: 12px;
  }
  .contact-form input, .contact-form textarea {
    padding: 12px 2px;
    font-size: 16px;
  }
  .contact-form textarea {
    height: auto;
    min-height: 96px;
    resize: vertical;
  }
  .lightbox {
    padding: 12px;
  }
  .lb-close {
    right: 12px;
    top: 12px;
  }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-caption {
    left: 12px;
    right: 12px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 100px;
  }
  .nav a {
    font-size: 12px;
    padding: 10px 12px;
  }
  h1 {
    font-size: 34px;
  }
  h2 {
    font-size: 28px;
  }
  .btn {
    font-size: 13px;
  }
}

/* Reduced Motion Preferences */
@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;
  }
  .cursor, .cursor-dot {
    display: none !important;
  }
  .service-card div {
    transform: none !important;
  }
  .service-card p {
    opacity: 1 !important;
  }
}
