:root {
  --navy: #0a1628;
  --navy-light: #132744;
  --navy-mid: #1a3358;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-glow: rgba(201, 162, 39, 0.35);
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --whatsapp: #25d366;
  --shadow-sm: 0 4px 20px rgba(10, 22, 40, 0.08);
  --shadow: 0 16px 40px -12px rgba(10, 22, 40, 0.18);
  --shadow-lg: 0 28px 60px -18px rgba(10, 22, 40, 0.28);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
  background: var(--gray-100);
  color: #1e293b;
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: calc(80px + var(--safe-bottom));
}

img, video { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }

.container {
  padding-left: max(1rem, var(--safe-left));
  padding-right: max(1rem, var(--safe-left));
}

/* ========== Navbar ========== */
.navbar-custom {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.65rem 0;
  transition: var(--transition);
  border-bottom: 2px solid rgba(201, 162, 39, 0.25);
  min-height: var(--header-h);
}

.navbar-custom.scrolled {
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
}

.navbar-custom .navbar-brand {
  font-weight: 800;
  font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  color: var(--white) !important;
  line-height: 1.3;
}

.navbar-custom .brand-gold { color: var(--gold); }

.navbar-custom .navbar-toggler {
  border: 2px solid rgba(201, 162, 39, 0.5);
  padding: 0.45rem 0.65rem;
}

.navbar-custom .navbar-toggler:focus {
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.navbar-custom .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1rem !important;
  border-radius: 10px;
  transition: var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--gold) !important;
  background: rgba(201, 162, 39, 0.12);
}

.navbar-custom .navbar-collapse {
  margin-top: 0.75rem;
}

.navbar-custom .btn-gold-nav {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  min-height: 48px;
  font-size: 1rem;
}

@media (min-width: 992px) {
  .navbar-custom .navbar-collapse { margin-top: 0; }
  .navbar-custom .btn-gold-nav {
    width: auto;
    margin-top: 0;
    margin-right: 0;
  }
  .navbar-custom .nav-link { padding: 0.5rem 1rem !important; }
}

/* ========== Buttons ========== */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy) !important;
  font-weight: 700;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  transition: var(--transition);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--gold-glow);
  color: var(--navy) !important;
}

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--navy) !important;
  background: transparent;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.6rem 1.3rem;
  transition: var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy) !important;
}

/* ========== Hero ========== */
.hero-section {
  min-height: min(92vh, 900px);
  min-height: min(92dvh, 900px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(160deg, rgba(10,22,40,0.94) 0%, rgba(19,39,68,0.85) 50%, rgba(10,22,40,0.9) 100%),
    url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920&h=1080&fit=crop') center/cover no-repeat;
  color: var(--white);
  position: relative;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201,162,39,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(60px, 12vw, 100px);
  background: linear-gradient(transparent, var(--gray-100));
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 162, 39, 0.18);
  border: 1px solid rgba(201, 162, 39, 0.6);
  color: var(--gold-light);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: clamp(0.75rem, 2.5vw, 0.9rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s ease;
}

.hero-title {
  font-size: clamp(1.55rem, 5.5vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
  animation: fadeUp 0.9s ease;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  opacity: 0.92;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
  animation: fadeUp 1s ease;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.75rem;
  animation: fadeUp 1.1s ease;
}

.btn-whatsapp-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--whatsapp);
  color: white !important;
  padding: 0.95rem 1.5rem;
  border-radius: 60px;
  font-weight: 700;
  font-size: clamp(0.9rem, 3vw, 1.05rem);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  min-height: 52px;
  width: 100%;
  max-width: 340px;
  animation: pulseWa 2.5s infinite 1.5s;
}

.btn-whatsapp-hero:hover {
  transform: scale(1.03);
  color: white !important;
  background: #20ba5a;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.4);
  color: white !important;
  padding: 0.9rem 1.4rem;
  border-radius: 60px;
  font-weight: 700;
  font-size: clamp(0.85rem, 2.8vw, 1rem);
  min-height: 52px;
  width: 100%;
  max-width: 340px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.22);
  color: white !important;
  border-color: var(--gold);
}

@media (min-width: 480px) {
  .hero-actions { flex-direction: row; }
  .btn-whatsapp-hero,
  .btn-hero-secondary { width: auto; min-width: 200px; }
}

/* ========== Home rich sections ========== */
.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 0.7rem;
}

.home-intro-section {
  margin-top: clamp(-2.2rem, -4vw, -1rem);
  position: relative;
  z-index: 3;
}

.home-intro-card {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 28px;
  padding: clamp(1.3rem, 4vw, 2.2rem);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-intro-card h2,
.home-process-intro h2,
.home-areas-card h2 {
  color: var(--navy);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.home-intro-card h2 {
  font-size: clamp(1.25rem, 3.8vw, 2rem);
}

.home-intro-card p,
.home-process-intro p,
.home-areas-card p {
  color: var(--gray-500);
  margin-bottom: 0;
}

.home-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.section-heading-rich {
  max-width: 760px;
  margin: 0 auto clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
}

.home-showcase-section {
  background:
    radial-gradient(circle at 15% 22%, rgba(201, 162, 39, 0.12), transparent 24rem),
    linear-gradient(180deg, var(--gray-100), #fff);
}

.home-work-grid {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.home-work-card {
  min-height: 260px;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
  isolation: isolate;
  background: var(--navy);
}

.home-work-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.75s ease, filter 0.75s ease;
}

.home-work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(10, 22, 40, 0.9) 100%),
    radial-gradient(circle at 78% 20%, rgba(201, 162, 39, 0.22), transparent 34%);
  z-index: 1;
}

.home-work-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(1rem, 3vw, 1.5rem);
  color: #fff;
}

.home-work-overlay span {
  display: inline-flex;
  color: var(--navy);
  background: var(--gold);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.home-work-overlay h3 {
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 900;
  margin-bottom: 0.45rem;
}

.home-work-overlay p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-work-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.04);
}

.home-features-section {
  background: #fff;
}

.home-feature-card {
  height: 100%;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid rgba(201, 162, 39, 0.16);
  border-radius: 24px;
  padding: clamp(1.25rem, 4vw, 1.7rem);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.home-feature-card span {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 18px;
  font-size: 1.45rem;
  margin-bottom: 1rem;
  box-shadow: 0 14px 32px rgba(10, 22, 40, 0.16);
}

.home-feature-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 0.55rem;
}

.home-feature-card p {
  color: var(--gray-500);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.home-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 162, 39, 0.34);
}

.home-process-section {
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.96), rgba(19, 39, 68, 0.94)),
    url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?w=1600&h=900&fit=crop') center/cover no-repeat;
  color: #fff;
}

.home-process-wrap {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.home-process-intro h2 {
  color: #fff;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
}

.home-process-intro p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.5rem;
}

.home-process-list {
  display: grid;
  gap: 0.9rem;
}

.home-process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: clamp(1rem, 3vw, 1.25rem);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-process-step strong {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: var(--gold);
  border-radius: 16px;
  font-weight: 900;
}

.home-process-step h3 {
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.home-process-step p {
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.home-areas-section {
  padding-top: 0;
}

.home-areas-card {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 162, 39, 0.16), transparent 28%),
    linear-gradient(135deg, #fff, #f8fafc);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 28px;
  padding: clamp(1.3rem, 4vw, 2.2rem);
  box-shadow: var(--shadow);
}

.home-areas-card h2 {
  font-size: clamp(1.3rem, 3.8vw, 2.1rem);
}

.home-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-area-tags span {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .home-intro-card,
  .home-areas-card {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  }
  .home-intro-actions {
    justify-content: flex-end;
  }
  .home-work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-work-card-featured {
    grid-column: span 2;
  }
  .home-process-wrap {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (min-width: 1200px) {
  .home-work-card {
    min-height: 340px;
  }
  .home-work-card-featured {
    min-height: 430px;
  }
}

@media (max-width: 767.98px) {
  .home-intro-actions .btn,
  .home-process-intro .btn {
    width: 100%;
  }
  .home-work-card {
    min-height: 230px;
  }
  .home-process-step {
    grid-template-columns: 1fr;
  }
}

/* ========== Page header (inner pages) ========== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  padding: calc(var(--header-h) + 2.5rem) 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--gray-100));
}

.page-header h1 {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== Sections ========== */
.section-padding {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.45rem, 4.5vw, 2.35rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}

.section-title span { color: var(--gold); }

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  padding: 0 1rem;
}

.section-line {
  width: clamp(60px, 15vw, 80px);
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  border-radius: 4px;
}

/* ========== Service cards ========== */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.25rem, 3vw, 1.5rem);
  text-align: center;
  height: 100%;
  border: 1px solid rgba(201, 162, 39, 0.12);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, 0.35);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: clamp(56px, 14vw, 72px);
  height: clamp(56px, 14vw, 72px);
  background: linear-gradient(145deg, var(--navy), var(--navy-mid));
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  margin: 0 auto 1.15rem;
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.2);
}

.service-card h3 {
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.service-card p {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  color: var(--gray-500);
  line-height: 1.7;
}

/* ========== Stats ========== */
.stats-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  position: relative;
}

.stats-section::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");
  opacity: 0.5;
}

.stats-section .container { position: relative; z-index: 1; }

.stat-item {
  text-align: center;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child { border-bottom: none; }

@media (min-width: 768px) {
  .stat-item { border-bottom: none; border-left: 1px solid rgba(255,255,255,0.1); }
  .stat-item:first-child { border-left: none; }
}

.stat-number {
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  opacity: 0.88;
  margin-top: 0.5rem;
}

/* ========== Project cards ========== */
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card .img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-200);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img { transform: scale(1.06); }

.project-card .card-body {
  padding: clamp(1.15rem, 3vw, 1.5rem);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card h3 {
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.project-card .card-text {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  color: var(--gray-500);
  flex-grow: 1;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card .date-badge {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}

.project-card .card-actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.project-card .btn {
  width: 100%;
}

@media (min-width: 576px) {
  .project-card .btn { width: auto; }
}

/* ========== Testimonials ========== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 4vw, 2rem);
  box-shadow: var(--shadow-sm);
  height: 100%;
  border-right: 4px solid var(--gold);
  transition: var(--transition);
}

.testimonial-card:hover { box-shadow: var(--shadow); }

.testimonial-card .stars {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
}

.testimonial-card p {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.8;
  color: #334155;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--navy);
  margin-top: 1rem;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
}

/* ========== CTA ========== */
.cta-section {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  color: white;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-section p {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  margin-bottom: 1.5rem;
  opacity: 0.9;
  position: relative;
}

.cta-section .btn-whatsapp-hero {
  position: relative;
  margin-top: 0;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.82);
  padding: clamp(2.5rem, 6vw, 4rem) 0 calc(1.5rem + var(--safe-bottom));
  margin-top: clamp(2rem, 5vw, 4rem);
}

.site-footer h5 {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: clamp(1rem, 3vw, 1.15rem);
}

.site-footer p,
.site-footer li {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  line-height: 1.9;
}

.site-footer ul { list-style: none; }

.site-footer ul li { margin-bottom: 0.5rem; }

.site-footer a {
  color: rgba(255,255,255,0.78);
  transition: var(--transition);
  display: inline-block;
  min-height: 36px;
  line-height: 36px;
}

.site-footer a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.25rem;
  text-align: center;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
}

/* ========== WhatsApp float ========== */
.whatsapp-float-btn {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom));
  left: calc(20px + var(--safe-left));
  z-index: 9999;
  width: clamp(54px, 14vw, 60px);
  height: clamp(54px, 14vw, 60px);
  background: var(--whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.6rem, 5vw, 2rem);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  transition: var(--transition);
  animation: pulseWa 2s infinite;
}

.whatsapp-float-btn:hover {
  transform: scale(1.08);
  color: white;
}

.whatsapp-float-label {
  display: none;
}

@media (min-width: 768px) {
  .whatsapp-float-btn {
    width: auto;
    height: auto;
    padding: 0.85rem 1.25rem;
    border-radius: 50px;
    gap: 0.5rem;
    font-size: 1rem;
  }
  .whatsapp-float-label {
    display: inline;
    font-weight: 700;
    font-size: 0.95rem;
  }
}

/* ========== Project detail ========== */
.project-hero-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.breadcrumb {
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  flex-wrap: wrap;
}

/* ========== Content cards ========== */
.content-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.vision-box {
  border-right: 4px solid var(--gold);
  padding-right: clamp(1rem, 3vw, 1.5rem);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-info-item i {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--gold);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: clamp(220px, 50vw, 380px);
  border: 0;
  display: block;
}

/* Forms mobile */
.form-control, .form-select {
  min-height: 48px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

textarea.form-control { min-height: 120px; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(201, 162, 39, 0.16), transparent 32%),
    rgba(3, 7, 18, 0.96);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-bottom: calc(1rem + var(--safe-bottom));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox.active {
  display: flex;
  animation: lightboxFade 0.25s ease;
}

.lightbox-frame {
  width: min(1120px, 100%);
  margin: 0;
  position: relative;
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  max-height: 78dvh;
  margin: 0 auto;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #fff;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-title {
  font-weight: 800;
}

.lightbox-counter {
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

.lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: rgba(0,0,0,0.4);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  color: var(--navy);
  background: var(--gold);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-prev {
  right: max(14px, env(safe-area-inset-right));
}

.lightbox-next {
  left: max(14px, env(safe-area-inset-left));
}

.lightbox.single-image .lightbox-nav {
  display: none;
}

@media (max-width: 767.98px) {
  .lightbox {
    align-items: flex-end;
    padding-top: 4.5rem;
  }
  .lightbox img {
    max-height: 68vh;
    max-height: 68dvh;
    border-radius: 14px;
  }
  .lightbox figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
  }
  .lightbox-nav {
    top: auto;
    bottom: calc(84px + var(--safe-bottom));
    width: 44px;
    height: 44px;
  }
}

/* ========== Admin responsive ========== */
@media (max-width: 991.98px) {
  .admin-sidebar {
    min-height: auto !important;
  }
  .admin-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .admin-sidebar a {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.9rem;
  }
}

.admin-sidebar {
  background: var(--navy);
  min-height: 100vh;
  color: white;
  padding: 1.5rem;
}

.admin-sidebar a {
  color: rgba(255,255,255,0.8);
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.25rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold);
}

.admin-login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 1rem;
}

.admin-login-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* ========== Utilities ========== */
.bg-section-alt { background: var(--white); }

.text-navy { color: var(--navy) !important; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Touch devices - no hover lift */
@media (hover: none) {
  .project-card:hover,
  .service-card:hover {
    transform: none;
  }
  .project-card:active { transform: scale(0.98); }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes lightboxFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Grid gaps mobile */
.row.g-4 { --bs-gutter-y: 1.25rem; }

@media (min-width: 576px) {
  .row.g-4 { --bs-gutter-y: 1.5rem; }
}

/* Skip link + focus */
.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid #fff;
}
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn-outline-navy {
  color: var(--navy);
  border: 2px solid var(--navy);
  background: transparent;
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}

/* Gallery page */
.gallery-hero {
  background:
    radial-gradient(circle at 15% 25%, rgba(201, 162, 39, 0.26), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(10, 22, 40, 0.96), rgba(19, 39, 68, 0.92)),
    url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1600&h=900&fit=crop') center/cover no-repeat;
}

.gallery-eyebrow,
.gallery-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.gallery-eyebrow {
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.38);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1rem;
}

.gallery-page {
  position: relative;
  overflow: hidden;
}

.gallery-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(201, 162, 39, 0.1), transparent 24rem),
    radial-gradient(circle at 88% 42%, rgba(10, 22, 40, 0.08), transparent 22rem);
  pointer-events: none;
}

.gallery-page .container {
  position: relative;
  z-index: 1;
}

.gallery-overview {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 28px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  margin-bottom: clamp(2rem, 6vw, 4rem);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.gallery-overview::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.18), transparent 65%);
  pointer-events: none;
}

.gallery-overview h2,
.gallery-section-head h2,
.gallery-album-card h2,
.gallery-cta h2 {
  color: var(--navy);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.gallery-overview h2 {
  font-size: clamp(1.45rem, 4vw, 2.4rem);
}

.gallery-overview p,
.gallery-album-card p,
.gallery-cta p {
  color: var(--gray-500);
  margin-bottom: 0;
}

.gallery-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-stat {
  background: rgba(10, 22, 40, 0.04);
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: 20px;
  padding: 1rem 0.75rem;
  text-align: center;
}

.gallery-stat strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.15rem, 4vw, 1.7rem);
  font-weight: 900;
  line-height: 1.1;
}

.gallery-stat span {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.gallery-section,
.gallery-album {
  margin-bottom: clamp(2.5rem, 7vw, 4.5rem);
}

.gallery-section-head,
.gallery-album-card,
.gallery-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.gallery-section-head {
  padding-inline: 0.25rem;
}

.gallery-section-head h2 {
  font-size: clamp(1.35rem, 3.8vw, 2rem);
  margin-bottom: 0;
}

.gallery-section-head h2 span {
  color: var(--gold);
}

.gallery-count,
.gallery-album-meta {
  flex: 0 0 auto;
  color: var(--navy);
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 800;
}

.gallery-album-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 24px;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gallery-album-card h2 {
  font-size: clamp(1.25rem, 3.6vw, 1.8rem);
}

.gallery-album-meta {
  min-width: 88px;
  text-align: center;
  border-radius: 18px;
}

.gallery-album-meta strong,
.gallery-album-meta span {
  display: block;
  line-height: 1.2;
}

.gallery-album-meta strong {
  font-size: 1.6rem;
}

.gallery-album-meta span {
  color: var(--gray-500);
  font-size: 0.82rem;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.15rem);
  grid-auto-flow: dense;
}

.gallery-item {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(10, 22, 40, 0.12);
  cursor: zoom-in;
  position: relative;
  isolation: isolate;
  min-height: 180px;
  transform: translateZ(0);
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(10, 22, 40, 0.86) 100%),
    radial-gradient(circle at 75% 20%, rgba(201, 162, 39, 0.24), transparent 34%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease, filter 0.7s ease;
}

.gallery-item-large {
  grid-column: span 2;
}

.gallery-item-large img {
  aspect-ratio: 16 / 9;
}

.gallery-item-tall img {
  aspect-ratio: 3 / 4;
}

.gallery-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  color: #fff;
  font-weight: 800;
  opacity: 0;
  transform: translateY(14px);
  transition: var(--transition);
}

.gallery-item figcaption span {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.gallery-item figcaption i {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.32);
}

.gallery-item:hover,
.gallery-item:focus-within {
  box-shadow: var(--shadow-lg);
}

.gallery-item:hover::before,
.gallery-item:focus-within::before,
.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.04);
}

.gallery-empty {
  border: 1px solid rgba(201, 162, 39, 0.16);
}

.gallery-empty-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 24px;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
  font-size: 2rem;
}

.gallery-cta {
  background:
    radial-gradient(circle at 12% 30%, rgba(201, 162, 39, 0.26), transparent 28%),
    linear-gradient(135deg, var(--navy-mid), var(--navy));
  color: #fff;
  border-radius: 28px;
  padding: clamp(1.35rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lg);
  margin-top: clamp(1rem, 4vw, 2rem);
}

.gallery-cta h2 {
  color: #fff;
}

.gallery-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.gallery-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

@media (min-width: 768px) {
  .gallery-overview {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  }
  .gallery-masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery-item-large img {
    aspect-ratio: 1 / 1;
  }
}

@media (min-width: 1200px) {
  .gallery-masonry {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .gallery-stats {
    grid-template-columns: 1fr;
  }
  .gallery-section-head,
  .gallery-album-card,
  .gallery-cta {
    align-items: stretch;
    flex-direction: column;
  }
  .gallery-count,
  .gallery-album-meta {
    align-self: flex-start;
  }
  .gallery-cta-actions {
    justify-content: stretch;
  }
  .gallery-cta-actions .btn {
    width: 100%;
  }
  .gallery-item figcaption {
    opacity: 1;
    transform: none;
    padding: 0.8rem;
    font-size: 0.85rem;
  }
  .gallery-item::before {
    opacity: 1;
  }
}
