/* Chiquitines Design System */
:root {
  /* Palette */
  --color-primary: #FFD166;
  /* Sunshine Yellow */
  --color-secondary: #06D6A0;
  /* Soft Teal */
  --color-accent: #EF476F;
  /* Warm Rose */
  --color-text: #073B4C;
  /* Deep Navy */
  --color-bg: #FCF9F5;
  /* Cream */
  --color-white: #FFFFFF;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(7, 59, 76, 0.1);
  --shadow-md: 0 4px 12px rgba(7, 59, 76, 0.15);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-family: 'Quicksand', sans-serif;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

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

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

.section-padding {
  padding: var(--spacing-lg) 0;
}

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

.hidden {
  display: none !important;
}

/* Language Toggle */
.lang-switch {
  display: flex;
  gap: var(--spacing-xs);
}

.lang-btn {
  background: none;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-text);
}

.lang-btn.active {
  background-color: var(--color-text);
  color: var(--color-white);
}

/* Header */
header {
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  background-color: rgba(252, 249, 245, 0.95);
  backdrop-filter: blur(5px);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
  /* Fallback */
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  /* Slightly lighter overlay for better image visibility */
  z-index: 1;
}

.hero::before {
  display: none;
}

.hero::after {
  display: none;
}

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

.hero h1 {
  font-size: 3.5rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }
}

/* Grid & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.card {
  background: var(--color-white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.card-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  overflow: hidden;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  /* Ensure full color */
}

.card:hover .card-icon {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.card p {
  color: #555;
  font-size: 1rem;
}

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

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

.check-list li {
  margin-bottom: var(--spacing-xs);
  padding-left: 1.5rem;
  position: relative;
}

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

/* Team Cards */
.team-card {
  text-align: center;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  /* Ensure image stays within circle */
  background-color: var(--color-white);
  /* Fallback */
}

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

.team-card h4 {
  margin-bottom: 0;
  color: var(--color-text);
}

.team-card p {
  color: #777;
  font-size: 0.9rem;
}

/* Contact Form */
.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #eee;
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}

/* Footer */
footer {
  background-color: var(--color-text);
  color: var(--color-white);
  position: relative;
  z-index: 1;
}

/* Decorative Blobs */
.blob {
  position: absolute;
  z-index: 0;
  opacity: 0.1;
  pointer-events: none;
}

.blob-1 {
  top: 10%;
  left: -5%;
  width: 300px;
  height: 300px;
  background-color: var(--color-primary);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: float 6s ease-in-out infinite;
}

.blob-2 {
  bottom: 20%;
  right: -5%;
  width: 400px;
  height: 400px;
  background-color: var(--color-secondary);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(20px, 20px);
  }

  100% {
    transform: translate(0, 0);
  }
}

/* Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

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

/* Wave Separators */
.custom-shape-divider-top-1679494680 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-top-1679494680 svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.custom-shape-divider-top-1679494680 .shape-fill {
  fill: #FFFFFF;
}

/* Specific fill for contact section wave */
#contact .custom-shape-divider-top-1679494680 .shape-fill {
  fill: #FFF9E6;
  /* Match Team section bg */
}

/* Hover Enhancements */
.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.card:hover {
  transform: translateY(-10px);
}

.logo {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Mobile menu todo */
  }
}

/* Gallery Carousel */
/* Gallery Carousel */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.gallery-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  /* Smooth scrolling */
}

/* Hide scrollbar */
.gallery-carousel::-webkit-scrollbar {
  display: none;
}

.gallery-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-item {
  flex: 0 0 80%;
  /* Mobile: 80% width */
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Desktop Adjustments */
@media (min-width: 768px) {
  .gallery-item {
    flex: 0 0 350px;
    /* Desktop: Fixed width, not too wide */
  }

  .carousel-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .carousel-btn.prev {
    left: -20px;
    /* Pull out slightly on desktop if container allows, or keep inside */
  }

  .carousel-btn.next {
    right: -20px;
  }
}