/* ============================================================
   Self-hosted fonts — zero external requests
============================================================ */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-400.woff2') format('woff2');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   AMBAR LOPEZ — Design System v2
   Corporate · Charcoal & White · Professional
============================================================ */



/* ── Variables ────────────────────────────────────────────── */
:root {
  --bg:           #FFFFFF;
  --surface:      #F5F5F5;
  --dark:         #0F0F0F;
  --dark-2:       #1C1C1C;
  --text:         #1C1C1C;
  --muted:        #4A4A4A;
  --charcoal:     #2A2A2A;
  --border:       #E0E0E0;
  --border-dark:  #CCCCCC;
  --white:        #FFFFFF;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  4rem;
  --text-6xl:  6rem;

  --container-max: 1320px;
  --container-pad: clamp(1.5rem, 5vw, 4rem);
  --nav-h: 100px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 150ms;
  --base: 280ms;
  --slow: 500ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-synthesis: none;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: var(--charcoal); color: var(--white); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: clamp(5rem, 10vw, 9rem); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--white); }

/* ── Typography ───────────────────────────────────────────── */
.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.label--light { color: rgba(255,255,255,0.45); }

.heading-display {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, var(--text-6xl));
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.05;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rule {
  width: 2.5rem;
  height: 2px;
  background: var(--charcoal);
  margin-block: 1.5rem;
}

.rule--center { margin-inline: auto; }
.rule--light { background: rgba(255,255,255,0.3); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all var(--base) var(--ease);
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--dark);
  border-color: var(--dark);
  transform: translateY(-2px);
}

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

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

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

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

/* ── Navbar ───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--base), border-color var(--base), box-shadow var(--base);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo { height: 100px; width: auto; max-width: 200px; object-fit: contain; display: block; background: transparent; transition: opacity var(--fast); }
.nav-logo:hover { opacity: 0.7; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--charcoal);
  transition: width var(--base) var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active-link::after { width: 100%; }

.nav-cta {
  background: var(--charcoal) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.25rem;
  font-size: var(--text-xs) !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--charcoal);
  transition: all var(--base) !important;
}

.nav-cta:hover {
  background: var(--dark) !important;
  border-color: var(--dark) !important;
}

.nav-cta::after { display: none !important; }

/* ── Hamburger ────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 100%;
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: all var(--base) var(--ease);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile Menu ──────────────────────────────────────────── */
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--base);
  border-top: 1px solid var(--border);
}

.nav-mobile.open { opacity: 1; pointer-events: all; }

.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--fast);
}

.nav-mobile a:hover { color: var(--muted); }

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
  overflow: hidden;
  position: relative;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 4vw, 5rem) clamp(2rem, 4vw, 4rem) clamp(1.5rem, 5vw, var(--container-pad));
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-eyebrow::before {
  content: '';
  width: 2rem;
  height: 1.5px;
  background: var(--charcoal);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 2rem;
}

.hero-title span { display: block; }
.hero-title em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-meta-item {}
.hero-meta-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  display: block;
  line-height: 1;
}

.hero-meta-label {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.25rem;
  display: block;
}

.hero-right {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 3rem;
}

.hero-right-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-logo-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.hero-logo-img {
  width: clamp(200px, 28vw, 360px);
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-align: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  animation: fadeIn 1s ease 1.5s both;
}

.hero-scroll span {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--charcoal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── About ────────────────────────────────────────────────── */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.about-panel {
  background: var(--dark);
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}



.about-panel-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
}

.about-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,15,15,0.15) 0%,
    rgba(15,15,15,0.40) 45%,
    rgba(15,15,15,0.90) 100%
  );
  z-index: 0;
}

.about-panel-content { position: relative; z-index: 1; }

.about-panel-stat {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.about-panel-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: block;
}

.about-panel-text {
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

.about-content .label { display: block; margin-bottom: 1.25rem; }
.about-content h2 { margin-bottom: 1.5rem; }
.about-content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.85;
  font-weight: 300;
}

.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 2rem;
  border: 1px solid var(--border);
}

.about-list-item {
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background var(--fast);
}

.about-list-item:nth-child(even) { border-right: none; }
.about-list-item:nth-last-child(-n+2) { border-bottom: none; }
.about-list-item:hover { background: var(--surface); }

.about-list-dot {
  width: 5px; height: 5px;
  background: var(--charcoal);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Services ─────────────────────────────────────────────── */
#services { background: var(--surface); }

.section-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.section-header-left .label { display: block; margin-bottom: 1rem; }

.services-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--bg);
}

.services-tab {
  padding: 0.65rem 1.25rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--fast);
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
}

.services-tab:last-child { border-right: none; }

.services-tab:hover,
.services-tab.active {
  background: var(--charcoal);
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}






.service-card {
  background: var(--bg);
  padding: 2rem 1.75rem;
  transition: background var(--base);
  position: relative;
  overflow: hidden;
  display: none;
  cursor: default;
}

.service-card.visible { display: block; }

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--charcoal);
  transition: width var(--slow) var(--ease);
}

.service-card:hover { background: var(--surface); }
.service-card:hover::after { width: 100%; }

.service-icon {
  width: 40px; height: 40px;
  margin-bottom: 1.25rem;
  color: var(--charcoal);
  flex-shrink: 0;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ── Project Types ────────────────────────────────────────── */
#project-types { background: var(--dark); }

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.07);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.type-card {
  padding: 3.5rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
  transition: background var(--base);
}

.type-card:last-child { border-right: none; }
.type-card:hover { background: rgba(255,255,255,0.03); }

.type-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transition: transform var(--slow) var(--ease);
  transform-origin: left;
}

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

.type-index {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  display: block;
  margin-bottom: 2rem;
}

.type-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.type-card p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 300;
}

.type-list { display: flex; flex-direction: column; }

.type-list li {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  letter-spacing: 0.03em;
}

/* ── Stats ────────────────────────────────────────────────── */
#stats { background: var(--bg); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.stat-item {
  padding: 3.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background var(--base);
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--surface); }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  display: block;
  letter-spacing: -0.02em;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--muted);
}

.stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.75rem;
  display: block;
}

/* ── Process ──────────────────────────────────────────────── */
#process { background: var(--surface); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(3rem, 6vw, 5rem);
  border: 1px solid var(--border);
}

.process-step {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background var(--base);
}

.process-step:last-child { border-right: none; }
.process-step:hover { background: var(--bg); }

.step-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  display: block;
  margin-bottom: 1.5rem;
  transition: color var(--base);
}

.process-step:hover .step-number { color: var(--border-dark); }

.process-step h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  color: var(--text);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

/* ── Testimonials ─────────────────────────────────────────── */
#testimonials { background: var(--bg); overflow: hidden; }

.testimonials-track-wrap {
  overflow: hidden;
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.testimonials-track-wrap::before,
.testimonials-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.testimonials-track-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.testimonials-track-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.testimonials-track {
  display: flex;
  gap: 1px;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.testimonials-track:hover { animation-play-state: paused; }

.testimonial-card {
  width: 380px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.25rem;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1.25rem;
}

.star-icon {
  width: 14px; height: 14px;
  color: var(--charcoal);
  fill: var(--charcoal);
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.75rem;
  font-weight: 300;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 42px; height: 42px;
  background: var(--charcoal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
  display: block;
  letter-spacing: 0.02em;
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── Contact ──────────────────────────────────────────────── */
#contact { background: var(--surface); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.contact-info .label { display: block; margin-bottom: 1.25rem; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info > p {
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.85;
  font-weight: 300;
}

.contact-items { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); }

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--fast);
  background: var(--bg);
}

.contact-item:last-child { border-bottom: none; }
.contact-item:hover { background: var(--surface); }

.contact-item-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--charcoal);
}

.contact-icon-svg { width: 20px; height: 20px; }

.contact-item-label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.contact-item-value {
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--text);
}

/* ── Form ─────────────────────────────────────────────────── */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

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

.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font-size: var(--text-base);
  transition: border-color var(--fast), background var(--fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-weight: 400;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--charcoal);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 140px; margin-top: 1rem; }

.hp-field { display: none !important; }

.form-submit {
  width: 100%;
  padding: 1.1rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--charcoal);
  color: var(--white);
  border: 2px solid var(--charcoal);
  cursor: pointer;
  transition: all var(--base);
  margin-top: 1.5rem;
}

.form-submit:hover { background: var(--dark); border-color: var(--dark); }

.form-msg {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-msg.success { display: block; background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.form-msg.error   { display: block; background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ── Footer ───────────────────────────────────────────────── */
#footer { background: var(--dark); color: rgba(255,255,255,0.55); }

.footer-main {
  padding-block: 5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand img {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.85;
  max-width: 36ch;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}


/* -- Social Icons -------------------------------------------------- */
.footer-social {
  display: flex;
  gap: 0;
  margin-top: 2rem;
  border: 1px solid rgba(255,255,255,0.08);
  width: fit-content;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-right: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  transition: background var(--base), color var(--base);
  text-decoration: none !important;
}

.footer-social-link:last-child { border-right: none; }

.footer-social-link:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}

.footer-social-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.footer-col h3 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1.5rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0; border-top: 1px solid rgba(255,255,255,0.06); }

.footer-col a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--fast);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: block;
  font-weight: 300;
}

.footer-col a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
  padding-block: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.06em;
}

.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ── Reveal ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.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; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Performance ──────────────────────────────────────────── */
#about, #services, #project-types, #stats, #process, #testimonials, #contact {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

h1, h2, h3, h4 { text-wrap: balance; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { min-height: 420px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-panel { max-width: 520px; aspect-ratio: 3/2; }
  .types-grid { grid-template-columns: 1fr; }
  .type-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .type-card:last-child { border-bottom: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(3),
  .process-step:nth-child(4) { border-top: 1px solid var(--border); }
  .process-step:nth-child(4) { border-right: none; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer-brand { grid-column: 1 / -1; }
  .section-header { grid-template-columns: 1fr; }
  .services-tabs { flex-wrap: wrap; }
}

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

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

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--charcoal); }


/* ── Consolidated mobile fixes ────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-logo { height: 70px; max-width: 150px; }
  .hero-logo-img { width: 85%; max-width: 85%; }
  .hero-left { padding: 3rem var(--container-pad); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-meta { gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form { padding: 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
}

/* ── Accessibility: links distinguishable ─────────────────── */
p a, li a:not(.btn):not(.nav-cta) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -- Language Toggle --------------------------------------- */
.lang-toggle {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-dark);
  overflow: hidden;
  flex-shrink: 0;
  margin-left: 1.25rem;
  height: 36px;
}

.lang-toggle a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding: 0 1.1rem;
  transition: background var(--fast), color var(--fast);
  border-right: 1px solid var(--border-dark);
  text-decoration: none !important;
  line-height: 1;
  cursor: pointer;
}

.lang-toggle a:last-child { border-right: none; }

.lang-toggle a.active {
  background: var(--charcoal);
  color: var(--white);
}

.lang-toggle a:not(.active):hover {
  background: var(--surface);
  color: var(--text);
}

@media (max-width: 768px) {
  .lang-toggle {
    margin-left: 0;
    margin-right: 0.75rem;
    height: 32px;
  }
  .lang-toggle a {
    padding: 0 0.9rem;
    font-size: 0.75rem;
  }
}
