/* ===================================================
   DRA. JOICI MOREIRA — CLÍNICA VETERINÁRIA
   Premium Landing Page — Design System & Styles
   =================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Brand Colors — extracted from logo */
  --turquoise-deep: #2a8c8c;
  --turquoise: #3ba5a5;
  --turquoise-light: #5ec5c0;
  --turquoise-muted: #8fd4ce;
  --turquoise-pale: #d4efed;
  --turquoise-wash: #eef8f7;

  --orange-deep: #d47a3a;
  --orange: #e8975e;
  --orange-light: #f0b88a;
  --orange-pale: #fbe5d3;
  --orange-wash: #fdf3eb;

  --white: #ffffff;
  --off-white: #faf9f7;
  --cream: #f5f2ee;
  --gray-100: #f0eeeb;
  --gray-200: #e4e1dc;
  --gray-300: #d0ccc5;
  --gray-400: #a8a29e;
  --gray-500: #78716c;
  --gray-600: #57534e;
  --gray-700: #44403c;
  --gray-800: #292524;
  --gray-900: #1c1917;

  /* Semantic Colors */
  --color-primary: var(--turquoise);
  --color-primary-deep: var(--turquoise-deep);
  --color-primary-light: var(--turquoise-light);
  --color-accent: var(--orange);
  --color-accent-deep: var(--orange-deep);
  --color-accent-light: var(--orange-light);
  --color-bg: var(--off-white);
  --color-bg-alt: var(--cream);
  --color-text: var(--gray-800);
  --color-text-muted: var(--gray-500);
  --color-text-light: var(--gray-400);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  /* Font Sizes — fluid */
  --fs-hero: clamp(2rem, 4.5vw, 3.6rem);
  --fs-h1: clamp(1.8rem, 4vw, 3.2rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.6rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.6rem);
  --fs-body: clamp(0.95rem, 1.2vw, 1.1rem);
  --fs-small: clamp(0.82rem, 1vw, 0.92rem);
  --fs-label: 0.78rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --section-padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 4rem);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --radius-round: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(42, 140, 140, 0.06);
  --shadow-md: 0 4px 16px rgba(42, 140, 140, 0.08);
  --shadow-lg: 0 8px 32px rgba(42, 140, 140, 0.1);
  --shadow-xl: 0 16px 48px rgba(42, 140, 140, 0.12);
  --shadow-glow: 0 0 40px rgba(59, 165, 165, 0.15);
  --shadow-orange: 0 4px 20px rgba(232, 151, 94, 0.2);

  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-base: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 900px;
  --max-width-text: 680px;
  --nav-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;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  color: var(--gray-800);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-light));
  border-radius: 1px;
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
  color: var(--gray-800);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  max-width: var(--max-width-text);
  line-height: 1.8;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ===================================================
   NAVIGATION
   =================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}

.navbar.scrolled {
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(42, 140, 140, 0.08);
}

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

.navbar__logo img {
  height: 86px;
  width: auto;
  transition: transform var(--transition-fast);
}

.navbar__logo:hover img {
  transform: scale(1.03);
}

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

.navbar__link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width var(--transition-base);
  border-radius: 1px;
}

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

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

.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, var(--turquoise), var(--turquoise-deep));
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.navbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--turquoise-light), var(--turquoise));
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

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

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

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

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: linear-gradient(160deg, var(--off-white) 0%, var(--turquoise-wash) 40%, var(--off-white) 70%, var(--orange-wash) 100%);
}

/* Organic background shapes */
.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
  will-change: transform;
}

.hero__bg-shape--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--turquoise-muted), transparent);
  top: -100px;
  right: -150px;
  animation: float-shape 20s ease-in-out infinite;
}

.hero__bg-shape--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--orange-light), transparent);
  bottom: -50px;
  left: -100px;
  animation: float-shape 15s ease-in-out infinite reverse;
}

.hero__bg-shape--3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--turquoise-pale), transparent);
  top: 30%;
  left: 50%;
  animation: float-shape 18s ease-in-out infinite 3s;
}

@keyframes float-shape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-10px, 20px) scale(0.95); }
  75% { transform: translate(-30px, -10px) scale(1.02); }
}

/* Decorative leaf SVGs */
.hero__leaf {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}

.hero__leaf--1 {
  top: 15%;
  left: 8%;
  width: 80px;
  animation: leaf-sway 8s ease-in-out infinite;
}

.hero__leaf--2 {
  bottom: 20%;
  right: 10%;
  width: 60px;
  animation: leaf-sway 10s ease-in-out infinite reverse;
  transform: rotate(45deg);
}

.hero__leaf--3 {
  top: 60%;
  left: 3%;
  width: 50px;
  animation: leaf-sway 12s ease-in-out infinite 2s;
  transform: rotate(-30deg);
}

@keyframes leaf-sway {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-10px); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(59, 165, 165, 0.08);
  border: 1px solid rgba(59, 165, 165, 0.15);
  border-radius: var(--radius-pill);
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--turquoise-deep);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.hero__badge svg {
  width: 14px;
  height: 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.15;
  color: var(--gray-800);
  margin-bottom: var(--space-md);
}

.hero__title em {
  font-style: italic;
  color: var(--turquoise-deep);
}

.hero__subtitle {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

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

/* Image side */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero__image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  bottom: -20px;
  left: -20px;
  background: linear-gradient(135deg, var(--turquoise-pale) 0%, var(--orange-pale) 100%);
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  opacity: 0.5;
  animation: morph-shape 15s ease-in-out infinite;
  z-index: 0;
}

@keyframes morph-shape {
  0%, 100% { border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; }
  25% { border-radius: 55% 45% 40% 60% / 45% 60% 40% 55%; }
  50% { border-radius: 45% 55% 60% 40% / 60% 45% 55% 40%; }
  75% { border-radius: 60% 40% 45% 55% / 40% 55% 45% 60%; }
}

.hero__image {
  position: relative;
  z-index: 1;
  border-radius: 35% 65% 50% 50% / 55% 45% 55% 45%;
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-xl);
  animation: morph-image 15s ease-in-out infinite;
}

@keyframes morph-image {
  0%, 100% { border-radius: 35% 65% 50% 50% / 55% 45% 55% 45%; }
  25% { border-radius: 50% 50% 35% 65% / 45% 55% 45% 55%; }
  50% { border-radius: 65% 35% 55% 45% / 50% 50% 45% 55%; }
  75% { border-radius: 45% 55% 65% 35% / 55% 50% 50% 45%; }
}

/* Floating accent card on hero image */
.hero__floating-card {
  position: absolute;
  bottom: 40px;
  left: -30px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 1.3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: float-card 6s ease-in-out infinite;
}

.hero__floating-card__icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--turquoise-pale), var(--turquoise-muted));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero__floating-card__text {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--gray-700);
}

.hero__floating-card__text span {
  display: block;
  font-weight: 400;
  font-size: var(--fs-label);
  color: var(--gray-400);
}

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

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--turquoise), var(--turquoise-deep));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(59, 165, 165, 0.3);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(59, 165, 165, 0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--turquoise-deep);
  border: 1.5px solid var(--turquoise-muted);
}

.btn--secondary:hover {
  background: var(--turquoise-wash);
  border-color: var(--turquoise);
  transform: translateY(-2px);
}

.btn--accent {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232, 151, 94, 0.3);
}

.btn--accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(232, 151, 94, 0.35);
}

.btn--whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
  background: #20bd5a;
}

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

.btn--lg {
  padding: 1.05rem 2.5rem;
  font-size: var(--fs-body);
}

/* ===================================================
   ABOUT SECTION
   =================================================== */
.about {
  padding: var(--section-padding);
  position: relative;
  background: var(--white);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about__image-wrapper {
  position: relative;
}

.about__image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about__image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(42, 140, 140, 0.08));
  pointer-events: none;
}

.about__image-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about__image-frame:hover img {
  transform: scale(1.03);
}

/* Decorative accent */
.about__image-accent {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--turquoise-pale), var(--orange-pale));
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about__content {
  max-width: 520px;
}

.about__text {
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: var(--space-md);
}

.about__signature {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--turquoise-deep);
  margin-top: var(--space-md);
}

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

.about__credential {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  background: var(--turquoise-wash);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--turquoise-deep);
}

.about__credential svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===================================================
   ESSENCE SECTION
   =================================================== */
.essence {
  padding: var(--section-padding);
  position: relative;
  background: linear-gradient(160deg, var(--turquoise-wash) 0%, var(--off-white) 50%, var(--orange-wash) 100%);
}

.essence__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.essence__card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.essence__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--turquoise), var(--orange-light));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.essence__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  background: rgba(255, 255, 255, 0.95);
}

.essence__card:hover::before {
  opacity: 1;
}

.essence__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--turquoise-pale), var(--turquoise-wash));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: transform var(--transition-spring);
}

.essence__card:hover .essence__icon {
  transform: scale(1.1) rotate(5deg);
}

.essence__card h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.essence__card p {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===================================================
   SERVICES SECTION
   =================================================== */
.services {
  padding: var(--section-padding);
  background: var(--white);
  position: relative;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.service-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--turquoise-pale);
  background: var(--white);
}

.service-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--turquoise-pale);
  line-height: 1;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-base);
}

.service-card:hover .service-card__number {
  color: var(--turquoise-muted);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--turquoise-wash), var(--turquoise-pale));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  transition: all var(--transition-spring);
}

.service-card:hover .service-card__icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--turquoise-pale), var(--turquoise-muted));
}

.service-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.service-card p {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.service-card__line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--turquoise), var(--orange-light));
  border-radius: 1px;
  margin-top: var(--space-md);
  transition: width var(--transition-base);
}

.service-card:hover .service-card__line {
  width: 60px;
}

/* ===================================================
   DIFFERENTIALS SECTION
   =================================================== */
.differentials {
  padding: var(--section-padding);
  background: linear-gradient(160deg, var(--gray-800) 0%, var(--gray-900) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.differentials::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 165, 165, 0.15), transparent);
  pointer-events: none;
}

.differentials::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 151, 94, 0.1), transparent);
  pointer-events: none;
}

.differentials .section-label {
  color: var(--turquoise-muted);
}

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

.differentials .section-subtitle {
  color: var(--gray-400);
}

.differentials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  position: relative;
  z-index: 1;
}

.diff-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.diff-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 165, 165, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.diff-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.diff-card__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(59, 165, 165, 0.2), rgba(59, 165, 165, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.diff-card h3 {
  font-size: var(--fs-h3);
  color: var(--white);
  font-weight: 500;
}

.diff-card p {
  font-size: var(--fs-small);
  color: var(--gray-400);
  line-height: 1.8;
}

/* ===================================================
   EDUCATION / FORMAÇÃO SECTION
   =================================================== */
.education {
  padding: var(--section-padding);
  background: var(--white);
  position: relative;
}

.education__timeline {
  margin-top: var(--space-xl);
  position: relative;
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
}

.education__timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--turquoise-pale), var(--turquoise-muted), var(--orange-pale));
  border-radius: 1px;
}

.timeline-item {
  padding-left: 64px;
  padding-bottom: var(--space-lg);
  position: relative;
}

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

.timeline-item__dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border: 3px solid var(--turquoise);
  border-radius: var(--radius-round);
  z-index: 1;
  transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-item__dot {
  background: var(--turquoise);
  box-shadow: 0 0 0 6px rgba(59, 165, 165, 0.15);
}

.timeline-item__content {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-item__content {
  border-color: var(--turquoise-pale);
  box-shadow: var(--shadow-md);
}

.timeline-item__year {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--turquoise);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.timeline-item__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gray-800);
  margin-bottom: 0.3rem;
}

.timeline-item__institution {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* ===================================================
   MISSION, VISION & VALUES
   =================================================== */
.mission {
  padding: var(--section-padding);
  background: linear-gradient(160deg, var(--turquoise-wash) 0%, var(--off-white) 40%, var(--cream) 100%);
  position: relative;
}

.mission__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.mission__card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
}

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

.mission__card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: transform var(--transition-spring);
}

.mission__card:hover .mission__card-icon {
  transform: scale(1.1);
}

.mission__card:nth-child(1) .mission__card-icon {
  background: linear-gradient(135deg, var(--turquoise-pale), var(--turquoise-wash));
}

.mission__card:nth-child(2) .mission__card-icon {
  background: linear-gradient(135deg, var(--orange-pale), var(--orange-wash));
}

.mission__card:nth-child(3) .mission__card-icon {
  background: linear-gradient(135deg, var(--turquoise-pale), var(--orange-pale));
}

.mission__card h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.mission__card p {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.values__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: var(--space-lg);
}

.value-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(59, 165, 165, 0.12);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition-fast);
}

.value-tag:hover {
  background: var(--turquoise-wash);
  border-color: var(--turquoise-muted);
  color: var(--turquoise-deep);
  transform: translateY(-2px);
}

.value-tag svg {
  width: 14px;
  height: 14px;
  color: var(--turquoise);
}

/* ===================================================
   CTA FINAL SECTION
   =================================================== */
.cta-final {
  padding: var(--section-padding);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-final__wrapper {
  background: linear-gradient(135deg, var(--turquoise-deep) 0%, var(--turquoise) 50%, var(--turquoise-light) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final__wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.cta-final__wrapper::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 151, 94, 0.15), transparent);
  pointer-events: none;
}

.cta-final__content {
  position: relative;
  z-index: 1;
}

.cta-final__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: var(--white);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.cta-final__text {
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.85);
  max-width: 550px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
}

.cta-final__buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.btn--white {
  background: var(--white);
  color: var(--turquoise-deep);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn--white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

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

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-2xl) 0 var(--space-lg);
}

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

.footer__brand p {
  font-size: var(--fs-small);
  line-height: 1.8;
  margin-top: var(--space-sm);
  max-width: 320px;
}

.footer__logo {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.8);
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer__links li {
  margin-bottom: 0.6rem;
}

.footer__links a {
  font-size: var(--fs-small);
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--turquoise-muted);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: var(--fs-small);
}

.footer__contact svg {
  width: 16px;
  height: 16px;
  color: var(--turquoise-muted);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__social {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--space-md);
}

.footer__social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--turquoise-deep);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
}

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

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-label);
}

.footer__bottom a {
  color: var(--turquoise-muted);
  transition: color var(--transition-fast);
}

.footer__bottom a:hover {
  color: var(--turquoise-light);
}

/* ===================================================
   WHATSAPP FLOATING BUTTON
   =================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
  animation: pulse-whatsapp 3s ease-in-out infinite;
}

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

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  color: var(--white);
}

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

/* ===================================================
   SCROLL ANIMATIONS (CSS-driven with JS fallback)
   =================================================== */

/* Scroll-driven animations for modern browsers */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-in-up {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
    }

    .reveal {
      animation: fade-in-up auto ease backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

/* Fallback classes for browsers without scroll-driven animations */
.reveal-fallback {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Stagger delays */
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Hero entrance animation */
.hero__content,
.hero__visual {
  opacity: 0;
  animation: hero-entrance 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero__content { animation-delay: 0.3s; }
.hero__visual { animation-delay: 0.6s; }

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

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .hero__content {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__image-wrapper {
    max-width: 360px;
    margin: 0 auto;
  }

  .hero__floating-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
  }

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

  .about .container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .about__content {
    max-width: 600px;
    margin: 0 auto;
  }

  .about__image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  .about__credentials {
    justify-content: center;
  }

  .essence__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .mission__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .footer__brand p {
    max-width: 100%;
  }

  .footer__social {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(250, 249, 247, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    transition: right var(--transition-base);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  }

  .navbar__menu.open {
    right: 0;
  }

  .navbar__hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: var(--space-xl);
  }

  .hero__image-wrapper {
    max-width: 280px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .services__featured {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    max-width: 480px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .services__featured .section-label {
    justify-content: center !important;
  }

  .education__timeline::before {
    left: 16px;
  }

  .timeline-item {
    padding-left: 48px;
  }

  .timeline-item__dot {
    left: 8px;
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-height: 64px;
  }

  .navbar__logo img {
    height: 64px;
  }

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

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

  .cta-final__buttons {
    flex-direction: column;
    align-items: center;
  }

  .about__credentials {
    flex-direction: column;
    align-items: center;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }

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

/* --- Overlay for mobile menu --- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Selection Color --- */
::selection {
  background: var(--turquoise-pale);
  color: var(--turquoise-deep);
}

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

::-webkit-scrollbar-track {
  background: var(--off-white);
}

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

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