/* 
   ==========================================================================
   Premium Medical/Professional UI Design System (Monochrome White & Grotesque Style)
   Designed by Antigravity IDE Agent
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette (White and soft Gray tones, with touches of #7c2a66) */
  --primary: #7c2a66;
  /* Gemma's signature grape/magenta accent */
  --primary-rgb: 124, 42, 102;
  --secondary: #9c3f83;
  /* Slightly lighter shade for soft highlights */
  --secondary-hover: #5d1c4c;
  /* Deeper shade for hover states */
  --dark: #2d262a;
  /* Soft charcoal with warm undertones for body text and headers */
  --light: #fdfbfc;
  /* Serene, premium warm off-white background */
  --light-grey: #f4eff2;
  /* Softer warm grey for card backgrounds, borders, and input fields */
  --white: #ffffff;
  /* Pure white */
  --gray: #7a7377;
  /* Muted gray with soft warm tones for secondary text */
  --gray-light: #e3dbe0;
  /* Delicate border and timeline line color */
  --border-light: rgba(124, 42, 102, 0.06);

  /* Glassmorphism Styles (Enhanced Navbar Blur) */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(124, 42, 102, 0.04);
  --glass-blur: 20px;

  /* Typography (Akkurat / San Francisco System Stack & Clean Fallback) */
  --font-headers: 'Akkurat', -apple-system, BlinkMacSystemFont, "SF Pro", "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Akkurat', -apple-system, BlinkMacSystemFont, "SF Pro", "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  /* Offset for fixed navbar */
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headers);
  font-weight: 700;
  /* Bold style */
  letter-spacing: -0.03em;
  /* Tight letter spacing like Haas Grotesk */
  line-height: 1.15;
  color: var(--dark);
  /* Softer dark charcoal instead of primary purple */
}

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

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

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 100px 0;
  position: relative;
  background-color: var(--white);
  /* Entire web has white tones */
  overflow: hidden;
}

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
}

.section-subtitle {
  font-family: var(--font-headers);
  color: var(--gray);
  /* Subtle light gray text */
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 3rem;
  color: var(--primary);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-headers);
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition-smooth);
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.btn-primary {
  background-color: var(--primary);
  /* Black button */
  color: var(--white);
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

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

/* ==========================================================================
   Header & Floating Navigation (Glassmorphism Blur)
   ========================================================================== */
.header-wrapper {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 40px;
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.logo {
  font-family: var(--font-headers);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--dark);
  display: flex;
  align-items: center;
}

.logo-dot {
  color: var(--primary);
  font-size: 1.8rem;
  line-height: 0;
  margin-left: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-link {
  font-family: var(--font-headers);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  opacity: 0.65;
  /* Subtle light gray color when inactive */
  padding: 8px 14px;
  border-radius: 20px;
  letter-spacing: -0.02em;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  /* Pure black/accent text when active */
  color: var(--primary);
  background-color: rgba(124, 42, 102, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Language Selector */
.lang-selector {
  position: relative;
  font-family: var(--font-headers);
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-btn {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lang-btn:hover {
  background: rgba(0, 0, 0, 0.07);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  padding: 8px 0;
  min-width: 110px;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
  z-index: 1001;
}

.lang-dropdown.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.lang-dropdown a {
  display: block;
  padding: 8px 16px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 0.85rem;
}

.lang-dropdown a:hover {
  background-color: var(--light);
}

.lang-dropdown a.active {
  color: var(--gray);
  pointer-events: none;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* Hamburger transition */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ==========================================================================
   Hero Section (White Text on Photo Background)
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 500px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('../img/hero-bg.jpg');
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Floating Frosted Glass Card in Hero */
.hero-floating-card {
  position: absolute;
  top: 150px;
  left: max(5%, calc((100% - 1200px) / 2 + 15px));
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(35px) saturate(120%);
  -webkit-backdrop-filter: blur(35px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 20px 45px rgba(124, 42, 102, 0.05);
  z-index: 10;
  transition: var(--transition-smooth);
}

.hero-floating-card:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 25px 50px rgba(124, 42, 102, 0.08);
}

.hero-card-title {
  font-family: var(--font-headers);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.25;
}

.hero-card-desc {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Horizontal Scrolling Text Marquee Loop */
.hero-ticker {
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  z-index: 5;
  pointer-events: none;
  background: transparent;
}

.ticker-track {
  display: inline-flex;
  width: max-content;
  animation: tickerScroll 25s linear infinite;
}

.ticker-track span {
  font-family: var(--font-headers);
  font-size: 9.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px var(--primary);
  padding-right: 4rem;
  letter-spacing: -0.01em;
  display: inline-block;
}

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

/* Intro block directly below hero */
.intro-block {
  background-color: var(--white);
  padding: 100px 0;
  border-bottom: 1px solid var(--border-light);
}

.intro-text {
  font-family: var(--font-headers);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  /* Deep black */
  line-height: 1.35;
  text-align: left;
  max-width: 1000px;
  letter-spacing: -0.03em;
}

/* ==========================================================================
   Sobre Mi (About Me)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--dark);
  /* Majority of text is black */
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-features {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-feature-icon {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  /* Black dot */
  border-radius: 50%;
}

.about-feature-text {
  font-family: var(--font-headers);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

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

.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  display: block;
}

.specialties-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* A styled frame to replace raw image until they add one */
.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #f5f5f7 0%, #e5e5ea 100%);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.about-image-placeholder::before {
  content: 'Espai per a foto professional';
  color: var(--gray);
  /* Subtle light gray text */
  font-family: var(--font-headers);
  font-size: 0.95rem;
  text-align: center;
  font-weight: 500;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  top: 15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--primary);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.15;
}

/* ==========================================================================
   Especialitats (Specialties) - Modern Grid Layout
   ========================================================================== */
.specialties {
  background-color: var(--white);
}

.specialties-grid-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.specialties-row-top {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
}

.specialties-card-left {
  background-color: var(--light);
  border: 1px solid rgba(124, 42, 102, 0.08);
  border-radius: 24px;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px;
  transition: var(--transition-smooth);
}

.specialties-card-left:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(124, 42, 102, 0.04);
}

.specialties-left-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.specialties-left-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.specialties-left-desc {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.6;
}

.specialties-card-right-image {
  position: relative;
  background: linear-gradient(135deg, var(--light-grey) 0%, rgba(124, 42, 102, 0.08) 100%);
  border-radius: 24px;
  overflow: hidden;
  height: 450px;
  border: 1px solid rgba(124, 42, 102, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.specialties-card-right-image:hover {
  border-color: var(--primary);
}

/* Floating Glass Frosted Card */
.specialties-glass-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 290px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(25px) saturate(120%);
  -webkit-backdrop-filter: blur(25px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(124, 42, 102, 0.06);
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: var(--transition-smooth);
}

.specialties-glass-badge:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
}

.specialties-glass-label {
  font-family: var(--font-headers);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.8;
  letter-spacing: 0.5px;
}

.specialties-glass-value {
  font-family: var(--font-headers);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.specialties-glass-link {
  font-family: var(--font-headers);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.specialties-glass-link::after {
  content: ' ↗';
  font-weight: bold;
}

.specialties-glass-link:hover {
  color: var(--primary);
}

.specialties-row-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.specialty-item-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: var(--light);
  border: 1px solid rgba(124, 42, 102, 0.08);
  border-radius: 20px;
  padding: 28px;
  transition: var(--transition-smooth);
}

.specialty-item-card:hover {
  border-color: var(--primary);
  background-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(124, 42, 102, 0.04);
}

.specialty-item-icon-box {
  width: 48px;
  height: 48px;
  background-color: var(--white);
  border: 1px solid rgba(124, 42, 102, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(124, 42, 102, 0.02);
}

.specialty-item-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.specialty-item-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

.specialty-item-desc {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.45;
}

/* ==========================================================================
   Trayectòria (Career / Timeline)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background-color: var(--gray-light);
  /* Subtle light gray line */
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-badge {
  position: absolute;
  top: 25px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--primary);
  /* Black badge */
  z-index: 10;
  transition: var(--transition-fast);
}

.timeline-item:nth-child(odd) .timeline-badge {
  right: -6px;
}

.timeline-item:nth-child(even) .timeline-badge {
  left: -6px;
}

.timeline-item:hover .timeline-badge {
  background-color: var(--primary);
  transform: scale(1.3);
}

.timeline-date {
  font-family: var(--font-headers);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray);
  /* Subtle light gray date */
  margin-bottom: 8px;
  display: block;
}

.timeline-content {
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
  border-color: var(--primary);
}

.timeline-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 700;
}

.timeline-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  /* Subtle light gray subtitle */
  margin-bottom: 12px;
}

.timeline-desc {
  color: var(--dark);
  opacity: 0.85;
  font-size: 0.9rem;
}

/* ==========================================================================
   Visió Mèdica (Medical Vision / Accordion Layout)
   ========================================================================== */
.vision {
  background-color: var(--white);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  overflow: hidden;
}

.vision-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 45px;
  flex-wrap: wrap;
  gap: 20px;
}

.vision-logo-wrapper {
  display: block;
}

.vision-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.vision-intro {
  max-width: 800px;
  margin-bottom: 50px;
}

.vision-intro-highlight {
  font-family: var(--font-headers);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.vision-intro-p {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.6;
}

/* Accordion Gallery */
.vision-accordion {
  display: flex;
  gap: 20px;
  width: 100%;
  margin-bottom: 60px;
}

.vision-panel {
  flex: 1;
  height: 520px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.3, 1);
  cursor: pointer;
}

/* Three distinct premium gradients */
.vision-panel:nth-child(1) {
  background: linear-gradient(135deg, rgba(124, 42, 102, 0.18) 0%, rgba(124, 42, 102, 0.04) 100%);
}

.vision-panel:nth-child(2) {
  background: linear-gradient(135deg, rgba(156, 63, 131, 0.22) 0%, rgba(156, 63, 131, 0.04) 100%);
}

.vision-panel:nth-child(3) {
  background: linear-gradient(135deg, rgba(94, 60, 116, 0.16) 0%, rgba(94, 60, 116, 0.03) 100%);
}

/* First panel expanded by default */
.vision-panel:first-child {
  flex: 2.2;
}

.vision-panel:first-child .vision-panel-desc {
  max-height: 200px;
  opacity: 1;
  margin-top: 15px;
}

/* Accordion hover dynamics */
.vision-accordion:hover .vision-panel:first-child {
  flex: 1;
}

.vision-accordion:hover .vision-panel:first-child .vision-panel-desc {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.vision-panel:hover {
  flex: 2.2 !important;
}

.vision-panel:hover .vision-panel-desc {
  max-height: 200px !important;
  opacity: 1 !important;
  margin-top: 15px !important;
}

/* Glass Card Overlay */
.vision-glass-card {
  position: absolute;
  bottom: 25px;
  left: 25px;
  width: calc(100% - 50px);
  background: rgba(255, 255, 255, 0.65); /* More opaque for text legibility over images */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(124, 42, 102, 0.02);
  transition: background-color 0.3s;
  z-index: 2; /* Renders above background images */
}

.vision-panel:hover .vision-glass-card {
  background: rgba(255, 255, 255, 0.78);
}

.vision-panel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* Renders below card and text */
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.3, 1);
  pointer-events: none;
}

.vision-panel:hover .vision-panel-img {
  transform: scale(1.06);
}

.vision-panel-title {
  font-family: var(--font-headers);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.vision-panel-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.98rem;
  color: var(--dark);
  line-height: 1.55;
  transition: max-height 0.45s ease, opacity 0.45s ease;
  margin-top: 0;
}

/* Bottom Quote block */
.vision-quote-wrapper {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding-top: 20px;
}

.vision-quote-icon {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1;
  opacity: 0.8;
}

.vision-quote-text {
  font-family: var(--font-headers);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
  margin-bottom: 25px;
  letter-spacing: -0.03em;
}

.vision-quote-author {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray);
  font-weight: 600;
}

/* ==========================================================================
   Contacte (Contact)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-left-grid {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 40px;
}

.contact-subtitle-top {
  font-family: var(--font-headers);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.contact-title-main {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.04em;
}

.contact-intro-p {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 25px;
  max-width: 700px;
}

.contact-follow-label {
  font-family: var(--font-headers);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin-bottom: 8px;
  display: block;
}

.contact-social-link {
  font-family: var(--font-headers);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.contact-social-link:hover {
  color: var(--primary);
}

.clinics-container {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.clinic-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.clinic-badge {
  display: inline-block;
  font-family: var(--font-headers);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 4px 14px;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.clinic-address {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.clinic-details {
  font-size: 0.95rem;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.5;
}

.clinic-details a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition-fast);
}

.clinic-details a:hover {
  color: var(--primary);
}

/* Right Column: Appointment Card */
.contact-card-right {
  background-color: var(--light);
  border: 1px solid rgba(124, 42, 102, 0.06);
  border-radius: 28px;
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  box-shadow: 0 15px 35px rgba(124, 42, 102, 0.02);
  transition: var(--transition-smooth);
}

.contact-card-right:hover {
  border-color: rgba(124, 42, 102, 0.15);
  box-shadow: 0 20px 45px rgba(124, 42, 102, 0.04);
}

.contact-card-title {
  font-family: var(--font-headers);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.contact-card-desc {
  font-size: 0.98rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 30px;
}

.contact-card-action {
  font-family: var(--font-headers);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  text-decoration: none;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
  letter-spacing: -0.02em;
  transition: var(--transition-smooth);
}

.contact-card-action:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

/* ==========================================================================
   Footer (White Styled footer)
   ========================================================================== */
.footer {
  background-color: var(--white);
  color: var(--dark);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-light);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
}

.footer .logo {
  color: var(--primary);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-size: 0.9rem;
  font-family: var(--font-headers);
  font-weight: 600;
  color: var(--primary);
  opacity: 0.6;
}

.footer-link:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray);
  /* Subtle light gray copy text */
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  background-color: #f5f5f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition-fast);
}

.footer-social-link:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

/* Organic Floating Decoration */
.organic-shape {
  position: absolute;
  border-radius: 43% 57% 41% 59% / 57% 45% 55% 43%;
  background: linear-gradient(135deg, rgba(124, 42, 102, 0.05) 0%, rgba(156, 63, 131, 0.02) 100%);
  animation: floatOrganic 15s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
  filter: blur(10px);
}

@keyframes floatOrganic {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 43% 57% 41% 59% / 57% 45% 55% 43%;
  }

  50% {
    transform: translate(25px, -35px) rotate(90deg) scale(1.1);
    border-radius: 50% 50% 38% 62% / 40% 60% 40% 60%;
  }

  100% {
    transform: translate(-15px, 20px) rotate(180deg) scale(0.9);
    border-radius: 43% 57% 41% 59% / 57% 45% 55% 43%;
  }
}

/* ==========================================================================
   Lifestyle Section
   ========================================================================== */
.lifestyle-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: flex-start;
}

.section-title-lifestyle {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 25px;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.lifestyle-bio-col p {
  color: var(--dark);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.lifestyle-cards-col {
  position: sticky;
  top: 120px;
}

.lifestyle-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.lifestyle-card {
  background-color: var(--light);
  border: 1px solid rgba(124, 42, 102, 0.08);
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 15px 35px rgba(124, 42, 102, 0.03);
  transition: var(--transition-smooth);
}

.lifestyle-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(124, 42, 102, 0.06);
}

.lifestyle-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: var(--white);
}

.lifestyle-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.lifestyle-card-desc {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.5;
}

.lifestyle-card-link {
  font-family: var(--font-headers);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  margin-top: 5px;
}

.lifestyle-card-link::after {
  content: ' ↗';
  font-weight: bold;
}

.lifestyle-card-link:hover {
  color: var(--secondary-hover);
}

/* Shifting Pixel Grid Canvas */
.pixel-grid-wrapper {
  overflow: hidden;
  height: 250px;
  border-radius: 24px 24px 0 0;
  position: relative;
  width: 100%;
}

.pixel-grid {
  display: grid;
  width: 100%;
  height: 100%;
  background-color: var(--light-grey);
  filter: blur(15px) saturate(130%);
  transform: scale(1.2);
  /* Prevents white edges from bleed */
  transform-origin: center;
}

.pixel {
  width: 100%;
  height: 100%;
  animation: purpleColorShift 6s infinite alternate ease-in-out;
}

@keyframes purpleColorShift {
  0% {
    background-color: #7c2a66;
    /* base primary grape */
  }

  25% {
    background-color: #9c3f83;
    /* lighter berry */
  }

  50% {
    background-color: #5d1c4c;
    /* deep dark violet */
  }

  75% {
    background-color: #b78fa7;
    /* soft dusty lavender */
  }

  100% {
    background-color: #e8dee4;
    /* very light grey-purple */
  }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 991px) {
  .section {
    padding: 70px 0;
  }

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

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

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrapper {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .about-image-wrapper::after {
    display: none;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 0;
    text-align: left !important;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-badge {
    left: 24px !important;
    right: auto !important;
  }

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

  .specialties-row-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lifestyle-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lifestyle-cards-col {
    position: static;
  }

  .lifestyle-cards-stack {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }

  /* Vision Section Accordion Responsive */
  .vision-accordion {
    flex-direction: column;
    gap: 15px;
  }

  .vision-panel {
    height: auto;
    min-height: 180px;
    flex: none !important;
    width: 100%;
  }

  .vision-glass-card {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.45);
  }

  .vision-panel-desc {
    max-height: none !important;
    opacity: 1 !important;
    margin-top: 15px !important;
  }

  .vision-intro-highlight {
    font-size: 1.4rem;
  }

  .vision-quote-text {
    font-size: 1.35rem;
  }
}

@media (max-width: 768px) {
  .lifestyle-cards-stack {
    flex-direction: column;
    align-items: center;
  }

  .header-wrapper {
    top: 15px;
    width: 92%;
  }

  .navbar {
    padding: 10px 16px;
  }

  .navbar.scrolled {
    padding: 8px 14px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .logo-dot {
    font-size: 1.5rem;
  }

  .nav-actions {
    gap: 8px;
  }

  .lang-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    gap: 3px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: calc(100% - 32px);
    /* Floats inside wrapper width */
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(124, 42, 102, 0.08);
    border-radius: 24px;
    padding: 24px;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 999;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 1.05rem;
  }

  .hero {
    height: 100vh;
    min-height: 480px;
    padding: 0;
    display: flex;
    align-items: center;
    background-position: 70% center; /* Shift background right to show face */
  }

  .hero-floating-card {
    display: none !important;
  }

  .hero-ticker {
    bottom: 25px;
  }

  .ticker-track span {
    font-size: 4.8rem;
    -webkit-text-stroke: 1.5px var(--primary);
    padding-right: 2rem;
  }

  .intro-text {
    font-size: 1.4rem;
    line-height: 1.4;
  }

  .specialties-card-left {
    padding: 30px;
    min-height: auto;
    gap: 30px;
  }

  .specialties-card-right-image {
    height: 350px;
  }

  .specialties-glass-badge {
    bottom: 20px;
    right: 20px;
    width: calc(100% - 40px);
    padding: 16px;
    gap: 10px;
  }

  .specialties-glass-value {
    font-size: 2.5rem;
  }

  .specialty-item-card {
    padding: 20px;
    gap: 15px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 45px;
    margin-bottom: 20px;
  }

  .timeline-badge {
    left: 14px !important;
    top: 22px;
  }

  .timeline-content {
    padding: 18px;
  }

  .timeline-title {
    font-size: 1.15rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .contact-left-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-card-right {
    padding: 30px;
    min-height: auto;
  }

  .contact-title-main {
    font-size: 2.5rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .lifestyle-card-content {
    padding: 24px;
  }

  .pixel-grid-wrapper {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.85rem;
  }

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

  .intro-block {
    padding: 60px 0;
  }

  .intro-text {
    font-size: 1.25rem;
    padding-left: 20px !important;
  }
}

/* ==========================================================================
   Legal Page & Cookie Banner Styles
   ========================================================================== */

.legal-wrapper {
  padding-top: 140px;
  padding-bottom: 80px;
  background-color: var(--white);
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 130px;
}

.legal-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-tabs li {
  margin: 0;
}

.tab-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  border-left: 3px solid var(--gray-light);
  text-align: left;
  font-family: var(--font-headers);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: 0 4px 4px 0;
}

.tab-btn:hover {
  color: var(--primary);
  border-left-color: var(--secondary);
}

.tab-btn.active {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
  background-color: rgba(124, 42, 102, 0.04);
}

.legal-content-pane {
  background-color: var(--light-grey);
  border: 1px solid var(--gray-light);
  border-radius: 16px;
  padding: 50px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-content h1 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

.tab-content h2 {
  font-size: 1.35rem;
  color: var(--dark);
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 8px;
}

.tab-content h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 600;
}

.tab-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 20px;
}

.tab-content ul, .tab-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.tab-content li {
  margin-bottom: 8px;
}

.tab-content a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
}

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

/* Cookie Banner styling */
.cookie-banner {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150px);
  width: 90%;
  max-width: 650px;
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  box-shadow: 0 10px 40px rgba(45, 38, 42, 0.12);
  border-radius: 16px;
  padding: 24px 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.cookie-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--dark);
  margin: 0;
}

.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 24px;
  font-family: var(--font-headers);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cookie-btn-accept {
  background-color: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

.cookie-btn-accept:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
}

.cookie-btn-reject {
  background-color: transparent;
  color: var(--dark);
  border: 1px solid var(--gray-light);
}

.cookie-btn-reject:hover {
  background-color: var(--light-grey);
}

/* Responsive adjustments for legal pages */
@media (max-width: 991px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .legal-sidebar {
    position: relative;
    top: 0;
  }
  .legal-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 10px;
    gap: 5px;
  }
  .tab-btn {
    border-left: none;
    border-bottom: 3px solid var(--gray-light);
    border-radius: 4px 4px 0 0;
    padding: 10px 15px;
    text-align: center;
    width: auto;
  }
  .tab-btn.active {
    border-left-color: transparent;
    border-bottom-color: var(--primary);
  }
  .legal-content-pane {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  .legal-tabs {
    flex-direction: column;
    border-bottom: none;
  }
  .tab-btn {
    border-bottom: none;
    border-left: 3px solid var(--gray-light);
    border-radius: 0 4px 4px 0;
    text-align: left;
    width: 100%;
  }
  .tab-btn.active {
    border-left-color: var(--primary);
  }
  .cookie-banner {
    bottom: 20px;
    padding: 20px;
  }
  .cookie-buttons {
    width: 100%;
  }
  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}

.footer-legal-link {
  color: var(--gray) !important;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-legal-link:hover {
  color: var(--primary) !important;
}

/* ==========================================================================
   Instagram Feed Subsection
   ========================================================================== */

.instagram-subsection {
  width: 100%;
  margin-top: 90px;
}

.instagram-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.instagram-title-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 650px;
}

.instagram-main-title {
  font-size: 2.2rem !important;
  color: var(--dark);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.instagram-desc {
  font-size: 1.05rem;
  color: var(--gray);
  margin: 0;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  border: 1px solid var(--gray-light);
  border-radius: 30px;
  font-family: var(--font-headers);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  background-color: var(--white);
  transition: var(--transition-smooth);
}

.instagram-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 42, 102, 0.05);
}

.instagram-grid-wrapper {
  position: relative;
  width: 100%;
  max-height: 480px; /* Cut off height */
  overflow: hidden;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.instagram-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Offset columns for organic look, matching the image */
.instagram-col:nth-child(even) {
  margin-top: 30px;
}

.instagram-item {
  display: block;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-color: var(--light-grey);
}

.instagram-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 20px;
}

.instagram-item:hover .instagram-img {
  transform: scale(1.05);
}

.instagram-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px; /* Fade height */
  background: linear-gradient(to bottom, transparent 0%, var(--white) 100%);
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .instagram-col:nth-child(even) {
    margin-top: 0;
  }
  .instagram-grid-wrapper {
    max-height: 520px;
  }
}

@media (max-width: 576px) {
  .instagram-main-title {
    font-size: 1.8rem !important;
  }
  .instagram-header {
    align-items: flex-start;
  }
  .instagram-btn {
    width: 100%;
    justify-content: center;
  }
  .instagram-grid {
    gap: 12px;
  }
  .instagram-col {
    gap: 12px;
  }
  .instagram-grid-wrapper {
    max-height: 400px;
  }
  .instagram-fade-overlay {
    height: 150px;
  }
}

/* ==========================================================================
   Appointment Banner Section with Glassmorphism
   ========================================================================== */

.appointment-banner {
  width: 100%;
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 50px 0;
}

/* Subtle dark overlay for readability */
.appointment-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 38, 42, 0.18);
  z-index: 1;
}

.appointment-banner-container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Rotating Circle Badge in Top-Right */
.rotating-badge-wrapper {
  align-self: flex-end;
  position: absolute;
  top: -20px;
  right: 15px;
}

.badge-link {
  display: block;
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.badge-link:hover {
  transform: scale(1.05);
}

.spinning-circle {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  animation: rotateCircle 12s linear infinite;
  transform-origin: center;
}

.badge-center-icon {
  font-size: 1.6rem;
  color: var(--primary);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes rotateCircle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Glassmorphism Card in Bottom-Left */
.glass-appointment-card {
  align-self: flex-start;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(25px) saturate(120%);
  -webkit-backdrop-filter: blur(25px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(45, 38, 42, 0.15);
  padding: 8px;
  display: flex;
  flex-direction: column;
  margin-top: 150px;
}

/* Glass Card Tabs */
.glass-card-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  padding: 4px;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card-tab {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  font-family: var(--font-headers);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.glass-card-tab.active {
  background: var(--white);
  box-shadow: 0 4px 12px rgba(45, 38, 42, 0.05);
}

/* Glass Card Body */
.glass-card-body {
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
}

.glass-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.glass-card-tag {
  font-family: var(--font-headers);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.glass-card-arrow {
  width: 32px;
  height: 32px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--dark);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(45, 38, 42, 0.05);
}

.glass-card-arrow:hover {
  background: var(--primary);
  color: var(--white);
  transform: rotate(45deg);
}

.glass-card-title {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.glass-card-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--dark);
  margin-bottom: 20px;
  opacity: 0.95;
}

/* Glass Card Actions (Buttons) */
.glass-card-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.glass-btn-link {
  flex: 1;
  padding: 12px 16px;
  border-radius: 16px;
  font-family: var(--font-headers);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-visit {
  background: rgba(255, 255, 255, 0.5);
  color: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-visit:hover {
  background: var(--white);
  box-shadow: 0 4px 12px rgba(45, 38, 42, 0.08);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

.btn-whatsapp:hover {
  background: var(--secondary-hover);
  border-color: var(--secondary-hover);
  box-shadow: 0 4px 12px rgba(124, 42, 102, 0.2);
  transform: translateY(-2px);
}

/* Responsive adjustments for banner */
@media (max-width: 768px) {
  .appointment-banner {
    height: auto;
    padding: 60px 0;
  }
  .appointment-banner-container {
    align-items: center;
    gap: 40px;
  }
  .rotating-badge-wrapper {
    position: relative;
    top: 0;
    right: 0;
    align-self: center;
  }
  .glass-appointment-card {
    align-self: center;
    margin-top: 0;
  }
}

/* ==========================================================================
   Password Gate Overlay
   ========================================================================== */

.password-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(246, 244, 245, 0.45);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.password-gate-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  padding: 40px 30px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(45, 38, 42, 0.12);
  animation: floatInPasswordGate 0.5s ease-out;
}

@keyframes floatInPasswordGate {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.password-gate-logo {
  font-family: var(--font-headers);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.password-gate-logo span {
  color: var(--primary);
}

.password-gate-title {
  font-family: var(--font-headers);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 24px;
  opacity: 0.8;
}

.password-gate-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.password-gate-input-wrapper {
  position: relative;
}

.password-gate-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid rgba(124, 42, 102, 0.15);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.password-gate-input:focus {
  border-color: var(--primary);
}

.password-gate-btn {
  padding: 14px 20px;
  border-radius: 16px;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.password-gate-btn:hover {
  background: var(--secondary-hover);
  transform: translateY(-1px);
}

.password-gate-error {
  color: #c92a2a;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
  display: none;
}