/* ── TesArm S.R.O. — Design System ── */
:root {
  --bronze:       #B8860B;
  --gold:         #C9A227;
  --gold-light:   #E8C872;
  --brown-dark:   #2B1B17;
  --brown-mid:    #3D2914;
  --brown-warm:   #5C3D2E;
  --cream:        #F5F0EB;
  --cream-muted:  #EDE6DC;
  --charcoal:     #1A1412;
  --grey:         #8A8078;
  --white:        #FFFFFF;
  --whatsapp:     #25D366;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(43, 27, 23, 0.08);
  --shadow-md: 0 8px 32px rgba(43, 27, 23, 0.12);
  --shadow-lg: 0 16px 64px rgba(43, 27, 23, 0.18);
  --shadow-gold: 0 4px 24px rgba(201, 162, 39, 0.25);

  --nav-height: 80px;
  --topbar-height: 0px;
  --header-offset: var(--nav-height);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--brown-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ── Typography ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--brown-dark);
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 560px;
  line-height: 1.75;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--bronze));
  color: var(--brown-dark);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(245, 240, 235, 0.35);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(245, 240, 235, 0.1);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: var(--nav-height);
  transition: var(--transition);
}

.nav.is-menu-open {
  background: var(--charcoal);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.nav.scrolled,
.page-projects .nav,
.page-legal .nav {
  background: rgba(26, 20, 18, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.nav-logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--cream);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(245, 240, 235, 0.75);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.lang-switch,
.mobile-lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-lang-switch {
  display: none;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 30px;
  padding: 0.25rem 0.55rem;
  border: 0;
  border-radius: var(--radius-full);
  color: rgba(245, 240, 235, 0.58);
  background: transparent;
  font: 700 0.7rem var(--font-body);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn svg {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-btn:hover,
.lang-btn.is-active {
  color: var(--brown-dark);
  background: var(--gold-light);
}

.nav-logo,
.nav-toggle {
  position: relative;
  z-index: 2;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile menu overlay ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: var(--charcoal);
  padding-top: calc(var(--header-offset) + env(safe-area-inset-top));
  padding-bottom: env(safe-area-inset-bottom);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
}

.mobile-menu-inner a {
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cream);
  transition: var(--transition);
}

.mobile-menu-inner a:hover,
.mobile-menu-inner a:active {
  color: var(--gold-light);
  padding-left: 0.5rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--charcoal);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease-in-out;
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  animation: heroKenBurns 7s ease-out forwards;
}

.hero-slide.is-leaving {
  opacity: 0;
}

@keyframes heroKenBurns {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(43, 27, 23, 0.92) 0%, rgba(26, 20, 18, 0.82) 50%, rgba(43, 27, 23, 0.78) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(201, 162, 39, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  pointer-events: none;
  z-index: 2;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 32px;
  height: 3px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: rgba(245, 240, 235, 0.25);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 48px;
}

.hero-dot:hover {
  background: rgba(245, 240, 235, 0.5);
}

.hero-content {
  position: relative;
  z-index: 4;
  padding: calc(var(--header-offset) + 4rem) 0 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.125rem;
  color: rgba(245, 240, 235, 0.65);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat span {
  font-size: 0.8125rem;
  color: rgba(245, 240, 235, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-logo-ring {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 1;
}

.hero-logo-ring::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.2);
  animation: spin 30s linear infinite;
}

.hero-logo-ring::after {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px dashed rgba(201, 162, 39, 0.1);
  animation: spin 45s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-logo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(201, 162, 39, 0.2), var(--shadow-lg);
}

.hero-float-card {
  position: absolute;
  background: rgba(26, 20, 18, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
}

.hero-float-card.top {
  top: 10%;
  right: -5%;
  animation: float 4s ease-in-out infinite;
}

.hero-float-card.bottom {
  bottom: 15%;
  left: -8%;
  animation: float 4s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-float-card .card-accent {
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.hero-float-card strong {
  display: block;
  font-size: 0.875rem;
  color: var(--cream);
}

.hero-float-card span {
  font-size: 0.75rem;
  color: var(--grey);
}

/* ── About ── */
.about {
  padding: 7rem 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(26, 20, 18, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-image-badge img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.about-image-badge strong {
  display: block;
  color: var(--cream);
  font-size: 0.9375rem;
}

.about-image-badge span {
  font-size: 0.8125rem;
  color: var(--grey);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.about-feature {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(43, 27, 23, 0.06);
  transition: var(--transition);
}

.about-feature:hover {
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.about-feature-icon,
.contact-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(184, 134, 11, 0.08));
  border-radius: var(--radius-sm);
  color: var(--bronze);
}

.icon-svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-feature h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.about-feature p {
  font-size: 0.8125rem;
  color: var(--grey);
  line-height: 1.5;
}

/* ── Services ── */
.services {
  padding: 7rem 0;
  background: var(--brown-dark);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-header .section-title { color: var(--cream); }
.services-header .section-desc { margin-inline: auto; color: rgba(245, 240, 235, 0.55); }
.services-header .section-label { justify-content: center; }
.services-header .section-label::before { display: none; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 162, 39, 0.12);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.2), transparent);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: rgba(245, 240, 235, 0.55);
  line-height: 1.65;
}

.service-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(201, 162, 39, 0.08);
  line-height: 1;
}

/* ── Gallery ── */
.gallery {
  padding: 7rem 0;
  background: var(--cream-muted);
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.project-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(43, 27, 23, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-group > span {
  margin-right: 0.25rem;
  color: var(--grey);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-btn {
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(43, 27, 23, 0.1);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--brown-dark);
  font: 600 0.8rem var(--font-body);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--gold);
  background: var(--brown-dark);
  color: var(--gold-light);
}

.gallery-item.is-filtered {
  display: none;
}

.project-empty {
  padding: 3rem 1rem;
  color: var(--grey);
  text-align: center;
  font-weight: 600;
}

.gallery-video {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(43, 27, 23, 0.06);
  box-shadow: var(--shadow-sm);
}

.project-video-section {
  position: relative;
  padding: 6rem 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 162, 39, 0.1), transparent 34%),
    var(--brown-dark);
}

.project-video-section .gallery-video {
  margin-bottom: 0;
}

.video-player {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--charcoal);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
}

.video-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--charcoal);
}

.gallery-video-caption h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 0.75rem;
}

.gallery-video-caption p {
  font-size: 0.9375rem;
  color: var(--grey);
  line-height: 1.7;
  max-width: 360px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 27, 23, 0.7) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover::after { opacity: 1; }

.gallery-item-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cream);
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-label {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 20, 18, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 50%;
  color: var(--gold-light);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: var(--transition);
  pointer-events: none;
}

.gallery-item:hover .gallery-item-zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-row: span 2; }

.projects-hero {
  padding: calc(var(--header-offset, 7.5rem) + 3.5rem) 0 2.5rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(201, 162, 39, 0.12), transparent 36%),
    var(--cream-muted);
}

.projects-hero .section-title {
  margin-bottom: 0.85rem;
}

.projects-hero .section-desc {
  max-width: 640px;
  text-align: left;
}

.legal-content {
  max-width: 720px;
  display: grid;
  gap: 1.35rem;
  padding-bottom: 4.5rem;
}

.legal-content h2 {
  margin: 0 0 0.4rem;
  color: var(--brown-dark);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.legal-content p {
  color: var(--brown-warm);
  line-height: 1.7;
}

.projects-page {
  padding-top: 1.5rem;
}

.projects-board,
.projects-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.projects-preview {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(43, 27, 23, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
}

.project-card-link,
.project-card-media {
  color: inherit;
}

.project-card-media {
  position: relative;
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--charcoal);
  cursor: zoom-in;
}

.project-card-link .project-card-media {
  cursor: pointer;
}

.project-card-media.has-one {
  grid-template-columns: 1fr;
  min-height: 280px;
}

.project-card-media.has-two {
  grid-template-columns: 1.45fr 1fr;
  min-height: 260px;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.project-card-media.has-two img:last-child {
  border-left: 3px solid var(--white);
}

.project-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.15rem 1.25rem 1.3rem;
}

.project-card-body h2,
.project-card-body h3 {
  color: var(--brown-dark);
  font: 800 1.15rem var(--font-display);
}

.project-card-work {
  color: var(--grey);
  font-size: 0.84rem;
  line-height: 1.45;
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-card-meta span {
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(201, 162, 39, 0.1);
  color: var(--brown-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-card.is-filtered {
  display: none;
}

.projects-teaser-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

.nav-links a.is-current {
  color: var(--gold-light);
}

/* ── Careers ── */
.careers {
  padding: 7rem 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 162, 39, 0.1), transparent 30%),
    var(--charcoal);
}

.careers-header {
  max-width: 680px;
  margin-bottom: 3rem;
}

.careers .section-title {
  color: var(--cream);
}

.careers .section-desc {
  color: rgba(245, 240, 235, 0.58);
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.job-card {
  position: relative;
  min-height: 300px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  transition: var(--transition);
}

.job-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

.job-number {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: rgba(201, 162, 39, 0.1);
  font: 900 3rem var(--font-display);
}

.job-card h3 {
  position: relative;
  margin-bottom: 0.75rem;
  color: var(--gold-light);
  font: 800 1.35rem var(--font-display);
}

.job-card p {
  margin-bottom: 1.25rem;
  color: rgba(245, 240, 235, 0.58);
  font-size: 0.9rem;
}

.job-card li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.15rem;
  color: rgba(245, 240, 235, 0.78);
  font-size: 0.84rem;
}

.job-card li::before {
  content: '';
  position: absolute;
  top: 0.85rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.job-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-top: auto;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: var(--radius-sm);
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.06);
  font: 700 0.85rem var(--font-body);
  cursor: pointer;
  transition: var(--transition);
}

.job-apply-btn:hover,
.job-apply-btn.is-active {
  color: var(--brown-dark);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.job-apply-btn .icon-svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.job-apply-btn:hover .icon-svg {
  transform: translateX(4px);
}

.job-application {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  padding: 2.5rem;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius-lg);
  background: var(--brown-dark);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.job-application.is-open {
  opacity: 1;
  transform: translateY(0);
}

.job-application[hidden],
.team-fields[hidden] {
  display: none;
}

.job-form-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 50%;
  color: rgba(245, 240, 235, 0.7);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: var(--transition);
}

.job-form-close:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  transform: rotate(90deg);
}

.job-application-copy h3 {
  margin-bottom: 0.75rem;
  color: var(--cream);
  font: 800 1.75rem var(--font-display);
}

.job-application-copy > p {
  color: rgba(245, 240, 235, 0.58);
}

.job-location {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 700;
}

.job-form-offer {
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(201, 162, 39, 0.05);
}

.job-form-offer > strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--gold-light);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.job-form-offer ul {
  display: grid;
  gap: 0.55rem;
}

.job-form-offer li {
  position: relative;
  padding-left: 1.25rem;
  color: rgba(245, 240, 235, 0.68);
  font-size: 0.84rem;
  line-height: 1.45;
}

.job-form-offer li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 800;
}

.job-form {
  display: grid;
  gap: 1rem;
}

.applicant-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0;
  border: 0;
}

.applicant-type legend {
  grid-column: 1 / -1;
  margin-bottom: 0.35rem;
  color: rgba(245, 240, 235, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.type-option {
  position: relative;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 0.75rem !important;
  min-height: 64px;
  padding: 0.75rem;
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: var(--transition);
}

.type-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}

.type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-check {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(245, 240, 235, 0.35);
  border-radius: 6px;
  transition: var(--transition);
}

.type-option input:checked + .type-check {
  border-color: var(--gold);
  background: var(--gold);
}

.type-option input:checked + .type-check::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--brown-dark);
  border-bottom: 2px solid var(--brown-dark);
  transform: rotate(-45deg) translateY(-1px);
}

.type-option strong,
.type-option small {
  display: block;
}

.type-option strong {
  color: var(--cream);
  font-size: 0.85rem;
}

.type-option small {
  margin-top: 0.1rem;
  color: rgba(245, 240, 235, 0.45);
  font-size: 0.7rem;
  font-weight: 500;
}

.team-fields {
  padding: 1rem;
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.team-fields-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
}

.add-member-btn,
.remove-member-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  color: var(--gold-light);
  background: transparent;
  font: 700 0.75rem var(--font-body);
  cursor: pointer;
}

.add-member-btn .icon-svg,
.remove-member-btn .icon-svg {
  width: 16px;
  height: 16px;
}

.team-members-list {
  display: grid;
  gap: 0.65rem;
}

.team-member-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.65rem;
}

.team-member-row input {
  min-width: 0;
}

.remove-member-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 240, 235, 0.12);
  border-radius: var(--radius-sm);
  color: rgba(245, 240, 235, 0.55);
}

.remove-member-btn:hover {
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.35);
}

.job-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.job-form label {
  display: grid;
  gap: 0.45rem;
  color: rgba(245, 240, 235, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.job-form input,
.job-form select,
.job-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(201, 162, 39, 0.16);
  border-radius: var(--radius-sm);
  outline: 0;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
  font: 400 0.95rem var(--font-body);
  transition: var(--transition);
}

.file-field {
  display: grid;
  gap: 0.45rem;
  color: rgba(245, 240, 235, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.file-drop {
  position: relative;
  display: grid;
  gap: 0.4rem;
  min-height: 92px;
  padding: 1rem 1.05rem;
  border: 1px dashed rgba(201, 162, 39, 0.38);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: var(--transition);
}

.file-drop:hover,
.file-drop.is-dragover,
.file-drop:focus-within {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

.job-form input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.file-drop-title {
  color: var(--gold-light);
  font-size: 0.92rem;
}

.file-drop small {
  color: rgba(245, 240, 235, 0.48);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.45;
}

.file-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(201, 162, 39, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 240, 235, 0.78);
  font-size: 0.8rem;
  font-weight: 600;
}

.file-list li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-remove {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  color: var(--gold-light);
  background: transparent;
  font: 700 0.75rem var(--font-body);
  cursor: pointer;
}

.file-remove:hover {
  color: #fca5a5;
}

.job-form select option {
  color: var(--brown-dark);
  background: var(--cream);
}

.job-form textarea {
  min-height: 110px;
  resize: vertical;
}

.job-form input:focus,
.job-form select:focus,
.job-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.job-form .btn {
  justify-content: center;
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  min-height: 1.4em;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
}

.form-status.is-error {
  color: #fca5a5;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(10, 8, 7, 0.92);
  backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 162, 39, 0.25);
  background: rgba(26, 20, 18, 0.85);
  color: var(--cream);
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(201, 162, 39, 0.2);
  border-color: var(--gold);
  color: var(--gold-light);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-figure {
  position: relative;
  z-index: 1;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.is-open .lightbox-figure {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(88vh - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cream);
  text-align: center;
}

.lightbox-counter {
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(245, 240, 235, 0.5);
  letter-spacing: 0.05em;
}

body.lightbox-open {
  overflow: hidden;
}

/* ── CTA Banner ── */
.cta-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A227' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--cream);
  max-width: 500px;
}

.cta-inner h2 .accent {
  color: var(--gold-light);
}

.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Contact ── */
.contact {
  padding: 7rem 0;
  background: var(--cream);
}

.contact-grid {
  max-width: 640px;
  margin-inline: auto;
}

.contact-grid .section-desc {
  max-width: none;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(43, 27, 23, 0.06);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: var(--shadow-sm);
}

.contact-card-link {
  width: 100%;
  color: inherit;
  cursor: pointer;
}

.contact-card-link:hover {
  transform: translateY(-2px);
}

.contact-card-link:focus-visible {
  outline: 3px solid rgba(201, 162, 39, 0.35);
  outline-offset: 3px;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
}

.contact-card strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.contact-card a, .contact-card span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown-dark);
  transition: var(--transition);
  overflow-wrap: anywhere;
}

.contact-card a:hover { color: var(--bronze); }

/* ── Footer ── */
.footer {
  background: var(--charcoal);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(201, 162, 39, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: rgba(245, 240, 235, 0.5);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul a,
.footer-col ul span {
  font-size: 0.9375rem;
  color: rgba(245, 240, 235, 0.55);
  transition: var(--transition);
}

.footer-col ul a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(245, 240, 235, 0.35);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.site-credit {
  position: relative;
  display: block;
  width: fit-content;
  margin: 1.35rem auto 0;
  color: rgba(245, 240, 235, 0.42);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.site-credit span {
  background: linear-gradient(90deg, #c9a227 0%, #f5e6a6 40%, #c9a227 70%, #f5e6a6 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: inherit;
  transition: color 0.3s ease;
}

.site-credit::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transform: translateX(-50%);
  transition: width 0.35s ease;
}

.site-credit:hover {
  color: var(--gold-light);
  transform: translateY(-3px);
  text-shadow: 0 0 16px rgba(201, 162, 39, 0.45);
}

.site-credit:hover span {
  color: transparent;
  animation: credit-shimmer 1.2s linear infinite;
}

.site-credit:hover::after {
  width: 100%;
}

@keyframes credit-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  color: rgba(245, 240, 235, 0.6);
  transition: var(--transition);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--brown-dark);
}

/* ── Floating WhatsApp ── */
.floating-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  font-size: 1.75rem;
}

.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

.floating-wa .tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--brown-dark);
  color: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.floating-wa:hover .tooltip { opacity: 1; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.footer-cookies {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: rgba(245, 240, 235, 0.42);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-cookies:hover {
  color: var(--gold-light);
}

.cookie-banner {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  left: auto;
  z-index: 1300;
  width: min(360px, calc(100% - 1.5rem));
  padding: 0.9rem 1rem 0.85rem;
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 14px;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.cookie-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.18);
  flex: 0 0 auto;
}

.cookie-banner-icon svg {
  width: 16px;
  height: 16px;
}

.cookie-banner-head strong {
  color: var(--brown-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.cookie-banner-text {
  margin: 0 0 0.75rem;
  color: var(--grey);
  font-size: 0.78rem;
  line-height: 1.45;
}

.cookie-policy-link {
  color: var(--gold);
  font-weight: 700;
}

.cookie-policy-link:hover {
  color: var(--bronze);
}

.cookie-banner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.cookie-banner-actions .cookie-btn {
  min-height: 34px;
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
}

body.has-cookie-banner .floating-wa {
  bottom: 13.5rem;
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(26, 20, 18, 0.55);
  backdrop-filter: blur(6px);
}

.cookie-overlay[hidden] {
  display: none;
}

.cookie-modal {
  width: min(560px, 100%);
  padding: 2rem 1.75rem 1.5rem;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
}

.cookie-modal h2 {
  margin: 0 0 0.35rem;
  color: var(--brown-dark);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
}

.cookie-lead {
  margin: 0 0 1.25rem;
  color: var(--grey);
  font-size: 0.95rem;
}

.cookie-options {
  display: grid;
  gap: 0.7rem;
}

.cookie-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.cookie-option.is-locked {
  cursor: default;
}

.cookie-option span:first-child {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.cookie-option strong {
  color: var(--brown-dark);
  font-size: 0.98rem;
  font-weight: 700;
}

.cookie-option small {
  color: var(--grey);
  font-size: 0.82rem;
  line-height: 1.4;
}

.cookie-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(138, 128, 120, 0.45);
  border-radius: 4px;
  background: var(--white);
  position: relative;
}

.cookie-option input:checked + .cookie-check {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.cookie-option input:checked + .cookie-check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--brown-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.cookie-btn {
  appearance: none;
  min-height: 42px;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-btn-ghost {
  background: var(--white);
  border: 1px solid rgba(43, 27, 23, 0.16);
  color: var(--brown-dark);
}

.cookie-btn-ghost:hover {
  border-color: var(--gold);
  background: var(--cream-muted);
  color: var(--brown-dark);
}

.cookie-btn-save {
  border: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--bronze));
  color: var(--brown-dark);
  box-shadow: var(--shadow-gold);
}

.cookie-btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
}

/* ── Mobile top contact bar ── */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1110;
  height: calc(var(--topbar-height) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 0.75rem 0;
  background: rgba(14, 10, 9, 0.98);
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
  align-items: center;
  gap: 0.5rem;
}

.mobile-topbar-btn {
  position: relative;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 34px;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transform: scale(1);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
    border-color 0.25s ease,
    box-shadow 0.35s ease,
    background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-topbar-btn svg {
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.mobile-topbar-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.05) 70%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 0;
}

.mobile-topbar-btn.is-tapped {
  transform: scale(1.07);
}

.mobile-topbar-btn.is-tapped svg {
  transform: scale(1.12);
}

.mobile-topbar-btn.is-tapped::after {
  animation: topbar-shine 0.65s ease forwards;
}

.mobile-topbar-call {
  background: rgba(201, 162, 39, 0.1);
  border-color: rgba(201, 162, 39, 0.3);
  color: var(--gold-light);
  white-space: nowrap;
}

.mobile-topbar-call.is-tapped {
  background: rgba(201, 162, 39, 0.22);
  border-color: var(--gold-light);
  box-shadow: 0 0 18px rgba(201, 162, 39, 0.45), 0 4px 12px rgba(201, 162, 39, 0.2);
}

.mobile-topbar-wa {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.28);
  color: #6ee7a0;
}

.mobile-topbar-wa.is-tapped {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25D366;
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(37, 211, 102, 0.15);
}

@keyframes topbar-shine {
  from { left: -120%; }
  to   { left: 160%; }
}

/* ── Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s 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; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo-ring { width: 220px; }
  .hero-float-card { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .jobs-grid { grid-template-columns: 1fr 1fr; }
  .job-application { grid-template-columns: 1fr; }
  .gallery-video { grid-template-columns: 1fr; }
  .gallery-header .section-desc { text-align: left !important; }
  .projects-board,
  .projects-preview { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; height: 280px; }
  .gallery-item:nth-child(2) { grid-row: span 1; height: 280px; }
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) { height: 220px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
    --topbar-height: 44px;
    --header-offset: calc(var(--nav-height) + var(--topbar-height));
  }

  html {
    scroll-padding-top: calc(var(--header-offset) + env(safe-area-inset-top) + 8px);
  }

  body {
    -webkit-tap-highlight-color: rgba(201, 162, 39, 0.15);
  }

  .container {
    width: min(1200px, 90vw);
  }

  /* Nav + topbar */
  .mobile-topbar {
    display: flex;
  }

  .nav {
    top: calc(var(--topbar-height) + env(safe-area-inset-top));
  }

  .nav.scrolled,
  .nav {
    background: rgba(26, 20, 18, 0.98);
    backdrop-filter: blur(16px);
  }

  .nav-links { display: none; }

  .mobile-menu {
    display: block;
  }

  .mobile-lang-switch {
    display: flex;
    align-self: flex-start;
    margin-bottom: 1rem;
  }

  .mobile-lang-switch .lang-btn {
    min-height: 36px;
    padding-inline: 0.8rem;
  }

  .nav-logo img {
    width: 40px;
    height: 40px;
  }

  .nav-logo span {
    font-size: 1.1rem;
  }

  .nav-cta .btn-outline,
  .nav-cta > .lang-switch { display: none; }
  .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: calc(var(--header-offset) + env(safe-area-inset-top) + 1.5rem) 0 3.5rem;
    gap: 2rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hero-text {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    margin-bottom: 2rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .hero-stats {
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
  }

  .hero-stat {
    flex: 1;
    min-width: 90px;
  }

  .hero-stat strong {
    font-size: 1.5rem;
  }

  .hero-stat span {
    font-size: 0.6875rem;
  }

  .hero-logo-ring {
    width: min(180px, 55vw);
  }

  .hero-dots {
    bottom: 1rem;
  }

  .hero-dot {
    width: 24px;
  }

  .hero-dot.is-active {
    width: 36px;
  }

  /* Sections */
  .about,
  .services,
  .gallery,
  .careers,
  .contact {
    padding: 4rem 0;
  }

  .cta-banner {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .section-desc {
    font-size: 0.975rem;
  }

  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
  }

  .project-filters {
    align-items: stretch;
    padding: 1rem;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group > span {
    width: 100%;
  }

  .gallery-video {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .gallery-video-caption h3 {
    font-size: 1.25rem;
  }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 2rem 1.5rem; }
  .jobs-grid { grid-template-columns: 1fr; }
  .job-card { min-height: auto; }
  .job-application {
    gap: 2rem;
    padding: 1.5rem;
  }
  .job-form .form-row { grid-template-columns: 1fr; }
  .applicant-type { grid-template-columns: 1fr; }
  .team-fields-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .job-form input,
  .job-form select,
  .job-form textarea { font-size: 16px; }

  .about-features { grid-template-columns: 1fr; }
  .about-image { aspect-ratio: 16 / 10; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-item,
  .gallery-item:first-child,
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
    height: 220px;
  }

  .gallery-item:first-child {
    height: 260px;
  }

  .gallery-item-label {
    opacity: 1;
    transform: none;
  }

  .gallery-item-zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    width: 44px;
    height: 44px;
  }

  .projects-hero {
    padding-top: calc(var(--header-offset, 7rem) + 1.5rem);
  }

  .project-card-media.has-two,
  .project-card-media.has-one {
    min-height: 220px;
  }

  .project-card-media img {
    min-height: 220px;
  }

  /* Lightbox mobile */
  .lightbox {
    padding: 0;
  }

  .lightbox-figure {
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    justify-content: center;
    padding: 3.5rem 0 5rem;
  }

  .lightbox-img {
    max-width: 100vw;
    max-height: calc(100vh - 8rem);
    border-radius: 0;
  }

  .lightbox-caption {
    padding: 0 1.25rem;
    font-size: 0.875rem;
  }

  .lightbox-counter {
    top: auto;
    bottom: 1.25rem;
    font-size: 0.75rem;
  }

  .lightbox-close {
    top: calc(0.75rem + env(safe-area-inset-top));
    right: 0.75rem;
    width: 44px;
    height: 44px;
  }

  .lightbox-nav {
    top: auto;
    bottom: calc(3.5rem + env(safe-area-inset-bottom));
    transform: none;
    width: 44px;
    height: 44px;
  }

  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }

  /* CTA & Contact */
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-inner h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  /* Floating WA hidden on mobile — topbar handles contact */
  .floating-wa { display: none; }

  .cookie-modal {
    padding: 1.4rem 1.1rem 1.15rem;
  }

  .cookie-actions {
    flex-direction: column-reverse;
  }

  .cookie-actions .cookie-btn {
    width: 100%;
  }

  .cookie-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    width: min(320px, calc(100% - 1.5rem));
    padding: 0.8rem 0.85rem 0.75rem;
  }

  .btn {
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .hero-stats {
    gap: 0.75rem;
  }

  .hero-stat strong {
    font-size: 1.25rem;
  }
}
