/* ============================================
   ONTARIO ESTIMATING - Design System
   Professional Construction Cost Estimating
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --navy: #0C2340;
  --navy-light: #14365A;
  --navy-dark: #081A2F;
  --copper: #B8860B;
  --copper-light: #D4A843;
  --copper-muted: rgba(184, 134, 11, 0.15);
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --text-primary: #1A1A2E;
  --text-secondary: #4B5563;
  --text-light: #6B7280;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: 100px;
  --section-padding-sm: 60px;
  --container-max: 1200px;
  --container-wide: 1400px;

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 50px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.08), 0 12px 40px rgba(0,0,0,0.1);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 350ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);

  /* Header */
  --header-height: 90px;
  --header-height-scrolled: 70px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

.text-copper { color: var(--copper); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }

.subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.subtitle::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--copper);
  flex-shrink: 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 680px;
}

.section-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header-center .subtitle {
  justify-content: center;
}

.section-header-center .subtitle::before {
  display: none;
}

.section-header-center .section-description {
  margin: 0 auto;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--section-padding) 0;
  position: relative;
}

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

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

section.bg-navy h2,
section.bg-navy h3,
section.bg-navy h4 {
  color: var(--white);
}

section.bg-navy p {
  color: rgba(255, 255, 255, 0.8);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--copper);
  color: var(--white);
  border: 2px solid var(--copper);
}

.btn-primary:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 134, 11, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}

.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(12, 35, 64, 0.3);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: all var(--transition-base);
}

.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: var(--header-height-scrolled);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header.scrolled .logo-img {
  filter: none;
}

.header.scrolled .nav-link {
  color: var(--text-primary);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
  color: var(--copper);
}

.header.scrolled .nav-cta {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.header.scrolled .nav-cta:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}

.header.scrolled .hamburger span {
  background: var(--navy);
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo-img {
  height: 78px;
  width: auto;
  transition: all var(--transition-base);
  filter: brightness(0) invert(1);
}

.header.scrolled .logo-img {
  height: 60px;
}

/* Homepage: supersize logo when page is at the top (not yet scrolled).
   Anchor to the top of the header so the oversized logo overflows
   downward into the hero area instead of clipping above the viewport. */
body.home .header:not(.scrolled) .logo {
  align-self: flex-start;
  padding-top: 10px;
}
body.home .header:not(.scrolled) .logo-img {
  height: 115px;
}

/* Header variants for pages with non-hero tops */
.header.header-dark .logo-img {
  filter: none;
}

.header.header-dark .nav-link {
  color: var(--text-primary);
}

.header.header-dark .nav-link:hover,
.header.header-dark .nav-link.active {
  color: var(--copper);
}

.header.header-dark .nav-cta {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.header.header-dark .hamburger span {
  background: var(--navy);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

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

.nav-cta {
  margin-left: 1rem;
  padding: 0.625rem 1.5rem;
  background: var(--copper);
  color: var(--white);
  border: 2px solid var(--copper);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-base);
}

.nav-cta:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
  transform: translateY(-1px);
}

/* Mobile Navigation */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

.mobile-nav {
  display: none;
}

/* --- 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-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 35, 64, 0.85) 0%, rgba(12, 35, 64, 0.6) 50%, rgba(12, 35, 64, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: var(--header-height);
}

.hero-content .subtitle {
  color: var(--copper-light);
}

.hero-content .subtitle::before {
  background: var(--copper-light);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* Hero slide indicators */
.hero-indicators {
  display: flex;
  gap: 0.75rem;
  margin-top: 3rem;
}

.hero-indicator {
  width: 50px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.hero-indicator.active {
  background: rgba(255, 255, 255, 0.3);
}

.hero-indicator.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--copper-light);
  animation: indicatorFill 6s linear forwards;
}

@keyframes indicatorFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* Page Hero (shorter, for inner pages) */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.page-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(12, 35, 64, 0.88) 0%, rgba(12, 35, 64, 0.7) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: var(--header-height);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--copper-light);
}

.breadcrumb .separator {
  font-size: 0.75rem;
}

/* --- Trust Bar / Stats --- */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 3rem 0;
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Service Cards --- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.service-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.service-card-image .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 35, 64, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.service-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.service-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--copper);
  margin-top: 1.5rem;
  transition: gap var(--transition-fast);
}

.service-card:hover .card-link {
  gap: 0.75rem;
}

.card-link svg {
  width: 16px;
  height: 16px;
}

/* --- Content Blocks (alternating image/text sections) --- */
.content-block {
  padding: var(--section-padding) 0;
}

.content-block .grid-2 {
  gap: 5rem;
}

.content-block-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 500px;
}

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

.content-block-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.content-block-text h3 {
  margin-bottom: 1.5rem;
}

.content-block-text p {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.content-block-text ul {
  margin: 1.5rem 0;
}

.content-block-text li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.content-block-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--copper);
  border-radius: 50%;
}

/* --- Decorative accent bar on content blocks --- */
.accent-bar {
  width: 60px;
  height: 3px;
  background: var(--copper);
  margin-bottom: 2rem;
}

/* --- Testimonial --- */
.testimonial-section {
  background: var(--navy);
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.testimonial-section::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.testimonial-section::after {
  content: '';
  position: absolute;
  left: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.testimonial-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.testimonial-quote-icon {
  width: 48px;
  height: 48px;
  color: var(--copper);
  margin: 0 auto 2rem;
  opacity: 0.6;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.testimonial-author {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--copper-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.testimonial-role {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--off-white);
  padding: 5rem 0;
  text-align: center;
}

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

.cta-section p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* --- FAQ Accordion --- */
.faq-section {
  padding: var(--section-padding) 0;
}

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

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

.faq-item:first-child {
  border-top: 1px solid var(--gray-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--transition-fast);
  gap: 1rem;
}

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

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--copper);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-answer-inner {
  padding-bottom: 1.5rem;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.8;
}

.faq-answer ul {
  margin: 1rem 0;
}

.faq-answer li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--copper);
  border-radius: 50%;
}

/* --- Contact Form --- */
.contact-section {
  padding: var(--section-padding) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
}

.contact-info h3 {
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: var(--copper-muted);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 22px;
  height: 22px;
  color: var(--copper);
}

.contact-detail-text {
  padding-top: 0.25rem;
}

.contact-detail-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

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

.contact-detail-value a {
  color: var(--navy);
  transition: color var(--transition-fast);
}

.contact-detail-value a:hover {
  color: var(--copper);
}

.confidentiality-box {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 2rem;
  border-left: 4px solid var(--copper);
}

.confidentiality-box h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.confidentiality-box p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
}

.contact-form h3 {
  margin-bottom: 0.5rem;
}

.contact-form > p {
  margin-bottom: 2rem;
}

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

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

.form-row .form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group label .required {
  color: var(--copper);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.form-control:focus {
  background: var(--white);
  border-color: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-muted);
}

.form-control::placeholder {
  color: var(--gray-400);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  margin-top: 0.5rem;
}

.form-submit .btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 0.9375rem;
}

/* --- Project Types List --- */
.project-types {
  background: var(--navy);
  padding: var(--section-padding) 0;
  position: relative;
}

.project-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 2rem;
}

.project-type-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

.project-type-item::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--copper);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Values / Philosophy List --- */
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.value-icon {
  width: 40px;
  height: 40px;
  background: var(--copper-muted);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.value-icon svg {
  width: 20px;
  height: 20px;
  color: var(--copper);
}

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  margin-top: 1.5rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-logo {
  height: 72px;
  width: auto;
  opacity: 0.9;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--copper-light);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--copper);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--copper-light);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--copper);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

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

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

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

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* --- Thank You Page --- */
.thank-you-content {
  text-align: center;
  padding: var(--section-padding) 0;
}

.thank-you-content .check-circle {
  width: 80px;
  height: 80px;
  background: #E8F5E9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.thank-you-content .check-circle svg {
  width: 40px;
  height: 40px;
  color: #2E7D32;
}

.thank-you-content h2 {
  margin-bottom: 1rem;
}

.thank-you-content p {
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.thank-you-image {
  max-width: 800px;
  margin: 3rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

/* --- Services Detail Sections --- */
.service-detail {
  padding: var(--section-padding) 0;
  position: relative;
}

.service-detail:nth-child(even) {
  background: var(--off-white);
}

.service-detail .grid-2 {
  gap: 5rem;
}

.service-detail h3 {
  margin-bottom: 1.5rem;
}

.service-detail p {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.service-detail ul {
  margin: 1.5rem 0;
}

.service-detail li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.service-detail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--copper);
  border-radius: 50%;
}

/* --- Client Cards (Larger, alternating) --- */
.client-section {
  padding: var(--section-padding) 0;
}

.client-section:nth-child(even) {
  background: var(--off-white);
}

.client-section .grid-2 {
  gap: 5rem;
}

.client-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 480px;
}

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

/* --- Utility Classes --- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .grid-2 {
    gap: 3rem;
  }

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

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

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --header-height: 80px;
    --header-height-scrolled: 68px;
  }

  .logo-img {
    height: 64px;
  }

  .header.scrolled .logo-img {
    height: 54px;
  }

  body.home .header:not(.scrolled) .logo {
    align-self: flex-start;
    padding-top: 8px;
  }
  body.home .header:not(.scrolled) .logo-img {
    height: 90px;
  }

  .container, .container-wide {
    padding: 0 1.25rem;
  }

  /* Mobile navigation */
  .hamburger {
    display: flex;
  }

  nav {
    display: none;
  }

  .mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .mobile-nav.open {
    display: flex;
  }

  .mobile-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
  }

  .mobile-nav .nav-link::after {
    display: none;
  }

  .mobile-nav .nav-link:hover,
  .mobile-nav .nav-link.active {
    color: var(--copper-light);
  }

  .mobile-nav .nav-cta {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    padding: 0.875rem 2rem;
  }

  /* Grid adjustments */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

  /* Hero */
  .hero {
    min-height: 90vh;
  }

  .hero-content {
    padding: calc(var(--header-height) + 2rem) 1.25rem 2rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-description {
    font-size: 1.0625rem;
  }

  .btn-group {
    flex-direction: column;
  }

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

  /* Page Hero */
  .page-hero {
    height: 45vh;
    min-height: 320px;
  }

  /* Trust bar */
  .trust-bar .container {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Content blocks */
  .content-block-image {
    height: 300px;
  }

  .grid-2 .content-block-image:first-child {
    order: 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* Contact */
  .contact-form {
    padding: 2rem;
  }

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

  /* FAQ */
  .faq-question {
    font-size: 1rem;
    padding: 1.25rem 0;
  }

  /* Testimonial */
  .testimonial-text {
    font-size: 1.125rem;
  }

  /* Project types */
  .project-types-grid {
    grid-template-columns: 1fr;
  }

  /* Client images */
  .client-image {
    height: 300px;
  }

  /* Reverse order for alternating sections on mobile */
  .reverse-mobile {
    direction: ltr;
  }
  .reverse-mobile > *:first-child {
    order: 2;
  }
}

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

  .stat-item {
    min-width: 120px;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}
