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

:root {
  /* Colors */
  --color-primary: #4FC3F7;
  --color-primary-dark: #039BE5;
  --color-primary-light: #E1F5FE;
  --color-accent: #FFD54F;
  --color-accent-dark: #FFB300;
  --color-secondary: #66BB6A;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #FFFFFF;
  --color-bg-alt: #F0F9FF;

  /* Typography */
  --font-heading: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;

  /* Spacing */
  --section-padding: 3rem 1.25rem;
  --container-max: 1100px;

  /* Transitions */
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

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

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

a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-primary-dark);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__hamburger-line {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__hamburger.active .nav__hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__hamburger.active .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active .nav__hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 300px;
  height: 100vh;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  gap: 1.5rem;
  transition: right var(--transition);
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
}

.nav__menu.open {
  right: 0;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--color-primary-dark);
}

/* Language toggle */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--color-primary-light);
  border: 2px solid var(--color-primary);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
}

.nav__lang-option {
  color: var(--color-text-light);
  transition: color var(--transition);
}

.nav__lang-option--active {
  color: var(--color-primary-dark);
}

.nav__lang-full {
  display: none;
}

.nav__lang-divider {
  color: var(--color-text-light);
}

@media (min-width: 480px) {
  .nav__lang-short {
    display: none;
  }

  .nav__lang-full {
    display: inline;
  }
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav__hamburger {
    display: none;
  }

  .nav__menu {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    flex-direction: row;
    padding: 0;
    gap: 1.5rem;
    box-shadow: none;
    background: transparent;
  }

  .nav__link {
    font-size: 1rem;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--color-primary) 0%, #81D4FA 60%, var(--color-primary-light) 100%);
  overflow: hidden;
  padding: 6rem 1.25rem 3rem;
  text-align: center;
}

/* Sun decoration */
.hero__sun {
  position: absolute;
  top: 80px;
  right: 10%;
  width: 100px;
  height: 100px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(255, 213, 79, 0.6), 0 0 80px rgba(255, 213, 79, 0.3);
  animation: sunPulse 3s ease-in-out infinite;
}

@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(255, 213, 79, 0.6), 0 0 80px rgba(255, 213, 79, 0.3); }
  50% { box-shadow: 0 0 60px rgba(255, 213, 79, 0.8), 0 0 100px rgba(255, 213, 79, 0.4); }
}

/* Cloud decorations */
.hero__cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50px;
}

.hero__cloud::before,
.hero__cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.hero__cloud--1 {
  width: 120px;
  height: 40px;
  top: 25%;
  left: 5%;
  animation: cloudDrift 20s linear infinite;
}

.hero__cloud--1::before {
  width: 50px;
  height: 50px;
  top: -25px;
  left: 20px;
}

.hero__cloud--1::after {
  width: 40px;
  height: 40px;
  top: -20px;
  left: 55px;
}

.hero__cloud--2 {
  width: 100px;
  height: 35px;
  top: 15%;
  right: 25%;
  animation: cloudDrift 25s linear infinite reverse;
}

.hero__cloud--2::before {
  width: 45px;
  height: 45px;
  top: -22px;
  left: 15px;
}

.hero__cloud--2::after {
  width: 35px;
  height: 35px;
  top: -18px;
  left: 45px;
}

.hero__cloud--3 {
  width: 80px;
  height: 28px;
  bottom: 30%;
  left: 15%;
  animation: cloudDrift 18s linear infinite;
}

.hero__cloud--3::before {
  width: 35px;
  height: 35px;
  top: -18px;
  left: 12px;
}

.hero__cloud--3::after {
  width: 28px;
  height: 28px;
  top: -14px;
  left: 38px;
}

@keyframes cloudDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(60px); }
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.25rem;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-white);
  opacity: 0.95;
  margin-bottom: 0.5rem;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero__cta {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.875rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 179, 0, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 44px;
  min-height: 44px;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 179, 0, 0.5);
}

.hero__license {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.5rem;
  }

  .hero__subtitle {
    font-size: 1.5rem;
  }

  .hero__tagline {
    font-size: 1.5rem;
  }

  .hero__sun {
    width: 140px;
    height: 140px;
  }
}

/* ===== Services ===== */
.services {
  padding: var(--section-padding);
  background: var(--color-white);
  max-width: var(--container-max);
  margin: 0 auto;
}

.services__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.services__card {
  background: var(--color-bg-alt);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.services__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.services__icon {
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.services__card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}

.services__card-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.services__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.services__badge {
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
}

@media (min-width: 768px) {
  .services__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== About ===== */
.about {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.about__content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about__text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}

.about__image img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
}

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

/* ===== Gallery ===== */
.gallery {
  padding: var(--section-padding);
  background: var(--color-white);
  max-width: var(--container-max);
  margin: 0 auto;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery__item {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition);
}

.gallery__item:hover {
  transform: scale(1.03);
}

.gallery__item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary-light), #B3E5FC);
  color: var(--color-text-light);
  font-style: italic;
  font-size: 0.9rem;
  border-radius: 12px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Schedule & Location ===== */
.schedule {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.schedule__content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.schedule__hours h3,
.schedule__address h3,
.schedule__contact h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.schedule__time {
  font-size: 1rem;
  color: var(--color-text);
}

.schedule__time--large {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.schedule__phone,
.schedule__email {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  min-height: 44px;
  line-height: 44px;
}

.schedule__email {
  font-size: 0.95rem;
}

.schedule__map iframe {
  width: 100%;
  border-radius: 12px;
}

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

/* ===== Contact ===== */
.contact {
  padding: var(--section-padding);
  background: var(--color-white);
  max-width: var(--container-max);
  margin: 0 auto;
}

.contact__info {
  text-align: center;
  margin-bottom: 2rem;
}

.contact__phone,
.contact__email {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  min-height: 44px;
  line-height: 44px;
}

.contact__form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: var(--color-text);
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
  min-height: 44px;
}

.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact__field textarea {
  resize: vertical;
}

.contact__submit {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  min-height: 44px;
}

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

.contact__note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--color-text-light);
}

.contact__note a {
  font-weight: 700;
  min-height: 44px;
  display: inline-block;
  line-height: 44px;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 2rem 1.25rem;
  text-align: center;
}

.footer__content {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer__sun {
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer__copy {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ===== Cloud Section Divider ===== */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23ffffff' d='M0,40 C180,0 360,60 540,30 C720,0 900,50 1080,25 C1260,0 1350,40 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
}

.about::before {
  content: '';
  display: block;
  height: 40px;
  margin-top: -40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40'%3E%3Cpath fill='%23F0F9FF' d='M0,30 C240,0 480,40 720,20 C960,0 1200,35 1440,15 L1440,40 L0,40 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
}

.schedule::before {
  content: '';
  display: block;
  height: 40px;
  margin-top: -40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40'%3E%3Cpath fill='%23F0F9FF' d='M0,15 C240,40 480,0 720,25 C960,40 1200,5 1440,30 L1440,40 L0,40 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__sun,
  .hero__cloud--1,
  .hero__cloud--2,
  .hero__cloud--3 {
    animation: none;
  }

  .services__card,
  .gallery__item,
  .hero__cta,
  .contact__submit {
    transition: none;
  }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
