/*
Theme Name: Perras DiStefano Construction v2.3
Theme URI: https://www.perrasdistefano.ca
Author: DB8 Labs
Description: Custom WordPress theme for Perras Distefano Construction and Design Services Inc. · Commercial, industrial and institutional construction across Eastern Ontario since 1997.
Version: 2.3
Tags: construction, corporate, dark, modern
*/

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

:root {
  --navy-deep:    #050913;
  --navy-dark:    #080E22;
  --navy:         #0F1B3D;
  --navy-mid:     #1A2D6B;
  --navy-card:    rgba(12, 20, 50, 0.75);
  --gold-dark:    #7A5A1E;
  --gold:         #B8872B;
  --gold-mid:     #CC9B35;
  --gold-light:   #E8B84B;
  --gold-bright:  #F5CC5E;
  --white:        #FFFFFF;
  --off-white:    #EEE9E0;
  --text-dim:     #7A8AAA;
  --text-light:   #B0BCCF;
  --border-gold:  rgba(200, 150, 50, 0.25);
  --glow-gold:    0 0 28px rgba(200, 150, 50, 0.35);
  --shadow-deep:  0 20px 60px rgba(0,0,0,0.6);
  --radius:       4px;
  --radius-lg:    10px;
  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy-dark);
  color: var(--text-light);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-bright); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-title span { color: var(--gold-light); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
}

.section-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  margin-bottom: 32px;
  border-radius: 2px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-mid), var(--gold-light));
  color: var(--navy-deep);
  box-shadow: 0 4px 20px rgba(200, 150, 50, 0.4);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-bright));
  color: var(--navy-deep);
  box-shadow: 0 8px 30px rgba(200, 150, 50, 0.6);
  transform: translateY(-2px);
}

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

.btn-ghost {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold);
  padding: 10px 24px;
  font-size: 0.8rem;
}
.btn-ghost:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#site-header.scrolled {
  background: rgba(5, 9, 19, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200, 150, 50, 0.15);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

a.site-logo { color: inherit; }
a.site-logo:hover,
a.site-logo:focus,
a.site-logo:active { color: inherit; }

.site-logo img,
.site-logo img:hover,
.site-logo img:focus {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1) !important;
  transition: none;
}

.main-nav { display: flex; align-items: center; gap: 8px; }

.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.main-nav a:hover { color: var(--gold-light); }

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-mid)) !important;
  color: var(--navy-deep) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(200,150,50,0.4) !important;
}
.nav-cta:hover {
  box-shadow: 0 6px 20px rgba(200,150,50,0.6) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy-mid);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,9,19,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}
.mobile-nav a:hover { color: var(--gold-light); }
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url(images/jjj.jpg);
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.0); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 9, 19, 0.92) 0%,
    rgba(8, 14, 34, 0.82) 50%,
    rgba(26, 45, 107, 0.5) 100%
  );
}

.hero-overlay-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold-bright), transparent);
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200, 150, 50, 0.12);
  border: 1px solid rgba(200, 150, 50, 0.3);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 32px;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-bright);
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 820px;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--gold-mid), var(--gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-trust-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-trust-items {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-trust-item {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(200,150,50,0.6), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--navy-mid), #0F1B3D);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(200,150,50,0.03), rgba(200,150,50,0.08), rgba(200,150,50,0.03));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.stat-item {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--border-gold);
  position: relative;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-number .suffix {
  font-size: 60%;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 8px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  padding: 120px 0;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,45,107,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--border-gold);
}

.about-img-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-mid));
  color: var(--navy-deep);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--glow-gold);
}

.about-img-badge .badge-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}

.about-img-badge .badge-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.about-problem {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
}

.about-body {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.about-tag {
  padding: 7px 16px;
  background: rgba(26, 45, 107, 0.5);
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
  padding: 120px 0;
  background: var(--navy-deep);
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 20% 60%, rgba(26,45,107,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 30% at 80% 20%, rgba(200,150,50,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.services-header {
  text-align: center;
  margin-bottom: 70px;
}

.services-header .section-divider { margin: 0 auto 32px; }
.services-header .section-subtitle { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border-gold);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--navy-dark);
  padding: 44px 36px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

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

.service-card:hover {
  background: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  z-index: 1;
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(200,150,50,0.1);
  border: 1px solid rgba(200,150,50,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(200,150,50,0.15);
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 1.5;
}

.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card ul li {
  font-size: 0.82rem;
  color: var(--text-light);
  padding-left: 16px;
  position: relative;
}

.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============================================================
   PORTFOLIO / OUR WORK
   ============================================================ */
.portfolio-section {
  padding: 120px 0;
  background: var(--navy-dark);
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 32px;
  flex-wrap: wrap;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 260px;
  gap: 3px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.portfolio-item:nth-child(2) { grid-column: span 5; }
.portfolio-item:nth-child(3) { grid-column: span 5; }
.portfolio-item:nth-child(4) { grid-column: span 4; }
.portfolio-item:nth-child(5) { grid-column: span 4; }
.portfolio-item:nth-child(6) { grid-column: span 4; }

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,9,19,0.95) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

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

.portfolio-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.portfolio-overlay h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* ============================================================
   OUR APPROACH
   ============================================================ */
.approach-section {
  padding: 120px 0;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.approach-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.approach-header { text-align: center; margin-bottom: 80px; }
.approach-header .section-divider { margin: 0 auto 32px; }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: var(--border-gold);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.approach-step {
  background: var(--navy-dark);
  padding: 52px 44px;
  position: relative;
  transition: var(--transition);
}

.approach-step:hover {
  background: var(--navy);
}

.step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(200,150,50,0.08);
  line-height: 1;
  margin-bottom: -20px;
  letter-spacing: -0.04em;
  transition: var(--transition);
}

.approach-step:hover .step-num { color: rgba(200,150,50,0.14); }

.step-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.approach-step h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.approach-step p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.75;
}

/* ============================================================
   SUBMIT PROJECT FORM
   ============================================================ */
.contact-section {
  padding: 120px 0;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(26,45,107,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.contact-info h2 span { color: var(--gold-light); }

.contact-info p {
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(200,150,50,0.1);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 1.75;
}

.contact-detail-text .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.contact-detail-text .value {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 500;
}

.project-form {
  background: var(--navy-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 44px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-deep);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(5,9,19,0.6);
  border: 1px solid rgba(200,150,50,0.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,150,50,0.12);
}

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

.form-group select option { background: var(--navy-dark); }

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

.form-submit {
  margin-top: 8px;
  width: 100%;
  padding: 16px;
  font-size: 0.9rem;
  justify-content: center;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
}

/* form success/error */
.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #86efac;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #fca5a5;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ============================================================
   TRUSTED BY / CTA STRIP
   ============================================================ */
.trusted-section {
  padding: 60px 0;
  background: var(--navy);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.trusted-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trusted-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.trusted-items {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.trusted-item {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
}
.trusted-item:hover { color: rgba(255,255,255,0.65); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--border-gold);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1) !important;
  margin-bottom: 20px;
  opacity: 0.85;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(200,150,50,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid var(--border-gold);
  border-radius: 100px;
}

/* ============================================================
   INTERIOR PAGES
   ============================================================ */
.page-hero {
  padding: 160px 0 80px;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(26,45,107,0.4) 0%, transparent 70%);
}

.page-hero .section-title { margin: 0 auto 16px; }
.page-hero .section-subtitle { margin: 0 auto; }

.content-section {
  padding: 100px 0;
  background: var(--navy-dark);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.about-full-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-deep);
}

.team-section {
  padding: 100px 0;
  background: var(--navy-deep);
}

.team-photo {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.team-photo img { width: 100%; }

.principals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.principal-card {
  background: var(--navy-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.principal-card:hover { border-color: var(--gold); box-shadow: var(--glow-gold); }

.principal-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.principal-card .title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.principal-card p { font-size: 0.875rem; color: var(--text-dim); line-height: 1.65; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-gold);
}

.service-detail:last-child { border-bottom: none; }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.service-detail-grid.reverse { direction: rtl; }
.service-detail-grid.reverse > * { direction: ltr; }

.service-detail img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-deep);
}

.service-detail h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.service-detail .desc {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 24px;
}

.service-detail ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.service-detail ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.service-detail ul li::before {
  content: '→';
  color: var(--gold-light);
  flex-shrink: 0;
  font-weight: 700;
}

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.portfolio-full {
  padding: 80px 0;
  background: var(--navy-dark);
}

.portfolio-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.portfolio-full-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.portfolio-full-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.portfolio-full-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5,9,19,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-full-item:hover .portfolio-full-overlay { opacity: 1; }

.portfolio-full-overlay .tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.portfolio-full-overlay h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: start;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid,
  .about-full-grid,
  .contact-grid,
  .contact-page-grid { grid-template-columns: 1fr; gap: 48px; }

  .about-img-badge { right: 0; bottom: -16px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

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

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border-gold); }
  .stat-item:nth-child(4) { border-right: none; border-top: 1px solid var(--border-gold); }

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

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .portfolio-item { grid-column: span 1 !important; grid-row: span 1 !important; }

  .service-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-detail-grid.reverse { direction: ltr; }

  .portfolio-full-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

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

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

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

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

  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }

  .portfolio-header { flex-direction: column; align-items: flex-start; }

  .portfolio-full-grid { grid-template-columns: 1fr; }

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

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

  .project-form { padding: 28px 20px; }

  .approach-step { padding: 36px 28px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-gold); }
  .stat-item:last-child { border-bottom: none; }

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

/* ============================================================
   WHITE THEME OVERRIDES — flip dark navy palette to white background
   with logo blue (#1A2D6B) and gold (#B8872B) as accents
   ============================================================ */
:root {
  --pd-white:        #FFFFFF;
  --pd-bg-soft:      #F7F8FB;
  --pd-bg-band:      #EEF1F7;
  --pd-text-primary: #0F1B3D;
  --pd-text-body:    #3D4D6E;
  --pd-text-muted:   #6B7A95;
  --pd-border-soft:  rgba(26, 45, 107, 0.10);
  --pd-blue:         #1A2D6B;
  --pd-blue-deep:    #0F1B3D;
}
body { background: var(--pd-white) !important; color: var(--pd-text-body) !important; }

/* HEADER */
#site-header { background: rgba(255,255,255,0.96) !important; border-bottom: 1px solid var(--pd-border-soft); }
#site-header.scrolled { background: rgba(255,255,255,0.98) !important; box-shadow: 0 2px 12px rgba(15,27,61,0.08) !important; }
.site-logo img, .site-logo img:hover, .site-logo img:focus { filter: none !important; }
.main-nav a { color: var(--pd-text-primary) !important; }
.main-nav a:hover, .main-nav a.active { color: var(--gold) !important; }
.menu-toggle span { background: var(--pd-text-primary) !important; }

/* Section titles + general text */
.section-title { color: var(--pd-text-primary) !important; }
.section-title span { color: var(--gold) !important; }
.section-subtitle, .section-eyebrow { color: var(--pd-text-muted) !important; }
.section-eyebrow { color: var(--gold) !important; }

/* HERO — overlay lighter so jjj.jpg pops with white feel */
.hero-overlay { background: linear-gradient(180deg, rgba(15,27,61,0.45) 0%, rgba(15,27,61,0.65) 100%) !important; }
.hero-title { color: var(--pd-white) !important; }
.hero-title .accent { color: var(--gold-light) !important; }
.hero-sub { color: rgba(255,255,255,0.92) !important; }
.hero-badge { background: rgba(255,255,255,0.12) !important; color: #FFF !important; border-color: rgba(255,255,255,0.25) !important; }
.hero-trust-label, .hero-trust-item { color: rgba(255,255,255,0.85) !important; }

/* STATS BAR */
.stats-bar { background: var(--pd-bg-soft) !important; border-top: 1px solid var(--pd-border-soft); border-bottom: 1px solid var(--pd-border-soft); }
.stat-number, .stat-number .counter, .stat-number .suffix, .stat-number span { color: var(--pd-blue) !important; }
.stat-label { color: var(--pd-text-muted) !important; }

/* GENERAL SECTIONS */
.about-section, .services-section, .portfolio-section, .approach-section, .submit-project-section,
.trusted-section, .page-content { background: var(--pd-white) !important; color: var(--pd-text-body) !important; }
.services-section, .approach-section { background: var(--pd-bg-soft) !important; }

/* ABOUT */
.about-problem, .about-body, .about-text p { color: var(--pd-text-body) !important; }
.about-img-badge { background: var(--pd-blue) !important; color: var(--pd-white) !important; }
.about-img-badge .badge-num, .about-img-badge .badge-label { color: var(--pd-white) !important; }

/* CARDS (services, approach, portfolio) */
.service-card, .approach-card, .principal-card, .portfolio-item, .stat-item, .form-card, form, .contact-card {
  background: var(--pd-white) !important;
  border: 1px solid var(--pd-border-soft) !important;
  color: var(--pd-text-body) !important;
  box-shadow: 0 4px 18px rgba(15,27,61,0.05) !important;
}
.service-card h3, .approach-card h3, .portfolio-item h4, .principal-card h3 { color: var(--pd-text-primary) !important; }
.service-card p, .approach-card p, .principal-card p { color: var(--pd-text-body) !important; }
.service-icon, .approach-num { color: var(--gold) !important; }

/* PORTFOLIO ITEMS */
.portfolio-item { overflow: hidden; }
.portfolio-overlay {
  background: linear-gradient(180deg, transparent 50%, rgba(15,27,61,0.92) 100%) !important;
}
.portfolio-overlay .portfolio-tag { color: var(--gold-light) !important; }
.portfolio-overlay h4 { color: var(--pd-white) !important; }

/* TRUSTED SECTION (bottom strip) */
.trusted-section { background: var(--pd-bg-band) !important; border-top: 1px solid var(--pd-border-soft); border-bottom: 1px solid var(--pd-border-soft); }
.trusted-label { color: var(--pd-text-muted) !important; }
.trusted-item { color: var(--pd-text-primary) !important; font-weight: 700; }

/* FORM — used on contact page if Buildertrend isn't loaded */
input, textarea, select {
  background: var(--pd-white) !important;
  color: var(--pd-text-primary) !important;
  border: 1px solid var(--pd-border-soft) !important;
}
input::placeholder, textarea::placeholder { color: var(--pd-text-muted) !important; }
label { color: var(--pd-text-primary) !important; }

/* BUTTONS — keep gold primary, recolor outline for white bg */
.btn-outline { color: var(--pd-text-primary) !important; border-color: var(--pd-blue) !important; }
.btn-outline:hover { background: var(--pd-blue) !important; color: var(--pd-white) !important; border-color: var(--pd-blue) !important; }
.btn-ghost { color: var(--pd-blue) !important; border-color: var(--pd-blue) !important; }
.btn-ghost:hover { background: var(--pd-blue) !important; color: var(--pd-white) !important; }

/* Hero btn-outline override — hero has a DARK background image so outline buttons
   must stay white text + white border (the white-bg override above made them invisible). */
.hero .btn-outline,
section.hero .btn-outline {
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.5) !important;
  background: transparent !important;
}
.hero .btn-outline:hover,
section.hero .btn-outline:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: var(--gold-light) !important;
  color: var(--gold-light) !important;
}

/* FOOTER */
#site-footer { background: var(--pd-blue-deep) !important; color: rgba(255,255,255,0.78) !important; border-top: 4px solid var(--gold) !important; }
#site-footer a { color: var(--gold-light) !important; }
#site-footer h4, #site-footer .footer-heading { color: var(--pd-white) !important; }

/* PAGE HERO (sub-pages) */
.page-hero { background: var(--pd-blue-deep) !important; }
.page-hero-title, .page-hero-text { color: var(--pd-white) !important; }
.page-hero-eyebrow { color: var(--gold-light) !important; }
.page-hero-bg { opacity: 0.30 !important; }

/* Misc */
.divider, hr { border-color: var(--pd-border-soft) !important; }

/* ============================================================
   ROUND 2 OVERRIDES — page hero brightening + about tags + buttons
   ============================================================ */
/* About tags — dark navy pill with white text (user request) */
.about-tag {
  background: var(--pd-blue) !important;
  color: var(--pd-white) !important;
  border: 1px solid var(--pd-blue) !important;
}

/* PAGE HERO (subpages: Projects/Services/Approach/Contact) — flip to white */
.page-hero {
  background: var(--pd-bg-soft) !important;
  border-bottom: 1px solid var(--pd-border-soft);
  padding-top: 140px !important;
  padding-bottom: 90px !important;
}
.page-hero .section-title,
.page-hero h1.section-title { color: var(--pd-text-primary) !important; }
.page-hero .section-title span { color: var(--gold) !important; }
.page-hero .section-subtitle { color: var(--pd-text-body) !important; }
.page-hero .section-eyebrow { color: var(--gold) !important; }
.page-hero-bg { display: none !important; }

/* Generic dark inline backgrounds that survived round 1 */
[style*="background:var(--navy-dark)"],
[style*="background: var(--navy-dark)"],
[style*="background:var(--navy-deep)"],
[style*="background: var(--navy-deep)"],
[style*="background:var(--navy-card)"],
[style*="background: var(--navy-card)"] {
  background: var(--pd-white) !important;
}

/* Service / approach / portfolio / contact page main sections — guarantee white */
.services-section, .approach-section, .portfolio-full, .contact-page-grid,
.page-content, .principal-section, .approach-page-section, .services-page-section {
  background: var(--pd-white) !important;
  color: var(--pd-text-body) !important;
}
.approach-section, .approach-page-section { background: var(--pd-bg-soft) !important; }

/* Headings + body inside those sections */
.services-section h2, .services-section h3, .services-section h4,
.approach-section h2, .approach-section h3, .approach-section h4,
.portfolio-full h2, .portfolio-full h3, .portfolio-full h4,
.contact-page-grid h2, .contact-page-grid h3,
.principal-section h2, .principal-section h3 { color: var(--pd-text-primary) !important; }
.services-section p, .approach-section p, .portfolio-full p, .contact-page-grid p,
.principal-section p { color: var(--pd-text-body) !important; }

/* Approach numbered cards — light surface */
.approach-card, .approach-step, .principal-card {
  background: var(--pd-white) !important;
  border: 1px solid var(--pd-border-soft) !important;
  box-shadow: 0 4px 18px rgba(15,27,61,0.05) !important;
}

/* Contact details (icons + text on contact page) */
.contact-detail .label { color: var(--pd-text-muted) !important; }
.contact-detail .value, .contact-detail .value a { color: var(--pd-text-primary) !important; }
.contact-detail .value a:hover { color: var(--gold) !important; }

/* Contact info hero text overrides for Butler card */
.bt-form-wrap iframe { background: #fff !important; }

/* ============================================================
   ROUND 3 — LEGIBILITY FIXES
   Rules: page hero = DARK with white/gold text. Below page hero =
   WHITE background with DARK navy text. Portfolio overlays = dark
   gradient with white/gold text.
   ============================================================ */

/* Re-darken the legacy text variables so any rule still using them
   becomes readable on the white background. */
:root {
  --text-light: #2C3E5A !important;
  --text-dim:   #5C6F8E !important;
  --off-white:  #0F1B3D !important;
}

/* Default body / paragraph / list-item text on white surfaces */
body, p, li, span, dd, dt, blockquote { color: var(--pd-text-body) !important; }
h1, h2, h3, h4, h5, h6 { color: var(--pd-text-primary) !important; }
strong, b { color: var(--pd-text-primary) !important; }

/* ===== PAGE HERO — REVERT to dark navy with white/gold text ===== */
.page-hero {
  background: var(--pd-blue-deep) !important;
  border-bottom: 4px solid var(--gold) !important;
  padding-top: 140px !important;
  padding-bottom: 90px !important;
}
.page-hero .section-title,
.page-hero h1.section-title,
.page-hero h1 { color: var(--pd-white) !important; }
.page-hero .section-title span { color: var(--gold-light) !important; }
.page-hero .section-subtitle,
.page-hero p { color: rgba(255,255,255,0.86) !important; }
.page-hero .section-eyebrow { color: var(--gold-light) !important; }
.page-hero-bg { display: block !important; opacity: 0.18 !important; }

/* ===== PORTFOLIO OVERLAYS (home + projects page) ===== */
.portfolio-overlay, .portfolio-full-overlay {
  background: linear-gradient(180deg, transparent 30%, rgba(8,14,34,0.55) 60%, rgba(8,14,34,0.95) 100%) !important;
}
.portfolio-overlay h4, .portfolio-full-overlay h3 {
  color: var(--pd-white) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.portfolio-overlay .portfolio-tag, .portfolio-full-overlay .tag {
  color: var(--gold-light) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ===== SERVICES PAGE ===== */
.services-section, .services-page-section,
.services-section p, .services-section li,
.service-card p, .service-card li, .service-card ul li,
.service-detail p, .service-detail li,
.service-feature p, .service-feature li { color: var(--pd-text-body) !important; }
.service-card h3, .service-card h4,
.service-detail h2, .service-detail h3,
.services-page-section h2, .services-page-section h3 { color: var(--pd-text-primary) !important; }
.service-eyebrow, .service-num { color: var(--gold) !important; }

/* ===== APPROACH PAGE ===== */
.approach-card, .approach-step {
  background: var(--pd-white) !important;
  border: 1px solid var(--pd-border-soft) !important;
  box-shadow: 0 6px 22px rgba(15,27,61,0.06) !important;
}
.approach-card p, .approach-step p,
.approach-card li, .approach-step li,
.approach-page-section p, .approach-page-section li,
.approach-section p { color: var(--pd-text-body) !important; }
.approach-card h3, .approach-step h3,
.approach-page-section h2, .approach-page-section h3,
.approach-section h3 { color: var(--pd-text-primary) !important; }
.step-eyebrow, .approach-eyebrow, .step-label { color: var(--gold) !important; font-weight: 700; }
/* Big background number — slightly more visible navy ghost (was cream-yellow) */
.approach-num, .step-num, .step-bg-num { color: rgba(26,45,107,0.07) !important; }

/* ===== CONTACT PAGE ===== */
.contact-detail .label { color: var(--pd-text-muted) !important; }
.contact-detail .value, .contact-detail .value a { color: var(--pd-text-primary) !important; }
.contact-detail .value a:hover { color: var(--gold) !important; }
.contact-page-grid h2, .contact-page-grid h3 { color: var(--pd-text-primary) !important; }
.contact-page-grid p { color: var(--pd-text-body) !important; }

/* ===== ABOUT PAGE ===== */
.about-page-section p, .about-section p,
.about-text p, .about-body, .about-problem { color: var(--pd-text-body) !important; }
.about-page-section h2, .about-page-section h3,
.about-section h2, .about-section h3,
.principal-card h3, .principal-card h4 { color: var(--pd-text-primary) !important; }

/* ===== HOME PAGE — keep hero overlay strong over jjj.jpg ===== */
.hero-overlay {
  background: linear-gradient(180deg, rgba(8,14,34,0.55) 0%, rgba(8,14,34,0.78) 100%) !important;
}

/* ===== FOOTER stays dark; force its text light again ===== */
#site-footer, #site-footer p, #site-footer li, #site-footer span { color: rgba(255,255,255,0.78) !important; }
#site-footer h4, #site-footer .footer-heading { color: var(--pd-white) !important; }
#site-footer a { color: var(--gold-light) !important; }
#site-footer a:hover { color: var(--gold-bright) !important; }

/* ===== Misc card body forced dark ===== */
.principal-card p, .principal-card li,
.team-card p, .stat-item .stat-label { color: var(--pd-text-body) !important; }
.stat-number, .stat-number .counter, .stat-number .suffix, .stat-number span { color: var(--pd-blue) !important; }

/* ===== Bullets / list arrows ===== */
.service-card ul li::before, .service-detail ul li::before,
.approach-card ul li::before { color: var(--gold) !important; }

/* ============================================================
   ROUND 4 — FOOTER FIX
   The footer uses .site-footer (class), not #site-footer (ID).
   All previous footer rules were no-ops. Hammering it now.
   ============================================================ */
.site-footer {
  background: var(--pd-blue-deep) !important;
  color: rgba(255,255,255,0.85) !important;
  border-top: 4px solid var(--gold) !important;
}
.site-footer,
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer div,
.site-footer .footer-brand p,
.site-footer .footer-bottom p,
.site-footer [itemprop="description"],
.site-footer [itemprop="address"],
.site-footer [itemprop="streetAddress"],
.site-footer [itemprop="addressLocality"],
.site-footer [itemprop="addressRegion"],
.site-footer [itemprop="postalCode"] {
  color: rgba(255,255,255,0.82) !important;
}
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer .footer-heading {
  color: var(--pd-white) !important;
}
.site-footer a {
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--gold-light) !important;
}
/* Defeat any inline color:var(--text-dim) inside the footer */
.site-footer [style*="color:var(--text-dim)"],
.site-footer [style*="color: var(--text-dim)"] {
  color: rgba(255,255,255,0.70) !important;
}
.site-footer [style*="color:var(--gold-light)"],
.site-footer [style*="color: var(--gold-light)"] {
  color: var(--gold-light) !important;
}
.site-footer .footer-badge {
  color: var(--gold-light) !important;
  border-color: rgba(232,184,75,0.45) !important;
}
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.10) !important; }

/* ============================================================
   ROUND 5 — CONTACT FORM CARD FIX
   .project-form was rendering on dark navy-card background; my
   earlier overrides missed that class.
   ============================================================ */
.project-form {
  background: var(--pd-white) !important;
  border: 1px solid var(--pd-border-soft) !important;
  box-shadow: 0 6px 22px rgba(15,27,61,0.06) !important;
  backdrop-filter: none !important;
}
.project-form h2 { color: var(--pd-text-primary) !important; }
.project-form p { color: var(--pd-text-body) !important; }
.project-form .form-note { color: var(--pd-text-muted) !important; }
.project-form .form-note a { color: var(--gold) !important; font-weight: 600; }
.project-form .form-note a:hover { color: var(--gold-bright) !important; }

/* reCAPTCHA notice text inside the form area — keep readable */
.bt-form-wrap, .bt-form-wrap * { color: var(--pd-text-body); }
.bt-form-wrap a { color: var(--pd-blue) !important; }

/* ============================================================
   ROUND 6 — ABOUT PAGE SECTIONS BRIGHTENING
   .content-section and .team-section were still using dark navy
   ============================================================ */
.content-section, .team-section,
.about-page-content, .about-page-team {
  background: var(--pd-white) !important;
  color: var(--pd-text-body) !important;
}
.content-section .section-title,
.team-section .section-title,
.content-section h2, .team-section h2,
.content-section h3, .team-section h3 { color: var(--pd-text-primary) !important; }
.content-section .section-title span,
.team-section .section-title span { color: var(--gold) !important; }
.content-section .section-eyebrow,
.team-section .section-eyebrow { color: var(--gold) !important; }
.content-section .section-subtitle,
.team-section .section-subtitle,
.content-section p, .team-section p { color: var(--pd-text-body) !important; }

/* Principal cards on white surface */
.principals-grid .principal-card,
.principal-card {
  background: var(--pd-white) !important;
  border: 1px solid var(--pd-border-soft) !important;
  box-shadow: 0 6px 22px rgba(15,27,61,0.06) !important;
  color: var(--pd-text-body) !important;
}
.principal-card h3 { color: var(--pd-text-primary) !important; }
.principal-card .title { color: var(--gold) !important; font-weight: 700; }
.principal-card p { color: var(--pd-text-body) !important; }

/* Team photo wrapper soft border */
.team-photo {
  border: 1px solid var(--pd-border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15,27,61,0.08);
  background: var(--pd-white);
}

/* ============================================================
   ROUND 7 — CONTACT FORM SPACING
   Push the form fields away from the card edges
   ============================================================ */
#pd-contact-form { padding: 8px 4px; }
#pd-contact-form .form-grid { gap: 22px; row-gap: 22px; }
#pd-contact-form .form-group label { margin-bottom: 10px; display: block; }
#pd-contact-form input,
#pd-contact-form textarea {
  padding: 14px 18px !important;
  background: var(--pd-white) !important;
  color: var(--pd-text-primary) !important;
  border: 1px solid var(--pd-border-soft) !important;
  border-radius: 10px !important;
  font-size: 1rem !important;
}
#pd-contact-form input:focus,
#pd-contact-form textarea:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(184,135,43,0.15) !important;
  background: var(--pd-white) !important;
}
#pd-contact-form input::placeholder,
#pd-contact-form textarea::placeholder { color: var(--pd-text-muted) !important; opacity: 0.7; }
#pd-contact-form .form-submit { padding: 18px !important; font-size: 0.92rem !important; }

/* ============================================================
   ROUND 5 — Contact section white text, nav dropdown, service
   category badges, Our Team page styling
   ============================================================ */

/* ===== CONTACT SECTION (home page Submit a Project) — text must be WHITE on dark navy bg ===== */
.contact-section { background: var(--pd-blue-deep) !important; color: var(--pd-white) !important; }
.contact-section .section-eyebrow { color: var(--gold-light) !important; }
.contact-section h2,
.contact-section #contact-heading,
.contact-section .contact-info h2 { color: var(--pd-white) !important; }
.contact-section h2 span,
.contact-section #contact-heading span { color: var(--gold-light) !important; }
.contact-section .contact-info p,
.contact-section p { color: rgba(255,255,255,0.86) !important; }
.contact-section .section-divider { background: var(--gold-light) !important; }

/* Contact details (phone/email/office) on home page */
.contact-section .contact-detail-icon {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}
.contact-section .contact-detail-icon svg { stroke: var(--gold-light) !important; fill: none !important; }
.contact-section .contact-detail-text .label { color: var(--gold-light) !important; }
.contact-section .contact-detail-text .value,
.contact-section .contact-detail-text .value a { color: var(--pd-white) !important; }
.contact-section .contact-detail-text .value a:hover { color: var(--gold-light) !important; }

/* Form card on home page contact section — keep light card on dark bg */
.contact-section .project-form,
.contact-section .form-card { background: var(--pd-white) !important; }

/* ===== NAV DROPDOWN (About → Our Company / Our Team) ===== */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; }
.nav-caret { font-size: 0.7em; transition: transform 0.2s ease; }
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--pd-white) !important;
  border: 1px solid var(--pd-border-soft);
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(15,27,61,0.12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block !important;
  padding: 10px 18px !important;
  color: var(--pd-text-primary) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--pd-bg-soft) !important; color: var(--gold) !important; }

/* ===== SERVICES CATEGORY HEADER (Delivery Methods / What We Build) ===== */
.services-category-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 32px 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pd-border-soft);
}
.services-category-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pd-blue) !important;
  margin-bottom: 4px;
}
.services-category-sub {
  font-size: 0.92rem;
  color: var(--pd-text-muted) !important;
  font-style: italic;
}

/* Service card category badge (top corner) */
.service-card { position: relative; }
.service-card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--pd-blue) !important;
  color: var(--pd-white) !important;
  z-index: 2;
}
.service-card-tag--build {
  background: var(--gold) !important;
  color: var(--pd-white) !important;
}
.service-tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700 !important;
  color: var(--pd-blue) !important;
  font-size: 0.95rem;
  margin: 4px 0 12px !important;
  letter-spacing: 0.01em;
}
/* Distinct left accent border per category */
.service-card--delivery { border-left: 4px solid var(--pd-blue) !important; }
.service-card--build    { border-left: 4px solid var(--gold) !important; }

/* ===== OUR TEAM PAGE ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.team-card {
  background: var(--pd-white) !important;
  border: 1px solid var(--pd-border-soft) !important;
  border-top: 3px solid var(--gold) !important;
  border-radius: 6px;
  padding: 36px 24px 28px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(15,27,61,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(15,27,61,0.10);
}
.team-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: #E8EDF6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-avatar svg { width: 100%; height: 100%; display: block; }
.team-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800 !important;
  color: var(--pd-text-primary) !important;
  margin: 0 0 6px !important;
  letter-spacing: 0.01em;
}
.team-title {
  font-size: 0.88rem;
  color: var(--gold) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* CTA section on About page bottom (replaces the old team section) */
.team-cta-section { background: var(--pd-bg-soft) !important; }
.team-cta-section h2 { color: var(--pd-text-primary) !important; }
.team-cta-section p  { color: var(--pd-text-body) !important; }

/* Mobile cleanup for dropdown — hide on mobile (mobile nav handles it) */
@media (max-width: 900px) {
  .nav-dropdown-menu { display: none !important; }
}
