/* ============================================
   RR ENGENHARIA - PREMIUM STYLESHEET v3
   Paleta: #001c3d | #0963ed | #002863 | #1a4a7a
   Fonte: Montserrat
   ============================================ */

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

:root {
  --navy: #001c3d;
  --blue: #0963ed;
  --blue-dark: #002863;
  --blue-steel: #1a4a7a;
  --blue-light: #e8f0fe;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --font: 'Montserrat', Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,28,61,0.08);
  --shadow-md: 0 4px 16px rgba(0,28,61,0.12);
  --shadow-lg: 0 12px 40px rgba(0,28,61,0.16);
  --shadow-xl: 0 20px 60px rgba(0,28,61,0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1400px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 { font-weight: 900; line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 700; }
p { font-weight: 400; color: var(--gray-700); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--blue);
  margin-bottom: 12px;
  position: relative;
  padding-left: 40px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 2px;
  background: var(--blue);
  transform: translateY(-50%);
}

.section-title { margin-bottom: 16px; }
.section-desc { font-size: 1.15rem; max-width: 640px; margin-bottom: 48px; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(9,99,237,0.3);
}
.btn-primary:hover {
  background: #0752c9;
  box-shadow: 0 8px 32px rgba(9,99,237,0.45);
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- SKIP LINK (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--blue);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 10000;
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

/* --- HEADER/NAV --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 28, 61, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(9, 99, 237, 0.08);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(0, 28, 61, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

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

.logo { height: 70px; width: auto; object-fit: contain; transition: var(--transition); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 20px;
}

.nav-cta {
  margin-left: 12px;
  padding: 10px 28px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(9,99,237,0.3);
}
.nav-cta:hover { background: #0752c9; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(9,99,237,0.4); }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 88px;
}

/* Animated gradient background */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(9,99,237,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(26,74,122,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 10%, rgba(9,99,237,0.15) 0%, transparent 70%);
  animation: heroGradientShift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGradientShift {
  0% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.8; transform: scale(1); }
}

/* Particle canvas area */
#heroParticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
}

/* Grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(9,99,237,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9,99,237,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero h1 { color: var(--white); margin-bottom: 28px; }
.hero h1 .highlight {
  color: var(--blue);
  position: relative;
}

.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.2rem;
  margin-bottom: 44px;
  line-height: 1.85;
  max-width: 540px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* CSS-only hero entrance animations (no JS dependency) */
.hero-text {
  animation: heroFadeInUp 1s ease both;
}

.hero-visual {
  animation: heroFadeInRight 1.2s ease 0.3s both;
}

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

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

/* Hero visual - image mosaic on desktop */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  max-height: 460px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-visual .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  opacity: 0.85;
  transition: var(--transition-slow);
}

.hero-visual .hero-img:hover {
  opacity: 1;
  transform: scale(1.02);
}

.hero-visual .hero-img:first-child {
  grid-row: 1 / -1;
  border-radius: var(--radius-lg);
}

.hero-visual .hero-img:nth-child(2) { border-radius: var(--radius); }
.hero-visual .hero-img:nth-child(3) { border-radius: var(--radius); }

/* Decorative glow behind hero images */
.hero-visual::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px; right: -20px; bottom: -20px;
  background: radial-gradient(ellipse at center, rgba(9,99,237,0.2) 0%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
  padding-top: 20px;
  position: relative;
  z-index: 3;
  clear: both;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(9,99,237,0.2);
  transform: translateY(-4px);
}

.stat-card:hover::before { opacity: 1; }

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Animated geometric pattern (fallback if no images) */
.geo-pattern {
  width: 360px;
  height: 360px;
  position: relative;
}

.geo-pattern .shape {
  position: absolute;
  border-radius: var(--radius);
  animation: float 6s ease-in-out infinite;
}

.geo-pattern .shape-1 {
  width: 200px; height: 200px;
  background: rgba(9,99,237,0.3);
  top: 40px; left: 80px;
  animation-delay: 0s;
}

.geo-pattern .shape-2 {
  width: 140px; height: 140px;
  background: rgba(9,99,237,0.5);
  border: 3px solid rgba(255,255,255,0.15);
  top: 120px; left: 20px;
  animation-delay: -2s;
}

.geo-pattern .shape-3 {
  width: 100px; height: 100px;
  background: var(--blue);
  top: 60px; right: 20px;
  animation-delay: -4s;
}

.geo-pattern .logo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  z-index: 5;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

/* --- SECTION DIVIDER --- */
.section-divider {
  width: 100%;
  height: 80px;
  position: relative;
  margin-top: -1px;
}

.section-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- SECTIONS GENERAL --- */
.section {
  padding: 120px 0;
  position: relative;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-dark .section-label { color: var(--blue); }

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

/* --- ABOUT --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.about-gallery {
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 180px 180px;
  gap: 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.gallery-img:hover {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.gallery-img-wide {
  grid-column: 1 / -1;
}

.gallery-img-tall {
  grid-row: span 2;
}

.about-text h2 { margin-bottom: 24px; }
.about-text p { margin-bottom: 18px; font-size: 1.05rem; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--gray-50);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: var(--transition);
  border: 1px solid transparent;
}

.feature-item:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(9,99,237,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

/* --- SERVICES --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #3b82f6);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(9,99,237,0.06) 0%, transparent 70%);
  transition: var(--transition-slow);
}

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

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

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--blue), #3b82f6);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(9,99,237,0.2);
}

.service-card h3 { margin-bottom: 14px; font-size: 1.25rem; }
.service-card p { font-size: 0.95rem; line-height: 1.7; }

.service-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 50px;
  transition: var(--transition);
}
.service-cta:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- CERTIFICATIONS --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.cert-card {
  display: flex;
  gap: 24px;
  padding: 36px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(9,99,237,0.08), transparent);
  opacity: 0;
  transition: var(--transition);
}

.cert-card:hover {
  border-color: rgba(9,99,237,0.25);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.cert-card:hover::before { opacity: 1; }

.cert-icon {
  width: 68px;
  height: 68px;
  background: rgba(9,99,237,0.12);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  position: relative;
  z-index: 1;
}

.cert-info { position: relative; z-index: 1; }
.cert-info h3 { margin-bottom: 10px; font-size: 1.2rem; }
.cert-info p { font-size: 0.9rem; }
.cert-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 14px;
  background: rgba(9,99,237,0.2);
  color: var(--blue);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* --- CTA BANNER --- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #3b82f6 50%, var(--blue-dark) 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 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.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner h2 { color: var(--white); margin-bottom: 16px; position: relative; z-index: 1; }
.cta-banner p { color: rgba(255,255,255,0.9); font-size: 1.15rem; margin-bottom: 36px; position: relative; z-index: 1; }
.cta-banner .btn { position: relative; z-index: 1; }

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

.contact-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--gray-50);
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid transparent;
}

.contact-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--gray-200);
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: rgba(9,99,237,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-value a:hover { color: var(--blue); }

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--gray-100);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* --- BLOG --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

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

.blog-thumb {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-thumb-icon {
  width: 48px;
  height: 48px;
  color: rgba(255,255,255,0.15);
}

.blog-category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-content { padding: 28px; }
.blog-date {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.blog-card h3 { font-size: 1.1rem; margin-bottom: 12px; line-height: 1.4; }
.blog-card h3 a:hover { color: var(--blue); }
.blog-excerpt { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 16px; }
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
}
.blog-read-more:hover { gap: 12px; }

/* Blog Post Page */
.blog-post-header {
  padding: 160px 0 60px;
  background: var(--navy);
}
.blog-post-header h1 { color: var(--white); max-width: 720px; margin-bottom: 16px; }
.blog-post-meta { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

.blog-post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.blog-post-body h2 { margin: 48px 0 16px; font-size: 1.6rem; }
.blog-post-body h3 { margin: 32px 0 12px; font-size: 1.25rem; }
.blog-post-body p { margin-bottom: 20px; font-size: 1.05rem; line-height: 1.85; }
.blog-post-body ul, .blog-post-body ol { padding-left: 24px; margin-bottom: 20px; }
.blog-post-body li { margin-bottom: 8px; font-size: 1.05rem; line-height: 1.7; list-style: disc; color: var(--gray-700); }
.blog-post-body ol li { list-style: decimal; }
.blog-post-body blockquote {
  border-left: 4px solid var(--blue);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.blog-post-body blockquote p { color: var(--navy); font-weight: 500; margin-bottom: 0; }

/* Blog listing page header */
.page-header {
  padding: 160px 0 70px;
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(9,99,237,0.2) 0%, transparent 70%);
}

.page-header h1 { color: var(--white); margin-bottom: 16px; position: relative; z-index: 1; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.page-header .section-label { position: relative; z-index: 1; }
.page-header .section-label::before { background: var(--blue); }

/* --- COMPLIANCE PAGE --- */
.compliance-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.compliance-content h2 {
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}
.compliance-content h3 { margin: 24px 0 12px; color: var(--blue-dark); }
.compliance-content p { margin-bottom: 16px; font-size: 1.05rem; }
.compliance-content ul { padding-left: 0; margin-bottom: 20px; }
.compliance-content li {
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 4px solid var(--blue);
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
}
.compliance-content li strong { color: var(--navy); display: block; margin-bottom: 4px; }

.compliance-channel {
  margin: 40px 0;
  padding: 36px;
  background: linear-gradient(135deg, var(--navy), var(--blue-dark));
  border-radius: var(--radius-lg);
  color: var(--white);
  text-align: center;
}
.compliance-channel h3 { color: var(--white); margin-bottom: 12px; }
.compliance-channel p { color: rgba(255,255,255,0.8); margin-bottom: 20px; }
.compliance-channel a {
  color: var(--blue);
  font-weight: 700;
  background: var(--white);
  padding: 4px 12px;
  border-radius: 6px;
}

.compliance-signoff {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--gray-200);
}
.compliance-signoff strong { color: var(--navy); display: block; }

/* --- FOOTER --- */
.footer {
  background: var(--navy);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(9,99,237,0.3), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand { max-width: 320px; }
.footer-logo { height: 55px; width: auto; object-fit: contain; margin-bottom: 20px; }
.footer-desc { font-size: 0.9rem; color: rgba(255,255,255,0.45); line-height: 1.8; }

.footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.footer-links a {
  display: block;
  padding: 7px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

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

.faq-item[open] {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 24px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 28px 24px;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered delays for grid children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Scale up */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* --- WHATSAPP FLOATING --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(37,211,102,0.35);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--navy);
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 34px;
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--blue); transform: translateY(-3px); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  #heroParticles { display: none; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image { max-height: 300px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .section-label { padding-left: 0; }
  .section-label::before { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .header-inner { height: 64px; }
  .logo { height: 44px; }

  .nav-list {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 32px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 999;
  }
  .nav-list.open { transform: translateX(0); }
  .nav-link { font-size: 1rem; padding: 14px 20px; width: 100%; }
  .nav-link::after { display: none; }
  .nav-cta { margin: 16px 0 0; text-align: center; display: block; }

  .menu-toggle { display: flex; }

  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-card { padding: 16px 8px; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.65rem; }

  .gallery-grid { grid-template-rows: 180px 140px 140px; gap: 6px; }

  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .section-label { padding-left: 0; }
  .section-label::before { display: none; }
}
