/* ============================================
   AVCB ENGENHARIA - Design System & Styles
   Premium Professional Website
   ============================================ */

/* === CSS Custom Properties === */
:root {
  /* Brand Colors */
  --red-primary: #CC2229;
  --red-dark: #9B1B20;
  --red-light: #E8434A;
  --blue-primary: #1E3A8A;
  --blue-dark: #152C6B;
  --blue-light: #2B4FAF;
  --blue-accent: #3B82F6;

  /* Neutrals */
  --dark-900: #0B1120;
  --dark-800: #0F172A;
  --dark-700: #1E293B;
  --dark-600: #334155;
  --dark-500: #475569;
  --gray-400: #94A3B8;
  --gray-300: #CBD5E1;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --gray-50: #F8FAFC;
  --white: #FFFFFF;

  /* Gradients */
  --gradient-blue: linear-gradient(135deg, #1E3A8A 0%, #2B4FAF 100%);
  --gradient-red: linear-gradient(135deg, #CC2229 0%, #E8434A 100%);
  --gradient-dark: linear-gradient(180deg, #0B1120 0%, #1E293B 100%);
  --gradient-hero: linear-gradient(135deg, #0B1120 0%, #152C6B 50%, #1E3A8A 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(11,17,32,0.9) 0%, rgba(30,58,138,0.7) 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --shadow-red: 0 4px 14px 0 rgba(204,34,41,0.39);
  --shadow-blue: 0 4px 14px 0 rgba(30,58,138,0.39);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 7rem);
  --container-max: 1280px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Header */
  --header-height: 80px;
}

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

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

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

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.75;
  color: var(--dark-500);
}

.text-white p,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4 {
  color: var(--white);
}

.text-white p {
  color: rgba(255,255,255,0.8);
}

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

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

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

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

.section-blue {
  background: var(--gradient-blue);
  color: var(--white);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-primary);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--red-primary);
  border-radius: 2px;
}

.section-dark .section-label {
  color: var(--red-light);
}

.section-dark .section-label::before {
  background: var(--red-light);
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

/* === Header / Navigation === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-base);
  background: transparent;
}

.header.scrolled {
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo img {
  height: 45px;
  width: auto;
  transition: transform var(--transition-base);
}

.logo:hover img {
  transform: scale(1.05);
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.nav-link.active {
  color: var(--red-light);
}

.nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

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

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2xl);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--dark-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--gray-50);
  color: var(--blue-primary);
  padding-left: 18px;
}

/* Header CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--gradient-red);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-red);
  margin-left: 16px;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204,34,41,0.5);
}

.header-cta svg {
  width: 16px;
  height: 16px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.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);
}

/* Mobile Nav */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--dark-800);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    transition: right var(--transition-slow);
    overflow-y: auto;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-link {
    width: 100%;
    padding: 16px 4px;
    font-size: 1rem;
    border-radius: 0;
    background: transparent !important;
    color: rgba(255,255,255,0.85);
    justify-content: space-between;
  }

  .nav-link:hover,
  .nav-link:focus,
  .nav-link:active {
    background: transparent !important;
    color: var(--white);
  }

  .nav-link.active {
    color: var(--red-light);
    background: transparent !important;
  }

  /* Disable desktop hover-open behavior on touch devices */
  .nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0 0 8px 12px;
    display: none;
    min-width: auto;
    margin-top: -4px;
  }

  /* Show dropdown only when explicitly opened (JS-controlled) */
  .nav-item.open .nav-dropdown,
  .nav-dropdown.open {
    display: block;
  }

  /* Rotate chevron when dropdown opens (JS adds .rotated) */
  .nav-link svg.rotated {
    transform: rotate(180deg);
  }
  .nav-item:hover .nav-link svg {
    transform: none;
  }

  .dropdown-link {
    color: rgba(255,255,255,0.6);
    padding: 10px 0;
    font-size: 0.92rem;
    border-radius: 0;
    background: transparent !important;
  }

  .dropdown-link:hover,
  .dropdown-link:active {
    background: transparent !important;
    color: var(--white);
    padding-left: 6px;
  }

  .header-cta {
    margin: 24px 0 0;
    width: 100%;
    justify-content: center;
  }
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  z-index: 0;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.hero-bg-shapes .shape-1 {
  width: 600px;
  height: 600px;
  background: var(--red-primary);
  top: -200px;
  right: -200px;
}

.hero-bg-shapes .shape-2 {
  width: 400px;
  height: 400px;
  background: var(--blue-accent);
  bottom: -100px;
  left: -100px;
}

.hero-bg-shapes .shape-3 {
  width: 300px;
  height: 300px;
  background: var(--red-primary);
  bottom: 20%;
  right: 10%;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-height);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(204, 34, 41, 0.15);
  border: 1px solid rgba(204, 34, 41, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

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

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

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

/* Hero Image / Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.hero-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30,58,138,0.2) 0%, transparent 60%);
}

.hero-float-card {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-float-card.card-1 {
  bottom: -20px;
  left: -30px;
  animation: float 6s ease-in-out infinite;
}

.hero-float-card.card-2 {
  top: -15px;
  right: -20px;
  animation: float 6s ease-in-out infinite reverse;
}

.hero-float-card .icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-red);
  color: var(--white);
  flex-shrink: 0;
}

.hero-float-card .icon svg {
  width: 20px;
  height: 20px;
}

.hero-float-card .info .title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
}

.hero-float-card .info .desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3rem;
  }

  .hero {
    min-height: auto;
  }

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

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

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

  .hero-visual {
    order: -1;
  }

  .hero-image-wrapper img {
    height: 300px;
  }

  .hero-float-card {
    display: none;
  }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--gradient-red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(204,34,41,0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-primary);
  border: 2px solid var(--blue-primary);
}

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

.btn-blue {
  background: var(--gradient-blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30,58,138,0.5);
}

.btn-white {
  background: var(--white);
  color: var(--blue-primary);
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2xl);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

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

/* WhatsApp Button */
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}

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

/* === Cards === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

.card-dark {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}

.card-dark:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(204,34,41,0.08), rgba(204,34,41,0.02));
  color: var(--red-primary);
  transition: all var(--transition-base);
}

.card:hover .card-icon {
  background: var(--gradient-red);
  color: var(--white);
  transform: scale(1.05);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red-primary);
  transition: all var(--transition-fast);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

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

.card-link:hover svg {
  transform: translateX(3px);
}

/* Card number accent */
.card-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--gray-100);
  line-height: 1;
  transition: color var(--transition-base);
}

.card:hover .card-number {
  color: rgba(204, 34, 41, 0.08);
}

/* === Services Grid === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* === About Section === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(transparent, rgba(11,17,32,0.4));
}

.about-image.about-image-light {
  background: #fff;
}
.about-image.about-image-light::after {
  display: none;
}
.about-image.about-image-light img {
  height: auto;
  max-height: 450px;
  object-fit: contain;
  padding: 2rem;
  background: #fff;
}

.about-accent {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--gradient-red);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-red);
}

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature .icon-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(204,34,41,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red-primary);
  margin-top: 2px;
}

.about-feature .icon-check svg {
  width: 14px;
  height: 14px;
}

.about-feature span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-600);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image img {
    height: 300px;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
}

/* === Stats / Numbers === */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition-base);
}

.stat-item:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number span {
  color: var(--red-light);
}

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

@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }
}

/* === Clients / Logos === */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  min-height: 90px;
}

.client-logo:hover {
  border-color: var(--red-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.client-logo img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-base);
}

.client-logo:hover img {
  transform: scale(1.05);
}

.client-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark-600);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === Case Studies === */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

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

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

.case-card-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-card-badge {
  display: inline-flex;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(204,34,41,0.08);
  color: var(--red-primary);
  border-radius: var(--radius-full);
}

.case-card-location {
  font-size: 0.8rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}

.case-card-location svg {
  width: 14px;
  height: 14px;
}

.case-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.case-card-logo {
  display: flex;
  align-items: center;
  height: 48px;
  margin-bottom: 0.75rem;
}

.case-card-logo img {
  max-height: 48px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.case-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

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

@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

/* === Products Grid === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 968px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card > .product-list,
.product-card > p {
  margin-bottom: 1.5rem;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-red);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.product-card:hover::before {
  transform: scaleX(1);
}

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

.product-image {
  margin: -2rem -2rem 1.25rem;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -50px auto 1rem;
  background: var(--white);
  color: var(--red-primary);
  transition: all var(--transition-base);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.product-card:hover .product-icon {
  background: var(--gradient-blue);
  color: var(--white);
  transform: scale(1.05);
}

.product-icon svg {
  width: 32px;
  height: 32px;
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.product-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 0;
}

.product-list {
  text-align: left;
  margin-top: 0;
}

.product-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--dark-500);
  border-bottom: 1px solid var(--gray-100);
}

.product-list li:last-child {
  border-bottom: none;
}

.product-list li svg {
  width: 16px;
  height: 16px;
  color: var(--red-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* === Contact Form === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-color: var(--red-primary);
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-red);
  color: var(--white);
  flex-shrink: 0;
}

.contact-info-card .icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.88rem;
  color: var(--dark-500);
}

.contact-info-card a {
  color: var(--blue-primary);
  font-weight: 500;
}

.contact-info-card a:hover {
  color: var(--red-primary);
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--dark-800);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--dark-600);
}

.form-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--red-primary);
}

.form-submit {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* === Map === */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* === CTA Section === */
.cta-section {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--gradient-hero);
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === Footer === */
.footer {
  background: var(--dark-900);
  color: var(--white);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: 3rem;
}

.footer-brand img {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

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

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--red-primary);
  border-radius: 2px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-col ul li a svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.footer-col ul li a:hover svg {
  opacity: 1;
}

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

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--red-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* === Page Header (internal pages) === */
.page-header {
  position: relative;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: var(--gradient-hero);
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.page-header-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  color: rgba(255,255,255,0.3);
}

.breadcrumb .current {
  color: var(--red-light);
  font-weight: 500;
}

/* === ABSpk / Membership Section === */
.membership-section {
  background: var(--gray-50);
  border-top: 3px solid var(--red-primary);
}

.membership-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.membership-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.membership-badge img {
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 160px;
  display: block;
}

.membership-text h3 {
  margin-bottom: 0.75rem;
  color: var(--dark-800);
}

.membership-text p {
  font-size: 0.95rem;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .membership-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .membership-badge {
    margin: 0 auto;
  }
}

/* === Mission/Vision/Values === */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mvv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.mvv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-red);
}

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

.mvv-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(30,58,138,0.08), rgba(30,58,138,0.02));
  color: var(--blue-primary);
}

.mvv-icon svg {
  width: 28px;
  height: 28px;
}

.mvv-card h3 {
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .mvv-grid {
    grid-template-columns: 1fr;
  }
}

/* === Differentials === */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.diff-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

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

.diff-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gradient-blue);
  color: var(--white);
}

.diff-card-icon svg {
  width: 24px;
  height: 24px;
}

.diff-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.diff-card p {
  font-size: 0.88rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .diff-grid {
    grid-template-columns: 1fr;
  }
  .diff-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
  }
  .diff-card > div:not(.diff-card-icon) {
    width: 100%;
  }
  .diff-card-icon {
    margin: 0 auto;
  }
  .diff-card-icon img {
    margin: 0 auto;
  }
}

/* === Page Specific: Service Detail === */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.service-detail-grid .service-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.service-detail-grid .service-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.service-detail-grid .service-image-pillars {
  background: #fff;
  box-shadow: var(--shadow-xl);
  overflow: visible;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-detail-grid .service-image-pillars svg {
  width: 100%;
  height: auto;
  display: block;
}

.service-features {
  list-style: none;
  margin-top: 1.5rem;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
  color: var(--dark-600);
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li svg {
  width: 20px;
  height: 20px;
  color: var(--red-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  .service-detail-grid .service-image {
    position: static;
  }
}

/* === WhatsApp Floating Button === */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-float a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition-base);
  animation: pulse-whatsapp 2s infinite;
}

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

.whatsapp-float a svg {
  width: 28px;
  height: 28px;
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6), 0 0 0 10px rgba(37,211,102,0.1); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
}

/* === Scroll Animations === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children */
.stagger-children .reveal {
  transition-delay: calc(var(--i, 0) * 100ms);
}

/* === Loader === */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-900);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--red-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === Social Proof / Badges === */
.badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

.badge-item svg {
  width: 18px;
  height: 18px;
  color: var(--red-light);
}

/* === Timeline === */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red-primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px rgba(204,34,41,0.2);
}

.timeline-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: 0.9rem;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }

.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

.rounded-full { border-radius: var(--radius-full); }
.overflow-hidden { overflow: hidden; }

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

/* === Smooth page transition === */
.page-transition {
  animation: fadeIn 0.5s ease;
}

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

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-800);
}

::-webkit-scrollbar-thumb {
  background: var(--dark-600);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-500);
}

/* === Selection === */
::selection {
  background: var(--red-primary);
  color: var(--white);
}

/* === Print === */
@media print {
  .header,
  .whatsapp-float,
  .page-loader {
    display: none;
  }
}

/* === Mobile fixes (≤640px) === */
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-bottom: 2rem;
  }
  .hero .container {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 1.5rem;
  }
  .hero-content {
    padding-top: calc(var(--header-height) + 0.5rem);
  }
  .hero-text {
    text-align: center;
  }
  .hero-badge {
    font-size: 0.7rem;
    padding: 5px 12px;
    letter-spacing: 0.02em;
  }
  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    line-height: 1.15;
  }
  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  .hero-buttons {
    justify-content: center;
    margin-bottom: 2rem;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    justify-content: space-around;
    gap: 1rem;
  }
  .hero-stat .number {
    font-size: 1.6rem;
  }
  .hero-stat .label {
    font-size: 0.75rem;
  }
  .hero-visual {
    order: -1;
  }
  .hero-image-wrapper img {
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--radius-lg);
  }
  .hero-float-card {
    display: none;
  }
  /* Page header (sub-pages) tighter */
  .page-header {
    padding: calc(var(--header-height) + 2rem) 1rem 2.5rem;
  }
  .page-header h1 {
    font-size: 1.75rem;
  }
  .page-header p {
    font-size: 0.95rem;
  }
  /* Section title sizing */
  .section h2 {
    font-size: 1.5rem;
    line-height: 1.25;
  }
  /* Membership badge mobile */
  .membership-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .membership-badge {
    margin: 0 auto;
  }
  .membership-badge img {
    max-width: 180px;
    max-height: 130px;
  }
  /* Stats bar mobile */
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  /* CTA buttons */
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   PRODUCT DETAIL PAGES (produto-*.html)
   ============================================ */

.section-alt {
  background: var(--gray-50, #F8F9FB);
}

/* Hero detail grid (image + intro text) */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.product-detail-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  background: #fff;
}
.product-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.product-detail-text .section-label {
  margin-bottom: 0.75rem;
}
.product-detail-text h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.product-detail-text p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--dark-500);
}

/* Spec/feature grid (Equipamentos & Especificações) */
.product-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.spec-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem 1.4rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11, 17, 32, 0.06);
  box-shadow: 0 4px 14px rgba(11, 17, 32, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.spec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(11, 17, 32, 0.08);
  border-color: rgba(230, 57, 70, 0.25);
}
.spec-card .spec-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--primary, #E63946);
  background: rgba(230, 57, 70, 0.1);
  border-radius: 50%;
  padding: 4px;
  box-sizing: content-box;
}
.spec-card span {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--dark-700, #1F2937);
  line-height: 1.5;
}

/* Banner with L image + text */
.product-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, #fff 0%, #FBFBFC 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(11, 17, 32, 0.04);
}
.product-banner-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(11, 17, 32, 0.14);
}
.product-banner-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.product-banner-text h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.product-banner-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-500);
}

/* Other products grid (cross-sell) */
.other-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.other-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(11, 17, 32, 0.06);
  box-shadow: 0 4px 14px rgba(11, 17, 32, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.other-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(11, 17, 32, 0.12);
  border-color: rgba(230, 57, 70, 0.4);
}
.other-product-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #F8F9FB;
}
.other-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.other-product-card:hover .other-product-image img {
  transform: scale(1.06);
}
.other-product-text {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.other-product-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-900, #0B1120);
  margin: 0;
  line-height: 1.3;
}
.other-product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary, #E63946);
  margin-top: 0.25rem;
}
.other-product-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}
.other-product-card:hover .other-product-link svg {
  transform: translateX(3px);
}

/* RESPONSIVE — product detail pages */
@media (max-width: 968px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .product-detail-image {
    order: -1;
  }
  .product-spec-grid {
    grid-template-columns: 1fr;
  }
  .product-banner {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .product-banner-image {
    order: -1;
  }
  .product-banner-image img {
    aspect-ratio: 3 / 2;
  }
  .other-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .other-products-grid {
    grid-template-columns: 1fr;
  }
  .other-product-image {
    aspect-ratio: 16 / 9;
  }
}

/* ========================================================================== */
/* + Infos — info-<slug>.html pages and infos.html listing                    */
/* ========================================================================== */

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Article body */
.info-article {
  padding-block: 4rem 3rem;
}
.info-intro {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.04) 0%, rgba(220, 38, 38, 0.01) 100%);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
}
.info-related {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-alt, #f8fafc);
  border-radius: 10px;
  font-size: 0.98rem;
  color: var(--text-muted, #4b5563);
}
.info-related a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}
.info-related a:hover { text-decoration: underline; }

/* FAQ accordion */
.faq-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all .25s ease;
  overflow: hidden;
}
.faq-item[open] {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(220, 38, 38, 0.18);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h2 {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0;
  color: var(--text, #0f172a);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
  flex: 1;
}
.faq-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.08);
  color: var(--primary);
  transition: transform .3s ease, background .3s ease;
}
.faq-icon svg { width: 18px; height: 18px; }
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  background: var(--primary);
  color: #fff;
}
.faq-item p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted, #475569);
}

/* CTA section */
.info-cta-section {
  padding-block: 2rem 5rem;
}
.info-cta-card {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 3rem 2.5rem;
  border-radius: 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}
.info-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(37, 211, 102, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.info-cta-card > * { position: relative; z-index: 1; }
.info-cta-card h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin-bottom: 0.75rem;
  color: #fff;
}
.info-cta-card p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.info-cta-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.05rem 2rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  background: #25D366;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.5);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.info-cta-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.65);
  background: #1faa54;
}
.info-cta-whatsapp svg { flex-shrink: 0; }

/* infos.html listing */
.infos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.info-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.info-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  border-color: rgba(220, 38, 38, 0.2);
}
.info-card:hover::before { transform: scaleX(1); }
.info-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.info-card-tag.preco { color: #0f766e; }
.info-card-tag.instalacao { color: #2563eb; }
.info-card-tag.servicos { color: #7c3aed; }
.info-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text, #0f172a);
  margin: 0;
}
.info-card-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
}
.info-card-arrow svg { width: 16px; height: 16px; transition: transform .25s ease; }
.info-card:hover .info-card-arrow svg { transform: translateX(4px); }

/* Filter buttons */
.infos-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.infos-filter-btn {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--text, #0f172a);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.infos-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.infos-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

@media (max-width: 968px) {
  .infos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .infos-grid { grid-template-columns: 1fr; }
  .info-cta-card { padding: 2.25rem 1.5rem; }
  .info-intro { padding: 1.25rem 1.25rem; font-size: 1.05rem; }
  .faq-item summary { padding: 1rem 1.1rem; }
  .faq-item summary h2 { font-size: 1rem; }
  .faq-item p { padding: 0 1.1rem 1.1rem; }
}

/* Footer — discreet "+ Infos" link below social icons in brand block */
.footer-infos-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color .2s ease, transform .2s ease;
}
.footer-infos-link::before {
  content: '›';
  font-size: 1rem;
  color: var(--primary, #dc2626);
  font-weight: 700;
}
.footer-infos-link:hover {
  color: #fff;
  transform: translateX(2px);
}

/* ========================================================================== */
/* v1.9.0 — Featured image + body HTML (rich content) for CMS posts           */
/* ========================================================================== */

.info-featured-image {
  padding-top: 2rem;
  padding-bottom: 0;
}
.info-featured-figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.15);
  aspect-ratio: 16 / 9;
  background: var(--bg-alt, #f1f5f9);
}
.info-featured-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body HTML — rich prose typography */
.info-body-html {
  margin-top: 2rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text, #0f172a);
}
.info-body-html > * + * {
  margin-top: 1.25rem;
}
.info-body-html h2,
.info-body-html h3,
.info-body-html h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text, #0f172a);
  margin-top: 2.5rem;
}
.info-body-html h2 { font-size: 1.6rem; }
.info-body-html h3 { font-size: 1.3rem; }
.info-body-html h4 { font-size: 1.1rem; }
.info-body-html p {
  color: var(--text-muted, #475569);
}
.info-body-html a {
  color: var(--primary, #dc2626);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.info-body-html a:hover { text-decoration: none; }
.info-body-html strong { font-weight: 700; color: var(--text, #0f172a); }
.info-body-html ul,
.info-body-html ol {
  padding-left: 1.5rem;
}
.info-body-html li { margin-bottom: 0.5rem; }
.info-body-html img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.1);
}
.info-body-html figure {
  margin: 2rem 0;
  text-align: center;
}
.info-body-html figure img { display: inline-block; }
.info-body-html figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted, #64748b);
  font-style: italic;
}
.info-body-html blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary, #dc2626);
  background: rgba(220, 38, 38, 0.04);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-muted, #475569);
}
.info-body-html hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 2.5rem 0;
}

@media (max-width: 600px) {
  .info-featured-figure { border-radius: 12px; aspect-ratio: 4 / 3; }
  .info-body-html { font-size: 1rem; }
  .info-body-html h2 { font-size: 1.4rem; }
}
