/**
 * Home Page Styles for Fertilia
 * Uses design system variables for consistency
 */

/* HERO SECTION */

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 800ms ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Slide 3 - Position to show the right side (Fertilia building/sign) */
.hero-slide-3 .hero-image {
  object-position: right center;
}

.hero-dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 20;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--border-radius-full);
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.hero-dot.active {
  background-color: var(--color-white);
}

/* Hero Text Content Overlays */
.hero-content {
  position: absolute;
  z-index: 10;
  color: var(--color-white);
  max-width: 800px;
  padding: var(--space-4);
}

/* Slide 1 - Left positioned */
.hero-content-left {
  left: var(--space-8);
  top: 50%;
  transform: translateY(-50%);
}

/* Slide 2 - Bottom left positioned */
.hero-content-bottom-left {
  left: var(--space-8);
  bottom: var(--space-10);
}

/* Slide 3 - Bottom right positioned */
.hero-content-bottom-right {
  right: var(--space-8);
  bottom: var(--space-10);
  text-align: right;
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3);
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-title-accent {
  font-family: var(--font-accent);
}

.hero-title-geist {
  font-family: var(--font-body);
  font-weight: var(--font-bold);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-white);
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-heart {
  width: 160px;
  height: auto;
  margin-top: var(--space-6);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* SAMER SECTION */

.samer-section {
  padding: var(--space-10) 0;
  background-color: var(--color-white);
}

.samer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.samer-logo {
  flex-shrink: 0;
}

.samer-logo img {
  width: 200px;
  height: auto;
}

.samer-text {
  flex: 1;
  max-width: 75ch;
}

.samer-text p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--neutral-darkest);
  margin-bottom: var(--space-2);
}

.samer-text p .highlight {
  font-weight: var(--font-extrabold);
}

/* TREATMENT SECTION */

.treatment-section {
  background-color: var(--color-white);
  padding: var(--space-10) 0;
  color: var(--color-white);
  overflow: hidden;
}

.treatment-content {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0;
  margin: 0 auto;
  padding: 0;
  align-items: center;
  position: relative;
}

.treatment-image-container {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.treatment-image {
  width: calc(100% + 40px);
  height: 600px;
  object-fit: cover;
  display: block;
  margin-top: -300px;
}

.treatment-text {
  background-color: var(--color-secondary);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: -30px;
  position: relative;
  z-index: 2;
}

.treatment-text h2 {
  font-size: var(--text-4xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.treatment-text p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
  max-width: 70ch;
}

.treatment-text strong {
  font-weight: var(--font-extrabold);
}

.treatment-list {
  list-style: none;
  margin: var(--space-4) 0 0 0;
}

.treatment-list li {
  padding-left: var(--space-3);
  margin-bottom: var(--space-2);
  position: relative;
  font-size: var(--text-base);
  font-weight: var(--font-bold);
}

.treatment-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.875rem;
}

/* THREE CARDS SECTION */

.cards-section {
  padding: var(--space-2) 0 var(--space-10) 0;
  background-color: var(--color-white);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
  align-items: stretch;
}

.service-card {
  background-color: var(--color-white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  border: 1px solid;
  border-image: linear-gradient(to bottom, var(--color-white), var(--color-secondary)) 1;
  text-decoration: none;
  color: inherit;
}

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

.service-card-title {
  font-size: var(--text-2xl);
  color: var(--color-white);
  background-color: var(--color-primary);
  padding: var(--space-4);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

.service-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.service-card-content {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-description {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-gray);
  margin-bottom: var(--space-4);
  flex: 1;
}

.service-card .btn {
  align-self: flex-start;
}

/* ============================================
   VALUES SECTION (DARK WITH NATURE BACKGROUND)
   ============================================ */

.values-section {
  background-image: url('../assets/images/homepage/fachada.webp');
  background-size: cover;
  background-position: center;
  padding: var(--space-6) 0;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
}

.values-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(61, 126, 128);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.values-header {
  text-align: center;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.values-header h2 {
  font-size: var(--text-4xl);
  color: var(--color-white);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.values-header p {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
  position: relative;
  z-index: 1;
}

.value-card {
  background-color: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  transition: all var(--transition-base);
  box-sizing: border-box;
}

.value-card:nth-child(3n) {
  border-right: none;
}

.value-card:nth-child(n+4) {
  border-bottom: none;
}

.value-icon {
  margin-bottom: var(--space-3);
  display: flex;
  justify-content: center;
  align-items: center;
}

.value-icon img {
  display: block;
  width: 80px;
  height: 80px;
}

.value-title {
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.value-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--leading-relaxed);
}

/* PROFESSIONALS SECTION */

.professionals-section {
  background-color: var(--color-white);
  padding: var(--space-10) 0;
}

.professionals-header {
  text-align: left;
  margin-bottom: var(--space-8);
}

.professionals-header h2 {
  font-size: var(--text-4xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

.professionals-header p {
  font-size: var(--text-lg);
  color: var(--color-gray);
  margin: 0;
}

.professionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  max-width: var(--container-xl);
  margin: 0 auto var(--space-8);
  padding: 0 var(--space-4);
}

.professional-card {
  background-color: var(--color-secondary-light);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  text-align: left;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

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

.professional-card:hover .btn-text {
  color: var(--color-secondary-dark);
}

.professional-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.professional-info {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.professional-name {
  font-size: var(--text-2xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}

.professional-specialty {
  font-size: var(--text-base);
  color: var(--color-gray);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  flex: 1;
  font-weight: var(--font-semibold);
}

.professional-card .btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  padding: 0;
}

.icon-linkedin {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.85;
  transition: opacity var(--transition-base);
}

.icon-linkedin-card {
  color: var(--color-secondary) !important;
}

.professional-card .btn:hover .icon-linkedin-card {
  opacity: 1;
  color: var(--color-secondary-light) !important;
}

.professional-card .btn:hover .icon-linkedin {
  opacity: 1;
}

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

.professionals-cta .btn {
  max-width: 100%;
}

/* GALLERY SECTION */

.gallery-section {
  background-color: var(--color-primary-light);
  padding: var(--space-10) 0;
}

.gallery-header {
  text-align: left;
  margin-bottom: var(--space-8);
}

.gallery-header h2 {
  font-size: var(--text-4xl);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

.gallery-header p {
  font-size: var(--text-lg);
  color: var(--color-neutral-darkest);
  margin: 0 0;
  line-height: var(--leading-relaxed);
}

.gallery-wrapper {
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin: 0;
  width: 100%;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.gallery-item:hover::before {
  opacity: 0;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px 0 rgba(172, 69, 129, 0.18);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  transition: transform var(--transition-base);
}

/* Hide additional gallery items on desktop/tablet */
.gallery-item:nth-child(n+7) {
  display: none;
}

/* Mobile Gallery Navigation - hidden by default */
.gallery-mobile-nav {
  display: none;
}

/* ============================================
   GALLERY MODAL/LIGHTBOX
   ============================================ */

.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: var(--z-modal);
  overflow: hidden;
}

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-modal-img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}

.gallery-modal-img.fade-out {
  opacity: 0;
}

.gallery-modal-caption {
  color: var(--color-white);
  font-size: var(--text-lg);
  margin-top: var(--space-3);
  text-align: center;
}

.gallery-modal-close,
.gallery-modal-prev,
.gallery-modal-next {
  position: fixed;
  background-color: transparent;
  color: var(--color-white);
  border: none;
  font-size: var(--text-5xl);
  cursor: pointer;
  padding: var(--space-2);
  transition: all var(--transition-base);
  z-index: calc(var(--z-modal) + 1);
  line-height: 1;
  font-weight: var(--font-normal);
}

.gallery-modal-close {
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--text-6xl);
}

.gallery-modal-prev {
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
}

.gallery-modal-next {
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
}

.gallery-modal-close:hover,
.gallery-modal-prev:hover,
.gallery-modal-next:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}

.gallery-modal-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.gallery-modal-next:hover {
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .gallery-modal-close {
    top: var(--space-2);
    right: var(--space-2);
    font-size: var(--text-5xl);
  }

  .gallery-modal-prev,
  .gallery-modal-next {
    font-size: var(--text-4xl);
  }

  .gallery-modal-prev {
    left: var(--space-2);
  }

  .gallery-modal-next {
    right: var(--space-2);
  }

  .gallery-modal-caption {
    font-size: var(--text-base);
    padding: 0 var(--space-4);
  }
}

/* TEAM SECTION */

.team-section {
  background-image: url('../assets/images/homepage/team01.webp');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center top;
  background-color: #f5f5f5;
  height: auto;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  padding-top: 40%;
  padding-bottom: var(--space-4);
}

.team-content {
  text-align: center;
  max-width: var(--container-lg);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.team-content h2 {
  font-size: var(--text-3xl);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.team-content h2:has(.highlight) {
  font-size: var(--text-4xl);
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.team-content .highlight {
  color: var(--color-white);
  text-transform: uppercase;
  font-weight: var(--font-extrabold);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.team-content p {
  font-size: var(--text-xl);
  color: var(--color-neutral-darkest);
  line-height: var(--leading-relaxed);
}

/* RESPONSIVE DESIGN */

@media (max-width: 1024px) {
  .values-section {
    height: auto;
  }

  .treatment-content {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .treatment-image-container {
    overflow: hidden;
  }

  .treatment-image {
    width: 100%;
    margin-top: 0;
  }

  .treatment-text {
    padding: var(--space-8) var(--space-6);
    margin-left: 0;
    margin-top: -40px;
  }

  .professionals-grid,
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .team-section {
    padding-bottom: var(--space-4);
  }

  .team-content h2 {
    font-size: var(--text-2xl);
  }

  .team-content h2:has(.highlight) {
    font-size: var(--text-2xl);
  }

  .team-content p {
    font-size: var(--text-base);
  }
}

@media (max-width: 768px) {
  .hero {
    height: 500px;
  }

  /* Hero text overlays responsive */
  .hero-content {
    max-width: 500px;
    padding: var(--space-3);
  }

  .hero-content-left {
    left: var(--space-4);
  }

  .hero-content-bottom-left {
    left: var(--space-4);
    bottom: var(--space-8);
  }

  .hero-content-bottom-right {
    right: var(--space-4);
    bottom: var(--space-8);
  }

  .hero-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
  }

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

  .hero-heart {
    width: 140px;
    margin-top: var(--space-3);
  }

  .samer-content {
    flex-direction: column;
    text-align: center;
  }

  .samer-logo img {
    width: 150px;
  }

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

  .value-card {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .value-card:nth-child(2n) {
    border-right: none;
  }

  .value-card:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
  }

  .value-card:nth-child(n+4) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .value-card:nth-child(n+5) {
    border-bottom: none;
  }

  .professionals-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .service-card-title {
    height: auto;
  }

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

@media (max-width: 640px) {
  .hero {
    height: 400px;
  }

  /* Hero gradient overlay for text readability - bottom only */
  .hero-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
    pointer-events: none;
    z-index: 1;
  }

  /* Hero text overlays mobile */
  .hero-content {
    max-width: 90%;
    padding: var(--space-2);
    z-index: 2;
  }

  .hero-content-left {
    left: var(--space-2);
    bottom: var(--space-4);
    top: auto;
    transform: none;
  }

  .hero-content-bottom-left {
    left: var(--space-2);
    bottom: var(--space-4);
  }

  .hero-content-bottom-right {
    right: var(--space-2);
    bottom: var(--space-4);
  }

  .hero-title {
    font-size: clamp(1rem, 4.5vw, var(--text-xl));
    margin-bottom: var(--space-1);
    line-height: 1.2;
  }

  .hero-title br {
    display: none;
  }

  .hero-subtitle {
    font-size: clamp(0.75rem, 3vw, var(--text-sm));
    line-height: 1.3;
  }

  .hero-subtitle br {
    display: none;
  }

  .hero-heart {
    width: 100px;
    margin-top: var(--space-1);
  }

  /* Position heart at top - move it up from bottom position */
  .hero-content-left .hero-heart {
    position: absolute;
    top: calc(-1 * (400px - var(--space-4) * 2 - 120px));
    left: 0;
    margin-top: 0;
    z-index: 3;
  }

  .hero-dots {
    bottom: var(--space-3);
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }

  .treatment-image {
    height: 250px;
    object-fit: cover;
    object-position: center;
  }

  .treatment-text {
    padding: var(--space-6) var(--space-4);
    margin-top: -30px;
  }

  .treatment-text h2 {
    font-size: var(--text-3xl);
  }

  .values-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
  }

  .value-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .value-card:nth-child(2n),
  .value-card:nth-child(3n),
  .value-card:nth-child(n+4),
  .value-card:nth-child(n+5) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .value-card:last-child {
    border-bottom: none;
  }

  /* Values section - mobile background */
  .values-section {
    background-image: url('../assets/images/homepage/fachada_mobile.webp');
  }

  /* Gallery slider on mobile */
  .gallery-section {
    padding-bottom: var(--space-10);
    position: relative;
  }

  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .gallery-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  /* Show all gallery items on mobile */
  .gallery-item:nth-child(n+7) {
    display: block;
  }

  .gallery-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    transform: none;
    aspect-ratio: auto;
    height: auto;
  }

  .gallery-item:hover {
    transform: none;
    box-shadow: none;
    filter: none;
  }

  .gallery-image {
    height: 300px;
    width: 100%;
    display: block;
  }

  /* Mobile gallery navigation buttons - inside slider */
  .gallery-mobile-nav {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    pointer-events: none;
    z-index: 10;
  }

  .gallery-mobile-prev,
  .gallery-mobile-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: var(--color-white);
    border: none;
    font-size: var(--text-4xl);
    cursor: pointer;
    transition: all var(--transition-base);
    line-height: 1;
    font-weight: var(--font-normal);
    pointer-events: auto;
    padding: var(--space-2);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);
  }

  .gallery-mobile-prev {
    left: var(--space-2);
  }

  .gallery-mobile-next {
    right: var(--space-2);
  }

  .gallery-mobile-prev:hover,
  .gallery-mobile-next:hover {
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
  }

  .service-card-title {
    height: auto;
  }

  .service-card-image {
    height: 200px;
  }

  .professional-image {
    height: 250px;
  }

  .team-section {
    padding-bottom: var(--space-1);
  }

  .team-content h2 {
    font-size: clamp(0.9rem, 4vw, var(--text-base));
    margin-bottom: var(--space-1);
    line-height: 1.3;
  }

  .team-content h2:has(.highlight) {
    font-size: clamp(1rem, 4.5vw, var(--text-lg));
    white-space: nowrap;
  }

  .team-content p {
    font-size: clamp(0.75rem, 3.5vw, var(--text-xs));
    line-height: 1.4;
  }

  /* Staff button responsive - allow wrapping on small screens */
  .professionals-cta .btn {
    white-space: normal;
    padding: var(--space-3) var(--space-4);
    line-height: 1.3;
    max-width: 90%;
  }
}

/* ============================================
   LARGE SCREEN OPTIMIZATIONS (min-width)
   ============================================ */

/* Full HD - 1920px and above */
@media (min-width: 1920px) {
  .hero {
    height: 700px;
  }

  .treatment-image {
    height: 700px;
  }

  /* Grids stay at 3 columns as requested - no changes */
}

/* 2K - 2560px and above */
@media (min-width: 2560px) {
  .hero {
    height: 800px;
  }

  .treatment-image {
    height: 800px;
  }
}

/* 4K - 3840px and above */
@media (min-width: 3840px) {
  .hero {
    height: 1000px;
  }

  .treatment-image {
    height: 1000px;
  }
}
