/* ============================================
   Dra. Valentina Dicker â€” Medicina EstÃ©tica
   Design System & Styles
   ============================================ */

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

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Brand Colors */
  --color-terracota: #D4B2A8;
  --color-terracota-dark: #c49e92;
  --color-rose-beige: #CEC6C3;
  --color-mocha: #A38F86;
  --color-mocha-dark: #8a7970;
  --color-warm-gray: #F2EEEB;
  --color-sage: #7B8F6B;
  --color-sage-light: #9aad8d;
  --color-sage-dark: #5f7353;
  --color-white: #FFFFFF;
  --color-text: #3D3632;
  --color-text-light: #6B5E57;
  --color-text-muted: #9A8E88;
  --color-overlay: rgba(61, 54, 50, 0.6);

  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Raleway', 'Helvetica Neue', sans-serif;

  /* Font Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.5rem;
  --fs-hero: clamp(2.5rem, 5vw, 4.5rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --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: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(163, 143, 134, 0.1);
  --shadow-md: 0 4px 20px rgba(163, 143, 134, 0.15);
  --shadow-lg: 0 8px 40px rgba(163, 143, 134, 0.2);
  --shadow-xl: 0 16px 60px rgba(163, 143, 134, 0.25);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1280px;
  --header-height: 100px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-warm-gray);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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 {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

.section-label {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--space-md);
  display: inline-block;
  position: relative;
}

.section-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-sage);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, var(--fs-4xl));
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--color-text-light);
  max-width: 600px;
  line-height: 1.8;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(15px) rotate(-2deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Reveal animation class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Staggered children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.6s; }
.stagger-children .reveal:nth-child(8) { transition-delay: 0.7s; }

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

.header.scrolled {
  background: rgba(242, 238, 235, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.header-logo img {
  height: 90px;
  width: auto;
  transition: transform var(--transition-base);
  filter: contrast(1.6) brightness(0.6);
}

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

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

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding: var(--space-xs) 0;
}

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

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

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

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 14px 46px;
  background: linear-gradient(135deg, var(--color-terracota) 0%, var(--color-mocha) 100%);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  border: none;
  box-shadow: 0 2px 10px rgba(163, 143, 134, 0.25);
}

.btn-cta:hover {
  background: var(--color-mocha-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(163, 143, 134, 0.35);
  color: #fff !important;
}

.btn-cta-outline {
  background: transparent;
  color: var(--color-mocha);
}

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

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text);
  padding: var(--space-xs) 0;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-terracota);
  transition: width var(--transition-base);
  border-radius: 2px;
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown-toggle.active::after {
  width: 100%;
}

.nav-dropdown-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform var(--transition-base);
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-white);
  min-width: 180px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  border: 1px solid rgba(206, 198, 195, 0.3);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg) !important;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: none;
  color: var(--color-text-light) !important;
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.nav-dropdown-menu a::after {
  display: none !important;
}

.nav-dropdown-menu a:hover {
  background: var(--color-warm-gray);
  color: var(--color-mocha) !important;
}

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

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

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

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-warm-gray) 0%, #ebe5e0 50%, var(--color-warm-gray) 100%);
}

/* Organic Blob Shapes */
.hero-blob {
  position: absolute;
  z-index: 1;
  opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}

.hero-blob-1 {
  top: -5%;
  right: -5%;
  width: 500px;
  height: 500px;
  animation-duration: 10s;
}

.hero-blob-2 {
  bottom: -10%;
  left: -8%;
  width: 450px;
  height: 450px;
  animation: floatReverse 12s ease-in-out infinite;
}

.hero-blob-3 {
  top: 40%;
  right: 30%;
  width: 200px;
  height: 200px;
  opacity: 0.2;
  animation-duration: 14s;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
}

.hero-text {
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-logo {
  width: 280px;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: fadeIn 1s ease 0.5s both;
  filter: contrast(1.4) brightness(0.75);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.5px;
}

.hero-title span {
  display: block;
  color: var(--color-mocha);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: var(--space-2xl);
  line-height: 1.5;
}

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

.hero-image-wrapper {
  position: relative;
  animation: scaleIn 1s ease 0.6s both;
}

.hero-image {
  position: relative;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/5;
}

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

/* Floating decorative elements */
.hero-float-element {
  position: absolute;
  z-index: 3;
  border-radius: var(--radius-full);
}

.hero-float-1 {
  width: 80px;
  height: 80px;
  background: var(--color-sage-light);
  opacity: 0.4;
  top: 10%;
  right: -20px;
  animation: float 6s ease-in-out infinite;
}

.hero-float-2 {
  width: 40px;
  height: 40px;
  background: var(--color-terracota);
  opacity: 0.5;
  bottom: 15%;
  left: -10px;
  animation: floatReverse 5s ease-in-out infinite;
}

.hero-float-3 {
  width: 60px;
  height: 60px;
  border: 2px solid var(--color-sage);
  opacity: 0.3;
  top: 60%;
  right: -30px;
  animation: float 7s ease-in-out infinite;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories {
  position: relative;
  z-index: 3;
  margin-top: 0;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-5xl);
}

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

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  transition: all var(--transition-base);
}

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

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(to top, rgba(61, 54, 50, 0.75) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.5px;
}

.category-card-subtitle {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: var(--space-5xl) 0;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: var(--color-terracota);
  opacity: 0.05;
  border-radius: var(--radius-full);
}

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

.about-image-wrapper {
  position: relative;
}

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

.about-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--color-sage);
  opacity: 0.15;
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content .section-title {
  margin-bottom: var(--space-xl);
}

.about-quote {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--color-mocha);
  padding-left: var(--space-xl);
  border-left: 3px solid var(--color-terracota);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.about-text {
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: var(--space-lg);
}

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.credential-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 16px;
  background: var(--color-warm-gray);
  border-radius: var(--radius-xl);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-mocha);
}

.credential-tag svg {
  width: 16px;
  height: 16px;
  fill: var(--color-sage);
}

/* ============================================
   MEMBERSHIP SECTION
   ============================================ */
.membership-section {
  scroll-margin-top: var(--header-height);
  padding: 0 0 var(--space-5xl) 0;
  background: var(--color-white);
  position: relative;
  z-index: 2;
}

.membership-banner {
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-warm-gray) 100%);
  border: 1px solid rgba(206, 198, 195, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.membership-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-sage), var(--color-terracota));
}

.membership-logo-container {
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.membership-logo-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.membership-text {
  flex-grow: 1;
}

.membership-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.membership-desc {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: 1.5;
}

.membership-desc strong {
  color: var(--color-mocha);
}

.membership-btn {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .membership-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-xl);
  }
  
  .membership-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   SERVICES SECTIONS
   ============================================ */
.services-section {
  scroll-margin-top: var(--header-height);
  padding: var(--space-5xl) 0;
  position: relative;
}

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

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

.services-header .section-label::after {
  left: 50%;
  transform: translateX(-50%);
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-xl);
}

/* Service Card */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid rgba(206, 198, 195, 0.3);
  cursor: pointer;
}

/* Alternate card backgrounds (2 tones max) for harmony */
/* Base alternate tone for even cards in ALL sections */
.service-card:nth-child(even) {
  background: #F9F7F5;
}

/* For odd sections (warm-gray background), odd cards are white */
.services-section:nth-child(odd) .service-card:nth-child(odd) {
  background: var(--color-white);
}

/* For even sections (white background), odd cards are warm-gray */
.services-section:nth-child(even) .service-card:nth-child(odd) {
  background: var(--color-warm-gray);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--color-sage), var(--color-terracota));
  transition: height var(--transition-slow);
  border-radius: 0 0 4px 0;
}

.service-card:hover::before {
  height: 100%;
}

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

.service-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-sage-light), var(--color-sage));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: transform var(--transition-spring);
}

.service-card:hover .service-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-white);
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.service-card:hover .service-card-title {
  color: var(--color-mocha);
}

.service-card-excerpt {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all var(--transition-base);
}

.service-card.expanded .service-card-excerpt {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.service-card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-sage);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: all var(--transition-fast);
}

.service-card-toggle:hover {
  color: var(--color-sage-dark);
}

.service-card-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform var(--transition-base);
}

.service-card.expanded .service-card-toggle svg {
  transform: rotate(180deg);
}

/* ============================================
   CTA / BOOKING SECTION
   ============================================ */
.booking {
  padding: var(--space-5xl) 0;
  background: linear-gradient(135deg, var(--color-text) 0%, #4a3f3a 50%, #5a4d46 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.booking::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: var(--color-sage);
  opacity: 0.08;
  border-radius: var(--radius-full);
}

.booking::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: var(--color-terracota);
  opacity: 0.1;
  border-radius: var(--radius-full);
}

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

.booking .section-label {
  color: var(--color-terracota);
}

.booking .section-label::after {
  background: var(--color-terracota);
  left: 50%;
  transform: translateX(-50%);
}

.booking .section-title {
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.booking-subtitle {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
}

.booking-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 16px 40px;
  background: #25D366;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.booking-btn:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.booking-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.booking-info {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  flex-wrap: wrap;
}

.booking-info-item {
  text-align: center;
}

.booking-info-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-xs);
}

.booking-info-value {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-terracota);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
}

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

.footer-brand img {
  height: 70px;
  margin-bottom: var(--space-lg);
  filter: brightness(0) invert(1) opacity(0.8);
}

.footer-brand p {
  font-size: var(--fs-sm);
  line-height: 1.8;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

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

.footer-links a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-terracota);
  transform: translateX(4px);
}

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

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--color-terracota);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.7);
}

.footer-social a:hover svg {
  fill: var(--color-white);
}

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

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--fs-sm);
  color: var(--color-white);
  opacity: 0.8;
}

.footer-legal-links a {
  color: var(--color-white);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.footer-legal-links a:hover {
  opacity: 1;
}

.footer-legal-links .separator {
  opacity: 0.5;
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition-base);
  animation: pulse 2s ease-in-out 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;
  fill: white;
}

/* ============================================
   SERVICE DETAIL PAGES
   ============================================ */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--color-mocha);
  transition: color var(--transition-fast);
}

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

.breadcrumb .separator {
  color: var(--color-rose-beige);
  margin: 0 2px;
}

/* Service Detail Hero */
.service-detail-hero {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(135deg, var(--color-warm-gray) 0%, #ebe5e0 60%, var(--color-rose-beige) 100%);
  position: relative;
  overflow: hidden;
}

.service-detail-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  background: var(--color-sage);
  opacity: 0.08;
  border-radius: var(--radius-full);
}

.service-detail-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 250px;
  height: 250px;
  background: var(--color-terracota);
  opacity: 0.06;
  border-radius: var(--radius-full);
}

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

.service-detail-category {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 16px;
  background: var(--color-sage);
  color: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
}

.service-detail-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
  max-width: 700px;
}

.service-detail-subtitle {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--color-text-light);
  margin-top: var(--space-md);
  max-width: 600px;
}

/* Service Detail Content */
.service-detail-content {
  padding: var(--space-4xl) 0;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-3xl);
  align-items: start;
}

.service-detail-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 4/3;
}

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

.service-gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 3/4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-gallery img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

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

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

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

.conference-gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 3/4;
}

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

.service-detail-text h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  margin-top: var(--space-2xl);
}

.service-detail-text h2:first-child,
.service-detail-image + h2 {
  margin-top: 0;
}

.service-detail-text p {
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: var(--space-lg);
  font-size: var(--fs-md);
}

.service-detail-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-2xl);
}

.service-detail-text ul li {
  position: relative;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
  line-height: 1.8;
}

.service-detail-text ul li::before {
  content: "\2022";
  color: var(--color-sage);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ============================================
   RESEARCH PAPERS LIST
   ============================================ */
.research-papers-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.research-card {
  background-color: var(--color-white);
  border-left: 4px solid var(--color-sage);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.research-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  margin-top: 0;
  line-height: 1.4;
}

.research-card p {
  font-size: var(--fs-md);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--color-sage-light);
  color: var(--color-sage-dark);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-download:hover {
  background-color: var(--color-sage);
  color: var(--color-white);
}

.btn-download svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.research-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.btn-download-outline {
  background-color: transparent;
  border: 1.5px solid var(--color-sage);
  color: var(--color-sage-dark);
}

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

.research-citation {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

/* Highlight box inside service detail */
.service-highlight {
  background: var(--color-warm-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border-left: 4px solid var(--color-sage);
  margin: var(--space-xl) 0;
}

.service-highlight p {
  margin-bottom: 0;
  color: var(--color-text);
  font-weight: 500;
}

/* Sidebar CTA Card */
.service-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
}

.service-cta-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(206, 198, 195, 0.2);
}

.service-cta-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.service-cta-card p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.service-cta-card .btn-cta {
  width: 100%;
  justify-content: center;
  padding: 14px 28px;
}

.service-cta-card .service-cta-divider {
  border: none;
  border-top: 1px solid var(--color-rose-beige);
  margin: var(--space-xl) 0;
}

.service-cta-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service-cta-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

.service-cta-info-item svg {
  width: 20px;
  height: 20px;
  fill: var(--color-sage);
  flex-shrink: 0;
}

/* Related Services */
.related-services {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}

.related-services .services-header {
  margin-bottom: var(--space-2xl);
}

.related-services .services-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Back to services link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-sage);
  margin-bottom: var(--space-xl);
  transition: all var(--transition-fast);
}

.back-link:hover {
  color: var(--color-sage-dark);
  transform: translateX(-4px);
}

.back-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================
   RESPONSIVE â€” SERVICE DETAIL
   ============================================ */
@media (max-width: 1024px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .service-sidebar {
    position: static;
  }

  .service-cta-card {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .service-detail-hero {
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
  }

  .service-detail-content {
    padding: var(--space-2xl) 0;
  }

  .service-detail-text p {
    font-size: var(--fs-base);
  }

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

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

/* --- Large Desktop (1200px+) â€” base styles already handle this --- */

/* --- Tablet Landscape / Small Desktop --- */
@media (max-width: 1200px) {
  .hero-content {
    gap: var(--space-2xl);
  }

  .hero-logo {
    width: 220px;
  }

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

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* --- Tablet Portrait --- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .hero-text {
    order: 1;
  }

  .hero-image-wrapper {
    order: 0;
    max-width: 380px;
    margin: 0 auto;
  }

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

  .hero-logo {
    width: 200px;
    margin: 0 auto var(--space-xl);
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero-subtitle {
    font-size: var(--fs-lg);
  }

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

  .about-image-wrapper {
    max-width: 380px;
    margin: 0 auto;
  }

  .about-quote {
    border-left: none;
    padding-left: 0;
    border-top: 3px solid var(--color-terracota);
    padding-top: var(--space-lg);
  }

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

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

  .booking-info {
    gap: var(--space-xl);
  }
}

/* --- Mobile Landscape / Large Phone --- */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --space-5xl: 5rem;
    --space-4xl: 3.5rem;
  }

  /* Header */
  .header-logo img {
    height: 55px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--color-warm-gray);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    z-index: 1000;
  }

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

  .mobile-menu-btn {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-bottom: var(--space-3xl);
  }

  .hero-content {
    padding-top: calc(var(--header-height) + var(--space-xl));
  }

  .hero-logo {
    width: 180px;
  }

  .hero-image-wrapper {
    max-width: 300px;
  }

  .hero-float-1,
  .hero-float-2,
  .hero-float-3 {
    display: none;
  }

  .hero-blob-1 {
    width: 280px;
    height: 280px;
  }

  .hero-blob-2 {
    width: 230px;
    height: 230px;
  }

  .hero-blob-3 {
    display: none;
  }

  /* Categories */
  .categories {
    margin-top: -40px;
    padding-bottom: var(--space-3xl);
  }

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

  .category-card-title {
    font-size: var(--fs-base);
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  /* About */
  .about {
    padding: var(--space-4xl) 0;
  }

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

  /* Booking */
  .booking {
    padding: var(--space-4xl) 0;
  }

  .booking-btn {
    padding: 14px 30px;
    font-size: var(--fs-sm);
  }

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

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand img {
    height: 55px;
  }

  .footer-social {
    justify-content: center;
  }

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

  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* --- Mobile Portrait --- */
@media (max-width: 480px) {
  :root {
    --header-height: 65px;
    --space-5xl: 4rem;
    --space-4xl: 3rem;
    --space-3xl: 2.5rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Header */
  .header-logo img {
    height: 48px;
  }

  /* Hero */
  .hero-logo {
    width: 160px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: var(--fs-base);
  }

  .hero-image-wrapper {
    max-width: 260px;
  }

  .hero-image {
    border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-cta {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: var(--fs-xs);
  }

  /* Categories */
  .categories {
    margin-top: -30px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .category-card {
    aspect-ratio: 16/9;
  }

  /* About */
  .about-image-wrapper {
    max-width: 280px;
  }

  .about-quote {
    font-size: var(--fs-base);
  }

  .credential-tag {
    font-size: var(--fs-xs);
    padding: 6px 12px;
  }

  /* Services */
  .service-card {
    padding: var(--space-lg);
  }

  .service-card-icon {
    width: 42px;
    height: 42px;
  }

  .service-card-title {
    font-size: var(--fs-lg);
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* Booking */
  .booking-subtitle {
    font-size: var(--fs-sm);
  }

  .booking-info {
    flex-direction: column;
    gap: var(--space-lg);
  }

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

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

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

  /* Footer */
  .footer {
    padding: var(--space-3xl) 0 var(--space-lg);
  }

  .footer-brand img {
    height: 45px;
  }

  .footer-title {
    font-size: var(--fs-base);
  }
}

/* --- Very Small Phones (360px and below) --- */
@media (max-width: 360px) {
  .hero-logo {
    width: 140px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-image-wrapper {
    max-width: 220px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .booking-content .section-title {
    font-size: 1.3rem;
  }
}

/* --- Mobile nav overlay --- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* --- Print --- */
@media print {
  .header,
  .whatsapp-float,
  .mobile-menu-btn {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: var(--space-xl) 0;
  }
}


section[id] { scroll-margin-top: var(--header-height); }

