/* =========================================================
   ALEXA REPARA — Main Stylesheet
   ========================================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --primary:        #005096;
  --primary-dark:   #003872;
  --primary-light:  #0069c4;
  --accent:         #f97316;
  --accent-dark:    #ea580c;
  --accent-light:   #fed7aa;
  --dark:           #0f172a;
  --text:           #1e293b;
  --text-muted:     #64748b;
  --bg:             #f8fafc;
  --bg-alt:         #f1f5f9;
  --white:          #ffffff;
  --border:         #e2e8f0;
  --success:        #16a34a;
  --whatsapp:       #25d366;
  --shadow-xs:      0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:         0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-md:      0 8px 16px -4px rgba(0,0,0,0.12), 0 4px 6px -4px rgba(0,0,0,0.08);
  --shadow-lg:      0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --transition:     0.2s ease;
  --transition-md:  0.3s ease;
  --container:      1220px;
  --section-gap:    96px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--text); }

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

@media (min-width: 640px)  { .container { padding: 0 28px; } }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

.section { padding: var(--section-gap) 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 120px 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-header .eyebrow::before,
.section-header .eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; }

.section-header.left {
  text-align: left;
  margin-left: 0;
}
.section-header.left .eyebrow::before { display: none; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  box-shadow: var(--shadow);
}
.btn-white:hover {
  background: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover {
  background: #20b956;
  border-color: #20b956;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Button arrow */
.btn .arrow {
  display: inline-flex;
  transition: transform var(--transition);
}
.btn:hover .arrow { transform: translateX(3px); }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-primary { background: #cde4f6; color: var(--primary); }
.badge-accent  { background: #fed7aa; color: var(--accent-dark); }
.badge-success { background: #dcfce7; color: var(--success); }
.badge-dark    { background: rgba(255,255,255,0.15); color: var(--white); }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-md), transform var(--transition-md);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-md);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Desktop Nav */
.main-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background: var(--bg);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link .chevron {
  font-size: 0.65rem;
  transition: transform var(--transition);
}

.nav-item:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition);
  transform: translateX(-50%) translateY(8px);
}

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

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.dropdown-link:hover {
  background: var(--bg);
  color: var(--primary);
}

.dropdown-link .icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background var(--transition);
}

.dropdown-link:hover .icon { background: #cde4f6; }

/* Header CTA */
.header-cta {
  display: none;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (min-width: 768px) { .header-cta { display: flex; } }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  transition: color var(--transition);
}
.header-phone:hover { color: var(--accent); }

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

@media (min-width: 1024px) { .menu-toggle { display: none; } }

.menu-toggle:hover { background: var(--bg); }

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition-md);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  padding: 24px 20px;
}

.mobile-nav.open { display: block; }

.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.mobile-nav-link:hover {
  background: var(--bg);
  color: var(--primary);
}

.mobile-nav-section {
  margin: 16px 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 16px;
}

.mobile-nav-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================
   HERO — HOMEPAGE
   ========================================== */
.hero-home {
  padding: 152px 0 96px;
  background: linear-gradient(135deg, #001e3c 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.hero-home::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='%23ffffff' fill-opacity='0.03'%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");
}

.hero-home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

@media (min-width: 1024px) {
  .hero-home-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-home h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 900;
}

.hero-home h1 span { color: var(--accent); }

.hero-home .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

.trust-item .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(22,163,74,0.2);
  border: 1px solid rgba(22,163,74,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #86efac;
  flex-shrink: 0;
}

/* Hero visual side */
.hero-visual {
  display: none;
  position: relative;
}

@media (min-width: 1024px) { .hero-visual { display: block; } }

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,0.4);
  font-size: 4rem;
}

.hero-image-placeholder p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 16px;
}

.hero-stat {
  background: rgba(255,255,255,0.05);
  padding: 20px 16px;
  text-align: center;
}

.hero-stat .number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat .label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

.floating-card.card-top {
  top: -20px;
  right: -20px;
}

.floating-card.card-bottom {
  bottom: -20px;
  left: -20px;
}

.floating-card .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ==========================================
   SERVICE CARDS — HOMEPAGE
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-md);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition-md);
}

.service-card:hover::after { transform: scaleX(1); }

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

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #cde4f6, #a8d5f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: all var(--transition-md);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

/* Service card image (replaces icon on homepage) */
.service-card-image {
  margin: -36px -28px 20px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

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

.service-card h3 { font-size: 1.15rem; font-weight: 700; }

.service-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
  margin: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition);
}

.service-link:hover { gap: 10px; }

/* ==========================================
   WHY CHOOSE US
   ========================================== */
.why-section { background: var(--bg-alt); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

.why-image {
  aspect-ratio: 1/1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.why-image picture,
.why-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.why-features { display: flex; flex-direction: column; gap: 24px; }

.why-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--white);
  flex-shrink: 0;
}

.why-feature-body h4 { font-size: 1rem; margin-bottom: 4px; }
.why-feature-body p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ==========================================
   STATS BAR
   ========================================== */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-item { text-align: center; }

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials-section { background: var(--bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px)  { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin: 0;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}

.author-name { font-size: 0.9rem; font-weight: 700; color: var(--dark); }
.author-location { font-size: 0.78rem; color: var(--text-muted); }

/* ==========================================
   PROJECTS PREVIEW
   ========================================== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px)  { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition-md);
}

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

.project-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bg-alt), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body { padding: 24px; }
.project-badge { margin-bottom: 12px; }
.project-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.project-location { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* ==========================================
   COVERAGE AREA
   ========================================== */
.coverage-section { background: linear-gradient(135deg, #001e3c, var(--primary)); }

.coverage-section .section-header h2 { color: var(--white); }
.coverage-section .section-header p  { color: rgba(255,255,255,0.65); }
.coverage-section .section-header .eyebrow { color: var(--accent-light); }
.coverage-section .section-header .eyebrow::before,
.coverage-section .section-header .eyebrow::after { background: var(--accent-light); }

.locations-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 480px) { .locations-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .locations-list { grid-template-columns: repeat(4, 1fr); } }

.locations-list-wide {
  max-width: 860px;
  margin: 0 auto;
}

@media (min-width: 1024px) { .locations-list-wide { grid-template-columns: repeat(4, 1fr); } }

.location-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: all var(--transition);
  cursor: default;
}

.location-item:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-form-section { background: var(--bg-alt); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 2fr; gap: 64px; } }

.contact-info { display: flex; flex-direction: column; gap: 28px; }

.contact-info-header h3 { font-size: 1.5rem; margin-bottom: 8px; }
.contact-info-header p { font-size: 0.9rem; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-body .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item-body .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

label .required { color: var(--accent); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

input.error,
select.error,
textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.field-error {
  font-size: 0.78rem;
  color: #ef4444;
  display: none;
}

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

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

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.form-privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-privacy a { color: var(--primary); text-decoration: underline; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show { display: block; }

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.form-success h4 { color: var(--success); margin-bottom: 8px; }
.form-success p { font-size: 0.9rem; }

/* ==========================================
   CTA BAND
   ========================================== */
.cta-band {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p  { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 40px; }

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--dark);
  padding: 72px 0 0;
  color: rgba(255,255,255,0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (min-width: 768px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .site-logo {
  margin-bottom: 20px;
  display: inline-flex;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}
.footer-brand .site-logo-img { height: 40px; width: auto; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 24px; }

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.social-link:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent-light); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  margin-bottom: 14px;
}

.footer-contact-item span:first-child { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.footer-contact-item a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin: 0; }

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}

.footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* ==========================================
   SERVICE HERO (individual service pages)
   ========================================== */
.service-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.service-hero::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='%23ffffff' fill-opacity='0.03'%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");
}

.service-hero-content { position: relative; max-width: 760px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb-item {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.breadcrumb-item:hover { color: rgba(255,255,255,0.85); }
.breadcrumb-item.current { color: rgba(255,255,255,0.85); font-weight: 500; }

.breadcrumb-sep { color: rgba(255,255,255,0.35); font-size: 0.75rem; }

.service-hero h1 { color: var(--white); margin-bottom: 20px; }

.service-hero .lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  line-height: 1.7;
}

.service-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

.service-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

.service-meta-item strong { color: var(--white); }

/* Service page image */
.service-main-image {
  aspect-ratio: 16/7;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-alt), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  margin: -40px 0 64px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.service-main-image img { width: 100%; height: 100%; object-fit: cover; }

/* Service description block */
.service-description-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 1024px) { .service-description-grid { grid-template-columns: 3fr 2fr; gap: 64px; } }

.prose h2, .prose h3 { margin: 32px 0 16px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { font-size: 1rem; line-height: 1.8; margin-bottom: 1rem; color: var(--text); }
.prose ul, .prose ol { margin: 16px 0; padding-left: 20px; }
.prose li { font-size: 0.95rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 8px; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }

/* Service sidebar */
.service-sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.sidebar-card h4 { font-size: 1rem; margin-bottom: 16px; }

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px)  { .advantages-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .advantages-grid { grid-template-columns: repeat(3, 1fr); } }

.advantage-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition-md);
}

.advantage-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.advantage-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.advantage-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.advantage-card p  { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* Problems solved */
.problems-section { background: var(--bg-alt); }

.problems-list { display: flex; flex-direction: column; gap: 16px; }

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.problem-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.problem-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.problem-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.problem-item p  { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Work process */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
}

@media (min-width: 768px)  { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  transition: all var(--transition-md);
}

.process-step:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 16px;
}

.step-icon { font-size: 2rem; margin-bottom: 12px; }
.process-step h4 { font-size: 1rem; margin-bottom: 8px; }
.process-step p  { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ==========================================
   PROJECTS PAGE
   ========================================== */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.project-full-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-md);
}

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

.project-image-lg {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-alt), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
  position: relative;
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  opacity: 0;
  transition: opacity var(--transition-md);
}

.project-full-card:hover .project-image-overlay { opacity: 1; }

.project-view-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--white);
  color: var(--dark);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}

.project-full-card:hover .project-view-btn {
  opacity: 1;
  transform: translateY(0);
}

.project-details { padding: 28px; }
.project-details .project-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}
.project-meta-item { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.project-details p { font-size: 0.875rem; line-height: 1.6; margin: 0; }

/* Project gallery modal */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.gallery-thumb {
  aspect-ratio: 1;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  overflow: hidden;
}

.gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb.active { border-color: var(--accent); }

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #001e3c 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.about-hero::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='%23ffffff' fill-opacity='0.03'%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");
}

.about-hero-content { position: relative; max-width: 680px; }
.about-hero h1 { color: var(--white); margin-bottom: 20px; }
.about-hero .lead { font-size: 1.1rem; color: rgba(255,255,255,0.75); line-height: 1.7; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 768px)  { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-align: center;
  transition: all var(--transition-md);
}

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

.team-photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-alt), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.team-info { padding: 20px 16px; }
.team-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 0.8rem; color: var(--text-muted); }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px)  { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-md);
}

.value-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.value-emoji { font-size: 2.5rem; margin-bottom: 16px; }
.value-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.value-card p  { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Mission */
.mission-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 72px 0;
}

.mission-section h2 { color: var(--white); margin-bottom: 20px; }
.mission-section .lead { font-size: 1.15rem; color: rgba(255,255,255,0.8); line-height: 1.8; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  background: none;
  transition: background var(--transition);
  gap: 16px;
}

.faq-question:hover { background: var(--bg); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.faq-item.open .faq-chevron {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding var(--transition);
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
  padding: 0 24px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.contact-hero h1 { color: var(--white); margin-bottom: 16px; }
.contact-hero .lead { font-size: 1.1rem; color: rgba(255,255,255,0.75); }

.map-placeholder {
  width: 100%;
  aspect-ratio: 16/7;
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 3rem;
  border: 1px solid var(--border);
  margin-top: 48px;
}

.map-placeholder p { font-size: 0.9rem; }

/* ==========================================
   LOCAL PAGE STYLES
   ========================================== */
.local-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.local-hero::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='%23ffffff' fill-opacity='0.03'%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");
}

.local-hero-content { position: relative; max-width: 760px; }
.local-hero h1 { color: var(--white); margin-bottom: 20px; }
.local-hero .lead { font-size: 1.1rem; color: rgba(255,255,255,0.75); margin-bottom: 36px; line-height: 1.7; }

/* Local breadcrumb (white context) */
.breadcrumb-light .breadcrumb-item { color: var(--text-muted); }
.breadcrumb-light .breadcrumb-item.current { color: var(--text); }
.breadcrumb-light .breadcrumb-sep { color: var(--border); }

.local-image {
  aspect-ratio: 16/6;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-alt), var(--border));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 64px;
}

.local-image img { width: 100%; height: 100%; object-fit: cover; }

.local-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) { .local-content-grid { grid-template-columns: 2fr 1fr; gap: 64px; } }

.local-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.local-nearby {
  background: var(--bg-alt);
  padding: 56px 0;
}

.nearby-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.nearby-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nearby-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--white);
  transition: all var(--transition);
}

.nearby-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #cde4f6;
}

.service-links-section { background: var(--bg); padding: 56px 0; }

.service-links-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.service-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) { .service-links-grid { grid-template-columns: repeat(4, 1fr); } }

.service-local-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
}

.service-local-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #cde4f6;
}

.service-local-link .icon { font-size: 1rem; }

/* ==========================================
   SERVICOS OVERVIEW PAGE
   ========================================== */
.servicos-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #001e3c 0%, var(--primary) 100%);
}

.servicos-hero h1 { color: var(--white); margin-bottom: 20px; }
.servicos-hero .lead { font-size: 1.1rem; color: rgba(255,255,255,0.75); }

.service-full-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: all var(--transition-md);
}

@media (min-width: 768px) { .service-full-card { grid-template-columns: 280px 1fr; } }

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

.service-full-image {
  min-height: 200px;
  overflow: hidden;
  background: var(--bg-alt);
}

.service-full-image img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

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

.service-full-body { padding: 32px 36px; display: flex; flex-direction: column; gap: 16px; }
.service-full-body h3 { font-size: 1.3rem; }
.service-full-body p  { font-size: 0.9rem; line-height: 1.7; margin: 0; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  padding: 4px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================
   PAGE HERO (generic inner pages)
   ========================================== */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero .lead { font-size: 1.1rem; color: rgba(255,255,255,0.75); }
.page-hero-content { position: relative; max-width: 680px; }

/* ==========================================
   WHATSAPP FLOAT BUTTON
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: all var(--transition);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

/* SVG sizing inside buttons */
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-lg svg {
  width: 20px;
  height: 20px;
}

.btn-sm svg {
  width: 15px;
  height: 15px;
}

/* Social link WhatsApp SVG */
.social-link svg {
  width: 16px;
  height: 16px;
}

/* Contact item icon SVG */
.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

/* Footer contact item SVG */
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Pulse animation */
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--whatsapp);
  animation: pulse-ring 2s ease-out infinite;
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.bg-white   { background: var(--white); }
.bg-alt     { background: var(--bg-alt); }
.bg-primary { background: var(--primary); }
.bg-dark    { background: var(--dark); }

.text-white   { color: var(--white); }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
  border: none;
}

/* Page spacer for fixed header */
.page-top { height: 72px; }

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ==========================================
   RESPONSIVE UTILITIES
   ========================================== */
.hide-mobile  { display: none; }
.show-mobile  { display: block; }

@media (min-width: 768px) {
  .hide-mobile  { display: block; }
  .show-mobile  { display: none; }
}

/* ==========================================
   PROJECTS CAROUSEL (Homepage)
   ========================================== */
.projects-carousel-section { overflow: hidden; }

.carousel-wrapper {
  position: relative;
}

.carousel-track-outer {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 11px);
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}

@media (max-width: 900px) {
  .carousel-slide { flex: 0 0 calc(50% - 8px); }
}

@media (max-width: 580px) {
  .carousel-slide { flex: 0 0 calc(100% - 0px); }
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.carousel-slide:hover img { transform: scale(1.04); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.carousel-dots {
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 4px;
}

/* ==========================================
   PROJECTS GALLERY (Projetos page)
   ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

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

.gallery-item-overlay span {
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ==========================================
   MOBILE RESPONSIVE FIXES
   ========================================== */

/* Photo image — visible on all screen sizes */
.why-image { display: block; }
@media (max-width: 1023px) { .why-image { max-width: 480px; margin: 0 auto; } }

/* Reduce hero padding on small screens */
@media (max-width: 767px) {
  .hero-home           { padding: 110px 0 56px; }
  .service-hero,
  .about-hero,
  .contact-hero,
  .servicos-hero,
  .page-hero           { padding: 110px 0 56px; }
}

/* Reduce section vertical gap on mobile */
@media (max-width: 767px) {
  :root { --section-gap: 64px; }
}

/* CTA band — reduce vertical padding on mobile */
@media (max-width: 767px) {
  .cta-band { padding: 48px 0; }
  .cta-band p { font-size: 1rem; margin-bottom: 28px; }
}

/* Service main image — reduce bottom spacing on mobile */
@media (max-width: 767px) {
  .service-main-image { margin: -24px 0 40px; aspect-ratio: 16/9; }
}

/* Service full card — reduce body padding on mobile */
@media (max-width: 767px) {
  .service-full-body { padding: 20px 20px 28px; }
}

/* Stats bar — reduce padding on mobile */
@media (max-width: 767px) {
  .stats-bar { padding: 40px 0; }
  .stats-grid { gap: 24px; }
  .stat-number { font-size: clamp(1.6rem, 6vw, 2.4rem); }
}

/* Testimonial cards — make text slightly smaller on mobile */
@media (max-width: 480px) {
  .testimonial-card { padding: 24px 20px; }
  .testimonial-text { font-size: 0.9rem; }
}

/* Buttons — full-width on very small screens in hero */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Trust items — 2 per row on mobile */
@media (max-width: 640px) {
  .hero-trust { gap: 12px 24px; }
  .trust-item { font-size: 0.8rem; }
}

/* Process steps — 1 per row on mobile, 2 on tablet */
@media (max-width: 767px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .process-step { padding: 24px 16px; }
}

/* Gallery grid — 2 columns min on mobile (already set, reduce gap) */
@media (max-width: 480px) {
  .gallery-grid { gap: 8px; }
}

/* Carousel slides — full width on very small screens */
@media (max-width: 400px) {
  .carousel-slide { flex: 0 0 100%; }
}

/* Footer — reduce padding on mobile */
@media (max-width: 767px) {
  .site-footer { padding: 48px 0 0; }
  .footer-grid { gap: 32px; margin-bottom: 32px; }
}

/* Local page sidebar — no gap on mobile (already stacked) */
@media (max-width: 767px) {
  .local-content-grid { gap: 32px; }
}

/* Service links grid — 2 columns on mobile (already default, ensure) */
@media (max-width: 640px) {
  .service-links-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .service-local-link { padding: 10px 12px; font-size: 0.8rem; }
}

/* Lightbox nav — move buttons inward on mobile */
@media (max-width: 640px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ==========================================
   PRINT
   ========================================== */
@media print {
  .site-header,
  .whatsapp-float,
  .mobile-nav { display: none !important; }
  .page-top { height: 0; }
}
