/* ==============================================
   CUMBERLAND VALLEY HAULING — Main Stylesheet
   ============================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--line-height-body);
  color: var(--color-charcoal);
  background-color: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

ul {
  list-style: none;
}

/* ==============================================
   2. GLOBAL TYPOGRAPHY & UTILITIES
   ============================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-header--center {
  text-align: center;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-amber);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: 2rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 2px;
  background-color: var(--color-amber);
}

.section-header--center .section-label {
  padding-left: 0;
}

.section-header--center .section-label::before {
  display: none;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-heading);
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.section-desc {
  font-size: var(--text-body);
  color: var(--color-gray);
  max-width: 560px;
}

/* max-width alone leaves the paragraph hugging the left edge even
   though its text is centered — center the box itself to match the
   centered label/title above it. */
.section-header--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Dark sections override */
.about .section-title,
.areas .section-title {
  color: var(--color-white);
}

.about .section-label,
.areas .section-label {
  color: var(--color-amber);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-amber);
  color: var(--color-primary-dark);
  border-color: var(--color-amber);
  box-shadow: var(--shadow-button);
}

.btn--primary:hover {
  background-color: var(--color-amber-hover);
  border-color: var(--color-amber-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 163, 23, 0.45);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

.btn--full {
  width: 100%;
  justify-content: center;
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================
   3. NAVIGATION
   ============================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition-base);
}

.nav--scrolled {
  background-color: rgba(27, 36, 54, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(232, 163, 23, 0.15);
}

.nav__container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.nav__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-amber);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-radius: var(--border-radius-sm);
}

/* Brand lockup (mark + wordmark + LLC) exported from the master decal
   artwork. Sized by height so the 590x199 aspect stays intact. */
.nav__logo-img {
  display: block;
  height: 52px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.25rem 0;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-amber);
  transition: width var(--transition-base);
}

.nav__links a:hover {
  color: var(--color-white);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-amber);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-small);
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  transition: all var(--transition-base);
}

.nav__cta:hover {
  background-color: var(--color-amber-hover);
  transform: translateY(-1px);
}

.nav__cta i {
  font-size: 0.75rem;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav__hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(27, 36, 54, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right var(--transition-base);
}

.mobile-menu.is-open {
  right: 0;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu__links a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-base);
}

.mobile-menu__links a:hover {
  color: var(--color-amber);
}

.mobile-menu__phone {
  margin-top: 1rem;
  font-size: 1.25rem !important;
  color: var(--color-amber) !important;
}

/* ==============================================
   4. HERO
   ============================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 50%, var(--color-navy) 100%);
  overflow: hidden;
  padding: calc(var(--nav-height) + var(--space-sm)) var(--space-md) var(--space-md);
}

/* Concrete texture overlay via CSS pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23ffffff' fill-opacity='0.03'/%3E%3Crect x='0' y='0' width='1' height='1' fill='%23ffffff' fill-opacity='0.05'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Subtle diagonal grain lines */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.008) 2px,
    rgba(255, 255, 255, 0.008) 4px
  );
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(232, 163, 23, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-amber);
  margin-bottom: var(--space-sm);
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(232, 163, 23, 0.3);
  border-radius: 50px;
  background-color: rgba(232, 163, 23, 0.08);
}

.hero__badge i {
  font-size: 0.8rem;
}

/* Custom dump-truck mark — Font Awesome Free has no dump truck, only
   box/pickup shapes. Inherits the badge's amber via currentColor. */
.hero__badge-icon {
  width: 1.35em;
  height: 1.35em;
  flex-shrink: 0;
  fill: currentColor;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: var(--letter-spacing-heading);
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-shadow: var(--shadow-text);
}

.hero__title-line {
  display: inline;
  white-space: nowrap;
}

/* Location qualifier inside the h1 — subordinate to the main claim so
   the long phrase reads as a lockup rather than one oversized block.
   Cream is the brand's reversed-on-dark tone, which sits between the
   white title and the gray subtitle. */
.hero__title-sub {
  display: block;
  /* 0.42em tracks the title, but floored so it stays legible once the
     title clamps down to its 1.75rem minimum on small screens. */
  font-size: clamp(0.95rem, 0.42em, 1.9rem);
  color: var(--color-cream);
  letter-spacing: 0.05em;
  line-height: 1.15;
  margin-top: 0.4em;
  text-shadow: none;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--color-gray-light);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

/* Trust badges row (replaces stats) */
.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

.hero__trust span i {
  color: var(--color-amber);
  font-size: 0.85rem;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-family: var(--font-accent);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-amber);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero__stat-label {
  font-size: var(--text-small);
  color: var(--color-gray-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero__scroll span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    var(--color-amber),
    transparent
  );
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ==============================================
   5. SERVICES
   ============================================== */
.services {
  padding: var(--space-xl) 0;
  background-color: var(--color-off-white);
  position: relative;
}

/* Diagonal top edge */
.services::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--color-off-white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-top-color: var(--color-amber);
}

.service-card__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-charcoal);
  color: var(--color-amber);
  border-radius: var(--border-radius-md);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background-color: var(--color-amber);
  color: var(--color-primary-dark);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--color-charcoal);
}

.service-card__desc {
  color: var(--color-gray);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Odd card count (7): the trailing card would otherwise sit alone in
   the desktop grid's 3-column row with two empty slots beside it.
   Spanning the full row on desktop only turns that into a deliberate
   closing banner instead of a layout gap; below desktop it stacks
   like any other card. */
.service-card--wide .service-card__icon {
  margin-bottom: 1.25rem;
}

/* ==============================================
   6. ABOUT
   ============================================== */
.about {
  padding: var(--space-xl) 0;
  background-color: var(--color-charcoal);
  position: relative;
  overflow: hidden;
}

/* Subtle texture */
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23ffffff' fill-opacity='0.02'/%3E%3Crect x='0' y='0' width='1' height='1' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
}

.about__image-frame {
  position: relative;
  max-width: 480px;
}

.about__image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-steel) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--color-gray-light);
}

.about__image-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-card);
}

.about__image-placeholder i {
  font-size: 4rem;
  color: var(--color-amber);
  opacity: 0.5;
}

.about__image-placeholder span {
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  opacity: 0.5;
}

.about__image-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-amber);
  border-radius: var(--border-radius-md);
  z-index: -1;
  opacity: 0.4;
}

.about__content p {
  color: var(--color-gray-light);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.about__values {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about__value {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about__value i {
  font-size: 1.25rem;
  color: var(--color-amber);
}

.about__value span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==============================================
   7. WHY CHOOSE US
   ============================================== */
.why-us {
  padding: var(--space-xl) 0;
  background-color: var(--color-off-white);
}

.why-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.why-us__item {
  position: relative;
  padding: 2rem;
  padding-top: 2.5rem;
  border-top: 3px solid var(--color-amber);
  background-color: var(--color-white);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  overflow: hidden;
}

.why-us__number {
  position: absolute;
  top: -10px;
  right: 16px;
  font-family: var(--font-accent);
  font-size: 6rem;
  line-height: 1;
  color: var(--color-amber);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

.why-us__item h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 800;
  color: var(--color-charcoal);
  margin-bottom: 0.75rem;
}

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

/* ==============================================
   8. SERVICE AREA
   ============================================== */
.areas {
  padding: var(--space-xl) 0;
  background-color: var(--color-charcoal);
  position: relative;
}

.areas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23ffffff' fill-opacity='0.02'/%3E%3Crect x='0' y='0' width='1' height='1' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.areas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
  position: relative;
}

.areas__content p {
  color: var(--color-gray-light);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.areas__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.areas__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem;
}

.areas__list li i {
  color: var(--color-amber);
  font-size: 0.75rem;
}

.areas__note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--color-gray-light) !important;
  font-size: var(--text-small);
  font-style: italic;
  opacity: 0.8;
}

.areas__note i {
  color: var(--color-amber);
  margin-top: 0.2rem;
}

.areas__map-embed {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 2px solid rgba(232, 163, 23, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.areas__map-embed iframe {
  width: 100%;
  height: 100%;
}

/* ==============================================
   9. CONTACT
   ============================================== */
.contact {
  padding: var(--space-xl) 0;
  background-color: var(--color-off-white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact__info .section-title {
  margin-bottom: var(--space-sm);
}

.contact__info > p {
  color: var(--color-gray);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.contact__detail-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-amber);
  color: var(--color-primary-dark);
  border-radius: 50%;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact__detail strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-charcoal);
  margin-bottom: 0.125rem;
}

.contact__detail a,
.contact__detail span {
  color: var(--color-gray);
  font-size: 0.95rem;
}

.contact__detail a:hover {
  color: var(--color-amber);
}

/* Form */
.contact__form-wrapper {
  position: relative;
}

.contact__form {
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
}

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

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-charcoal);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-border);
  outline: none;
  transition: border-color var(--transition-base);
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-amber);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-placeholder);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b78' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

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

.form-error {
  display: none;
  color: var(--color-error);
  font-size: 0.8rem;
  margin-top: 0.375rem;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-bottom-color: var(--color-error);
}

.form-group.has-error .form-error {
  display: block;
}

/* Submit-level error (network/server failure), distinct from the
   per-field .form-error above - not tied to a .form-group. */
.form-submit-error {
  display: none;
  color: var(--color-error);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.75rem;
}

.form-submit-error.is-visible {
  display: block;
}

/* Success state */
.contact__success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
}

.contact__success.is-visible {
  display: block;
}

.contact__success i {
  font-size: 3rem;
  color: var(--color-success);
  margin-bottom: 1rem;
}

.contact__success h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 800;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

.contact__success p {
  color: var(--color-gray);
}

/* ==============================================
   10. FOOTER
   ============================================== */
.footer {
  background-color: var(--color-primary-dark);
  padding-top: var(--space-xl);
  color: var(--color-gray-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}

.footer__logo span:last-child {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-white);
  text-transform: uppercase;
}

.footer__logo-img {
  display: block;
  height: 58px;
  width: auto;
}

.footer__logo .nav__logo-icon {
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
}

.footer__brand p {
  color: var(--color-gray-light);
  font-size: var(--text-small);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  max-width: 300px;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--color-gray-light);
  transition: all var(--transition-base);
  font-size: 0.9rem;
}

.footer__social a:hover {
  background-color: var(--color-amber);
  border-color: var(--color-amber);
  color: var(--color-primary-dark);
}

.footer__col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer__col a {
  display: block;
  color: var(--color-gray-light);
  font-size: var(--text-small);
  margin-bottom: 0.75rem;
  transition: color var(--transition-base);
}

.footer__col a:hover {
  color: var(--color-amber);
}

.footer__col p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gray-light);
  font-size: var(--text-small);
  margin-bottom: 0.75rem;
}

.footer__col p i {
  color: var(--color-amber);
  font-size: 0.8rem;
  width: 16px;
  text-align: center;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
}

.footer__bottom p {
  text-align: center;
  font-size: var(--text-small);
  color: var(--color-gray);
}

/* ==============================================
   11. ANIMATIONS & KEYFRAMES
   ============================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero entrance animations */
.hero__badge {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__title {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__subtitle {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero__actions {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero__trust {
  animation: fadeInUp 0.8s ease-out 1s both;
}

/* Stagger service cards */
.service-card.reveal:nth-child(1) { transition-delay: 0s; }
.service-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.service-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.service-card.reveal:nth-child(4) { transition-delay: 0.3s; }
.service-card.reveal:nth-child(5) { transition-delay: 0.4s; }
.service-card.reveal:nth-child(6) { transition-delay: 0.5s; }
.service-card.reveal:nth-child(7) { transition-delay: 0.6s; }

/* Stagger why-us items */
.why-us__item.reveal:nth-child(1) { transition-delay: 0s; }
.why-us__item.reveal:nth-child(2) { transition-delay: 0.1s; }
.why-us__item.reveal:nth-child(3) { transition-delay: 0.2s; }
.why-us__item.reveal:nth-child(4) { transition-delay: 0.3s; }
.why-us__item.reveal:nth-child(5) { transition-delay: 0.4s; }

/* ==============================================
   12. MEDIA QUERIES
   ============================================== */

/* Small tablets */
@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .why-us__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablets */
@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 45% 1fr;
  }

  .areas__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .hero__scroll {
    display: flex;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .nav__hamburger {
    display: none;
  }

  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card--wide {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
  }

  .service-card--wide .service-card__icon {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .service-card--wide .service-card__body {
    max-width: 640px;
  }

  /* Exactly 5 equal columns — all 5 cards in a single row at desktop. */
  .why-us__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }

  /* Narrow columns need smaller type and less padding to avoid feeling
     cramped; min-height keeps the card proportion tall/slender rather
     than squat now that it's ~220px wide instead of ~380px. */
  .why-us__item {
    padding: 1.5rem 1.125rem 1.75rem;
    min-height: 250px;
  }

  .why-us__number {
    font-size: 4rem;
    top: -6px;
    right: 10px;
  }

  .why-us__item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }

  .why-us__item p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .areas__map-embed {
    height: 480px;
  }
}

/* Below desktop: show hamburger, hide desktop nav */
@media (max-width: 1023px) {
  .nav {
    height: var(--nav-height-mobile);
  }

  /* Scale the lockup with the shorter mobile bar so it keeps
     breathing room above and below. */
  .nav__logo-img {
    height: 42px;
  }

  html {
    scroll-padding-top: var(--nav-height-mobile);
  }

  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-height-mobile) + var(--space-md));
  }
}

/* Mobile adjustments */
@media (max-width: 575px) {
  .hero__stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero__stat-divider {
    width: 40px;
    height: 1px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .areas__list {
    grid-template-columns: 1fr;
  }

  .contact__form {
    padding: 1.5rem;
  }

  .about__image-accent {
    bottom: -10px;
    right: -10px;
  }

  .hero__scroll {
    display: none;
  }
}
