/* ============================================
   CLÍNICA VÉRTICE - Design System
   Gastro, Hepato e Nutrição
   ============================================ */

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

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Colors - Custom Palette */
  --color-primary: #4A5D45;
  /* Verde Oliva Profundo */
  --color-primary-light: #5A6D55;
  --color-primary-dark: #3A4D35;

  --color-secondary: #B5A48B;
  /* Dourado Champagne */
  --color-secondary-light: #C5B49B;
  --color-secondary-dark: #A5947B;

  --color-background: #F4F1EA;
  /* Off-White / Creme */
  --color-background-alt: #EBE7DE;
  --color-white: #FFFFFF;

  --color-accent-dark: #6B5441;
  /* Marrom Café / Bronze */
  --color-accent-light: #8A9A80;
  /* Verde Musgo Claro */
  --color-premium: #D4AF37;
  /* Dourado Metálico */

  --color-text: #2D2D2D;
  /* Charcoal */
  --color-text-light: #5A5A5A;
  --color-text-muted: #8A8A8A;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */
  --text-6xl: 3.75rem;
  /* 60px */

  /* Spacing */
  --space-xs: 0.25rem;
  /* 4px */
  --space-sm: 0.5rem;
  /* 8px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-2xl: 3rem;
  /* 48px */
  --space-3xl: 4rem;
  /* 64px */
  --space-4xl: 6rem;
  /* 96px */
  --space-5xl: 8rem;
  /* 128px */

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

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;
}

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

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

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

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

h1 {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
}

h4 {
  font-size: var(--text-xl);
}

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

.text-large {
  font-size: var(--text-lg);
  line-height: 1.7;
}

.text-small {
  font-size: var(--text-sm);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-secondary {
  color: var(--color-secondary);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

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

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

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

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(244, 241, 234, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74, 93, 69, 0.1);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(244, 241, 234, 0.95);
  box-shadow: var(--shadow-md);
}

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

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

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
}

.logo-text span {
  color: var(--color-secondary);
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a.active::after {
  width: 100%;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition-fast);
}

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

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-background);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(74, 93, 69, 0.1);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: var(--text-lg);
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 93, 69, 0.2);
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

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

.btn-outline:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-base);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

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

.hero-content {
  max-width: 700px;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(74, 93, 69, 0.1);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  max-width: 560px;
}

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

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero.video-ended .hero-video-overlay {
  opacity: 1;
}

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

/* Hero content hidden until video ends */
.hero .hero-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero.video-ended .hero-content {
  opacity: 1;
  transform: translateY(0);
}

/* Hero text styles - white, larger, with text-shadow */
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero p {
  color: var(--color-white);
  font-size: var(--text-xl);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero .hero-label {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero .hero-label svg {
  stroke: var(--color-white);
}

.hero h1 .text-secondary {
  color: var(--color-secondary-light);
}

/* Desktop: show desktop video, hide mobile video */
.hero-video-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero {
    text-align: center;
  }

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

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

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

  .hero-video-desktop {
    display: none;
  }

  .hero-video-mobile {
    display: block;
  }
}

/* ============================================
   About Section
   ============================================ */
.about {
  background: var(--color-white);
}

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

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-background-alt);
}

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

/* Slideshow */
.slideshow {
  position: relative;
}

.slideshow .slideshow-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow .slideshow-image.active {
  opacity: 1;
  position: relative;
}

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

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

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

.about-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 93, 69, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.about-feature h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.about-feature p {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

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

  .about-features {
    grid-template-columns: 1fr;
  }
}

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

.specialty-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.specialty-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(181, 164, 139, 0.3);
}

.specialty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-light));
  border-radius: var(--radius-lg);
  color: var(--color-white);
}

.specialty-icon svg {
  width: 40px;
  height: 40px;
}

.specialty-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.specialty-card p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

.specialty-list {
  list-style: none;
  text-align: left;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.specialty-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(74, 93, 69, 0.1);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

.specialty-card .btn {
  margin-top: auto;
}

.specialty-list li::before {
  content: '';
  height: 6px;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .specialties-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ============================================
   Technology Section
   ============================================ */
.technology {
  background: var(--color-primary);
  color: var(--color-white);
}

.technology h2,
.technology h3,
.technology h4 {
  color: var(--color-white);
}

.technology p {
  color: rgba(255, 255, 255, 0.8);
}

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

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

.tech-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

.tech-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.tech-card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
}

.tech-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.tech-features {
  list-style: none;
  margin-top: var(--space-lg);
}

.tech-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
}

.tech-features li::before {
  content: '✓';
  color: var(--color-secondary);
  font-weight: 600;
}

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

/* ============================================
   Team Section
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.team-card {
  text-align: center;
  cursor: pointer;
}

.team-image {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-background-alt);
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.team-card:hover .team-image {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.team-role {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.team-card p {
  font-size: var(--text-sm);
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

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

.contact-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 93, 69, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
}

.contact-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

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

.contact-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-background-alt);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-accent-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-white);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.footer-column h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
}

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

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

.footer-links a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

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

.footer-social a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 100ms;
}

.fade-in-delay-2 {
  transition-delay: 200ms;
}

.fade-in-delay-3 {
  transition-delay: 300ms;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

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

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

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mt-2xl {
  margin-top: var(--space-2xl);
}

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

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mb-2xl {
  margin-bottom: var(--space-2xl);
}

.hidden {
  display: none;
}

/* ============================================
   Page-specific: Specialties Page
   ============================================ */
.page-hero {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: var(--color-white);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: var(--space-md);
}

.specialty-section {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid rgba(74, 93, 69, 0.1);
}

.specialty-section:last-child {
  border-bottom: none;
}

.specialty-section:nth-child(even) {
  background: var(--color-white);
}

.specialty-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.specialty-section:nth-child(even) .specialty-content {
  direction: rtl;
}

.specialty-section:nth-child(even) .specialty-content>* {
  direction: ltr;
}

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

.service-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-background);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.service-item:hover {
  background: var(--color-background-alt);
  transform: translateX(4px);
}

.service-item-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  color: var(--color-white);
}

.service-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.service-item p {
  font-size: var(--text-xs);
  margin-bottom: 0;
  line-height: 1.5;
}

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

  .specialty-section:nth-child(even) .specialty-content {
    direction: ltr;
  }

  .service-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Page-specific: Team Page
   ============================================ */
.team-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.team-detail-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  gap: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

.team-detail-image {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-background-alt);
}

.team-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-detail-info h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.team-detail-role {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.team-detail-info p {
  font-size: var(--text-sm);
}

@media (max-width: 1024px) {
  .team-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .team-detail-card {
    flex-direction: column;
    text-align: center;
  }

  .team-detail-image {
    margin: 0 auto;
  }
}

/* ============================================
   Page-specific: Contact Page
   ============================================ */
.contact-form-section {
  padding: var(--space-3xl) 0;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-form {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  border: 1px solid rgba(74, 93, 69, 0.2);
  border-radius: var(--radius-md);
  background: var(--color-background);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74, 93, 69, 0.1);
}

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

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

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

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

/* ============================================
   WhatsApp Float Button
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 999;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-full);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.whatsapp-float a:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

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

/* ============================================
   Linktree Page
   ============================================ */

/* Body override for linktree */
.linktree-body {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 40%, #5A6D55 70%, var(--color-accent-light) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* Subtle pattern overlay */
.linktree-body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(181, 164, 139, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.linktree-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* === Avatar with Video === */
.linktree-avatar {
  position: relative;
  width: 152px;
  height: 152px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid var(--color-secondary);
  box-shadow:
    0 0 20px rgba(181, 164, 139, 0.3),
    0 0 60px rgba(181, 164, 139, 0.1);
  margin-bottom: var(--space-lg);
  animation: linktree-avatar-glow 4s ease-in-out infinite;
  flex-shrink: 0;
}

.linktree-avatar video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.8s ease;
}

.linktree-avatar-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  height: auto;
  opacity: 0;
  transition: opacity 0.8s ease;
  filter: brightness(0) invert(1);
}

.linktree-avatar.video-ended video {
  opacity: 0;
}

.linktree-avatar.video-ended .linktree-avatar-fallback {
  opacity: 1;
}

.linktree-avatar.video-ended {
  background: var(--color-primary-dark);
}

@keyframes linktree-avatar-glow {

  0%,
  100% {
    box-shadow:
      0 0 20px rgba(181, 164, 139, 0.3),
      0 0 60px rgba(181, 164, 139, 0.1);
  }

  50% {
    box-shadow:
      0 0 30px rgba(181, 164, 139, 0.45),
      0 0 80px rgba(181, 164, 139, 0.15);
  }
}

/* === Header === */
.linktree-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.linktree-header h1 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.linktree-header p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* === Links Stack === */
.linktree-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Individual Link Card */
.linktree-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-lg) var(--space-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  color: var(--color-white);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;

  /* Staggered animation */
  opacity: 0;
  transform: translateY(16px);
  animation: linktree-fade-in 0.5s ease forwards;
  animation-delay: calc(0.15s + var(--delay, 0) * 0.1s);
}

.linktree-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.linktree-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(181, 164, 139, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(181, 164, 139, 0.1);
  color: var(--color-white);
}

.linktree-link:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(181, 164, 139, 0.4);
}

.linktree-link:active {
  transform: translateY(-1px);
}

/* WhatsApp highlighted link */
.linktree-link--whatsapp {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.25);
}

.linktree-link--whatsapp:hover {
  background: rgba(37, 211, 102, 0.25);
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(37, 211, 102, 0.15);
}

/* Link Icon */
.linktree-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-secondary-light);
  transition: all var(--transition-fast);
}

.linktree-link:hover .linktree-link-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.linktree-link--whatsapp .linktree-link-icon {
  color: #25D366;
}

/* Link Label */
.linktree-link-label {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Link Arrow */
.linktree-link-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.linktree-link:hover .linktree-link-arrow {
  color: rgba(255, 255, 255, 0.8);
  transform: translateX(3px);
}

/* === Footer === */
.linktree-footer {
  margin-top: auto;
  padding-top: var(--space-2xl);
  text-align: center;
}

.linktree-footer p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0;
}

/* === Animations === */
@keyframes linktree-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .linktree-container {
    padding: var(--space-xl) var(--space-md) var(--space-lg);
  }

  .linktree-avatar {
    width: 132px;
    height: 132px;
  }

  .linktree-header h1 {
    font-size: var(--text-2xl);
  }

  .linktree-link {
    padding: var(--space-md) var(--space-md);
  }

  .linktree-link-icon {
    width: 40px;
    height: 40px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .linktree-avatar {
    animation: none;
  }

  .linktree-link {
    animation: none;
    opacity: 1;
    transform: none;
  }
}