/* ============================================
   STAMATO CONSTRUCCIONES — Design System
   Colors derived from logo: Navy #2B3A67
   ============================================ */

/* ---------- Google Fonts ---------- */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand colors from Manual de Marca */
  --brand-blue: #303876;          /* Azul */
  --brand-blue-dark: #26293E;     /* Azul Oscuro */
  --brand-blue-graphite: #466BA2; /* Azul Grafito */
  --brand-gray-light: #A6A6A6;    /* Gris Claro */
  --brand-gray-dark: #4B4C4E;     /* Gris Oscuro */
  --brand-white: #FFFFFF;         /* Blanco */

  /* Primary palette mapping */
  --navy-900: var(--brand-blue-dark);
  --navy-800: var(--brand-blue);
  --navy-700: #3c468e; /* Hover intermediate blue */
  --navy-600: var(--brand-blue-graphite);
  --navy-500: #5579b2;
  --navy-400: var(--brand-gray-light);
  --navy-300: #c2cbdc;
  --navy-200: #dee3ee;
  --navy-100: #f0f3f8;
  --navy-50:  #f5f7fa;

  /* Accent mappings (previously gold, now Azul Grafito for corporate alignment) */
  --gold-500: var(--brand-blue-graphite);
  --gold-400: #577cb5;
  --gold-300: #7395c8;

  /* Neutrals */
  --white: var(--brand-white);
  --gray-50:  #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: var(--brand-gray-light);
  --gray-400: #8b8f96;
  --gray-500: var(--brand-gray-dark);
  --gray-600: #333436;
  --gray-700: #212224;
  --gray-800: #151617;
  --gray-900: var(--brand-blue-dark);

  /* Functional */
  --success: #2ecc71;
  --error: #e74c3c;
  --whatsapp: #25D366;

  /* Typography */
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Raleway', sans-serif;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Borders & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  --shadow-sm: 0 1px 3px rgba(43,58,103,0.08);
  --shadow-md: 0 4px 14px rgba(43,58,103,0.10);
  --shadow-lg: 0 10px 40px rgba(43,58,103,0.12);
  --shadow-xl: 0 20px 60px rgba(43,58,103,0.16);

  /* Transitions (Slower and Softer) */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* ultra-smooth exponential ease-out */
  --ease-spring: cubic-bezier(0.25, 1, 0.5, 1); /* gentler ease-out instead of bouncy spring */
  --transition-fast: 0.5s var(--ease-out);
  --transition-normal: 0.8s var(--ease-out);
  --transition-slow: 1.4s var(--ease-out);
}

/* ---------- Skip to Content ---------- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10001;
  padding: 12px 24px;
  background: var(--navy-800);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top 0.3s var(--ease-out);
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- Cursor Glow ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 107, 162, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}

.cursor-glow.visible {
  opacity: 1;
}

@media (hover: none) {
  .cursor-glow { display: none; }
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

/* ---------- Loading Screen ---------- */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--navy-900);
  transition: opacity 1s ease, visibility 1s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo-wrapper {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--brand-blue-graphite);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  box-shadow: 0 0 30px rgba(70, 107, 162, 0.35);
  animation: loadingPulse 3s ease-in-out infinite;
}

.loading-logo {
  width: 70px;
  height: auto;
  background-color: transparent;
}

.loading-bar-container {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--navy-400), var(--gold-500));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.loading-text {
  color: var(--navy-300);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: var(--space-lg);
  font-weight: 500;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.5s var(--ease-out), transform 1.5s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 1.5s var(--ease-out), transform 1.5s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 1.5s var(--ease-out), transform 1.5s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 1.5s var(--ease-out), transform 1.5s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s var(--ease-out), box-shadow var(--transition-normal), background var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.navbar.navbar-hidden {
  transform: translateY(-100%);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  transition: opacity var(--transition-fast);
}

.nav-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: height var(--transition-normal);
  background-color: transparent;
}

/* When navbar is scrolled */
.navbar.scrolled .nav-logo {
  padding: 0;
  border-color: transparent;
  box-shadow: none;
}

.navbar.scrolled .nav-logo img {
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--gray-600);
  position: relative;
  padding: var(--space-xs) 0;
}

.navbar.scrolled .nav-links a {
  color: var(--gray-600);
}

.nav-links a:hover {
  color: var(--navy-800);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-500);
  border-radius: 1px;
  transition: width var(--transition-normal);
}

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

.nav-links a.active {
  color: var(--navy-800);
  font-weight: 600;
}

.nav-links a.nav-cta {
  background: var(--gold-500);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
  font-size: 0.82rem;
}

.nav-links a.nav-cta:hover {
  background: var(--gold-400);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(70, 107, 162, 0.2);
}

.nav-links a.nav-cta::after {
  display: none;
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  max-height: 70vh;
  overflow-y: auto;
}

/* Custom Scrollbar for Dropdown */
.nav-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.nav-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}
.nav-dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--navy-300);
  border-radius: 3px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg) !important;
  color: var(--gray-600) !important;
  font-size: 0.8rem !important;
  text-transform: none !important;
  white-space: nowrap;
}

.nav-dropdown-menu a::after {
  display: none !important;
}

.nav-dropdown-menu a:hover {
  background: var(--gray-50);
  color: var(--navy-800) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.navbar.scrolled .hamburger span {
  background: var(--navy-800);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 40%, var(--navy-700) 100%);
  overflow: hidden;
  --spotlight-x: 50%;
  --spotlight-y: 50%;
}

/* Hero Shape Divider */
.custom-shape-divider-bottom {
  position: absolute;
  bottom: -1px; /* -1px to prevent 1px gap rendering issues */
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.custom-shape-divider-bottom .shape-fill {
  fill: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(70, 107, 162, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
  transition: background 0.3s ease;
}

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

.hero .container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  padding-top: 100px;
  padding-bottom: 120px;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 1.4s var(--ease-out) 0.5s both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--gold-500);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(70, 107, 162, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(70, 107, 162, 0); }
}

.hero-badge span {
  font-size: 0.75rem;
  color: var(--navy-200);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1.5s var(--ease-out) 0.75s both;
}

.hero-title .accent {
  color: var(--gold-500);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--navy-200);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 1.5s var(--ease-out) 1.1s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 1.5s var(--ease-out) 1.35s both;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  animation: fadeInUp 1.5s var(--ease-out) 1.7s both;
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--navy-300);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-image-wrapper {
  position: relative;
  animation: fadeInRight 1.8s var(--ease-out) 1.0s both;
}

.hero-image-wrapper img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.hero-image-float {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.hero-image-float-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.hero-image-float-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy-800);
}

.hero-image-float-text span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(15px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(70, 107, 162, 0.35);
}

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

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.btn-dark {
  background: var(--navy-800);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(43,58,103,0.25);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.3);
}

.btn-icon {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
}

/* ---------- Section Common ---------- */
.section {
  padding: var(--space-4xl) 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.section-dark {
  background: var(--navy-900);
  color: var(--white);
}

.section-light {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-dark .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.section-dark .section-subtitle {
  color: var(--navy-300);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4/5;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--navy-900);
  margin-bottom: var(--space-lg);
  line-height: 1.3;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-800);
}

.about-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--navy-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-800);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-100);
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,36,64,0.7), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover .service-card-overlay {
  opacity: 1;
}

.service-card-body {
  padding: var(--space-xl);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--navy-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.3rem;
  color: var(--navy-800);
  transition: all var(--transition-fast);
}

.service-card:hover .service-card-icon {
  background: var(--navy-800);
  color: var(--white);
}

.service-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-bottom: var(--space-sm);
}

.service-card-body p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---------- Gallery ---------- */
/* Gallery filters removed */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1/1;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), display 0.5s allow-discrete;
  will-change: transform;
}

.gallery-item:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

/* Gallery item hidden state removed */

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,36,64,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-xl);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}

.gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4xl);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  transform: scale(0.96);
  transition: transform 0.7s var(--ease-out);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  line-height: 1;
  background: rgba(255,255,255,0.1);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  transform: rotate(90deg);
  background: rgba(255,255,255,0.2);
}

/* ---------- Why Us / Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.value-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition-normal);
  will-change: transform;
}

.value-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(70, 107, 162, 0.25);
  transform: translateY(-5px);
}

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.5rem;
  color: var(--gold-500);
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: 0.85rem;
  color: var(--navy-300);
  line-height: 1.7;
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--navy-900);
  margin-bottom: var(--space-md);
}

.contact-info > p {
  color: var(--gray-500);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--navy-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-800);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy-900);
  margin-bottom: 2px;
}

.contact-item-text a,
.contact-item-text span {
  font-size: 0.88rem;
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.contact-item-text a:hover {
  color: var(--navy-800);
}

.contact-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.contact-social a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--navy-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-800);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.contact-social a:hover {
  background: var(--navy-800);
  color: var(--white);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.contact-form-wrapper h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy-900);
  margin-bottom: var(--space-xs);
}

.contact-form-wrapper > p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: var(--space-xs);
}

.form-group label .optional {
  font-weight: 400;
  color: var(--gray-400);
  font-size: 0.75rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray-700);
  background: var(--white);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(43,58,103,0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* Form error messages */
.form-error {
  display: none;
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 4px;
  font-weight: 500;
}

.form-error.visible {
  display: block;
}

.form-errors-summary {
  display: none;
  padding: var(--space-md) var(--space-lg);
  background: rgba(231, 76, 60, 0.06);
  border: 1px solid rgba(231, 76, 60, 0.25);
  border-radius: var(--radius-sm);
  color: var(--error);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.form-errors-summary.visible {
  display: block;
}

#form-content {
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

#form-content.fade-out {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-2xl);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.form-success.show {
  opacity: 1;
  transform: scale(1);
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--navy-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.6rem;
  color: var(--success);
}

.form-success h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy-900);
  margin-bottom: var(--space-sm);
}

.form-success p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(70, 107, 162, 0.12), transparent 70%);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: 1rem;
  color: var(--navy-200);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand img {
  height: 36px;
  margin-bottom: var(--space-lg);
  filter: brightness(0) invert(1);
  background-color: transparent;
}

.footer-brand-name {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-lg);
  line-height: 1;
}

.footer-brand-main {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 3px;
}

.footer-brand-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold-500);
  letter-spacing: 5px;
  margin-top: 4px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  color: rgba(255, 255, 255, 0.75);
}

.footer h4 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-links a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-xs) 0;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* Footer social icons (override .contact-social for dark bg) */
.footer .contact-social a {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.footer .contact-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* ---------- Floating Contact Menu (FAB) ---------- */
.fab-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.fab-trigger {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--navy-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(38, 41, 62, 0.25);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 10;
  border: 2px solid var(--white);
  pointer-events: auto;
}

.fab-trigger::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  border: 2px solid var(--navy-800);
  opacity: 0;
  animation: fabPulse 2.5s ease-out infinite;
  pointer-events: none;
}

@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 0; }
}

.fab-trigger:hover {
  transform: scale(1.06);
  background: var(--navy-700);
  box-shadow: 0 6px 24px rgba(38, 41, 62, 0.35);
}

.fab-trigger-icon {
  position: relative;
  width: 24px;
  height: 24px;
}

.fab-trigger-icon svg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
  width: 24px;
  height: 24px;
}

.fab-trigger-icon .icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

/* FAB menu and items */
.fab-menu {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  margin-bottom: 2px;
}

.fab-item {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px) scale(0.7);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), background-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  border: 1.5px solid var(--white);
  pointer-events: auto;
}

.fab-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
}

/* Colors for items */
.fab-whatsapp {
  background: var(--whatsapp);
}
.fab-whatsapp:hover {
  background: #20ba5a;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

.fab-call {
  background: var(--brand-blue-graphite);
}
.fab-call:hover {
  background: var(--navy-500);
  box-shadow: 0 6px 16px rgba(70, 107, 162, 0.45);
}

.fab-email {
  background: var(--brand-gray-dark);
}
.fab-email:hover {
  background: #5d5e61;
  box-shadow: 0 6px 16px rgba(75, 76, 78, 0.45);
}

/* Tooltip / Label */
.fab-tooltip {
  position: absolute;
  right: 64px;
  background: var(--white);
  color: var(--navy-900);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  border: 1px solid var(--gray-100);
}

.fab-item:hover .fab-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Expanded/Active state style rules */
.fab-container.active .fab-menu {
  pointer-events: auto;
}

.fab-container.active .fab-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger transition delay for menu items */
.fab-container.active .fab-item:nth-child(1) { transition-delay: 0.05s; }
.fab-container.active .fab-item:nth-child(2) { transition-delay: 0.1s; }
.fab-container.active .fab-item:nth-child(3) { transition-delay: 0.15s; }

.fab-container.active .fab-trigger {
  background: var(--brand-gray-dark);
  box-shadow: var(--shadow-md);
}

.fab-container.active .fab-trigger::before {
  animation: none;
  opacity: 0;
}

.fab-container.active .fab-trigger-icon .icon-chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.fab-container.active .fab-trigger-icon .icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}


/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--navy-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--navy-700);
  transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 84px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-image {
    max-width: 450px;
    margin: 0 auto;
  }

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

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

/* Mobile Navigation Breakpoint */
@media (max-width: 991px) {
  /* Nav Drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px var(--space-2xl) var(--space-2xl);
    gap: var(--space-lg);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transition: right 0.6s var(--ease-out);
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--navy-800) !important;
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Mobile Layout Breakpoint */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }

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

  /* Hero */
  .hero .container {
    padding-top: 84px;
    padding-bottom: var(--space-4xl);
  }

  .hero-image-wrapper {
    max-width: 100%;
  }

  .hero-image-float {
    position: relative;
    bottom: auto;
    left: auto;
    margin: var(--space-md) auto 0;
    max-width: 290px;
    justify-content: center;
  }

  .hero-stats {
    gap: var(--space-xl);
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .gallery-item.tall {
    grid-row: span 1;
    aspect-ratio: 1/1;
  }

  .gallery-item.wide {
    grid-column: span 1;
    aspect-ratio: 1/1;
  }

  /* Values */
  .values-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Contact */
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-submit {
    flex-direction: column;
  }

  .form-submit .btn {
    width: 100%;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  /* CTA */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  /* FAB & Back-to-Top Mobile Sizing */
  .fab-container {
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }
  .fab-trigger {
    width: 50px;
    height: 50px;
  }
  .fab-item {
    width: 42px;
    height: 42px;
  }
  .back-to-top {
    bottom: 80px;
    right: 23px;
    width: 40px;
    height: 40px;
  }
}

/* Small Smartphone Breakpoint */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

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

  .about-image::after {
    bottom: -10px;
    right: -10px;
  }
}

/* ============================================
   VISUAL ENHANCEMENTS
   ============================================ */

/* Loading screen animated dots — span-based for cross-browser */
.loading-dots {
  display: inline;
}

.loading-dots span {
  animation: dotFade 1.5s infinite;
  opacity: 0;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.3s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes dotFade {
  0%, 100% { opacity: 0; }
  30%, 70% { opacity: 1; }
}

/* Gold button shine effect */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );
  transition: left 1.2s var(--ease-out);
}

.btn-primary:hover::before {
  left: 120%;
}

/* Section top/bottom subtle dividers */
.section-light::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-800), var(--gold-500));
  border-radius: 3px;
  margin: 0 auto var(--space-3xl);
}

/* Service card subtle glow on hover */
.service-card:hover {
  box-shadow: 0 20px 60px rgba(43,58,103,0.14), 0 0 0 1px rgba(70, 107, 162, 0.15);
}

/* Gallery item smooth scale */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 0 rgba(70, 107, 162, 0);
  transition: box-shadow var(--transition-normal);
  pointer-events: none;
}

.gallery-item:hover::after {
  box-shadow: inset 0 0 0 3px rgba(70, 107, 162, 0.45);
}

/* Contact form validation states (focus already defined above — no duplicate) */
.form-group input:user-valid,
.form-group textarea:user-valid,
.form-group select:user-valid {
  border-color: rgba(46, 204, 113, 0.45);
}

.form-group input:user-invalid,
.form-group textarea:user-invalid,
.form-group select:user-invalid {
  border-color: rgba(231, 76, 60, 0.45);
}

.form-group input:user-invalid:focus,
.form-group textarea:user-invalid:focus,
.form-group select:user-invalid:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15), 0 2px 8px rgba(231, 76, 60, 0.08);
}

.form-group input:user-valid:focus,
.form-group textarea:user-valid:focus,
.form-group select:user-valid:focus {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15), 0 2px 8px rgba(46, 204, 113, 0.08);
}

/* Smooth image loading */
img {
  background-color: var(--gray-100);
}

/* Footer bottom links spacing on wrap */
.footer-bottom-links {
  flex-wrap: wrap;
  justify-content: center;
}

/* Value card icon subtle animation on hover */
.value-card:hover .value-icon {
  transform: scale(1.1);
  transition: transform var(--transition-fast);
}

/* Hero badge shimmer */
.hero-badge {
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.06),
    transparent
  );
  animation: badgeShimmer 5s ease-in-out infinite;
}

@keyframes badgeShimmer {
  0%   { left: -100%; }
  40%  { left: 100%; }
  100% { left: 100%; }
}

/* Nav logo hover */
.nav-logo:hover {
  opacity: 0.8;
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS (WCAG 2.2 AA)
   ============================================ */

/* Visually hidden screen reader utility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip link focus visibility */
.skip-to-content:focus {
  top: 16px !important;
  outline: 3px solid #ffffff !important;
  outline-offset: 3px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Universal high-contrast keyboard focus indicators */
:focus-visible {
  outline: 3px solid var(--brand-blue-graphite) !important;
  outline-offset: 3px !important;
}

.dark-section :focus-visible,
.hero :focus-visible,
.footer :focus-visible {
  outline: 3px solid var(--white) !important;
  outline-offset: 3px !important;
}

/* Touch targets min size (2.5.8 / 44px recommended) */
button,
[role="button"],
.btn,
.nav-link,
.filter-btn,
.social-link,
.whatsapp-float,
.theme-toggle {
  min-height: 44px;
  min-width: 44px;
}

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



