/* ========================================
   Erdbau Risonjic — Design System & Styles
   ======================================== */

/* --- Design Tokens --- */
:root {
  /* Primary */
  --color-charcoal: #2C3639;
  --color-forest: #3A5A40;
  --color-sandstone: #C9A96E;
  --color-terracotta: #B85C38;

  /* Backgrounds */
  --color-limestone: #F5F1EB;
  --color-sage: #E8EDDF;
  --color-deep: #1A1A2E;

  /* Text */
  --color-text-primary: #1A1A2E;
  --color-text-secondary: rgba(26,26,46,0.65);
  --color-text-on-dark: #F5F1EB;
  --color-text-muted: rgba(255,255,255,0.7);

  /* Functional */
  --color-error: #C0392B;
  --color-success: #27AE60;
  --color-lake: #4A7C8A;

  /* Hover states */
  --color-terracotta-hover: color-mix(in srgb, #B85C38, black 15%);
  --color-terracotta-active: color-mix(in srgb, #B85C38, black 25%);
  --color-forest-hover: color-mix(in srgb, #3A5A40, black 15%);
  --color-forest-light: color-mix(in srgb, #3A5A40 10%, transparent);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-30: 120px;
  --space-40: 160px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 6px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(44,54,57,0.06);
  --shadow-md: 0 4px 16px rgba(44,54,57,0.08);
  --shadow-lg: 0 8px 32px rgba(44,54,57,0.12);
  --shadow-xl: 0 16px 48px rgba(44,54,57,0.16);
  --shadow-sticky: 0 4px 12px rgba(0,0,0,0.15);

  /* Container */
  --container-sm: 640px;
  --container-md: 800px;
  --container-lg: 1200px;
  --container-xl: 1400px;

  /* Duration */
  --duration-instant: 100ms;
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-smooth: 500ms;
  --duration-reveal: 700ms;
  --duration-slow: 1000ms;

  /* Easing */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: auto; /* Lenis handles this */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-limestone);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-normal) var(--ease-out);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, .display-font {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.35;
}

.overline {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sandstone);
  line-height: 1.3;
}

.body-small {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.stat-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  color: var(--color-sandstone);
  line-height: 1;
}

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

.container--wide {
  max-width: var(--container-xl);
}

.container--narrow {
  max-width: var(--container-md);
}

section {
  position: relative;
}

.section-padding {
  padding: var(--space-30) 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease-smooth);
  z-index: 0;
}

.btn span,
.btn svg {
  position: relative;
  z-index: 1;
}

.btn--primary {
  background: var(--color-terracotta);
  color: #fff;
}
.btn--primary::before {
  background: var(--color-terracotta-hover);
}
.btn--primary:hover::before {
  transform: scaleX(1);
}
.btn--primary:hover {
  transform: scale(1.02);
}
.btn--primary:active {
  transform: scale(0.98);
}

.btn--secondary {
  background: transparent;
  border: 2px solid var(--color-terracotta);
  color: var(--color-terracotta);
}
.btn--secondary::before {
  background: var(--color-terracotta);
}
.btn--secondary:hover::before {
  transform: scaleX(1);
}
.btn--secondary:hover {
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn--ghost::before {
  background: #fff;
}
.btn--ghost:hover::before {
  transform: scaleX(1);
}
.btn--ghost:hover {
  color: var(--color-charcoal);
}

.btn:focus-visible {
  outline: 3px solid var(--color-sandstone);
  outline-offset: 3px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  color: var(--color-forest);
  font-size: 16px;
  transition: gap var(--duration-fast) var(--ease-out);
}
.arrow-link:hover {
  gap: var(--space-3);
}
.arrow-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-fast) var(--ease-out);
}
.arrow-link:hover svg {
  transform: translateX(4px);
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 90px;
  display: flex;
  align-items: center;
  transition: background var(--duration-normal), height var(--duration-normal), box-shadow var(--duration-normal);
}

.nav.scrolled {
  height: 72px;
  background: rgba(44, 54, 57, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sticky);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-12);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: #fff;
  z-index: 101;
}

.nav__logo svg {
  width: 40px;
  height: 40px;
}

.nav__logo-img {
  width: 200px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: width var(--duration-normal), filter var(--duration-normal);
}

.nav.scrolled .nav__logo-img {
  width: 160px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.nav__link {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
  transition: color var(--duration-normal) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-sandstone);
  border-radius: 1px;
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover {
  color: #fff;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__phone {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-sandstone);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__phone svg {
  width: 18px;
  height: 18px;
}

.nav__cta {
  padding: 10px 24px;
  font-size: 15px;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  z-index: 101;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

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

/* Mobile menu */
.nav__mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-10);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
  z-index: 99;
}

.nav__mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-link {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: #fff;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}

.nav__mobile-menu.active .nav__mobile-link {
  opacity: 1;
  transform: translateX(0);
}

.nav__mobile-menu.active .nav__mobile-link:nth-child(1) { transition-delay: 80ms; }
.nav__mobile-menu.active .nav__mobile-link:nth-child(2) { transition-delay: 160ms; }
.nav__mobile-menu.active .nav__mobile-link:nth-child(3) { transition-delay: 240ms; }
.nav__mobile-menu.active .nav__mobile-link:nth-child(4) { transition-delay: 320ms; }
.nav__mobile-menu.active .nav__mobile-link:nth-child(5) { transition-delay: 400ms; }

.nav__mobile-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms var(--ease-out) 500ms, transform 400ms var(--ease-out) 500ms;
}

.nav__mobile-menu.active .nav__mobile-contact {
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile-contact a {
  color: var(--color-sandstone);
  font-size: 18px;
  font-weight: 500;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  background: var(--color-charcoal);
}

.hero__slides {
  position: absolute;
  inset: 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__slide.active img {
  animation: kenBurns 7s ease-in-out forwards;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* Stronger overlay: full coverage so text is always readable */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(26,26,46,0.6) 0%, rgba(26,26,46,0.15) 35%, rgba(26,26,46,0.15) 50%, rgba(26,26,46,0.75) 100%);
}

/* Content positioned center-left with frosted card for guaranteed readability */
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0 var(--space-12);
}

.hero__content-inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  width: 100%;
}

.hero__card {
  background: rgba(26, 26, 46, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-12);
  max-width: 580px;
}

.hero__location {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sandstone);
  margin-bottom: var(--space-4);
}

.hero__tagline {
  color: #fff;
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: var(--space-8);
}

.hero__cta-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 17px;
}

.btn--lg svg {
  flex-shrink: 0;
}

/* WhatsApp button */
.btn--whatsapp {
  background: #25D366;
  color: #fff;
}
.btn--whatsapp::before {
  background: #1da851;
}
.btn--whatsapp:hover::before {
  transform: scaleX(1);
}
.btn--whatsapp:hover {
  transform: scale(1.02);
}

.hero__trust {
  margin-top: var(--space-5);
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero__scroll-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes scrollPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* Diagonal transition from hero to trust bar */
.hero__diagonal {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 4;
  line-height: 0;
}

.hero__diagonal svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   TRUST BAR
   ======================================== */
.trust-bar {
  background: var(--color-charcoal);
  position: relative;
  z-index: 5;
  padding: var(--space-12) 0;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.trust-bar__item {
  position: relative;
  padding: var(--space-6) var(--space-4);
}

.trust-bar__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.trust-bar__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto var(--space-3);
  color: var(--color-sandstone);
}

.trust-bar__icon svg {
  width: 100%;
  height: 100%;
}

.trust-bar__number {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--color-sandstone);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.trust-bar__label {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  background: var(--color-limestone);
  position: relative;
  overflow: hidden;
}

.services__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-16);
}

.services__header .overline {
  margin-bottom: var(--space-3);
}

.services__header h2 {
  margin-bottom: var(--space-4);
}

.services__header p {
  color: var(--color-text-secondary);
}

/* Isometric grid layout */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
  position: relative;
}

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

.service-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-smooth) var(--ease-out);
}

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

.service-card__icon {
  position: absolute;
  bottom: -24px;
  left: var(--space-6);
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.service-card__icon svg {
  width: 30px;
  height: 30px;
  color: var(--color-forest);
}

.service-card__body {
  padding: var(--space-10) var(--space-6) var(--space-6);
}

.service-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.service-card__desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

/* Diagonal divider */
.section-divider {
  position: relative;
  z-index: 2;
  line-height: 0;
  margin-top: -1px;
}

.section-divider svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   FULL-BLEED DIVIDER
   ======================================== */
.parallax-divider {
  position: relative;
  height: 50vh;
  min-height: 300px;
  overflow: hidden;
}

.parallax-divider img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  position: absolute;
  top: -15%;
  left: 0;
}

.parallax-divider__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,0.3);
}

.parallax-divider__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: var(--space-8);
}

.parallax-divider__text blockquote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  max-width: 700px;
  line-height: 1.3;
}

/* ========================================
   ABOUT / PHILOSOPHY
   ======================================== */
.about {
  background: var(--color-sage);
  position: relative;
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__image-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* Isometric decorative element behind image */
.about__image-wrap::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--color-sandstone);
  opacity: 0.15;
  border-radius: var(--radius-md);
  transform: rotate(15deg);
  z-index: -1;
}

.about__content .overline {
  margin-bottom: var(--space-3);
}

.about__content h2 {
  margin-bottom: var(--space-6);
}

.about__content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
  max-width: 520px;
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.about__value {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
}

.about__value-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-forest);
  margin-top: 2px;
}

.about__value-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

/* ========================================
   PROCESS TIMELINE
   ======================================== */
.process {
  background: var(--color-charcoal);
  color: var(--color-text-on-dark);
  position: relative;
  overflow: hidden;
}

.process__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-16);
}

.process__header .overline {
  margin-bottom: var(--space-3);
}

.process__header p {
  color: var(--color-text-muted);
}

.process__timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.process__line {
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-sandstone);
  opacity: 0.3;
  z-index: 0;
}

.process__line-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--color-sandstone);
  transition: width 1.5s var(--ease-smooth);
}

.process__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.process__circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  position: relative;
}

.process__circle span {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: #fff;
}

.process__circle::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-sandstone);
  opacity: 0.3;
}

.process__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: #fff;
}

.process__desc {
  font-size: 15px;
  color: var(--color-text-muted);
  max-width: 160px;
  line-height: 1.5;
}

.process__cta {
  text-align: center;
  margin-top: var(--space-16);
}

/* ========================================
   FEATURED PROJECTS
   ======================================== */
.projects {
  background: var(--color-limestone);
  position: relative;
}

.projects__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-12);
}

.projects__header-text .overline {
  margin-bottom: var(--space-3);
}

/* Asymmetric grid: golden ratio rows */
.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1.618fr;
  grid-template-rows: auto auto;
  gap: var(--space-6);
}

.projects__grid .project-card:nth-child(3) {
  grid-column: 1 / -1;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--color-charcoal);
  display: flex;
  flex-direction: column;
}

.project-card__image {
  position: relative;
  aspect-ratio: 3/2;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.project-card__image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-smooth) var(--ease-out), filter var(--duration-smooth) var(--ease-out);
}

.project-card:hover .project-card__image img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: var(--space-8);
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__info {
  transform: translateY(20px);
  transition: transform var(--duration-normal) var(--ease-out);
}

.project-card:hover .project-card__info {
  transform: translateY(0);
}

.project-card__category {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sandstone);
  margin-bottom: var(--space-2);
}

.project-card__title {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: #fff;
}

.project-card:nth-child(3) .project-card__image {
  aspect-ratio: 21/9;
}

/* ========================================
   MARQUEE TICKER
   ======================================== */
.marquee {
  background: var(--color-charcoal);
  padding: var(--space-10) 0;
  overflow: hidden;
  position: relative;
}

.marquee__row {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  width: max-content;
}

.marquee__row--left {
  animation: marqueeLeft 70s linear infinite;
}

.marquee__row--right {
  animation: marqueeRight 70s linear infinite;
}

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

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

.marquee__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee__tag svg {
  width: 16px;
  height: 16px;
  color: var(--color-sandstone);
  flex-shrink: 0;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  background: var(--color-charcoal);
  position: relative;
}

.testimonials__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.testimonials__header .overline {
  margin-bottom: var(--space-3);
}

.testimonials__header h2 {
  color: #fff;
  margin-bottom: var(--space-4);
}

.testimonials__stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.testimonials__stars svg {
  width: 22px;
  height: 22px;
  color: var(--color-sandstone);
}

.testimonials__rating-text {
  font-size: 15px;
  color: var(--color-text-muted);
}

.testimonials__slider {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  min-height: 220px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duration-smooth) var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.testimonial-slide__quote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-style: italic;
  color: var(--color-text-on-dark);
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: var(--space-6);
}

.testimonial-slide__quote::before {
  content: '\201E';
  font-size: 3rem;
  color: var(--color-sandstone);
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: var(--space-2);
}

.testimonial-slide__author {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-sandstone);
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: background var(--duration-normal);
  padding: 0;
}

.testimonials__dot.active {
  background: var(--color-sandstone);
}

.testimonials__google-link {
  display: block;
  text-align: center;
  margin-top: var(--space-6);
  color: var(--color-sandstone);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--duration-normal);
}

.testimonials__google-link:hover {
  color: #fff;
}

/* ========================================
   CONTACT CTA
   ======================================== */
.cta-section {
  background: var(--color-limestone);
  position: relative;
  overflow: hidden;
}

.cta-section__inner {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.cta-section__inner .overline {
  margin-bottom: var(--space-3);
}

.cta-section__inner h2 {
  margin-bottom: var(--space-5);
}

.cta-section__inner p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  font-size: 18px;
}

.cta-section__buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Isometric decorative background shape */
.cta-section__decor {
  position: absolute;
  top: 50%;
  right: -80px;
  transform: translateY(-50%) rotate(15deg);
  width: 300px;
  height: 300px;
  background: var(--color-sandstone);
  opacity: 0.05;
  border-radius: var(--radius-xl);
}

.cta-section__decor--left {
  right: auto;
  left: -80px;
  transform: translateY(-50%) rotate(-15deg);
  background: var(--color-forest);
}

/* ========================================
   FOOTER
   ======================================== */
.pre-footer {
  background: var(--color-charcoal);
  padding: var(--space-12) 0;
}

.pre-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.pre-footer__text {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: #fff;
}

.footer {
  background: var(--color-deep);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand .nav__logo {
  margin-bottom: var(--space-4);
}

.footer__tagline {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: var(--space-6);
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: var(--space-4);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: all var(--duration-normal) var(--ease-out);
}

.footer__social a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: scale(1.1);
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

.footer__heading {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-sandstone);
  margin-bottom: var(--space-5);
}

.footer__links li {
  margin-bottom: var(--space-3);
}

.footer__links a {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  transition: color var(--duration-normal);
  position: relative;
}

.footer__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width var(--duration-normal);
}

.footer__links a:hover {
  color: #fff;
}

.footer__links a:hover::after {
  width: 100%;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: 15px;
  color: rgba(255,255,255,0.65);
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-sandstone);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__contact-item a {
  color: rgba(255,255,255,0.65);
  transition: color var(--duration-normal);
}

.footer__contact-item a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color var(--duration-normal);
}

.footer__legal a:hover {
  color: rgba(255,255,255,0.8);
}

/* ========================================
   STICKY MOBILE CTA
   ======================================== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 98;
  background: rgba(44,54,57,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-3) var(--space-5);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-sticky);
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-out);
  gap: var(--space-3);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  flex: 1;
  font-size: 15px;
  padding: 12px 16px;
}

/* ========================================
   REVEAL ANIMATIONS (GSAP-controlled)
   ======================================== */

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .nav__logo-img {
    width: 160px;
  }

  .nav.scrolled .nav__logo-img {
    width: 140px;
  }

  .container {
    padding: 0 var(--space-8);
  }

  .section-padding {
    padding: var(--space-24) 0;
  }

  .nav__links {
    display: none;
  }

  .nav__phone {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__cta {
    display: none;
  }

  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .trust-bar__item:nth-child(2)::after {
    display: none;
  }

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

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .process__timeline {
    flex-direction: column;
    gap: var(--space-8);
    max-width: 400px;
    padding-left: var(--space-12);
  }

  .process__line {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 2px;
    height: 100%;
  }

  .process__step {
    flex-direction: row;
    text-align: left;
    gap: var(--space-5);
  }

  .process__circle {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .process__circle span {
    font-size: 20px;
  }

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

  .project-card:nth-child(3) .project-card__image {
    aspect-ratio: 3/2;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .nav {
    height: 70px;
  }

  .nav.scrolled {
    height: 60px;
  }

  .nav__logo-img {
    width: 140px;
  }

  .nav.scrolled .nav__logo-img {
    width: 120px;
  }

  body {
    font-size: 16px;
  }

  .container {
    padding: 0 var(--space-5);
  }

  .section-padding {
    padding: var(--space-20) 0;
  }

  .hero__content {
    padding: 80px var(--space-4) calc(var(--space-20) + 60px);
    align-items: flex-start;
  }

  .hero__card {
    padding: var(--space-8) var(--space-6);
    max-width: 100%;
    text-align: center;
  }

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

  .hero__cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .btn--lg {
    padding: 14px 24px;
    font-size: 16px;
  }

  .hero__trust {
    justify-content: center;
  }

  .hero__scroll-indicator {
    display: none;
  }

  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .trust-bar__item::after {
    display: none;
  }

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

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

  .process__timeline {
    padding-left: var(--space-10);
  }

  .projects__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .marquee__tag {
    font-size: 13px;
    padding: var(--space-2) var(--space-4);
  }

  .pre-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-section__buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-section__buttons .btn {
    width: 100%;
  }

  .sticky-cta {
    display: flex;
  }

  /* Disable Ken Burns on mobile */
  .hero__slide.active img {
    animation: none;
  }
}

@media (max-width: 480px) {
  .nav {
    height: 60px;
  }

  .nav.scrolled {
    height: 56px;
  }

  .nav__logo-img {
    width: 120px;
  }

  .nav.scrolled .nav__logo-img {
    width: 100px;
  }

  .trust-bar__number {
    font-size: 1.75rem;
  }

  .trust-bar__grid {
    gap: var(--space-3);
  }
}

/* --- Subpage: Service Detail Pages --- */

.subpage-hero {
  position: relative;
  height: 50vh;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.subpage-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.subpage-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26,26,46,0.75) 0%, rgba(26,26,46,0.2) 60%);
}
.subpage-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-12) 0 var(--space-16);
  width: 100%;
}
.subpage-hero__content .container {
  max-width: var(--container-lg, 1200px);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-4);
}
.breadcrumb a {
  color: var(--color-sandstone);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #fff;
}
.breadcrumb__sep {
  opacity: 0.4;
}
.subpage-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  margin: 0;
}

.service-intro {
  padding: var(--space-20) 0;
}
.service-intro__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.service-intro__image {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
}
.service-intro__content .overline {
  margin-bottom: var(--space-3);
}
.service-intro__content h2 {
  margin-bottom: var(--space-4);
}
.service-intro__content p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.service-detail {
  padding: var(--space-16) 0;
}
.service-detail:nth-child(even) {
  background: var(--color-sage);
}
.service-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.service-detail--reversed .service-detail__grid {
  direction: rtl;
}
.service-detail--reversed .service-detail__grid > * {
  direction: ltr;
}
.service-detail__image {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service-detail__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.service-detail__content h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  color: var(--color-charcoal);
  margin-bottom: var(--space-4);
}
.service-detail__content p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.service-detail__bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.service-detail__bullets li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--color-text-primary);
}
.service-detail__bullets svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-forest);
}

.service-gallery {
  padding: var(--space-20) 0;
}
.service-gallery h2 {
  text-align: center;
  margin-bottom: var(--space-12);
}
.service-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}
.service-gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service-gallery__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.service-gallery__item:hover img {
  transform: scale(1.04);
}

.related-services {
  padding: var(--space-20) 0;
  background: var(--color-limestone);
}
.related-services__header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.related-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .subpage-hero {
    height: 40vh;
    min-height: 280px;
  }
  .subpage-hero h1 {
    font-size: 2rem;
  }
  .service-intro__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .service-detail__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .service-detail--reversed .service-detail__grid {
    direction: ltr;
  }
  .service-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-services__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

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

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

  .hero__slide.active img {
    animation: none;
  }

  .marquee__row--left,
  .marquee__row--right {
    animation: none;
  }
}
