/* ==========================================================================
   MAINLINE CONSTRUCTION - PREMIUM CONTRACTOR STYLESHEET
   Clean, Architectural, High-Converting & Built for Homeowner Trust
   Color Palette: Deep Slate, Metallic Steel, Crisp Architectural White, Electric Cyan
   ========================================================================== */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

/* --- DESIGN TOKENS --- */
:root {
  /* Brand Colors Extracted from Mainline Logo */
  --brand-cyan: #00d2ff;
  --brand-cyan-deep: #0099cc;
  --brand-cyan-light: #e0f7fa;
  --brand-cyan-glow: rgba(0, 210, 255, 0.18);
  
  --steel-100: #f1f5f9;
  --steel-200: #e2e8f0;
  --steel-300: #cbd5e1;
  --steel-400: #94a3b8;
  --steel-500: #64748b;
  --steel-600: #475569;
  --steel-700: #334155;
  --steel-800: #1e293b;
  --steel-900: #0f172a;
  --steel-950: #090d16;

  /* Surfaces & Backgrounds */
  --bg-dark: #0c111c;
  --bg-dark-card: #141b29;
  --bg-dark-border: rgba(255, 255, 255, 0.1);
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-light-alt: #f1f5f9;
  
  /* Text */
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --text-light-muted: #94a3b8;

  /* Accents */
  --accent-gold: #f59e0b;
  --accent-green: #10b981;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Layout */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s ease;
  
  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 16px 32px -4px rgba(15, 23, 42, 0.12), 0 6px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-dark-card: 0 8px 30px rgba(0, 0, 0, 0.35);
}

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

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

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

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

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

button, input, select, textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- UTILITY TOP BAR (Fitzpatrick Style) --- */
.top-bar {
  background-color: var(--steel-950);
  color: var(--steel-300);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--steel-800);
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-pill-dot {
  width: 7px;
  height: 7px;
  background-color: var(--brand-cyan);
  border-radius: 50%;
  display: inline-block;
}

.top-phone {
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

.top-phone:hover {
  color: var(--brand-cyan);
}

/* --- MAIN NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--steel-200);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 104px;
  padding: 8px 0;
}

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

.logo-wrap img {
  height: 86px;
  max-width: 280px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.08));
  transition: transform 0.2s ease;
}

.logo-wrap:hover img {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--steel-800);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-cyan-deep);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-cyan);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  width: 270px;
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 12px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--steel-700);
  border-left: 3px solid transparent;
}

.dropdown-item a:hover {
  background-color: var(--steel-100);
  color: var(--brand-cyan-deep);
  border-left-color: var(--brand-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-cyan {
  background-color: var(--brand-cyan);
  color: #0b1523;
  border-color: var(--brand-cyan);
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.3);
}

.btn-cyan:hover {
  background-color: #00bef0;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 210, 255, 0.4);
}

.btn-outline-steel {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-steel:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-dark {
  background-color: var(--steel-900);
  color: #fff;
}

.btn-dark:hover {
  background-color: var(--steel-800);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--steel-900);
  border-color: var(--steel-300);
}

.btn-outline-dark:hover {
  border-color: var(--steel-900);
  background-color: var(--steel-100);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--steel-900);
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  background-color: var(--steel-950);
  color: #fff;
  padding: 90px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: grayscale(20%) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(9, 13, 22, 0.95) 0%, rgba(15, 23, 42, 0.85) 60%, rgba(9, 13, 22, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: var(--brand-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--brand-cyan);
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--steel-300);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 720px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-stars {
  color: var(--accent-gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.trust-text strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  font-family: var(--font-heading);
}

.trust-text span {
  font-size: 0.8rem;
  color: var(--steel-400);
}

/* --- TICKER BAR (Fitzpatrick Style) --- */
.ticker-bar {
  background-color: var(--steel-900);
  border-bottom: 1px solid var(--steel-800);
  padding: 16px 0;
  color: var(--steel-300);
  font-size: 0.9rem;
}

.ticker-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.ticker-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #fff;
}

.ticker-icon {
  color: var(--brand-cyan);
  font-size: 1.2rem;
}

/* --- SECTION HEADERS --- */
.section {
  padding: 90px 0;
}

.section-light {
  background-color: var(--bg-light);
}

.section-dark {
  background-color: var(--steel-950);
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-cyan-deep);
  margin-bottom: 12px;
}

.section-dark .section-tag {
  color: var(--brand-cyan);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--steel-900);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-dark .section-title {
  color: #fff;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--steel-600);
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: var(--steel-400);
}

/* --- 7 TRADES SHOWCASE GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-cyan);
}

.service-img-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
  background-color: var(--steel-800);
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.service-tag-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 4px;
  border-left: 3px solid var(--brand-cyan);
}

.service-body {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--steel-900);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--steel-600);
  line-height: 1.55;
  margin-bottom: 18px;
}

.service-features {
  list-style: none;
  margin-bottom: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--steel-100);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  font-size: 0.88rem;
  color: var(--steel-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li svg {
  color: var(--brand-cyan-deep);
  flex-shrink: 0;
}

.service-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--steel-200);
}

.service-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-cyan-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  color: var(--steel-900);
  gap: 9px;
}

/* --- THE MAINLINE DIFFERENCE (Grounded Contractor Standards) --- */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.standard-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  padding: 32px 26px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.standard-card:hover {
  border-color: rgba(0, 210, 255, 0.4);
  transform: translateY(-3px);
}

.standard-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.standard-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.standard-desc {
  font-size: 0.92rem;
  color: var(--steel-400);
  line-height: 1.6;
}

/* --- 3RS STYLE: THE 4-STEP BUILD PROCESS --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
}

.process-step {
  background: #ffffff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.process-step:hover {
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-card);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-cyan-deep);
  margin-bottom: 12px;
  display: inline-block;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--steel-900);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--steel-600);
  line-height: 1.55;
}

/* --- BEFORE & AFTER INTERACTIVE SLIDER --- */
.ba-section {
  background: #fff;
}

.ba-container {
  max-width: 960px;
  margin: 0 auto;
}

.ba-slider-wrap {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  user-select: none;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.ba-image-before {
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 3px solid var(--brand-cyan);
}

.ba-image-before img {
  width: 960px;
  max-width: none;
}

.ba-label {
  position: absolute;
  bottom: 20px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  z-index: 5;
}

.ba-label-before {
  left: 20px;
}

.ba-label-after {
  right: 20px;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--brand-cyan);
  border: 3px solid #fff;
  border-radius: 50%;
  z-index: 10;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.ba-handle svg {
  color: #0b1523;
  width: 20px;
  height: 20px;
}

.ba-caption {
  text-align: center;
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--steel-600);
}

/* --- PROJECT PORTFOLIO FILTER --- */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.tab-btn {
  background: #fff;
  border: 1px solid var(--steel-200);
  color: var(--steel-700);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--steel-900);
  color: #fff;
  border-color: var(--steel-900);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
  box-shadow: var(--shadow-card);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px 16px;
  background: linear-gradient(to top, rgba(9, 13, 22, 0.9) 0%, rgba(9, 13, 22, 0.4) 60%, transparent 100%);
  color: #fff;
  transform: translateY(10px);
  opacity: 0.9;
  transition: var(--transition);
}

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

.gallery-card:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-tag {
  font-size: 0.75rem;
  color: var(--brand-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 4px;
}

/* --- REVIEWS SECTION --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.review-quote {
  font-size: 0.98rem;
  color: var(--steel-700);
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: italic;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--steel-100);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--steel-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--steel-800);
  font-size: 1rem;
}

.author-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--steel-900);
}

.author-info span {
  font-size: 0.82rem;
  color: var(--steel-500);
}

/* --- ESTIMATE REQUEST / LEAD GEN (Fitzpatrick Style) --- */
.estimate-section {
  background-color: var(--steel-950);
  color: #fff;
  position: relative;
}

.estimate-wrapper {
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-dark-card);
}

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

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--steel-300);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: var(--steel-900);
  border: 1px solid var(--steel-700);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.2);
}

/* Trade Checkboxes */
.trades-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.trade-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--steel-900);
  border: 1px solid var(--steel-700);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--steel-300);
  transition: var(--transition);
}

.trade-checkbox-label:hover {
  border-color: var(--brand-cyan);
  color: #fff;
}

.trade-checkbox-label input[type="checkbox"] {
  accent-color: var(--brand-cyan);
  width: 16px;
  height: 16px;
}

/* --- FAQ SECTION --- */
.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 24px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--steel-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-toggle-icon {
  font-size: 1.25rem;
  color: var(--brand-cyan-deep);
  transition: transform 0.2s ease;
}

.faq-answer {
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: var(--steel-600);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

/* --- FOOTER --- */
.site-footer {
  background-color: var(--steel-950);
  color: var(--steel-400);
  border-top: 1px solid var(--steel-800);
  padding: 80px 0 30px;
}

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

.footer-brand img {
  height: 74px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--steel-400);
}

.footer-links a:hover {
  color: var(--brand-cyan);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--steel-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

/* --- TRADE DETAILS MODAL (3Rs Style Deep-Dive) --- */
.trade-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.trade-modal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 40px;
}

.trade-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--steel-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--steel-700);
  cursor: pointer;
  transition: var(--transition);
}

.trade-modal-close:hover {
  background: var(--steel-900);
  color: #fff;
}

/* --- MOBILE BOTTOM CALL BAR (Fitzpatrick Style) --- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--steel-950);
  border-top: 1px solid var(--steel-800);
  padding: 10px 16px;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-call-inner {
  display: flex;
  gap: 10px;
}

.mobile-call-btn {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 0.88rem;
}

/* --- BASE LAYOUT HELPERS FOR STANDARDS & PROCESS --- */
.mobile-menu-cta-item {
  display: none;
}

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

.process-step-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 36px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--steel-200);
}

.process-step-row-last {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.form-control {
  font-size: 16px; /* Prevents auto-zoom on iOS Safari/Chrome */
}

/* --- INTERNAL PAGE HEADER BANNER --- */
.page-banner {
  background-color: var(--steel-950);
  color: #fff;
  padding: 70px 0 50px;
  position: relative;
  border-bottom: 1px solid var(--steel-800);
}

.page-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.page-banner-title span {
  color: var(--brand-cyan);
}

.page-banner-desc {
  font-size: 1.1rem;
  color: var(--steel-300);
  max-width: 680px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--steel-950);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--steel-800);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-block h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info-block p {
  color: var(--steel-300);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-info-block a {
  color: var(--brand-cyan);
  font-weight: 700;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .trade-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .trade-detail-grid > div[style*="order"] {
    order: 0 !important;
  }
}

@media (max-width: 768px) {
  /* Navigation & Header (Mobile Centered Logo) */
  .nav-container {
    height: 80px;
    padding: 6px 16px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0 44px; /* Keeps logo centered while preventing collision with right hamburger */
  }

  .logo-wrap img {
    height: 62px;
    max-width: 195px;
    width: auto;
  }

  .nav-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }

  .top-bar-left {
    display: none;
  }

  .top-bar-inner {
    justify-content: center;
    font-size: 0.85rem;
    padding: 6px 14px;
  }

  .nav-actions .btn-cyan {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--steel-100);
    border: 1px solid var(--steel-300);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    color: var(--steel-900);
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .mobile-toggle:hover {
    background: var(--steel-200);
  }

  /* Slide-down mobile drawer */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 2px solid var(--brand-cyan);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    padding: 12px 20px 24px;
    gap: 0;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    z-index: 9999;
  }

  .nav-menu.is-active {
    display: flex;
    animation: mobileMenuSlideDown 0.22s ease-out forwards;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--steel-100);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 6px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--steel-900);
    width: 100%;
  }

  .nav-link.active {
    color: var(--brand-cyan-deep);
  }

  /* Mobile trade dropdown inside menu */
  .has-dropdown > .nav-link {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }

  .has-dropdown .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--brand-cyan);
    background: var(--steel-50);
    border-radius: 4px;
    margin: 4px 0 12px 8px;
    padding: 6px 0;
    width: calc(100% - 8px);
  }

  .has-dropdown.mobile-open .dropdown-menu {
    display: block !important;
    animation: mobileTradeSlide 0.2s ease-out forwards;
  }

  .dropdown-item a {
    display: block;
    padding: 11px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--steel-800);
  }

  .dropdown-item a:hover, .dropdown-item a:active {
    color: var(--brand-cyan-deep);
    background-color: var(--steel-100);
  }

  .mobile-menu-cta-item {
    display: block;
    margin-top: 16px;
    padding-top: 10px;
    border-bottom: none !important;
  }

  .mobile-menu-cta-item .btn {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 1rem;
  }

  /* Process steps on How We Work */
  .process-step-row {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 40px;
    padding-bottom: 40px;
  }

  /* Grids and Cards */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .standards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .estimate-wrapper {
    padding: 24px 18px;
  }

  .contact-info-card {
    padding: 24px 18px;
  }

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

  /* Sticky call bar with iOS home indicator support */
  .mobile-call-bar {
    display: block;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  /* Page Banners */
  .page-banner {
    padding: 50px 0 36px;
  }

  .page-banner-title {
    font-size: 1.85rem;
  }

  .hero-section {
    padding: 60px 0 50px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.6rem);
  }

  .hero-trust-row {
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
  }

  .trades-select-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-tabs {
    gap: 8px;
  }

  .tab-btn {
    padding: 9px 16px;
    font-size: 0.88rem;
  }
}

@keyframes mobileMenuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileTradeSlide {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
