/**
 * STUDIO56 — Homepage
 * Page-specific styles. tokens.css must load first.
 */


/* ─── NAV LOGO ─────────────────────────────────────────────────────────────── */

.nav-logo {
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.nav-logo-he {
  font-family: var(--font-he);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-mineral);
}

.nav-logo-num {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 500;
  color: var(--c-mineral);
}

.nav.scrolled .nav-logo-he,
.nav.scrolled .nav-logo-num { color: var(--text); }


/* ─── NAV LANGUAGE SWITCHER ────────────────────────────────────────────────── */

.nav-lang { border-inline-start: 1px solid var(--c-ash); padding-inline-start: var(--sp-5); }

.nav-lang-link {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--dur-sm) var(--ease);
}

.nav-lang-link:hover { color: var(--text); }


/* ─── NAV MOBILE TOGGLE ────────────────────────────────────────────────────── */

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  color: var(--c-mineral);
}

/* Dark when scrolled or when menu is open (overlay is light bg) */
.nav.scrolled .nav-mobile-toggle,
.nav-mobile-toggle[aria-expanded="true"] {
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-mobile-toggle { display: flex; align-items: center; margin-inline-start: var(--sp-3); }
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--dur-md) var(--ease), opacity var(--dur-sm) var(--ease);
}

.burger { position: relative; }
.burger::before,
.burger::after { content: ''; position: absolute; inset-inline-start: 0; }
.burger::before { top: -7px; }
.burger::after  { top:  7px; }

[aria-expanded="true"] .burger { background: transparent; }
[aria-expanded="true"] .burger::before { transform: rotate(45deg); top: 0; }
[aria-expanded="true"] .burger::after  { transform: rotate(-45deg); top: 0; }


/* ─── MOBILE NAV ───────────────────────────────────────────────────────────── */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-md) var(--ease);
}

/* Animate in when hidden attr is removed */
.mobile-nav:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

/* Override browser default [hidden]=display:none so CSS can control visibility */
.mobile-nav[hidden] { display: flex; }

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-7);
  text-align: center;
  position: relative;
  padding: var(--sp-8) var(--sp-6);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.mobile-nav-link {
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--dur-sm) var(--ease);
}

.mobile-nav-link:hover { color: var(--text-2); }

.mobile-nav-link--cta {
  font-weight: 400;
  border-block-end: 1px solid var(--c-ash);
  padding-block-end: 2px;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-3);
  padding: var(--sp-2);
  position: absolute;
  top: var(--sp-4);
  inset-inline-end: var(--sp-4);
  line-height: 1;
}

.mobile-nav-close:hover { color: var(--text); }

.mobile-nav-lang {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-decoration: none;
  border-block-end: 1px solid var(--c-ash);
  padding-block-end: 1px;
}

.mobile-nav-lang:hover { color: var(--text); }


/* ─── MOBILE NAV FOOTER (phone + social icons) ─────────────────────────────── */

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding-block-start: var(--sp-5);
  border-block-start: 1px solid var(--c-border-sub);
  width: 100%;
}

.mobile-nav-phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color var(--dur-sm) var(--ease);
}

.mobile-nav-phone-link:hover { color: var(--text); }

.mobile-nav-social {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.mobile-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--dur-sm) var(--ease);
}

.mobile-social-link:hover { color: var(--text); }


/* ─── HERO BODY (video overlay content) ────────────────────────────────────── */

.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--sp-9) var(--grid-margin);
  max-width: calc(var(--container-max) + var(--grid-margin) * 2);
  margin-inline: auto;
  text-align: center;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ash);
  margin-block-end: var(--sp-5);
}

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 3.8rem);
  font-weight:300;
  text-align: center;
  line-height: 1.06;
  margin:auto;
  letter-spacing: -0.03em;
  color: var(--c-mineral);
  max-width:20ch;
  margin-block-end: var(--sp-5);
}

.hero-desc {
  margin: auto;
  text-align:center;
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  font-weight: 300;
  line-height: 1.72;
  color: rgba(242, 237, 229, 0.66);
  max-width: 46ch;
  margin-block-end: var(--sp-7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-block-end: var(--sp-5);
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--c-mineral);
  color: var(--c-depth);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-sm) var(--ease);
}

.btn-hero-primary:hover { background: var(--c-greige); }

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border: 1px solid rgba(242, 237, 229, 0.30);
  color: var(--c-mineral);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease);
}

.btn-hero-ghost:hover {
  border-color: rgba(242, 237, 229, 0.60);
  color: var(--c-greige);
}

.hero-avail {
  margin: auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  font-weight: 400;
  color: rgba(242, 237, 229, 0.38);
  letter-spacing: 0.02em;
}

.hero-avail-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5CAD7A;
  flex-shrink: 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(242, 237, 229, 0.28);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
}

.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(242, 237, 229, 0.40), transparent);
  animation: scroll-line 2.6s ease-in-out infinite;
}

@keyframes scroll-line {

  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  65%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@media (max-width: 640px) {
  .hero-body { padding-block-end: var(--sp-10); }
  .hero-title { font-size: clamp(2.2rem, 8.5vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-scroll-indicator { display: none; }
}


/* ─── SECTION LABEL ────────────────────────────────────────────────────────── */

/* Defined in tokens.css. RTL-specific override here. */

/* BUG FIX: In RTL, flex-direction: row-reverse alone correctly moves
   the rule line to the end (right side in LTR, left side in RTL visual flow).
   Adding order:1 to ::before REVERSES this — so we use only row-reverse. */
[dir="rtl"] .section-label {
  flex-direction: row-reverse;
}

/* Note: NO order:1 override on ::before — that caused the line to appear on wrong side */


/* ─── SECTION INTRO ────────────────────────────────────────────────────────── */

.section-intro {
  margin-block-end: var(--sp-8);
  max-width: 600px;
}

.section-sub {
  margin-block-start: var(--sp-4);
  font-size: var(--text-body-l);
  font-weight: 300;
  color: var(--text-2);
  line-height: var(--leading-body);
}


/* ─── PROJECT FILTERS ──────────────────────────────────────────────────────── */

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-block-end: var(--sp-7);
}


/* ─── PROJECT GRID ─────────────────────────────────────────────────────────── */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8) var(--sp-5);
  margin-block-end: var(--sp-7);
}

.project-grid-featured {
  grid-column: 1 / 3;
}

.project-grid-featured .project-card-image-wrap {
  aspect-ratio: 16 / 9;
}

/* Hidden project items (filter state) */
.project-grid [data-category][hidden] {
  display: none;
}

@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid-featured { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .project-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .project-grid-featured { grid-column: 1; }
}

.projects-more {
  padding-block-start: var(--sp-4);
}


/* ─── PROCESS ──────────────────────────────────────────────────────────────── */

.process-list {
  counter-reset: process-step;
  display: flex;
  flex-direction: column;
  margin-block-start: var(--sp-8);
}

.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 var(--sp-5);
  padding-block: var(--sp-7);
  border-block-end: 1px solid var(--c-border-sub);
  counter-increment: process-step;
}

.process-step:last-child { border-block-end: none; }

.process-step-number {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--text-3);
  padding-block-start: 5px;
}

.process-step-number::before {
  content: "0" counter(process-step);
}

@media (max-width: 640px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: var(--sp-3) 0;
    padding-block: var(--sp-5);
    padding-inline: var(--sp-4);
  }
}


/* ─── PROCESS LAYOUT ────────────────────────────────────────────────────────── */

.process-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 0 var(--sp-10);
  align-items: start;
}

.process-heading {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-6));
}

/* Stacked cards — start hidden, JS adds .visible on scroll */
.process-step,
.why-item {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.process-step.visible,
.why-item.visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .process-step, .why-item { opacity: 1; }
}

@media (max-width: 900px) {
  .process-layout { grid-template-columns: 1fr; gap: var(--sp-7); }
  .process-heading { position: static; }
  .process-step { position: static; box-shadow: none; }
  .process-list { margin-block-start: 0; }
}


/* ─── WHY STUDIO56 ─────────────────────────────────────────────────────────── */

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--sp-10);
  align-items: start;
}

.why-intro {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-6));
  align-self: start;
}

@media (max-width: 900px) {
  .why-layout { grid-template-columns: 1fr; gap: var(--sp-7); }
  .why-intro { position: static; }
  .why-item { position: static; box-shadow: none; }
}

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

.why-item {
  position: sticky;
  padding: var(--sp-6);
  background: var(--bg);
}

.why-item:nth-child(1) { top: calc(var(--nav-height) + 24px); z-index: 1; }
.why-item:nth-child(2) { top: calc(var(--nav-height) + 36px); z-index: 2; }
.why-item:nth-child(3) { top: calc(var(--nav-height) + 48px); z-index: 3; }
.why-item:nth-child(4) { top: calc(var(--nav-height) + 60px); z-index: 4; }

.why-item-title {
  font-size: var(--text-h3);
  font-weight: 400;
  color: var(--text);
  margin-block-end: var(--sp-3);
}

.why-item-desc {
  font-size: var(--text-body-s);
  color: var(--text-2);
  line-height: 1.72;
}


/* ─── TEAM SECTION ──────────────────────────────────────────────────────────── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6) var(--sp-5);
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .team-grid { gap: var(--sp-5) var(--sp-3); }
}

.team-card-image {
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: var(--c-greige);
  margin-block-end: var(--sp-4);
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-lg) var(--ease);
}

.team-card:hover .team-card-image img {
  transform: scale(1.025);
}

.team-card-name {
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--text);
  margin-block-end: var(--sp-1);
}

.team-card-role {
  font-size: var(--text-caption);
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 0.04em;
}

:lang(he) .team-card-role {
  letter-spacing: 0;
}


/* ─── STATS ────────────────────────────────────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8) var(--sp-5);
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.stat-number {
  font-family: var(--font-en);
  font-size: var(--text-stat);
  font-weight: 300;
  line-height: 1.0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 160px;
}

:lang(he) .stat-label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}


/* ─── TESTIMONIALS ─────────────────────────────────────────────────────────── */

.testimonials-header {
  margin-block-end: var(--sp-8);
}

.testimonials-header .section-label {
  margin-block-end: var(--sp-4);
}

.testimonials-header .text-display-m {
  max-width: 440px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding: var(--sp-7) var(--sp-6);
  background: var(--bg-alt);
}

.testimonial-quote {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
}

/* Decorative quote mark — big version handled via tokens.css ::before (position: absolute) */
[dir="rtl"] .testimonial-quote::before { content: '\201D'; }
[dir="ltr"] .testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after { content: none; }

.testimonial-name {
  font-size: var(--text-body-s);
  font-weight: 500;
  color: var(--text);
}

.testimonial-detail {
  font-size: var(--text-caption);
  color: var(--text-3);
  margin-block-start: var(--sp-1);
}


/* ─── CTA SECTION ──────────────────────────────────────────────────────────── */

.cta-section {
  padding-block: var(--sp-11);
}

/* Two-column grid: copy (right in RTL) + form (left in RTL) */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}

@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
}

/* Label override for dark background */
.cta-label {
  color: rgba(242, 237, 229, 0.45) !important;
}

.cta-label::before {
  background: rgba(242, 237, 229, 0.20) !important;
}

.cta-section .text-display-l {
  color: var(--c-mineral);
  margin-block-end: var(--sp-5);
}

.cta-sub {
  font-size: var(--text-body-l);
  font-weight: 300;
  line-height: 1.70;
  color: rgba(242, 237, 229, 0.60);
  margin-block-end: var(--sp-6);
}

/* Quick contact: WhatsApp button + phone link */
.cta-quick {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-block-start: var(--sp-6);
}

.cta-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background var(--dur-sm) var(--ease), transform 0.15s var(--ease);
}

.cta-wa-btn:hover {
  background: #1fba5a;
  color: #fff;
  transform: translateY(-1px);
}

.cta-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(242, 237, 229, 0.60);
  text-decoration: none;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color var(--dur-sm) var(--ease);
}

.cta-phone-cta:hover { color: var(--c-mineral); }

/* Form wrap — subtle card to frame the secondary action */
.cta-form-wrap {
  background: rgba(242, 237, 229, 0.05);
  border: 1px solid rgba(242, 237, 229, 0.11);
  border-radius: var(--radius-sm);
  padding: var(--sp-7) var(--sp-6);
}

.cta-form-intro {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(242, 237, 229, 0.36);
  margin-block-end: var(--sp-5);
}

:lang(he) .cta-form-intro {
  text-transform: none;
  letter-spacing: 0.04em;
}

.form-optional {
  font-size: 11px;
  font-weight: 400;
  color: rgba(242, 237, 229, 0.28);
  margin-inline-start: 5px;
}

/* Dark form inputs */
.form-input--dark,
.form-textarea--dark {
  background: rgba(242, 237, 229, 0.06);
  border-color: rgba(242, 237, 229, 0.18);
  color: var(--c-mineral);
}

.form-input--dark::placeholder,
.form-textarea--dark::placeholder {
  color: rgba(242, 237, 229, 0.30);
}

.form-input--dark:focus,
.form-textarea--dark:focus {
  outline: none;
  border-color: rgba(242, 237, 229, 0.50);
}

.cta-section .form-label {
  color: rgba(242, 237, 229, 0.45);
}

/* Form field error state */
.form-field--error .form-input,
.form-field--error .form-input--dark {
  border-color: #C4785A !important;
}

.form-error {
  display: block;
  font-size: 12px;
  color: #C4A47A;
  margin-block-start: var(--sp-2);
}

.form-hint {
  display: block;
  font-size: 12px;
  color: rgba(242, 237, 229, 0.35);
  margin-block-start: var(--sp-2);
}

/* Form actions */
.cta-form-actions {
  margin-block-start: var(--sp-5);
}

/* Form success state */
.form-success {
  padding-block: var(--sp-8);
}

.form-success-title {
  font-size: var(--text-h2);
  font-weight: 300;
  color: var(--c-mineral);
  margin-block-end: var(--sp-3);
  line-height: 1.30;
}

.form-success-sub {
  font-size: var(--text-body);
  font-weight: 300;
  color: rgba(242, 237, 229, 0.60);
  line-height: 1.65;
}

/* Disable state while submitting */
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 640px) {
  .cta-section { padding-block: var(--sp-9); }
  .cta-form-actions { flex-direction: column; align-items: flex-start; }
}


/* ─── FOOTER ───────────────────────────────────────────────────────────────── */

.footer {
  background: var(--bg-dark);
  color: var(--c-mineral);
  padding-block: var(--sp-10);
  padding-inline: var(--grid-margin);
}

.footer-grid {
  max-width: var(--max-content);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-8);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

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

.footer-logo { text-decoration: none; }

.footer-logo-text {
  font-family: var(--font-he);
  font-size: 18px;
  font-weight: 300;
  color: var(--c-mineral);
  letter-spacing: 0.03em;
}

.footer-tagline {
  margin-block-start: var(--sp-4);
  font-size:12px;
  font-weight: 300;
  color: rgba(242, 237, 229, 0.50);
  line-height: 1.75;
}

.footer-heading {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 237, 229, 0.38);
  margin-block-end: var(--sp-5);
}

:lang(he) .footer-heading { text-transform: none; letter-spacing: 0; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-link {
  font-size: var(--text-body-s);
  color: rgba(242, 237, 229, 0.65);
  text-decoration: none;
  transition: color var(--dur-sm) var(--ease);
}

.footer-link:hover { color: var(--c-mineral); }

.footer-bottom {
  max-width: var(--max-content);
  margin-inline: auto;
  margin-block-start: var(--sp-9);
  padding-block-start: var(--sp-6);
  border-block-start: 1px solid rgba(196, 189, 181, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  font-size: 12px;
  color: rgba(242, 237, 229, 0.30);
}


/* ─── CTA TRUST SIGNALS ──────────────────────────────────────────────────────── */

.cta-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  margin-block: var(--sp-5) var(--sp-7);
}

.cta-trust li {
  font-size: 13px;
  font-weight: 400;
  color: rgba(242, 237, 229, 0.42);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-trust li::before {
  content: '✓';
  font-size: 11px;
  color: rgba(242, 237, 229, 0.28);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .cta-trust { gap: var(--sp-2) var(--sp-5); }
}


/* ─── SCROLL PROGRESS BAR ───────────────────────────────────────────────────── */

.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  z-index: calc(var(--z-nav) + 1);
  pointer-events: none;
  background: transparent;
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--c-driftwood);
  transition: width 0.1s linear;
}


/* ─── SECTION LABEL LINE DRAW ───────────────────────────────────────────────── */

.section-intro .section-label::before,
.why-intro .section-label::before {
  width: 0;
  transition: width 0.55s var(--ease-out) 0.38s;
}

.section-intro.visible .section-label::before,
.why-intro.visible .section-label::before {
  width: 24px;
}


/* ─── STAGGERED GRID REVEALS ────────────────────────────────────────────────── */

.team-grid .team-card:nth-child(2) { transition-delay: 90ms; }
.team-grid .team-card:nth-child(3) { transition-delay: 180ms; }
.team-grid .team-card:nth-child(4) { transition-delay: 270ms; }

.stats-grid .stat:nth-child(2) { transition-delay: 100ms; }
.stats-grid .stat:nth-child(3) { transition-delay: 200ms; }
.stats-grid .stat:nth-child(4) { transition-delay: 300ms; }

.project-grid > li:nth-child(2) { transition-delay: 80ms; }
.project-grid > li:nth-child(3) { transition-delay: 160ms; }
.project-grid > li:nth-child(4) { transition-delay: 80ms; }
.project-grid > li:nth-child(5) { transition-delay: 160ms; }


/* ─── PROJECT IMAGE CLIP REVEAL ─────────────────────────────────────────────── */

.project-card-image-wrap {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1) 0.06s;
}

.project-grid li.visible .project-card-image-wrap {
  clip-path: inset(0% 0 0 0);
}

/* Image also zooms out on entrance, then settles before hover can scale it again */
.project-grid li:not(.visible) .project-card-image {
  transform: scale(1.08);
  transition: transform 1.4s var(--ease-out);
}


/* ─── SCROLL ANIMATIONS UPGRADE ─────────────────────────────────────────────── */

/* Process / Why cards — translateY + scale on entrance */
.process-step,
.why-item {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

.process-step.visible,
.why-item.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .process-step, .why-item { opacity: 1; transform: none; }
  .project-card-image-wrap { clip-path: none; }
  .section-intro .section-label::before,
  .why-intro .section-label::before { width: 24px; transition: none; }
}


/* ─── FLOATING CONTACT WIDGET ────────────────────────────────────────────────── */

.float-contact {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 28;
  display: flex;
  flex-direction: column-reverse; /* phone above, WhatsApp on bottom */
  align-items: center;
  gap: 10px;
  /* Entrance: slide up after 1.2s (content should be loaded) */
  animation: float-enter 0.4s 1.2s ease both;
}

@keyframes float-enter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.float-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.float-btn:hover,
.float-btn:focus-visible {
  transform: scale(1.08);
  outline: none;
}

/* WhatsApp button — larger, primary action */
.float-btn--wa {
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.32);
}

.float-btn--wa:hover {
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.48);
}

/* Pulse ring — draws attention without being aggressive */
.float-btn--wa::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.36);
  animation: float-pulse 2.8s ease-out infinite;
}

@keyframes float-pulse {
  0%   { opacity: 1; transform: scale(1); }
  65%  { opacity: 0; transform: scale(1.4); }
  100% { opacity: 0; }
}

/* Phone button — smaller, secondary */
.float-btn--phone {
  width: 44px;
  height: 44px;
  background: var(--bg-dark);
  color: var(--c-mineral);
  box-shadow: 0 3px 12px rgba(46, 43, 40, 0.22);
}

.float-btn--phone:hover {
  color: var(--c-mineral);
  box-shadow: 0 5px 18px rgba(46, 43, 40, 0.32);
}

/* Periodic ring — fires every 5s to draw attention */
.float-btn--phone svg {
  transform-origin: center;
  animation: phone-ring 5s 3s ease-in-out infinite;
}

@keyframes phone-ring {
  0%, 78%, 100% { transform: rotate(0deg); }
  80%  { transform: rotate(22deg); }
  84%  { transform: rotate(-20deg); }
  88%  { transform: rotate(16deg); }
  92%  { transform: rotate(-11deg); }
  96%  { transform: rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .float-btn--phone svg { animation: none; }
}

/* Tooltip label — appears on hover, positioned to the inline-start side */
.float-btn-label {
  position: absolute;
  inset-inline-end: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--c-depth);
  color: var(--c-mineral);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.float-btn:hover .float-btn-label,
.float-btn:focus-visible .float-btn-label {
  opacity: 1;
}

@media (max-width: 768px) {
  .float-contact {
    bottom: 20px;
    inset-inline-end: 16px;
  }
  .float-btn-label { display: none; }
  .float-btn--wa  { width: 52px; height: 52px; }
  .float-btn--phone { width: 40px; height: 40px; }
}

.footer-legal {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
}

@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
}


/* ─── MOBILE REFINEMENTS ────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  /* Tighten two-column → single-column gaps */
  .process-layout { gap: var(--sp-5); }
  .why-layout     { gap: var(--sp-5); }

  /* Why items — reduce heavy padding on narrow screens */
  .why-item { padding: var(--sp-5) var(--sp-4); }

  /* Testimonials — less padding, breathes better in 1-col layout */
  .testimonial { padding: var(--sp-6) var(--sp-4); }
  .testimonials-header { margin-block-end: var(--sp-5); }

  /* Stats — row gap was 64px on mobile, bring it down */
  .stats-grid { gap: var(--sp-6) var(--sp-4); }

  /* Section intros */
  .section-intro { margin-block-end: var(--sp-5); }
}

@media (max-width: 480px) {
  /* Hero CTA — full width on small phones for easier tapping */
  .btn-hero-primary,
  .btn-hero-ghost {
    width: 100%;
    justify-content: center;
  }

  /* Why items — even tighter at 320–480px */
  .why-item { padding: var(--sp-4); }

  /* Testimonial quote icon — slightly smaller on very small screens */
  .testimonial-quote { padding-block-start: 44px; }
}


/* ─── FOOTER MOBILE ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .footer {
    padding-block: var(--sp-7);
  }

  .footer-grid {
    gap: var(--sp-5);
  }

  .footer-bottom {
    margin-block-start: var(--sp-5);
    padding-block-start: var(--sp-4);
  }
}


/* ─── FORM MOBILE ───────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  /* 16px minimum prevents iOS from auto-zooming on focus */
  .form-input,
  .form-textarea,
  .form-input--dark,
  .form-textarea--dark {
    font-size: 16px;
    padding: 15px 14px;
  }

  /* More visible borders on dark bg at small sizes */
  .form-input--dark,
  .form-textarea--dark {
    border-color: rgba(242, 237, 229, 0.26);
  }

  /* Full-width primary action */
  .cta-section .btn-primary {
    width: 100%;
    justify-content: center;
    padding-block: 16px;
    font-size: 15px;
    letter-spacing: 0.05em;
  }

  /* Stack form actions with more breathing room */
  .cta-form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-4);
  }

  /* CTA section mobile */
  .cta-form-wrap { padding: var(--sp-5) var(--sp-4); }
  .cta-sub { margin-block-end: var(--sp-4); font-size: var(--text-body); }
  .cta-trust { gap: var(--sp-2) var(--sp-5); margin-block: var(--sp-4) var(--sp-5); }
  .cta-quick { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .cta-wa-btn { width: 100%; justify-content: center; padding: 16px 22px; }
}
