/* ============================================
   Chau & Gomez Construction Inc.
   Phase 2 — Multi-Page Shared Stylesheet
   Design System: DM Serif Display + DM Sans
   Accent: #C8542B | Cream/Dark palette
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #C8542B;
  --orange-hover: #b5481f;
  --cream: #FAF7F2;
  --cream-dark: #F0EBE1;
  --dark: #1A1A1A;
  --dark-light: #2A2A2A;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --white: #FFFFFF;
  --border: #E5E0D8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --nav-height: 72px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--dark); line-height: 1.2; font-weight: 400; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h2 strong { color: var(--orange); }
p { margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200, 84, 43, 0.35), 0 0 0 3px rgba(200, 84, 43, 0.1);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.12);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200, 84, 43, 0.3);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--dark-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.transparent { background: transparent; }
.nav.solid { background: var(--dark); box-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.nav.always-solid { background: var(--dark); box-shadow: 0 2px 20px rgba(0,0,0,0.15); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-company-name {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

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

.nav-links a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  position: relative;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover { background: rgba(255,255,255,0.1); }
.nav-links a.active { color: var(--orange); }

/* Services Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(8px);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text) !important;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--cream) !important;
  color: var(--orange) !important;
}

.nav-dropdown-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 4px;
  vertical-align: middle;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-arrow { transform: rotate(180deg); }

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--orange-hover) !important;
  box-shadow: 0 4px 20px rgba(200, 84, 43, 0.35) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--dark);
  z-index: 999;
  padding: 100px 32px 40px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

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

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-overlay.open { opacity: 1; visibility: visible; }

.mobile-menu a {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu a.active { color: var(--orange); }

.mobile-menu .mobile-sub {
  padding-left: 16px;
}
.mobile-menu .mobile-sub a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  padding: 10px 0;
}
.mobile-menu .mobile-sub a:hover { color: var(--orange); }

.mobile-menu .mobile-cta {
  display: block;
  margin-top: 24px;
  text-align: center;
  background: var(--orange);
  border-radius: 50px;
  padding: 14px;
  font-weight: 600;
}
.mobile-menu .mobile-cta:hover { background: var(--orange-hover); }

.mobile-toggle-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.05rem;
  padding: 14px 0;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
}

.mobile-toggle-btn .arrow {
  transition: transform 0.2s;
  font-size: 0.8rem;
}

.mobile-toggle-btn.open .arrow { transform: rotate(180deg); }

/* --- Hero Section (Home page) --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 120px 24px 80px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}

.hero-location {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 strong { color: var(--orange); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-phone { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.hero-phone:hover { color: var(--white); }

/* Trust Bar */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 32px 24px;
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.trust-bar span { white-space: nowrap; }

/* --- Page Hero (non-Home pages) --- */
.page-hero {
  background: var(--dark);
  padding: 140px 24px 60px;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero h1 strong { color: var(--orange); }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 24px;
  background: var(--cream-dark);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-light); position: relative; display: inline-block; }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs .sep { margin: 0 8px; }

/* --- Sections --- */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--white);
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark h2 { color: var(--white); }

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

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(200, 84, 43, 0.18); }

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body {
  padding: 24px;
}

.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 16px; }

.service-card .link {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.service-card .link:hover { gap: 8px; }

/* Handyman Banner */
.handyman-banner {
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  margin-top: 40px;
}

.handyman-banner h3 { margin-bottom: 12px; }
.handyman-banner h3 strong { color: var(--orange); }
.handyman-banner p { color: var(--text-light); max-width: 600px; margin: 0 auto 20px; }

/* --- Service Detail Sections --- */
.service-detail {
  padding: 60px 24px;
  border-bottom: 1px solid var(--border);
}

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

.service-detail-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.service-detail:nth-child(even) .service-detail-inner { direction: rtl; }
.service-detail:nth-child(even) .service-detail-inner > * { direction: ltr; }

.service-detail img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.service-detail h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.service-detail p { color: var(--text-light); margin-bottom: 20px; }

/* --- Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.team-card { text-align: center; }

.team-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 4px solid var(--cream-dark);
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 4px;
}

.team-card h4 { font-size: 1.1rem; }

/* --- About Story --- */
.about-story {
  max-width: 800px;
  margin: 0 auto;
}

.about-story p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.85;
}

/* --- Why Choose Us Cards --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.why-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--orange);
}

.why-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.why-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 0; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: -10px;
}

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

.testimonial-meta { display: flex; flex-direction: column; gap: 2px; }
.testimonial-name { font-weight: 700; color: var(--dark); font-size: 0.95rem; }
.testimonial-location { font-size: 0.82rem; color: var(--text-muted); }
.testimonial-project { font-size: 0.82rem; color: var(--orange); font-weight: 500; }

/* --- Portfolio --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.ba-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ba-slider {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
}

.ba-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider .ba-after {
  clip-path: inset(0 0 0 50%);
  transition: none;
}

.ba-slider .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.ba-slider .ba-handle::after {
  content: '⟷';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--dark);
  box-shadow: var(--shadow-md);
}

.ba-slider .ba-label {
  position: absolute;
  bottom: 12px;
  padding: 4px 12px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  z-index: 4;
  pointer-events: none;
}

.ba-slider .ba-label-before { left: 12px; }
.ba-slider .ba-label-after { right: 12px; }

.ba-card-body {
  padding: 20px 24px;
}

.ba-card-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 400;
}

.ba-card-body p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 0; }

/* --- Mid CTA --- */
.mid-cta {
  background: var(--dark);
  padding: 60px 24px;
  text-align: center;
  color: var(--white);
}

.mid-cta h2 { color: var(--white); margin-bottom: 16px; }
.mid-cta p { color: rgba(255,255,255,0.7); margin-bottom: 28px; max-width: 540px; margin-left: auto; margin-right: auto; }

.mid-cta .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Service Areas --- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.area-col h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
}

.area-col ul li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.area-col .area-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* --- FAQ --- */
.faq-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.faq-filter {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  transition: var(--transition);
  font-family: var(--font-body);
}

.faq-filter:hover { border-color: var(--orange); color: var(--orange); }
.faq-filter.active { background: var(--orange); color: var(--white); border-color: var(--orange); }

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
}

.faq-question:hover { color: var(--orange); }

.faq-question .icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  color: var(--orange);
}

.faq-item.open .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
}

.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.75;
}

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

.contact-info-block { display: flex; flex-direction: column; gap: 20px; }

.contact-info-item a {
  color: var(--dark);
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.2s;
}
.contact-info-item a:hover { color: var(--orange); }

.contact-info-item .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-form { background: var(--white); padding: 36px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s;
}

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

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

.form-radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.form-radio-group label {
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.form-radio-group input[type="radio"] { width: auto; accent-color: var(--orange); }

.honey { position: absolute; left: -9999px; }

.form-submit {
  width: 100%;
  padding: 16px;
  cursor: pointer;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }

.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  display: inline-block;
  position: relative;
  padding: 5px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--orange); }

.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-contact a {
  display: inline-block;
  position: relative;
  padding: 5px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}
.footer-contact a:hover { color: var(--orange); }
.footer-contact .address { font-size: 0.9rem; }

.footer-contact .google-link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--orange);
  font-weight: 500;
  transition: color 0.2s;
}
.footer-contact .google-link:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* --- Sticky Mobile CTA --- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--dark);
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.sticky-cta-inner {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.sticky-cta a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.sticky-cta .sticky-call { background: var(--white); color: var(--dark); }
.sticky-cta .sticky-quote { background: var(--orange); color: var(--white); }

/* --- Related Services Strip --- */
.related-services {
  padding: 48px 24px;
  background: var(--cream-dark);
}

.related-services h3 {
  text-align: center;
  margin-bottom: 28px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.related-link {
  display: block;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.related-link:hover { color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .service-detail-inner { grid-template-columns: 1fr; gap: 24px; }
  .service-detail:nth-child(even) .service-detail-inner { direction: ltr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .sticky-cta { display: block; }
  .nav-company-name { font-size: 0.85rem; }

  body { padding-bottom: 64px; }

  .hero-content { padding: 100px 20px 60px; }
  .hero h1 { font-size: 2rem; }

  .section { padding: 60px 20px; }
  .page-hero { padding: 120px 20px 48px; }

  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .trust-bar { gap: 16px; font-size: 0.78rem; padding: 24px 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .faq-filters { gap: 6px; }
  .faq-filter { font-size: 0.78rem; padding: 6px 14px; }
}

/* ============================================
   Phase 2 QA Fixes
   ============================================ */

/* Fix #4: Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--orange);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* Fix #5: Footer heading (was h4, now p) */
.footer-heading {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 400;
}

/* Fix #5: Team name heading */
.team-name { font-size: 1.1rem; }

/* Fix #7: Focus-visible states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.faq-question:focus-visible,
.faq-filter:focus-visible,
.ba-slider:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.nav-links a:focus-visible { outline-color: var(--white); }
.mobile-menu a:focus-visible { outline-color: var(--orange); }

/* Fix #9: Hero content positioning on mobile */
@media (max-width: 768px) {
  .hero { min-height: 92vh; align-items: flex-end; }
  .hero-content { padding: 80px 20px 48px; }
}

/* Fix #12: RTL fix for service detail on tablet */
@media (max-width: 1024px) {
  .service-detail:nth-child(even) .service-detail-inner { direction: ltr; }
}

/* Fix #16: More bottom padding for sticky CTA */
@media (max-width: 768px) {
  body { padding-bottom: 76px; }
}

/* Fix #14: Portfolio coming soon note styling */
.portfolio-note {
  margin-top: 48px;
  padding: 24px;
  text-align: center;
}

/* Fix #23: Print styles */
@media print {
  .nav, .mobile-menu, .mobile-overlay, .sticky-cta, .hero-video, .hero-overlay { display: none !important; }
  .hero { min-height: auto; background: var(--white); }
  .hero-content { color: var(--dark); padding: 40px 0; }
  .hero h1, .hero h1 strong { color: var(--dark); }
  .hero-sub, .hero-location { color: var(--text); }
  .page-hero { background: var(--white); padding: 40px 0; }
  .page-hero h1, .page-hero h1 strong { color: var(--dark); }
  .page-hero p { color: var(--text); }
  .mid-cta { background: var(--cream-dark); color: var(--dark); }
  .mid-cta h2 { color: var(--dark); }
  .mid-cta p { color: var(--text); }
  .footer { background: var(--cream-dark); color: var(--text); }
  .section-dark { background: var(--cream-dark); color: var(--dark); }
  body { padding-bottom: 0; }
}

/* ============================================
   Hover Interactions & Micro-Animations
   ============================================ */

/* Transition setup for all interactive cards */
.service-card {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card img {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.service-card .link {
  transition: gap 0.3s cubic-bezier(0.23, 1, 0.32, 1), color 0.3s;
}

.service-card:hover .link {
  gap: 10px;
}

/* Service Detail Images — subtle zoom on hover */
.service-detail img {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-detail:hover img {
  transform: scale(1.03);
}

.why-card {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.testimonial-card {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Team Photos — scale + orange border */
.team-card img {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.4s;
}

.team-card:hover img {
  transform: scale(1.06);
  border-color: var(--orange);
}

.ba-card {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Buttons — press effect */
.btn {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn:active {
  transform: scale(0.97);
}

/* Section Label — animated underline */
.section-label {
  position: relative;
  padding-bottom: 8px;
}

.section-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.visible .section-label::after,
.section-label.visible::after {
  width: 40px;
}

/* FAQ Question — indent on hover */
.faq-question {
  transition: color 0.3s, padding-left 0.3s;
}

.faq-question:hover {
  padding-left: 4px;
}

/* Related Links — lift */
.related-link {
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
   Branded Orange Hover System
   ============================================ */

/* Animated underline sweep on text links */
.footer-links a,
.footer-contact a,
.nav-dropdown-menu a,
.breadcrumbs a {
  position: relative;
}

.footer-links a::after,
.footer-contact a::after,
.breadcrumbs a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--orange);
  transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.footer-links a:hover::after,
.footer-contact a:hover::after,
.breadcrumbs a:hover::after {
  width: 100%;
}

/* Nav links — orange underline sweep */
.nav-links > a,
.nav-dropdown > a {
  position: relative;
}

.nav-links > a::after,
.nav-dropdown > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1), left 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-links > a:hover::after,
.nav-dropdown > a:hover::after,
.nav-links > a.active::after,
.nav-dropdown > a.active::after {
  width: 60%;
  left: 20%;
}

/* Orange glow on interactive cards */

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(200, 84, 43, 0.10);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(200, 84, 43, 0.10);
}

.ba-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(200, 84, 43, 0.15);
}

/* Contact info links — orange sweep */
.contact-info-item a {
  position: relative;
  display: inline-block;
}

.contact-info-item a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-info-item a:hover::after {
  width: 100%;
}

/* Mobile menu links — orange left border on hover */
.mobile-menu a:hover {
  border-left: 3px solid var(--orange);
  padding-left: 12px;
}

/* ============================================
   Scroll Reveal — NO OPACITY HIDING
   Content is always visible. Animations are additive only.
   ============================================ */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
