/* ============================================
   TMC CONSTRUCTION — ONE PAGE WEBSITE STYLES
   Color Palette from Logo:
   - Teal/Dark Blue: #1B6B7B / #155a68
   - Gold/Amber:     #F5A623 / #e09318
   - Black:          #0f1a1f
   - White:          #ffffff
   ============================================ */

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

:root {
  /* Accent palette (overridden per scheme) */
  --teal:       #1B6B7B;
  --teal-dark:  #155a68;
  --teal-light: #2d8fa3;
  --gold:       #F5A623;
  --gold-dark:  #d4891a;
  --gold-light: #f7b84a;

  /* Raw dark palette (kept for hero scene) */
  --black:      #0f1a1f;
  --dark:       #162028;
  --dark-2:     #1e2d38;
  --mid:        #2a3f4f;
  --white:      #ffffff;

  /* Semantic surfaces (overridden per scheme) */
  --bg-page:           var(--black);
  --bg-section:        var(--dark);
  --bg-section-2:      var(--dark-2);
  --surface:           var(--dark-2);
  --surface-elevated:  rgba(14, 26, 34, 0.92);
  --navbar-scrolled:   rgba(15, 26, 31, 0.97);
  --footer-bg:         var(--black);
  --border-soft:       rgba(255,255,255,0.06);
  --border-strong:     rgba(255,255,255,0.12);
  --input-bg:          rgba(255,255,255,0.05);
  --input-border:      rgba(255,255,255,0.12);
  --input-text:        var(--white);
  --input-placeholder: rgba(255,255,255,0.3);
  --burger-color:      var(--white);

  /* Typography colors */
  --text:        #e8edf0;
  --text-muted:  #8da5b4;
  --heading:     var(--white);
  --on-accent:   var(--black);

  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 8px 32px rgba(0,0,0,0.35);
  --shadow-sm:  0 4px 16px rgba(0,0,0,0.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Customizer-driven knobs (overridable from inline <style id="tmc-hero-design">) */
  --tmc-pattern-opacity: 1;
  --tmc-text-offset: 0px;
  --tmc-pattern-y: 50%;
}

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

body.tmc-front {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.tmc-front a { text-decoration: none; color: inherit; }
body.tmc-front ul { list-style: none; }
body.tmc-front img { max-width: 100%; display: block; }
body.tmc-front textarea, body.tmc-front input, body.tmc-front select { font-family: inherit; }

.tmc-front .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: var(--navbar-scrolled);
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img { height: 52px; width: auto; }

.logo-fallback {
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: var(--radius);
  border: 2px solid var(--gold);
}

.logo-letters {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.company-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}

.tagline-nav {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  letter-spacing: 0.02em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--on-accent) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-dark) !important; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--burger-color);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--tmc-pattern-y, 50%);
  opacity: var(--tmc-pattern-opacity, 1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(10, 20, 28, 0.88) 0%,
    rgba(10, 20, 28, 0.65) 50%,
    rgba(10, 20, 28, 0.30) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  align-items: center;
}

/* Hero text */
.hero-text { transform: translateY(var(--tmc-text-offset, 0)); }
.hero-badge {
  display: inline-block;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.4);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.accent-gold { color: var(--gold); }
.accent-teal { color: var(--teal-light); }

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.trust-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== CTA CONTACT FORM OVERLAY ===== */
/* Form panel always uses the dark elevated surface so it sits cleanly on
   the dark hero scene regardless of the page color scheme. */
.contact-form-overlay {
  background: rgba(14, 26, 34, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: fadeInRight 0.7s 0.3s ease both;
}

.form-header { margin-bottom: 24px; }

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

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

.form-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tmc-wpforms-placeholder {
  background: rgba(245, 166, 35, 0.06);
  border: 1px dashed rgba(245, 166, 35, 0.4);
  color: var(--text-muted);
  padding: 24px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
}

.tmc-wpforms-placeholder strong { color: var(--gold); display: block; margin-bottom: 6px; }
.tmc-wpforms-placeholder code { background: rgba(0,0,0,0.4); padding: 2px 6px; border-radius: 4px; color: var(--white); }

/* ===== WPFORMS — match the dark/branded look ===== */
.contact-form-overlay .wpforms-container { margin: 0 !important; }
.contact-form-overlay .wpforms-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form-overlay .wpforms-field { padding: 0 !important; margin: 0 !important; }
.contact-form-overlay .wpforms-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form-overlay .wpforms-field-row .wpforms-field-row-block { padding: 0 !important; }
.contact-form-overlay .wpforms-field label.wpforms-field-label,
.contact-form-overlay .wpforms-field-sublabel {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.7) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 5px !important;
  padding: 0 !important;
}
.contact-form-overlay .wpforms-field input[type="text"],
.contact-form-overlay .wpforms-field input[type="email"],
.contact-form-overlay .wpforms-field input[type="tel"],
.contact-form-overlay .wpforms-field input[type="number"],
.contact-form-overlay .wpforms-field input[type="url"],
.contact-form-overlay .wpforms-field select,
.contact-form-overlay .wpforms-field textarea {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  font-size: 0.9rem !important;
  color: var(--white) !important;
  width: 100% !important;
  outline: none !important;
  transition: border-color var(--transition), background var(--transition) !important;
  box-shadow: none !important;
}
.contact-form-overlay .wpforms-field input::placeholder,
.contact-form-overlay .wpforms-field textarea::placeholder { color: rgba(255,255,255,0.3) !important; }
.contact-form-overlay .wpforms-field input:focus,
.contact-form-overlay .wpforms-field select:focus,
.contact-form-overlay .wpforms-field textarea:focus {
  border-color: var(--gold) !important;
  background: rgba(245, 166, 35, 0.06) !important;
}
.contact-form-overlay .wpforms-field select option { background: var(--dark-2); color: var(--white); }
.contact-form-overlay .wpforms-field textarea { resize: vertical; min-height: 80px; }
.contact-form-overlay .wpforms-field-description { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.contact-form-overlay .wpforms-required-label { color: var(--gold) !important; }
.contact-form-overlay .wpforms-submit-container { padding: 4px 0 0 !important; margin: 0 !important; }
.contact-form-overlay button.wpforms-submit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--on-accent) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 24px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  width: 100% !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition) !important;
}
.contact-form-overlay button.wpforms-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4) !important;
  filter: brightness(1.05) !important;
}
.contact-form-overlay .wpforms-confirmation-container,
.contact-form-overlay .wpforms-confirmation-container-full,
.wpforms-confirmation-container,
.wpforms-confirmation-container-full {
  background: rgba(15, 30, 42, 0.85) !important;
  border: 1px solid rgba(245, 166, 35, 0.5) !important;
  color: #ffffff !important;
  border-radius: 10px;
  padding: 24px !important;
  text-align: center;
}
.contact-form-overlay .wpforms-confirmation-container *,
.contact-form-overlay .wpforms-confirmation-container-full *,
.wpforms-confirmation-container *,
.wpforms-confirmation-container-full * {
  color: #ffffff !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  font-weight: 500 !important;
}
.contact-form-overlay .wpforms-error,
.contact-form-overlay .wpforms-error-container { color: #ff8a8a !important; font-size: 0.78rem; }
.contact-form-overlay .wpforms-field input.wpforms-error,
.contact-form-overlay .wpforms-field select.wpforms-error,
.contact-form-overlay .wpforms-field textarea.wpforms-error { border-color: #e05050 !important; }

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

.services-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-title em {
  color: var(--gold);
  font-style: italic;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Adapt the grid to however many cards the user has enabled in the
   Customizer — keep the row centred so 1-3 visible cards don't sit
   left-aligned with a hole next to them. */
.services-grid[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.services-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.services-grid[data-count="1"] {
  grid-template-columns: minmax(0, 380px);
  justify-content: center;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 166, 35, 0.2);
  box-shadow: var(--shadow);
}

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

.service-card.featured {
  background: linear-gradient(160deg, rgba(27, 107, 123, 0.25), rgba(14, 26, 34, 0.9));
  border-color: rgba(27, 107, 123, 0.4);
}

.featured-tag {
  display: inline-block;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.service-icon {
  width: 52px;
  height: 52px;
  color: var(--teal-light);
  margin-bottom: 20px;
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 12px;
  line-height: 1.3;
}

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

.service-items {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-items li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.service-items li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}

.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap var(--transition), color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-link:hover { color: var(--gold-light); gap: 8px; }

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 100px 0;
  background: var(--bg-page);
}

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

.about-card-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform var(--transition);
}

.stat-card:hover { transform: translateX(8px); }

.stat-card--teal {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  box-shadow: 0 8px 32px rgba(27, 107, 123, 0.35);
}

.stat-card--gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  margin-left: 32px;
  box-shadow: 0 8px 32px rgba(245, 166, 35, 0.35);
}

.stat-card--gold .stat-number,
.stat-card--gold .stat-label { color: var(--on-accent); }

.stat-card--dark {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  margin-left: 16px;
}
.stat-card--dark .stat-number,
.stat-card--dark .stat-label { color: var(--heading); }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 36px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  transition: border-color var(--transition), transform var(--transition);
}

.value-item:hover {
  border-color: rgba(245, 166, 35, 0.2);
  transform: translateX(4px);
}

.value-icon { font-size: 1.5rem; flex-shrink: 0; }

.value-item div { display: flex; flex-direction: column; }
.value-item strong { font-size: 0.95rem; color: var(--heading); }
.value-item span { font-size: 0.82rem; color: var(--text-muted); }

/* The "color: inherit" rule on body.tmc-front a has higher specificity than
   .btn-primary alone, so the body text color (dark on light schemes) was
   leaking through. !important on every link state forces white. */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active { color: #ffffff !important; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
  filter: brightness(1.05);
}

.btn-large { padding: 18px 40px; font-size: 1.05rem; }

/* ===== PORTFOLIO ===== */
.portfolio-section {
  padding: 100px 0;
  background: var(--bg-section);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.portfolio-item--large {
  grid-column: 1 / 3;
  aspect-ratio: 16/9;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--surface);
}

.portfolio-placeholder svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.portfolio-overlay span {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff; /* portfolio overlays always sit on dark gradient — white text always reads */
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-section-2);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition), border-color var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, 0.15);
}

.stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-author div {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong { font-size: 0.9rem; color: var(--heading); }
.testimonial-author span { font-size: 0.78rem; color: var(--text-muted); }

/* ===== FOOTER CTA ===== */
.footer-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
}

.footer-cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  position: relative;
}

.footer-cta .btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  position: relative;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer-bg);
  padding: 60px 0 0;
  border-top: 1px solid var(--border-soft);
}

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

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img { height: 48px; width: auto; }

.footer-links h4,
.footer-contact h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-contact p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-contact a { color: var(--text-muted); transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold); }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245, 166, 35, 0.08);
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom .privacy-policy-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-bottom .privacy-policy-link:hover { color: var(--gold); }
.footer-bottom-meta { font-size: 0.8rem; color: var(--text-muted); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0);    }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .services-grid,
  .services-grid[data-count="3"],
  .services-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
  .hero-content { grid-template-columns: 1fr 400px; gap: 40px; }
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; padding-top: 100px; }
  .contact-form-overlay { order: -1; }
  /* Disable the customizer "hero text offset" on mobile — the form panel
     reorders ABOVE the text on narrow screens, so a translateY would just
     create an awkward gap. */
  .hero-text { text-align: center; transform: none; }
  .hero-trust { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-card-stack { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 180px; margin-left: 0 !important; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; width: 280px; background: var(--black); padding: 80px 32px 32px; z-index: 999; gap: 20px; transform: translateX(100%); transition: transform var(--transition); }
  .nav-links.open { display: flex; transform: translateX(0); }
  .nav-toggle { display: flex; z-index: 1001; }
  .services-grid,
  .services-grid[data-count="3"],
  .services-grid[data-count="2"],
  .services-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item--large { grid-column: 1; aspect-ratio: 4/3; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .contact-form-overlay .wpforms-field-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .contact-form-overlay { padding: 24px 20px; }
  .about-card-stack { flex-direction: column; }
}

/* Hide WP admin bar offset interfering with fixed nav for logged-in users */
body.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .navbar { top: 46px; }
}

/* ===== PORTFOLIO IMAGE FILL ===== */
.portfolio-placeholder .portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}
.portfolio-item:hover .portfolio-image { transform: scale(1.05); }
a.portfolio-item { color: inherit; text-decoration: none; display: block; }

/* ===== GOOGLE REVIEWS — summary badge ===== */
.reviews-summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 18px;
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 100px;
  font-size: 0.9rem;
}
.reviews-summary-rating {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}
.reviews-summary-stars { color: var(--gold); letter-spacing: 1px; line-height: 1; }
.reviews-summary-stars .star.filled { color: var(--gold); }
.reviews-summary-stars .star { color: rgba(245, 166, 35, 0.35); }
.reviews-summary-count {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.reviews-summary-link {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: color var(--transition);
}
.reviews-summary-link:hover { color: var(--gold-light); }

/* Photo avatars */
.author-avatar.author-avatar--photo {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(245, 166, 35, 0.3);
}

/* ===== INNER PAGE / PROJECT TEMPLATE ===== */
.tmc-page-hero {
  position: relative;
  padding: 160px 0 60px;
  background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.tmc-page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.tmc-page-hero--image {
  padding: 200px 0 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tmc-page-hero--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,26,31,0.55) 0%, rgba(15,26,31,0.85) 70%, var(--bg-page) 100%);
  z-index: 1;
}
.tmc-page-hero .container { position: relative; z-index: 2; }
.tmc-page-hero .breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.tmc-page-hero .breadcrumbs a { color: var(--gold); }
.tmc-page-hero .breadcrumbs a:hover { color: var(--gold-light); }
.tmc-page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--heading);
  line-height: 1.15;
  font-weight: 700;
}

.tmc-page-content {
  padding: 60px 0 100px;
  background: var(--bg-page);
}
.tmc-page-content .entry-content {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}
.tmc-page-content .entry-content h2,
.tmc-page-content .entry-content h3,
.tmc-page-content .entry-content h4 {
  font-family: 'Playfair Display', serif;
  color: var(--heading);
  margin: 36px 0 16px;
  line-height: 1.3;
}
.tmc-page-content .entry-content h2 { font-size: 1.8rem; }
.tmc-page-content .entry-content h3 { font-size: 1.4rem; }
.tmc-page-content .entry-content h4 { font-size: 1.15rem; color: var(--gold); }
.tmc-page-content .entry-content p { margin-bottom: 18px; }
.tmc-page-content .entry-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.tmc-page-content .entry-content a:hover { color: var(--gold-light); }
.tmc-page-content .entry-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--heading);
  font-style: italic;
}
.tmc-page-content .entry-content img,
.tmc-page-content .entry-content figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px 0;
  max-width: 100%;
}
.tmc-page-content .entry-content ul,
.tmc-page-content .entry-content ol {
  margin: 0 0 18px 24px;
  padding-left: 16px;
}
.tmc-page-content .entry-content ul li { list-style: disc; margin-bottom: 6px; }
.tmc-page-content .entry-content ol li { list-style: decimal; margin-bottom: 6px; }
.tmc-page-content .entry-content code {
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.92em;
  color: var(--gold-light);
}
.tmc-page-content .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}
.tmc-page-content .back-link:hover { color: var(--gold-light); gap: 10px; }

/* ============================================
   COLOR SCHEMES
   - Hero scene + form panel always render dark
     (intentional design: dark focal point above
     a light or alternate-dark page below).
   - Schemes only affect surfaces below the hero.
   ============================================ */

/* --- Dark: Navy & Bronze (blue headings, dark canvas) --- */
body.tmc-scheme-navy_bronze {
  --teal:       #1e3a8a;
  --teal-dark:  #1e2c66;
  --teal-light: #3b5cd1;
  --gold:       #cd7f32;
  --gold-dark:  #a0631f;
  --gold-light: #e0a05a;
  --bg-page:    #0a0f1a;
  --bg-section: #111827;
  --bg-section-2: #1e293b;
  --surface:    #1e293b;
  --footer-bg:  #0a0f1a;
  --border-soft:   rgba(148,163,184,0.10);
  --border-strong: rgba(148,163,184,0.18);
}

/* --- Dark: Forest & Copper --- */
body.tmc-scheme-forest_copper {
  --teal:       #2d6a4f;
  --teal-dark:  #1b4332;
  --teal-light: #52b788;
  --gold:       #c97b50;
  --gold-dark:  #9c5e3c;
  --gold-light: #e09c75;
  --bg-page:    #0d1e16;
  --bg-section: #14241c;
  --bg-section-2: #1d2f24;
  --surface:    #1d2f24;
  --footer-bg:  #0d1e16;
}

/* --- Dark: Charcoal & Amber --- */
body.tmc-scheme-charcoal_amber {
  --teal:       #4b5563;
  --teal-dark:  #374151;
  --teal-light: #6b7280;
  --gold:       #fbbf24;
  --gold-dark:  #d97706;
  --gold-light: #fcd34d;
  --bg-page:    #111827;
  --bg-section: #1f2937;
  --bg-section-2: #2d3748;
  --surface:    #2d3748;
  --footer-bg:  #111827;
}

/* --- Light: Navy & Gold (blue headings on white) --- */
body.tmc-scheme-light_navy {
  --teal:       #1e3a8a;
  --teal-dark:  #1e2c66;
  --teal-light: #3b5cd1;
  --gold:       #c97b1e;
  --gold-dark:  #a0631f;
  --gold-light: #e0a05a;
  --bg-page:    #ffffff;
  --bg-section: #f8fafc;
  --bg-section-2: #f1f5f9;
  --surface:    #ffffff;
  --footer-bg:  #0a0f1a; /* keep footer dark for contrast */
  --border-soft:   rgba(15,23,42,0.08);
  --border-strong: rgba(15,23,42,0.15);
  --text:        #334155;
  --text-muted:  #64748b;
  --heading:     #0f172a;
  --on-accent:   #ffffff;
  --burger-color: #0f172a;
  --navbar-scrolled: rgba(255,255,255,0.97);
  --input-bg:    #ffffff;
  --input-border: rgba(15,23,42,0.18);
  --input-text:  #0f172a;
  --input-placeholder: rgba(15,23,42,0.35);
}

/* --- Light: Teal & Coral --- */
body.tmc-scheme-light_teal {
  --teal:       #1B6B7B;
  --teal-dark:  #155a68;
  --teal-light: #2d8fa3;
  --gold:       #e07856;   /* coral */
  --gold-dark:  #b85a3d;
  --gold-light: #ee9c80;
  --bg-page:    #ffffff;
  --bg-section: #f8fafc;
  --bg-section-2: #f1f5f9;
  --surface:    #ffffff;
  --footer-bg:  #0f1a1f; /* keep footer dark */
  --border-soft:   rgba(15,23,42,0.08);
  --border-strong: rgba(15,23,42,0.15);
  --text:        #475569;
  --text-muted:  #64748b;
  --heading:     #0f172a;
  --on-accent:   #ffffff;
  --burger-color: #0f172a;
  --navbar-scrolled: rgba(255,255,255,0.97);
  --input-bg:    #ffffff;
  --input-border: rgba(15,23,42,0.18);
  --input-text:  #0f172a;
  --input-placeholder: rgba(15,23,42,0.35);
}

/* Light-mode tweaks: keep card borders visible, drop heavy shadows on cards. */
body.tmc-scheme-light_navy .service-card,
body.tmc-scheme-light_navy .testimonial-card,
body.tmc-scheme-light_navy .value-item,
body.tmc-scheme-light_teal .service-card,
body.tmc-scheme-light_teal .testimonial-card,
body.tmc-scheme-light_teal .value-item {
  box-shadow: 0 2px 12px rgba(15,23,42,0.04);
}
body.tmc-scheme-light_navy .service-card:hover,
body.tmc-scheme-light_teal .service-card:hover {
  box-shadow: 0 8px 32px rgba(15,23,42,0.08);
}
/* Light-mode navbar (when not scrolled, sitting on dark hero) keeps white text. */
body.tmc-scheme-light_navy .navbar:not(.scrolled) .nav-links a,
body.tmc-scheme-light_teal .navbar:not(.scrolled) .nav-links a,
body.tmc-scheme-light_navy .navbar:not(.scrolled) .company-name,
body.tmc-scheme-light_teal .navbar:not(.scrolled) .company-name { color: #ffffff; }
body.tmc-scheme-light_navy .navbar:not(.scrolled) .nav-toggle span,
body.tmc-scheme-light_teal .navbar:not(.scrolled) .nav-toggle span { background: #ffffff; }
body.tmc-scheme-light_navy .navbar.scrolled .company-name,
body.tmc-scheme-light_teal .navbar.scrolled .company-name { color: var(--heading); }
body.tmc-scheme-light_navy .navbar.scrolled .nav-links a,
body.tmc-scheme-light_teal .navbar.scrolled .nav-links a { color: var(--text); }
body.tmc-scheme-light_navy .navbar.scrolled .nav-links a:hover,
body.tmc-scheme-light_teal .navbar.scrolled .nav-links a:hover { color: var(--heading); }
/* Section titles em accent stays gold/copper across schemes — already uses var(--gold). */

/* ============================================
   WPFORMS — extra spacing utility
   Add the class "tmc-spaced" to any field's
   "CSS Classes" setting (Field Options > Advanced)
   to give that field 28px bottom margin instead of
   the default 16px.
   ============================================ */
.contact-form-overlay .wpforms-field {
  margin: 0 0 16px !important;
  padding: 0 !important;
}
.contact-form-overlay .wpforms-field.tmc-spaced { margin-bottom: 28px !important; }
.contact-form-overlay .wpforms-field.tmc-tight   { margin-bottom: 6px  !important; }
.contact-form-overlay .wpforms-submit-container { margin-top: 8px !important; }

/* ============================================
   PURE WHITE & BLUE
   Fully white from hero down. Hero SVG scene is
   hidden, hero overlay becomes a soft white
   gradient, form panel turns white, all accents
   become blue. Designed as a neutral canvas so
   any logo color reads cleanly.
   ============================================ */
body.is-pure-white {
  --teal:       #1d4ed8;
  --teal-dark:  #1e3a8a;
  --teal-light: #3b82f6;
  --gold:       #1d4ed8;   /* accent IS blue */
  --gold-dark:  #1e3a8a;
  --gold-light: #3b82f6;
  --bg-page:    #ffffff;
  --bg-section: #ffffff;
  --bg-section-2: #f8fafc;
  --surface:    #ffffff;
  --footer-bg:  #ffffff;
  --border-soft:   rgba(15,23,42,0.08);
  --border-strong: rgba(15,23,42,0.14);
  --text:        #475569;
  --text-muted:  #64748b;
  --heading:     #0f172a;
  --on-accent:   #ffffff;
  --burger-color: #0f172a;
  --navbar-scrolled: rgba(255,255,255,0.97);
  --input-bg:    #ffffff;
  --input-border: rgba(15,23,42,0.18);
  --input-text:  #0f172a;
  --input-placeholder: rgba(15,23,42,0.40);
}

/* Hide the dark SVG hero scene; we replace it with a faint pastel pattern. */
body.is-pure-white .hero-scene { display: none; }

/* Default hero pattern (lake & mountains). Overridden per pattern body class. */
body.is-pure-white { --hero-pattern: url('../img/hero-lake-light.svg'); }
body.is-pure-white.tmc-pattern-lake      { --hero-pattern: url('../img/hero-lake-light.svg'); }
body.is-pure-white.tmc-pattern-deck      { --hero-pattern: url('../img/hero-deck-light.svg'); }
body.is-pure-white.tmc-pattern-home      { --hero-pattern: url('../img/hero-home-light.svg'); }
body.is-pure-white.tmc-pattern-blueprint { --hero-pattern: url('../img/hero-blueprint-light.svg'); }
body.is-pure-white.tmc-pattern-tools     { --hero-pattern: url('../img/hero-tools-light.svg'); }
body.is-pure-white.tmc-pattern-handshake { --hero-pattern: url('../img/hero-handshake-light.svg'); }
/* — PRO pack — */
body.is-pure-white.tmc-pattern-sunset     { --hero-pattern: url('../img/hero-sunset-light.svg'); }
body.is-pure-white.tmc-pattern-modern     { --hero-pattern: url('../img/hero-modern-light.svg'); }
body.is-pure-white.tmc-pattern-workshop   { --hero-pattern: url('../img/hero-workshop-light.svg'); }
body.is-pure-white.tmc-pattern-crane      { --hero-pattern: url('../img/hero-crane-light.svg'); }
body.is-pure-white.tmc-pattern-bridge     { --hero-pattern: url('../img/hero-bridge-light.svg'); }
body.is-pure-white.tmc-pattern-framing    { --hero-pattern: url('../img/hero-framing-light.svg'); }
body.is-pure-white.tmc-pattern-renovation { --hero-pattern: url('../img/hero-renovation-light.svg'); }
body.is-pure-white.tmc-pattern-siteplan   { --hero-pattern: url('../img/hero-siteplan-light.svg'); }
body.is-pure-white.tmc-pattern-skyline    { --hero-pattern: url('../img/hero-skyline-light.svg'); }
body.is-pure-white.tmc-pattern-none      { --hero-pattern: none; }

/* Layer the chosen pattern over a soft white-blue gradient.
   The vertical anchor of the pattern is driven by --tmc-pattern-y
   (Customizer slider; default 100% = bottom for the white scheme). */
body.is-pure-white .hero {
  background:
    var(--hero-pattern) center var(--tmc-pattern-y, 100%) / cover no-repeat,
    linear-gradient(180deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%);
}
body.is-pure-white { --tmc-pattern-y: 100%; }

/* Subtle white wash so hero text + form panel stay legible over busier patterns.
   When --tmc-pattern-opacity drops below 1, the bg-color adds a flat white sheet
   on top of the pattern, dimming it toward a watermark. */
body.is-pure-white .hero-overlay {
  background-color: rgba(255, 255, 255, calc(1 - var(--tmc-pattern-opacity, 1)));
  background-image: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.20) 50%, rgba(255,255,255,0.00) 100%);
}
/* Busier patterns get a slightly stronger wash so hero text stays legible. */
body.is-pure-white.tmc-pattern-blueprint .hero-overlay,
body.is-pure-white.tmc-pattern-siteplan .hero-overlay,
body.is-pure-white.tmc-pattern-skyline .hero-overlay,
body.is-pure-white.tmc-pattern-renovation .hero-overlay {
  background: linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.10) 100%);
}

/* Hero text turns dark */
body.is-pure-white .hero-title { color: var(--heading); }
body.is-pure-white .hero-subtitle { color: var(--text-muted); }
body.is-pure-white .hero-trust .trust-item { color: var(--text); }
body.is-pure-white .accent-teal { color: var(--teal-dark); }

/* Hero badge — blue tint */
body.is-pure-white .hero-badge {
  background: rgba(29,78,216,0.08);
  border-color: rgba(29,78,216,0.30);
  color: var(--gold-dark);
}

/* Section title <em> still uses --gold which is now blue — OK */

/* Form panel — white surface with subtle border + soft shadow */
body.is-pure-white .contact-form-overlay {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 24px 60px rgba(15,23,42,0.10), inset 0 1px 0 rgba(15,23,42,0.04);
  backdrop-filter: none;
}
body.is-pure-white .form-title { color: var(--heading); }
body.is-pure-white .form-title span { color: var(--gold); }
body.is-pure-white .form-subtitle { color: var(--text-muted); }
body.is-pure-white .form-note { color: var(--text-muted); }

/* Native form-group inputs (used by the success-state path) */
body.is-pure-white .form-group label { color: var(--text); }
body.is-pure-white .form-group input,
body.is-pure-white .form-group select,
body.is-pure-white .form-group textarea {
  background: #ffffff;
  border-color: rgba(15,23,42,0.18);
  color: var(--heading);
}
body.is-pure-white .form-group input::placeholder,
body.is-pure-white .form-group textarea::placeholder { color: rgba(15,23,42,0.40); }

/* WPForms inputs (override the dark-panel rules with !important) */
body.is-pure-white .contact-form-overlay .wpforms-field input[type="text"],
body.is-pure-white .contact-form-overlay .wpforms-field input[type="email"],
body.is-pure-white .contact-form-overlay .wpforms-field input[type="tel"],
body.is-pure-white .contact-form-overlay .wpforms-field input[type="number"],
body.is-pure-white .contact-form-overlay .wpforms-field input[type="url"],
body.is-pure-white .contact-form-overlay .wpforms-field select,
body.is-pure-white .contact-form-overlay .wpforms-field textarea {
  background: #ffffff !important;
  border: 1px solid rgba(15,23,42,0.18) !important;
  color: #0f172a !important;
}
body.is-pure-white .contact-form-overlay .wpforms-field input::placeholder,
body.is-pure-white .contact-form-overlay .wpforms-field textarea::placeholder {
  color: rgba(15,23,42,0.40) !important;
}
body.is-pure-white .contact-form-overlay .wpforms-field input:focus,
body.is-pure-white .contact-form-overlay .wpforms-field select:focus,
body.is-pure-white .contact-form-overlay .wpforms-field textarea:focus {
  border-color: var(--gold) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(29,78,216,0.12) !important;
}
body.is-pure-white .contact-form-overlay .wpforms-field label.wpforms-field-label,
body.is-pure-white .contact-form-overlay .wpforms-field-sublabel {
  color: var(--text) !important;
}
/* WPForms confirmation message on white */
body.is-pure-white .contact-form-overlay .wpforms-confirmation-container,
body.is-pure-white .contact-form-overlay .wpforms-confirmation-container-full {
  background: rgba(29,78,216,0.06) !important;
  border-color: rgba(29,78,216,0.30) !important;
  color: var(--heading) !important;
}
body.is-pure-white .contact-form-overlay .wpforms-confirmation-container *,
body.is-pure-white .contact-form-overlay .wpforms-confirmation-container-full * {
  color: var(--heading) !important;
}

/* Navbar — top of page (not scrolled) is now over white, so flip text dark */
body.is-pure-white .navbar:not(.scrolled) .nav-links a,
body.is-pure-white .navbar:not(.scrolled) .company-name {
  color: var(--heading);
}
body.is-pure-white .navbar:not(.scrolled) .nav-links a:hover { color: var(--gold); }
body.is-pure-white .navbar:not(.scrolled) .tagline-nav { color: var(--gold); }
body.is-pure-white .navbar:not(.scrolled) .nav-toggle span { background: var(--heading); }
body.is-pure-white .navbar.scrolled .nav-links a { color: var(--text); }
body.is-pure-white .navbar.scrolled .nav-links a:hover { color: var(--gold); }
body.is-pure-white .navbar.scrolled .company-name { color: var(--heading); }
/* CTA pill in navbar — keep blue accent */
body.is-pure-white .nav-cta { background: var(--gold) !important; color: var(--on-accent) !important; }
body.is-pure-white .nav-cta:hover { background: var(--gold-dark) !important; }

/* Logo fallback box on white bg — subtle blue */
body.is-pure-white .logo-fallback {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-color: var(--gold);
}
body.is-pure-white .logo-fallback .logo-letters { color: #ffffff; }

/* Stat cards — keep gradient cards readable; the dark stat card becomes white-on-blue tint */
body.is-pure-white .stat-card--dark {
  background: #f8fafc;
  border: 1px solid var(--border-soft);
}
body.is-pure-white .stat-card--dark .stat-number { color: var(--heading); }
body.is-pure-white .stat-card--dark .stat-label  { color: var(--text); }

/* Service / testimonial / value cards on white — soft borders + light shadow */
body.is-pure-white .service-card,
body.is-pure-white .testimonial-card,
body.is-pure-white .value-item {
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 12px rgba(15,23,42,0.04);
}
body.is-pure-white .service-card:hover,
body.is-pure-white .testimonial-card:hover {
  box-shadow: 0 12px 32px rgba(15,23,42,0.08);
  border-color: rgba(29,78,216,0.25);
}

/* Section visual separator — alternating bg-section-2 keeps subtle banding */
body.is-pure-white .testimonials-section { background: var(--bg-section-2); }
body.is-pure-white .services-section::before,
body.is-pure-white .service-card::before { /* keep accent bar visible */ }

/* Footer on white — flip text colors, drop gold underline conflicts */
body.is-pure-white .site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-soft);
}
body.is-pure-white .footer-brand p,
body.is-pure-white .footer-contact p,
body.is-pure-white .footer-bottom p { color: var(--text-muted); }
body.is-pure-white .footer-links a { color: var(--text); }
body.is-pure-white .footer-links a:hover { color: var(--gold); }
body.is-pure-white .footer-contact a { color: var(--text); }
body.is-pure-white .footer-contact a:hover { color: var(--gold); }
body.is-pure-white .social-link {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--text-muted);
}
body.is-pure-white .social-link:hover {
  background: rgba(29,78,216,0.06);
  border-color: var(--gold);
  color: var(--gold);
}
body.is-pure-white .footer-bottom { border-top-color: var(--border-soft); }
body.is-pure-white .footer-logo .logo-fallback {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
}
body.is-pure-white .footer-cta {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
}

/* Reviews summary badge on white */
body.is-pure-white .reviews-summary {
  background: rgba(29,78,216,0.06);
  border-color: rgba(29,78,216,0.25);
}

/* ============================================
   MOBILE IMPROVEMENTS
   Cover the gaps in the older breakpoints, add
   touch-friendly sizing, and make the new schemes
   work on phones.
   ============================================ */

/* Mobile slide-out menu — match the active scheme so light schemes don't
   open a dark drawer that breaks visual continuity. */
@media (max-width: 768px) {
  .nav-links {
    background: var(--bg-page);
    border-left: 1px solid var(--border-soft);
  }
  body.is-pure-white .nav-links,
  body.tmc-scheme-light_navy .nav-links,
  body.tmc-scheme-light_teal .nav-links {
    background: #ffffff;
  }
  body.is-pure-white .nav-links a,
  body.tmc-scheme-light_navy .nav-links a,
  body.tmc-scheme-light_teal .nav-links a {
    color: var(--heading);
  }
  /* All schemes that were dark — keep menu items white inside the dark drawer */
  body.tmc-scheme-teal_gold .nav-links a,
  body.tmc-scheme-navy_bronze .nav-links a,
  body.tmc-scheme-forest_copper .nav-links a,
  body.tmc-scheme-charcoal_amber .nav-links a {
    color: rgba(255,255,255,0.85);
  }
  /* CTA pill in the mobile drawer — a touch larger for tap targets */
  .nav-links .nav-cta { padding: 14px 20px !important; text-align: center; }

  /* Tighten section padding on phones so the page feels less stretched */
  .services-section,
  .about-section,
  .portfolio-section { padding: 64px 0; }
  .testimonials-section { padding: 48px 0; }
  .footer-cta { padding: 56px 0; }

  /* Section header gets less top whitespace */
  .section-header { margin-bottom: 40px; }

  /* Hero typography breathes a bit on small screens */
  .hero-content { padding: 100px 20px 48px; gap: 32px; }
  .hero-trust { gap: 12px; }
  .hero-trust .trust-item { font-size: 0.82rem; }

  /* Form panel — slightly tighter padding on small screens */
  .contact-form-overlay { padding: 28px 24px; }
  .form-title { font-size: 1.4rem; }

  /* Stat cards stack to a single column instead of two-up at narrow widths */
  .about-card-stack { flex-direction: column; }
  .stat-card { margin-left: 0 !important; padding: 22px 24px; }
  .stat-number { font-size: 2.4rem; }

  /* Reviews summary badge wraps cleaner */
  .reviews-summary { padding: 10px 14px; gap: 8px; font-size: 0.85rem; }
  .reviews-summary-rating { font-size: 1.2rem; }
}

/* Hero pattern positioning on phones — patterns are 1440x800; on tall
   narrow viewports `cover` zooms them excessively. Pin to bottom and
   shrink slightly so the dominant elements (lake horizon, deck planks,
   house, blueprint grid) sit just below the form rather than oversized. */
@media (max-width: 768px) {
  body.is-pure-white .hero {
    background:
      var(--hero-pattern) center 100% / 200% auto no-repeat,
      linear-gradient(180deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%);
  }
  body.is-pure-white.tmc-pattern-blueprint .hero {
    /* Blueprint reads better full-cover so the grid stays visible */
    background:
      var(--hero-pattern) center bottom / cover no-repeat,
      linear-gradient(180deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%);
  }
}

/* Inner pages: trim the hero on phones so the title shows above the fold */
@media (max-width: 768px) {
  .tmc-page-hero { padding: 120px 0 40px; }
  .tmc-page-hero--image { padding: 140px 0 56px; }
  .tmc-page-content { padding: 48px 0 72px; }
  .tmc-page-content .entry-content { font-size: 1rem; }
}

/* Touch targets — bump WPForms inputs a touch on phones for better tap UX */
@media (max-width: 480px) {
  .contact-form-overlay .wpforms-field input[type="text"],
  .contact-form-overlay .wpforms-field input[type="email"],
  .contact-form-overlay .wpforms-field input[type="tel"],
  .contact-form-overlay .wpforms-field input[type="number"],
  .contact-form-overlay .wpforms-field input[type="url"],
  .contact-form-overlay .wpforms-field select,
  .contact-form-overlay .wpforms-field textarea {
    padding: 13px 14px !important;
    font-size: 16px !important; /* prevent iOS auto-zoom on focus */
  }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }
  .hero-title { font-size: 1.85rem; }
  .form-title { font-size: 1.25rem; }
  .stat-number { font-size: 2rem; }
}

/* Long company names + tagline shouldn't wrap awkwardly on tiny phones */
@media (max-width: 380px) {
  .company-name { font-size: 1rem; }
  .tagline-nav { font-size: 0.65rem; }
  .logo-img { height: 44px; }
  .nav-container { padding: 14px 16px; gap: 12px; }
}

/* ============================================
   PURE WHITE & LIGHT BLUE
   Inherits all structural rules from .is-pure-white
   (which is added to body for both pure_white schemes).
   This block only overrides the blue palette to a softer
   sky-blue range. Loaded after .is-pure-white rules so it
   wins on cascade for matching elements.
   ============================================ */
body.tmc-scheme-pure_white_light {
  /* Lighter, softer blue accents */
  --teal:       #60a5fa;
  --teal-dark:  #3b82f6;
  --teal-light: #93c5fd;
  --gold:       #60a5fa;   /* "gold" is the accent var; for light blue it = the soft blue */
  --gold-dark:  #3b82f6;
  --gold-light: #93c5fd;
}
/* Tweak hero badge tint for light-blue scheme */
body.tmc-scheme-pure_white_light .hero-badge {
  background: rgba(96, 165, 250, 0.10);
  border-color: rgba(96, 165, 250, 0.40);
  color: #2563eb;
}
/* Light blue: soften the form panel focus ring + reviews summary */
body.tmc-scheme-pure_white_light .contact-form-overlay .wpforms-field input:focus,
body.tmc-scheme-pure_white_light .contact-form-overlay .wpforms-field select:focus,
body.tmc-scheme-pure_white_light .contact-form-overlay .wpforms-field textarea:focus {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18) !important;
}
body.tmc-scheme-pure_white_light .reviews-summary {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.25);
}

