/* Goodtrade Plumbing Co — Premium Commercial Plumbing
   Modern · Masculine · Minimalist · Luxury Contractor */

:root {
  --bg: #0a0a0b;
  --bg-elevated: #111113;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #d4af37; /* richer brass */
  --accent-soft: rgba(212, 175, 55, 0.14);
  --accent-hover: #e8c547;
  --white: #ffffff;
  --radius: 4px;
  --radius-lg: 6px;
  --font: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.display {
  font-size: clamp(2.85rem, 7.5vw, 5.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.section-title {
  font-size: clamp(2.05rem, 4.2vw, 3.35rem);
  margin-bottom: 1.1rem;
  letter-spacing: -0.035em;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.9rem;
  display: block;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 36rem;
}

/* ========== Layout ========== */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0 6.25rem;
  position: relative;
}

.section-tight {
  padding: 4rem 0;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92%);
  margin-inline: auto;
}

.logo {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0a0a0b;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
}

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

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

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

.phone-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  display: none;
}

@media (min-width: 900px) {
  .phone-link {
    display: block;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0b;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: var(--bg-card);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--text);
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 11, 0.95) 0%,
    rgba(10, 10, 11, 0.55) 45%,
    rgba(10, 10, 11, 0.3) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, 92%);
  margin-inline: auto;
  padding-bottom: 5rem;
  padding-top: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--accent-soft);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1.75rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin-bottom: 1.25rem;
  max-width: 13ch;
}

.hero .lead {
  margin-bottom: 2.5rem;
  max-width: 32rem;
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat {
  min-width: 120px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* ========== Services Grid ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.85rem 1.75rem;
  transition: transform 0.45s var(--ease), background 0.4s, border-color 0.4s, box-shadow 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(201, 162, 39, 0.28);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 3px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ========== Featured / Projects ========== */
.projects-preview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .projects-preview {
    grid-template-columns: 1fr;
  }
}

.project-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-elevated);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.project-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-tall {
  aspect-ratio: 3/4;
}

/* ========== Process ========== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  counter-reset: step;
}

@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.process-step {
  position: relative;
  padding: 1.5rem 0;
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.35;
  display: block;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== Split / About ========== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.split-image {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-elevated);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== CTA Band ========== */
.cta-band {
  background: linear-gradient(135deg, #141416 0%, #0f0f11 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-top: 3rem;
}

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

.contact-info h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--accent);
}

.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
}

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

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

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

/* ========== Footer ========== */
.footer {
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 22rem;
  margin-top: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  transition: color 0.25s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ========== Animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Subtle grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Utility */
.text-accent { color: var(--accent); }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(10, 10, 11, 0.97);
  backdrop-filter: blur(20px);
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.35s;
  z-index: 999;
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a {
  font-size: 1.15rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

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

/* ============================================================
   ADVANCED ANIMATIONS & INTERACTIONS
   Premium motion system — 21st.dev / modern contractor feel
   ============================================================ */

/* --- Enhanced Reveal System --- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  filter: blur(4px);
  will-change: opacity, transform, filter;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  filter: blur(4px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  filter: blur(4px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  filter: blur(6px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), filter 0.85s var(--ease);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* --- Buttons — premium interactions --- */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.18) 50%, transparent 80%);
  transform: translateX(-120%) skewX(-15deg);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(120%) skewX(-15deg);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(201, 162, 39, 0.35);
}

.btn-ghost:hover,
.btn-outline:hover {
  transform: translateY(-2px);
}

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

/* --- Service Cards --- */
.service-card {
  transition: transform 0.45s var(--ease), background 0.4s, border-color 0.4s, box-shadow 0.45s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(201, 162, 39, 0.12);
}

.service-icon {
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}

.service-card:hover .service-icon {
  transform: scale(1.12) rotate(-4deg);
  background: var(--accent);
  color: #0a0a0b;
}

/* --- Project Cards --- */
.project-card {
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.project-card img {
  transition: transform 0.9s var(--ease);
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card-overlay {
  transition: background 0.4s;
}

.project-card:hover .project-card-overlay {
  background: linear-gradient(to top, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0.2) 60%);
}

.project-card h3 {
  transition: color 0.3s, transform 0.35s var(--ease);
}

.project-card:hover h3 {
  color: var(--accent);
  transform: translateY(-2px);
}

/* --- Hero enhancements --- */
.hero-bg img {
  transition: transform 1.4s var(--ease);
  will-change: transform;
}

.hero.loaded .hero-bg img {
  transform: scale(1.05);
}

.hero-badge {
  animation: subtlePulse 4s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(201, 162, 39, 0); }
}

.hero-badge span {
  display: inline-block;
  animation: blinkDot 2s ease-in-out infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* --- Process steps --- */
.process-step {
  transition: transform 0.4s var(--ease);
}

.process-step:hover {
  transform: translateY(-4px);
}

.process-step::before {
  transition: opacity 0.4s, color 0.4s, transform 0.4s var(--ease);
}

.process-step:hover::before {
  opacity: 0.7;
  color: var(--accent);
  transform: scale(1.05);
}

/* --- Stats --- */
.stat-value {
  transition: color 0.3s;
}

.stat:hover .stat-value {
  color: var(--accent);
}

/* --- CTA Band --- */
.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ctaGlow 8s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* --- Split image hover --- */
.split-image {
  transition: transform 0.5s var(--ease);
}

.split-image:hover {
  transform: scale(1.015);
}

.split-image img {
  transition: transform 0.8s var(--ease);
}

.split-image:hover img {
  transform: scale(1.04);
}

/* --- Nav link underline is already present; strengthen --- */
.nav a::after {
  transition: width 0.35s var(--ease);
}

/* --- Mobile nav smoother --- */
.mobile-nav {
  transition: transform 0.45s var(--ease), opacity 0.4s var(--ease);
}

/* --- Logo mark subtle spin on hover --- */
.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.05);
  transition: transform 0.35s var(--ease);
}

.logo-mark {
  transition: transform 0.35s var(--ease);
}

/* --- Form inputs focus glow --- */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
  transition: border-color 0.25s, box-shadow 0.25s;
}

/* --- Page load fade --- */
body {
  animation: pageIn 0.6s var(--ease) both;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Reduced motion respect --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ============================================================
   MOBILE POLISH + SLIGHT DESIGN REFINEMENTS
   ============================================================ */

/* Slightly tighter overall rhythm */
.section {
  padding: 5.5rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 3.75rem 0;
  }
  .section-tight {
    padding: 2.75rem 0;
  }

  .display {
    font-size: clamp(2.35rem, 9vw, 3.25rem);
    letter-spacing: -0.035em;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.35rem);
  }

  .lead {
    font-size: 1.05rem;
  }

  .hero-content {
    padding-bottom: 3.5rem;
    padding-top: 3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 2.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 1.5rem 1.75rem;
    padding-top: 1.5rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .services-grid {
    gap: 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .btn {
    min-height: 48px;
    padding: 0.9rem 1.5rem;
  }

  .header-inner {
    width: min(1200px, 94%);
  }

  .container {
    width: min(1200px, 94%);
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .mobile-nav a {
    font-size: 1.2rem;
    padding: 0.55rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

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

  .split {
    gap: 2rem;
  }

  .contact-grid {
    gap: 2.25rem;
  }

  .footer-top {
    gap: 2.5rem;
  }
}

/* Design refinements */
.header {
  height: 68px;
}
:root {
  --header-h: 68px;
}

.logo-mark {
  border-radius: 3px;
}

.service-card,
.project-card,
.split-image {
  border-radius: 4px;
}

.btn {
  letter-spacing: -0.01em;
}

.hero-badge {
  font-weight: 500;
}

/* Slightly stronger form */
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.9rem 1rem;
  color: var(--text);
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--border-strong);
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
  display: block;
}

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

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

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

/* FAQ already styled inline; ensure spacing */
.faq-item {
  transition: background 0.25s;
}

/* Process page still useful — keep link from about */


/* ============================================================
   ATMOSPHERIC SECTION BACKGROUNDS
   ============================================================ */

.section-process {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-process::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,11,0.88) 0%, rgba(10,10,11,0.82) 50%, rgba(10,10,11,0.92) 100%),
    url("bg-pipes.jpg") center / cover no-repeat;
  z-index: -1;
  filter: none;
}

.section-cta-textured {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-cta-textured::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10,10,11,0.92) 0%, rgba(14,14,16,0.88) 100%),
    url("bg-metal.jpg") center / cover no-repeat;
  z-index: -1;
}

.section-elevated-texture {
  position: relative;
  isolation: isolate;
}

.section-elevated-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(17,17,19,0.94) 0%, rgba(17,17,19,0.9) 100%),
    url("bg-concrete.jpg") center / cover no-repeat;
  z-index: -1;
  opacity: 1;
}

/* Sharper form */
.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 3px !important;
}

/* Project card sharper */
.project-card {
  border-radius: 4px;
  overflow: hidden;
}

.split-image {
  border-radius: 4px;
}
