/* Import Modern Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Design System & Variables */
:root {
  /* Colors */
  --primary: hsl(204, 85%, 40%);        /* Brand Blue */
  --primary-hover: hsl(204, 85%, 32%);
  --primary-light: hsl(204, 85%, 95%);
  --secondary: #76c043;      /* Brand Green */
  --secondary-hover: hsl(96, 50%, 43%);
  --secondary-light: hsl(96, 50%, 95%);
  
  --dark: hsl(220, 25%, 15%);
  --dark-soft: hsl(220, 20%, 25%);
  --light: hsl(210, 30%, 98%);
  --white: #ffffff;
  
  --text-dark: hsl(220, 30%, 15%);
  --text-muted: hsl(220, 15%, 45%);
  --text-light: hsl(210, 30%, 95%);
  
  /* Layout & Spacing */
  --header-height: 80px;
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin-top: 10px;
}

h2.center::after {
  margin: 10px auto 0 auto;
}

p {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

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

ul {
  list-style: none;
}

/* Shared Components & Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-bg-dark {
  background-color: var(--dark);
  color: var(--white);
}

.section-bg-dark h2, 
.section-bg-dark h3 {
  color: var(--white);
}

.section-bg-dark p {
  color: var(--text-light);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

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

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

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

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

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.95);
}

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

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: var(--transition-normal);
}

.header.scrolled .logo img {
  height: 52px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 1.05rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

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

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

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

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

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--dark);
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: var(--transition-normal);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background-color: var(--primary);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background-color: var(--primary);
}

.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38)), url('assets/img/familia_feliz_v2.jpg') no-repeat center/cover;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.hero-tag {
  background-color: var(--white);
  color: var(--primary);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero h1 span {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  color: #8ae64a;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.55);
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

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

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(15, 117, 188, 0.25), transparent);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Specialties Section */
.specialties-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  background-color: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.tab-btn.active {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.tab-btn.active:nth-child(2) {
  background-color: var(--secondary);
}

.tab-btn.active:nth-child(3) {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.specialties-content {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  animation: fadeIn var(--transition-slow);
}

.specialties-content.active {
  display: grid;
}

.spec-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.spec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.tab-medical .spec-card::before {
  background: var(--secondary);
}

.tab-multiprofessional .spec-card::before {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

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

.spec-card:hover::before {
  transform: scaleX(1);
}

.spec-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.spec-icon.blue {
  background-color: var(--primary-light);
  color: var(--primary);
}

.spec-icon.green {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.spec-icon.gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  color: var(--primary);
}

.spec-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.spec-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.spec-list li {
  position: relative;
  padding-left: 20px;
  font-weight: 500;
  color: var(--text-dark);
}

.spec-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
}

.about-img-wrapper::after {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--secondary);
  border-radius: var(--radius-lg);
  z-index: -1;
  pointer-events: none;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.about-feat-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.about-feat-icon {
  color: var(--secondary);
  font-size: 1.2rem;
  font-weight: bold;
}

.about-feat-text h4 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.about-feat-text p {
  font-size: 0.95rem;
}

/* Locations Section */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.loc-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.loc-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--white);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.loc-card:nth-child(2) .loc-banner {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
}

.loc-card:nth-child(3) .loc-banner {
  background: linear-gradient(135deg, var(--primary-hover), var(--secondary));
}

.loc-banner h3 {
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
  z-index: 2;
  position: relative;
}

.loc-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-top: 5px;
  z-index: 2;
  position: relative;
}

.loc-banner::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  top: -75px;
  right: -50px;
}

.loc-details {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}

.loc-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.loc-info-icon {
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.loc-card:nth-child(2) .loc-info-icon {
  color: var(--secondary);
}

.loc-info-text strong {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.loc-info-text p {
  font-size: 1.05rem;
  color: var(--text-dark);
}

.loc-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.loc-actions .btn {
  width: 100%;
}

/* Contact / Scheduling Section */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 50%, var(--secondary) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--white);
  max-width: 700px;
  margin-bottom: 0;
}

.cta-banner h2::after {
  display: none;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  font-size: 1.2rem;
}

.cta-banner .btn {
  background-color: var(--white);
  color: var(--primary);
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-banner .btn:hover {
  background-color: var(--light);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  color: var(--primary-hover);
}.footer {
  background-color: #f1f5f9;
  color: var(--text-dark);
  padding: 80px 0 30px 0;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 0.7fr 1.6fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: start;
}

.footer-contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-contact-form h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-fast);
  background-color: #f8fafc;
  color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background-color: var(--white);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 117, 188, 0.1);
}

.contact-form button[type="submit"] {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background-color: var(--primary);
  color: var(--white);
  transition: var(--transition-normal);
}

.contact-form button[type="submit"]:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  mix-blend-mode: multiply;
  align-self: flex-start;
}

.footer-brand p {
  font-size: 1rem;
  color: var(--text-muted);
}

.footer-links h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.footer-links h3::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
  margin-top: 8px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link-item a {
  color: var(--text-muted);
  font-weight: 400;
}

.footer-link-item a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Kids Carousel Section */
.kids-carousel-container {
  position: relative;
  max-width: 800px;
  margin: 2rem auto 0 auto;
  padding: 0 10px;
}

.kids-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.kids-carousel-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.kids-gallery-item {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  height: 480px;
  overflow: hidden;
  background-color: #f1f3f5;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.kids-gallery-item img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: var(--transition-normal);
  flex-shrink: 0;
}

.kids-gallery-item img:hover {
  transform: scale(1.02);
}

.kids-gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 2rem 2rem 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 1; /* Keep it visible for reading on slides */
  transform: translateY(0);
}

.kids-gallery-overlay h4 {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.kids-gallery-overlay p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  z-index: 10;
}

.carousel-control:hover {
  background-color: var(--white);
  color: var(--secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%) scale(1.08);
}

.carousel-control.prev {
  left: -25px;
}

.carousel-control.next {
  right: -25px;
}

/* Dots indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-muted);
  opacity: 0.3;
  cursor: pointer;
  transition: var(--transition-normal);
}

.carousel-dots .dot.active {
  background-color: var(--primary);
  opacity: 1;
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .carousel-control {
    display: none;
  }
  .kids-carousel-container {
    padding: 0;
  }
  .kids-gallery-item {
    height: 320px;
    padding: 0.75rem;
  }
  .kids-gallery-overlay h4 {
    font-size: 1.2rem;
  }
  .kids-gallery-overlay p {
    font-size: 0.9rem;
  }
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-normal);
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  font-weight: 800;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.7;
}

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

.test-text {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  z-index: 1;
  position: relative;
  line-height: 1.6;
}

.test-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.test-stars {
  color: #ffc107;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.test-author strong {
  font-size: 1.1rem;
  color: var(--primary);
  display: block;
}

.test-author span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .about-img-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .footer-brand {
    grid-column: span 2;
  }

  .footer-contact-form {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
    align-items: stretch;
    transition: var(--transition-normal);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.25rem;
    text-align: center;
    display: block;
    padding: 10px 0;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-brand,
  .footer-contact-form {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-banner {
    padding: 4rem 1.5rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
}

/* Lightbox Modal Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  animation: lightboxZoom 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 3px solid rgba(255, 255, 255, 0.1);
  background-color: #000;
}

@keyframes lightboxZoom {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 45px;
  font-weight: 300;
  transition: var(--transition-normal);
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
}

.lightbox-close:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .lightbox {
    padding: 1rem;
  }
  .lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 36px;
    width: 40px;
    height: 40px;
  }
}

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