/* ============================================
   GLEICE SANTANA — Design System
   Consultoria para o Terceiro Setor
   ============================================ */

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

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-primary: #A2C6C5;
  --color-primary-dark: #8AB5B4;
  --color-primary-light: #C4DCDB;
  --color-secondary: #86A6A0;
  --color-secondary-dark: #6E8E88;
  --color-secondary-light: #A3BDB8;
  --color-accent: #FB9A63;
  --color-accent-dark: #E8864F;
  --color-accent-light: #F5AC77;
  --color-cream: #FFF5EF;
  --color-cream-dark: #F5E8DF;
  --color-white: #FFFFFF;
  --color-text: #2D3436;
  --color-text-secondary: #636E72;
  --color-text-light: #B2BEC3;
  --color-border: #DFE6E9;
  --color-whatsapp: #25D366;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', 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-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* Navbar */
  --navbar-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  -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-fast);
}

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(--color-text);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

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

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

/* --- Section --- */
.section {
  padding: var(--space-5xl) 0;
}

.section--cream {
  background-color: var(--color-cream);
}

.section--primary {
  background-color: var(--color-primary);
}

.section--secondary {
  background-color: var(--color-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-md);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.section-header p {
  max-width: 600px;
  margin: var(--space-lg) auto 0;
  font-size: var(--text-lg);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  z-index: 1000;
  transition: all var(--transition-base);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

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

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar__logo svg,
.navbar__logo img {
  height: 60px;
  width: auto;
}

.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}

.navbar__logo-text span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0.5px;
}

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

.navbar__link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: var(--space-xs) 0;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__link:hover {
  color: var(--color-accent);
}

.navbar__link.active {
  color: var(--color-accent);
}

.navbar__socials {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.navbar__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.navbar__social-icon:hover {
  color: var(--color-accent);
  background: var(--color-cream);
}

.navbar__social-icon svg {
  width: 18px;
  height: 18px;
}

/* Hamburger Menu */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1001;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.navbar__toggle span:nth-child(2) {
  margin: 6px 0;
}

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

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

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

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

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 154, 99, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

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

.btn--outline-dark {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

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

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

.btn--white:hover {
  background: var(--color-cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

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

.btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
}

/* ============================================
   CARDS
   ============================================ */

/* Service Card */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary-light);
}

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

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: var(--color-accent);
  transform: scale(1.1);
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
}

.service-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.service-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Stat Card */
.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--color-accent);
  transition: all var(--transition-base);
}

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

.stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-cream);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.stat-card__icon svg {
  width: 28px;
  height: 28px;
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.stat-card__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}

.stat-card__text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-top: var(--space-md);
}

/* Contact Card */
.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.contact-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card-hover);
}

.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  flex-shrink: 0;
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card__label {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.contact-card__value {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
}

/* Blog Card */
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

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

.blog-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
}

.blog-card__body {
  padding: var(--space-xl);
}

.blog-card__date {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: var(--space-sm) 0;
  line-height: 1.4;
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.blog-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.blog-card__link:hover {
  gap: var(--space-sm);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem 1rem;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  background: var(--color-cream);
  color: var(--color-accent);
  border: 1px solid var(--color-accent-light);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  overflow: hidden;
  margin-top: var(--navbar-height);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(134, 166, 160, 0.85);
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
  font-weight: 300;
}

.hero__buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero Decorative Elements */
.hero__shapes {
  position: absolute;
  right: -5%;
  top: 10%;
  z-index: 1;
  opacity: 0.1;
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 2;
}

.hero__wave svg {
  display: block;
  width: 100%;
  height: auto;
}

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

.about-preview__image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-preview__image {
  width: 350px;
  height: 350px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 5px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-cream));
}

.about-preview__dots {
  position: absolute;
  width: 120px;
  height: 120px;
  bottom: -10px;
  right: 15%;
  z-index: 1;
  opacity: 0.3;
  background-image: radial-gradient(circle, var(--color-accent) 2px, transparent 2px);
  background-size: 15px 15px;
}

.about-preview__content h2 {
  margin-bottom: var(--space-lg);
}

.about-preview__content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
}

.about-preview__values {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2xl);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-secondary-dark);
  color: var(--color-white);
  padding: var(--space-4xl) 0 var(--space-xl);
}

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

.footer__brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  max-width: 300px;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--color-white);
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

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

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-xl);
}

.footer__brand img {
  height: 70px;
  width: auto;
  margin-bottom: var(--space-md);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
}

.footer__bottom p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  animation: pulse-whatsapp 2s infinite;
}

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

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

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

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

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

.back-to-top:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

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

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

/* Services grid: 3 top, 2 bottom centered */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.services-grid .service-card:nth-child(4),
.services-grid .service-card:nth-child(5) {
  /* Center the last 2 cards */
}

/* When we have exactly 5 cards, use a custom layout */
.services-grid--5 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-xl);
}

.services-grid--5 .service-card:nth-child(1) {
  grid-column: 1 / 3;
}

.services-grid--5 .service-card:nth-child(2) {
  grid-column: 3 / 5;
}

.services-grid--5 .service-card:nth-child(3) {
  grid-column: 5 / 7;
}

.services-grid--5 .service-card:nth-child(4) {
  grid-column: 2 / 4;
}

.services-grid--5 .service-card:nth-child(5) {
  grid-column: 4 / 6;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.animate--delay-1 { transition-delay: 0.1s; }
.animate--delay-2 { transition-delay: 0.2s; }
.animate--delay-3 { transition-delay: 0.3s; }
.animate--delay-4 { transition-delay: 0.4s; }
.animate--delay-5 { transition-delay: 0.5s; }

.animate--scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.animate--left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.animate--right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(162, 198, 197, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 256 256'%3E%3Cpolyline points='208,96 128,176 48,96' fill='none' stroke='%23636E72' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 3rem;
}

.form-error {
  font-size: var(--text-xs);
  color: #e74c3c;
  margin-top: var(--space-xs);
  display: none;
}

.form-group.error .form-input,
.form-group.error .form-textarea,
.form-group.error .form-select {
  border-color: #e74c3c;
}

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

/* Form Success/Error Messages */
.form-message {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
  display: none;
}

.form-message--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

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

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
  }

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

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

  .services-grid--5 .service-card:nth-child(1),
  .services-grid--5 .service-card:nth-child(2),
  .services-grid--5 .service-card:nth-child(3),
  .services-grid--5 .service-card:nth-child(4),
  .services-grid--5 .service-card:nth-child(5) {
    grid-column: auto;
  }

  .about-preview {
    gap: var(--space-2xl);
  }

  .about-preview__image {
    width: 280px;
    height: 280px;
  }

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

/* Mobile */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.375rem;
    --navbar-height: 70px;
  }

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

  /* Navbar Mobile */
  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--navbar-height) + var(--space-xl)) var(--space-2xl) var(--space-2xl);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    gap: var(--space-md);
    z-index: 999;
  }

  .navbar__menu.open {
    right: 0;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__socials {
    margin-top: auto;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    width: 100%;
  }

  /* Mobile Overlay */
  .navbar__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

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

  /* Hero Mobile */
  .hero {
    min-height: 80vh;
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Grids Mobile */
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .services-grid--5 {
    grid-template-columns: 1fr;
  }

  /* About Mobile */
  .about-preview {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-preview__image {
    width: 250px;
    height: 250px;
    margin: 0 auto;
  }

  .about-preview__values {
    justify-content: center;
  }

  /* CTA Mobile */
  .cta-section h2 {
    font-size: var(--text-3xl);
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* WhatsApp Button Mobile */
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }

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

  .back-to-top {
    bottom: 80px;
    right: 20px;
    width: 38px;
    height: 38px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  :root {
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
    --container-padding: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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