/* ============================================
   SAS Contábil - One Page Website
   Design System & Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --navy: #1B3A5C;
  --navy-dark: #0F2440;
  --navy-deeper: #091A30;
  --navy-light: #2A5078;
  --burgundy: #8B1A2B;
  --burgundy-dark: #6B1420;
  --burgundy-light: #A82040;
  --gold: #C4A55A;
  --gold-light: #D4BC6A;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #FAFBFC;
  --gray-50: #F7F8FA;
  --gray-100: #EEF0F4;
  --gray-200: #E2E6EC;
  --gray-300: #CBD2DC;
  --gray-400: #A0AABB;
  --gray-500: #6B7A8D;
  --gray-600: #4A5568;
  --gray-700: #2D3748;
  --gray-800: #1A202C;
  --gray-900: #101318;

  /* Semantic */
  --text-primary: #1A202C;
  --text-secondary: #4A5568;
  --text-muted: #6B7A8D;
  --text-on-dark: #F7F8FA;
  --text-on-dark-muted: #CBD2DC;
  --border-color: #E2E6EC;
  --bg-primary: #F3F1EB;
  --bg-secondary: #E8E5DB;
  --bg-accent: #EDE9DF;

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

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --section-padding: 7rem;

  /* Layout */
  --container-width: 1200px;
  --navbar-height: 80px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease-in-out;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 36, 64, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 36, 64, 0.08), 0 1px 2px rgba(15, 36, 64, 0.04);
  --shadow-md: 0 4px 6px rgba(15, 36, 64, 0.06), 0 2px 4px rgba(15, 36, 64, 0.04);
  --shadow-lg: 0 10px 25px rgba(15, 36, 64, 0.08), 0 4px 10px rgba(15, 36, 64, 0.04);
  --shadow-xl: 0 20px 40px rgba(15, 36, 64, 0.1), 0 8px 16px rgba(15, 36, 64, 0.04);
  --shadow-card: 0 2px 8px rgba(15, 36, 64, 0.06), 0 0 1px rgba(15, 36, 64, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(15, 36, 64, 0.1), 0 4px 8px rgba(15, 36, 64, 0.06);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
}


/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -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: 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; outline: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; color: var(--text-primary); }
p { margin-bottom: 1rem; color: var(--text-secondary); }
::selection { background: var(--navy); color: var(--white); }


/* --- Layout --- */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--section-padding) 0; }
.section--gray { background: var(--bg-secondary); }
.section--accent { background: var(--bg-accent); }
.section--dark {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--text-on-dark);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: var(--text-on-dark-muted); }


/* --- Section Headers --- */
.section-header { text-align: center; max-width: 700px; margin: 0 auto var(--space-16); }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--burgundy);
  margin-bottom: var(--space-4);
}

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

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
  color: var(--navy-dark);
}

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

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
  margin: var(--space-6) auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.8;
}

.section--dark .section-subtitle { color: var(--text-on-dark-muted); }


/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--space-4) 0;
  transition: all var(--transition-slow);
}

.header--scrolled {
  background: rgba(9, 26, 48, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  padding: var(--space-3) 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav-logo { display: flex; align-items: center; z-index: 60; }
.nav-logo-img { height: 44px; width: auto; transition: height var(--transition-base); }
.header--scrolled .nav-logo-img { height: 36px; }

/* Floating pill menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: var(--space-1);
}

.header--scrolled .nav-menu {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding: 8px var(--space-4);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

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

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

.header--scrolled .nav-link {
  color: rgba(255, 255, 255, 0.7);
}

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

.header--scrolled .nav-link--active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px var(--space-5);
  background: var(--burgundy);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  margin-left: var(--space-1);
}

.nav-cta:hover {
  background: var(--burgundy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 26, 43, 0.35);
  color: var(--white);
}

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

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; cursor: pointer; z-index: 60; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--white); border-radius: 2px; transition: all var(--transition-base); }
.header--scrolled .nav-toggle span { background: var(--white); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


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

/* Subtle line texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      rgba(255, 255, 255, 0.015) 79px,
      rgba(255, 255, 255, 0.015) 80px
    );
  z-index: 1;
}

/* Thin gold accent line at the very top */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent 5%, var(--gold) 35%, var(--gold-light) 65%, transparent 95%);
  z-index: 4;
}

/* Background atmosphere — office photo behind gradient */
.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45);
}

.hero-atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(9, 26, 48, 0.82) 0%,
    rgba(15, 36, 64, 0.7) 40%,
    rgba(30, 16, 40, 0.6) 70%,
    rgba(100, 16, 28, 0.5) 100%
  );
}

.hero .container { position: relative; z-index: 3; }

.hero-inner {
  padding: calc(var(--navbar-height) + 4rem) 0 5rem;
}

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

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}

.hero-eyebrow-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: var(--space-6);
  line-height: 1.08;
  letter-spacing: -1px;
}

.hero-title em { color: var(--gold); font-style: normal; }

.hero-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
  margin-bottom: var(--space-10);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-metric-value {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-metric-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hero-metric-sep {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* Inner pages (servicos, quem-somos, contato) */
.hero--page {
  min-height: auto;
  padding: calc(var(--navbar-height) + 5rem) 0 5rem;
}

.hero--page .container { position: relative; z-index: 2; }
.hero--page .hero-content { max-width: 700px; padding: 0; }

.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

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

.hero-breadcrumb a:hover { color: var(--gold); }
.hero-breadcrumb span { color: var(--gold); font-weight: 500; }


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-10);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.5;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary { background: var(--burgundy); color: var(--white); box-shadow: 0 2px 8px rgba(139, 26, 43, 0.25); }
.btn--primary:hover { background: var(--burgundy-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139, 26, 43, 0.35); color: var(--white); }

.btn--secondary { background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.25); }
.btn--secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); color: var(--white); }

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

.btn--whatsapp { background: #25D366; color: var(--white); }
.btn--whatsapp:hover { background: #1DA851; color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); color: var(--white); transform: translateY(-2px); }

.btn--lg { padding: 1rem var(--space-12); font-size: var(--text-base); }
.btn--sm { padding: var(--space-2) var(--space-5); font-size: var(--text-xs); }


/* ============================================
   STATS BAR
   ============================================ */
.stats-bar { position: relative; z-index: 10; margin-top: -48px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.stat-item {
  padding: var(--space-8) var(--space-6);
  text-align: center;
  position: relative;
  transition: background var(--transition-base);
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--gray-200);
}

.stat-item:hover { background: var(--bg-secondary); }

.stat-icon {
  color: var(--burgundy);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.stat-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}


/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }

.service-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-8) var(--space-8);
  box-shadow: var(--shadow-lg);
  border: none;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

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

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }

.service-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  margin-bottom: var(--space-6);
}

.service-icon svg { width: 26px; height: 26px; color: var(--white); stroke: var(--white); }

.service-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); color: var(--navy-dark); }
.service-card p { font-size: var(--text-sm); line-height: 1.7; color: var(--text-muted); margin-bottom: var(--space-5); }

.service-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 3px 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.service-list li svg { width: 16px; height: 16px; color: var(--burgundy); flex-shrink: 0; }


/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

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

.about-image .gallery-carousel {
  max-width: 100%;
}

.about-image .gallery-slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

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

.about-image-badge {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: var(--burgundy);
  color: var(--white);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.about-image-badge .badge-number { font-family: var(--font-heading); font-size: var(--text-3xl); line-height: 1; }
.about-image-badge .badge-text { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.9; }

.about-content .section-label { text-align: left; }
.about-content h2 { font-size: var(--text-4xl); color: var(--navy-dark); margin-bottom: var(--space-6); }
.about-text { font-size: var(--text-base); color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--space-6); }

.features-list { display: grid; gap: var(--space-4); margin-bottom: var(--space-8); }

.feature-item { display: flex; align-items: flex-start; gap: var(--space-4); }

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-accent);
  flex-shrink: 0;
}

.feature-icon svg { width: 18px; height: 18px; color: var(--burgundy); }
.feature-item h4 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; margin-bottom: 2px; color: var(--navy-dark); }
.feature-item p { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 0; line-height: 1.5; }


/* ============================================
   VALUES / DIFFERENTIALS
   ============================================ */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }

.value-card {
  text-align: center;
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-2xl);
  background: var(--white);
  border: none;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(27, 58, 92, 0.08), rgba(139, 26, 43, 0.08));
}

.value-icon svg { width: 24px; height: 24px; color: var(--navy); }
.value-card h3 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-2); color: var(--navy-dark); }
.value-card p { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 0; line-height: 1.6; }


/* ============================================
   PROCESS STEPS
   ============================================ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }

.process-step { text-align: center; position: relative; }

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: var(--gray-200);
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
}

.process-step:nth-child(3) .step-number,
.process-step:nth-child(4) .step-number { background: var(--burgundy); }

.process-step h4 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); color: var(--navy-dark); }
.process-step p { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 0; }


/* ============================================
   GALLERY CAROUSEL
   ============================================ */
.gallery-carousel {
  position: relative;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.gallery-slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  color: var(--navy-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 2;
}

.gallery-btn:hover {
  background: var(--white);
  box-shadow: var(--shadow-xl);
}

.gallery-btn--prev { left: var(--space-3); }
.gallery-btn--next { right: var(--space-3); }

.gallery-dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  z-index: 2;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.gallery-dot.active {
  background: var(--white);
  width: 24px;
}


/* ============================================
   CEO SECTION
   ============================================ */
.ceo-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-16);
  align-items: center;
}

.ceo-photo { position: relative; }

.ceo-photo img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.ceo-photo::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--burgundy);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.25;
}

.ceo-info h3 { font-size: var(--text-3xl); color: var(--navy-dark); margin-bottom: var(--space-2); }
.ceo-role { font-size: var(--text-sm); font-weight: 600; color: var(--burgundy); margin-bottom: var(--space-6); display: block; }
.ceo-info p { font-size: var(--text-base); line-height: 1.8; color: var(--text-secondary); }

.ceo-quote {
  position: relative;
  padding: var(--space-6) var(--space-8);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin-top: var(--space-8);
  border-left: 3px solid var(--burgundy);
}

.ceo-quote p { font-family: var(--font-heading); font-size: var(--text-lg); color: var(--navy-dark); line-height: 1.6; margin-bottom: 0; }


/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients-marquee-wrapper { overflow: hidden; position: relative; }

.clients-marquee-wrapper::before,
.clients-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.clients-marquee-wrapper::before { left: 0; background: linear-gradient(90deg, var(--bg-secondary), transparent); }
.clients-marquee-wrapper::after { right: 0; background: linear-gradient(-90deg, var(--bg-secondary), transparent); }

.clients-marquee {
  display: flex;
  gap: var(--space-6);
  animation: marquee 40s linear infinite;
}

.clients-marquee:hover { animation-play-state: paused; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  min-width: 200px;
  height: 64px;
  transition: all var(--transition-base);
  cursor: default;
}

.client-logo-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }

.client-logo-card span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-dark);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.client-logo-card img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-base);
}

.client-logo-card:hover img { filter: grayscale(0%); opacity: 1; }


/* ============================================
   ADDITIONAL SERVICES
   ============================================ */
.additional-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }

.additional-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  cursor: pointer;
}

.additional-item:hover { border-color: var(--burgundy); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.additional-item svg { width: 20px; height: 20px; color: var(--navy); flex-shrink: 0; }
.additional-item span { font-size: var(--text-sm); font-weight: 500; color: var(--text-primary); }


/* ============================================
   CONTACT
   ============================================ */
/* Contact grid: form + info card */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-12);
}

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

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

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px var(--space-4);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--white);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

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

.contact-info-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

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

.contact-item:last-child { margin-bottom: 0; }

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.contact-icon svg { width: 18px; height: 18px; color: var(--burgundy); }

.contact-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 2px;
}

.contact-item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.contact-item a { color: var(--burgundy); font-weight: 500; }
.contact-item a:hover { color: var(--burgundy-dark); }

.map-container {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: var(--space-10);
  height: 220px;
}

.map-container iframe { width: 100%; height: 100%; border: 0; }


/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #3D2035 100%);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(139, 26, 43, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(196, 165, 90, 0.05) 0%, transparent 50%);
}

.cta-content { position: relative; z-index: 2; text-align: center; max-width: 650px; margin: 0 auto; }
.cta-content h2 { font-size: var(--text-4xl); color: var(--white); margin-bottom: var(--space-6); }
.cta-content p { font-size: var(--text-lg); color: rgba(255, 255, 255, 0.7); margin-bottom: var(--space-8); line-height: 1.8; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: var(--space-4); flex-wrap: wrap; }


/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--navy-deeper); color: var(--text-on-dark-muted); padding: var(--space-12) 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
}

.footer-brand p { font-size: var(--text-sm); color: var(--text-on-dark-muted); line-height: 1.7; margin-top: var(--space-4); opacity: 0.6; }
.footer-brand .footer-social { margin-top: var(--space-5); }
.footer-logo { height: 40px; width: auto; }

.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: var(--space-5);
}

.footer-links li { margin-bottom: var(--space-2); }
.footer-links a { font-size: var(--text-sm); color: var(--text-on-dark-muted); opacity: 0.6; transition: all var(--transition-base); }
.footer-links a:hover { color: var(--gold); opacity: 1; }

.footer-contact li { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-3); font-size: var(--text-sm); opacity: 0.6; }
.footer-contact li svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }

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

.footer-bottom p { font-size: var(--text-xs); color: var(--text-on-dark-muted); opacity: 0.4; margin-bottom: 0; }

.footer-dev {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-on-dark-muted);
  opacity: 0.4;
  transition: opacity var(--transition-base);
}

.footer-dev:hover { opacity: 0.7; }

.footer-dev-logo {
  height: 16px;
  width: auto;
  display: inline-block;
}

.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
}
.footer-social a:hover { background: var(--burgundy); }
.footer-social svg { width: 14px; height: 14px; color: var(--text-on-dark-muted); }


/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 40;
  transition: all var(--transition-base);
  cursor: pointer;
}

.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5); }
.whatsapp-float svg { width: 26px; height: 26px; color: var(--white); fill: var(--white); }


/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal--visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .clients-marquee { animation: none; flex-wrap: wrap; justify-content: center; }
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root { --section-padding: 4.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .about-image img, .about-image .gallery-slide img { height: 380px; }
  .ceo-grid { grid-template-columns: 280px 1fr; gap: var(--space-10); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .additional-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
  :root { --section-padding: 3.5rem; --navbar-height: 70px; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-12) var(--space-8);
    gap: var(--space-5);
    transition: right var(--transition-slow);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 55;
  }

  .header--scrolled .nav-menu {
    background: var(--white);
    border: none;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  }

  .nav-menu.active { right: 0; }
  .nav-menu .nav-link {
    color: var(--navy-dark);
    font-size: var(--text-lg);
    background: none;
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
  }
  .nav-menu .nav-link:hover { background: var(--bg-secondary); color: var(--navy-dark); }
  .header--scrolled .nav-menu .nav-link { color: var(--navy-dark); }
  .header--scrolled .nav-menu .nav-link:hover { color: var(--navy-dark); background: var(--bg-secondary); }
  .nav-menu .nav-cta { margin-top: var(--space-4); margin-left: 0; }
  .nav-toggle { display: flex; }

  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 52; }
  .nav-overlay.active { display: block; }

  .hero-inner { padding: calc(var(--navbar-height) + 2.5rem) 0 4rem; }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: clamp(2rem, 7vw, 2.75rem); letter-spacing: -0.5px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-metrics { gap: var(--space-4); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item::after { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .section-title { font-size: var(--text-3xl); }
  .about-image .gallery-slide img { height: 300px; }
  .gallery-btn { width: 34px; height: 34px; }
  .gallery-btn--prev { left: var(--space-2); }
  .gallery-btn--next { right: var(--space-2); }
  .ceo-grid { grid-template-columns: 1fr; text-align: center; }
  .ceo-photo img { max-width: 300px; margin: 0 auto; height: 380px; }
  .ceo-photo::after { bottom: -8px; right: -8px; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; gap: var(--space-4); text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .additional-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .cta-content h2 { font-size: var(--text-3xl); }
  .whatsapp-float { bottom: var(--space-6); right: var(--space-6); width: 50px; height: 50px; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: var(--space-6) var(--space-4); }
  .process-grid { grid-template-columns: 1fr; }
}
