/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --header-height: 3.5rem;
  
  /* Colors */
  --primary-color: #2E8B57;
  --primary-color-alt: #228B22;
  --secondary-color: #F0F8FF;
  --accent-color: #FFD700;
  --text-color: #333333;
  --text-color-light: #666666;
  --white-color: #FFFFFF;
  --body-color: #FAFAFA;
  --container-color: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --body-font: 'Noto Sans JP', sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.813rem;
  
  /* Font Weight */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  
  /* Margins */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  
  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* Responsive Typography */
@media screen and (max-width: 992px) {
  :root {
    --biggest-font-size: 2rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

/* ===== BASE ===== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--text-color);
  font-weight: var(--font-semi-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--mb-1-5);
  padding-right: var(--mb-1-5);
}

.section {
  padding: 4rem 0 2rem;
}

.section__header {
  text-align: center;
  margin-bottom: var(--mb-3);
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--text-color);
  margin-bottom: var(--mb-0-75);
}

.section__subtitle {
  color: var(--text-color-light);
  font-size: var(--normal-font-size);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--mb-0-5);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
  font-size: var(--normal-font-size);
  min-height: 48px;
  min-width: 120px;
}

.btn--primary {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.btn--primary:hover {
  background-color: var(--primary-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 139, 87, 0.3);
}

.btn--secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ===== HEADER & NAV ===== */
.header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--container-color);
  box-shadow: 0 -1px 4px var(--shadow-color);
  transition: var(--transition);
}

/* Header scroll effect */
.scroll-header {
  box-shadow: 0 2px 12px var(--shadow-color);
}

.nav {
  max-width: 1200px;
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 var(--mb-1-5);
}

.nav__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav__logo {
  color: var(--primary-color);
  font-weight: var(--font-semi-bold);
}

.nav__menu {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--container-color);
  padding: 2rem 1.5rem 4rem;
  box-shadow: 0 -1px 4px var(--shadow-color);
  border-radius: 1.5rem 1.5rem 0 0;
  transition: var(--transition);
}

.nav__list {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  display: grid;
}

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  font-weight: var(--font-medium);
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--primary-color);
}

.nav__toggle,
.nav__close {
  color: var(--text-color);
  font-weight: var(--font-medium);
  cursor: pointer;
  font-size: 1.1rem;
}

.nav__toggle:hover,
.nav__close:hover {
  color: var(--primary-color);
}

.nav__close {
  position: absolute;
  right: 1.3rem;
  top: 0.5rem;
}

/* Show menu */
.show-menu {
  bottom: 0;
}

/* Active nav link */
.nav__link.active {
  color: var(--primary-color);
}

/* Focus styles for accessibility */
.nav__link:focus,
.btn:focus,
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== HERO ===== */
.hero {
  padding: 2rem 0 4rem;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white-color) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--mb-1-5);
  display: grid;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero__content {
  text-align: center;
}

.hero__title {
  font-size: var(--biggest-font-size);
  margin-bottom: var(--mb-1);
  color: var(--text-color);
  line-height: 1.2;
}

.hero__description {
  margin-bottom: var(--mb-2);
  color: var(--text-color-light);
  line-height: 1.6;
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--mb-1);
  align-items: center;
  margin-top: var(--mb-2);
}

.hero__image {
  justify-self: center;
}

.hero__img {
  width: 300px;
  border-radius: 1rem;
  box-shadow: 0 12px 24px var(--shadow-color);
}

/* ===== ABOUT ===== */
.about {
  padding: 4rem 0;
}

.about__container {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about__content {
  text-align: center;
}

.about__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1);
  color: var(--primary-color);
}

.about__description {
  margin-bottom: var(--mb-2);
  color: var(--text-color-light);
  line-height: 1.6;
}

.about__features {
  display: grid;
  gap: var(--mb-2);
}

.feature {
  text-align: center;
  padding: var(--mb-1-5);
  background-color: var(--container-color);
  border-radius: 1rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.feature i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: var(--mb-0-75);
}

.feature h4 {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.feature p {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.about__image {
  justify-self: center;
}

.about__img {
  width: 300px;
  border-radius: 1rem;
  box-shadow: 0 12px 24px var(--shadow-color);
}

/* ===== SERVICES ===== */
.services {
  padding: 4rem 0;
  background-color: var(--secondary-color);
}

.services__container {
  display: grid;
  gap: 2rem;
}

.service__card {
  background-color: var(--container-color);
  padding: var(--mb-2-5);
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.service__icon {
  width: 64px;
  height: 64px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--mb-1);
}

.service__icon i {
  font-size: 1.5rem;
  color: var(--white-color);
}

.service__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-75);
  color: var(--text-color);
}

.service__description {
  color: var(--text-color-light);
  margin-bottom: var(--mb-1);
  line-height: 1.6;
}

.service__features {
  list-style: none;
}

.service__features li {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-0-25);
}

.service__features li:before {
  content: "✓";
  color: var(--primary-color);
  font-weight: var(--font-bold);
  margin-right: var(--mb-0-5);
}

/* ===== INSTRUCTORS ===== */
.instructors {
  padding: 4rem 0;
}

.instructors__container {
  display: grid;
  gap: 2rem;
}

.instructor__card {
  background-color: var(--container-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.instructor__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.instructor__image {
  height: 250px;
  overflow: hidden;
}

.instructor__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.instructor__card:hover .instructor__img {
  transform: scale(1.05);
}

.instructor__content {
  padding: var(--mb-1-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.instructor__name {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-25);
  color: var(--text-color);
}

.instructor__title {
  color: var(--primary-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.instructor__description {
  color: var(--text-color-light);
  margin-bottom: var(--mb-1);
  line-height: 1.6;
  flex: 1;
}

.instructor__specialties {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mb-0-5);
}

.specialty {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: var(--mb-0-25) var(--mb-0-75);
  border-radius: 1rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 4rem 0;
  background-color: var(--secondary-color);
}

.testimonials__container {
  /* Container styling handled by parent .container class */
}

.testimonials__swiper {
  padding-bottom: 3rem;
}

.testimonial__card {
  background-color: var(--container-color);
  padding: var(--mb-2);
  border-radius: 1rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  margin: 0 var(--mb-0-5);
  height: auto;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.testimonial__stars {
  display: flex;
  gap: var(--mb-0-25);
  margin-bottom: var(--mb-1);
}

.testimonial__stars i {
  color: var(--accent-color);
  font-size: var(--normal-font-size);
}

.testimonial__text {
  color: var(--text-color-light);
  margin-bottom: var(--mb-1-5);
  line-height: 1.6;
  font-style: italic;
  flex: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--mb-0-75);
}

.testimonial__img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-25);
}

.testimonial__age {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.swiper-pagination-bullet {
  background-color: var(--primary-color);
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color-alt);
}

/* ===== GALLERY ===== */
.gallery {
  padding: 4rem 0;
}

.gallery__container {
  display: grid;
  gap: var(--mb-1);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 220px;
}

.gallery__item {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: var(--transition);
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.gallery__item--1 {
  grid-row: span 2;
}

.gallery__item--2 {
  grid-column: span 2;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery__item:hover .gallery__img {
  transform: scale(1.05);
}

/* ===== CONTACT ===== */
.contact {
  padding: 4rem 0;
  background-color: var(--secondary-color);
}

.contact__container {
  display: grid;
  gap: 3rem;
}

.contact__info {
  text-align: center;
}

.contact__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1);
  color: var(--primary-color);
}

.contact__description {
  color: var(--text-color-light);
  margin-bottom: var(--mb-2);
  line-height: 1.6;
}

.contact__details {
  display: grid;
  gap: var(--mb-1-5);
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--mb-0-75);
  text-align: left;
}

.contact__detail i {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-top: var(--mb-0-25);
}

.contact__detail h4 {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-25);
}

.contact__detail p {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.contact__form {
  background-color: var(--container-color);
  padding: var(--mb-2);
  border-radius: 1rem;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.form__group {
  margin-bottom: var(--mb-1-5);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  background-color: var(--white-color);
  transition: var(--transition);
  outline: none;
  box-sizing: border-box;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
  transform: translateY(-1px);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--text-color);
  color: var(--white-color);
  padding: 3rem 0 1rem;
}

.footer__container {
  /* Container styling handled by parent .container class */
}

.footer__content {
  display: grid;
  gap: 2rem;
  margin-bottom: var(--mb-2);
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  color: var(--primary-color);
}

.footer__subtitle {
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-1);
  color: var(--white-color);
}

.footer__description {
  color: var(--text-color-light);
  margin-bottom: var(--mb-1-5);
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: var(--mb-0-75);
}

.footer__social-link,
.footer__social-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.25rem;
  transition: var(--transition);
}

.footer__social-link:hover {
  background-color: var(--primary-color-alt);
  transform: translateY(-2px);
}

.footer__social-icon {
  opacity: 0.7;
  cursor: default;
}

.footer__links {
  display: grid;
  gap: var(--mb-0-5);
}

.footer__link {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--primary-color);
}

.footer__text {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  opacity: 0.7;
  cursor: default;
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: var(--mb-0-5);
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-0-5);
}

.footer__contact i {
  color: var(--primary-color);
}

.footer__bottom {
  border-top: 1px solid var(--border-color);
  padding-top: var(--mb-1);
  text-align: center;
}

.footer__copy {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.show-modal {
  opacity: 1;
  visibility: visible;
}

.modal__content {
  background-color: var(--container-color);
  border-radius: 1rem;
  padding: var(--mb-2);
  margin: var(--mb-1-5);
  max-width: 400px;
  width: 100%;
  position: relative;
  transform: translateY(-50px);
  transition: var(--transition);
}

.modal.show-modal .modal__content {
  transform: translateY(0);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--mb-1-5);
}

.modal__title {
  font-size: var(--h3-font-size);
  color: var(--text-color);
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color-light);
  cursor: pointer;
  transition: var(--transition);
}

.modal__close:hover {
  color: var(--text-color);
}

.modal__body p {
  color: var(--text-color-light);
  margin-bottom: var(--mb-1-5);
  line-height: 1.6;
}

.modal__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--mb-1);
}

/* ===== MEDIA QUERIES ===== */
/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
  
  .nav__menu {
    padding: 2rem 0.25rem 4rem;
  }
  
  .nav__list {
    column-gap: 0;
  }
  
  .hero__buttons {
    flex-direction: column;
  }
  
  .btn {
    padding: 0.75rem 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 568px) {
  .hero__container,
  .about__container,
  .contact__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
  }
  
  .hero__content,
  .about__content {
    text-align: left;
  }
  
  .hero__buttons {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
  }
  
  .about__features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services__container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .instructors__container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer__content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  
  body {
    margin: 0;
  }
  
  .section {
    padding: 6rem 0 2rem;
  }
  
  .header {
    top: 0;
    bottom: initial;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  }
  
  .hero {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: calc(100vh - var(--header-height));
  }
  
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  
  .nav__container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 3rem;
  }
  
  .nav__toggle,
  .nav__close {
    display: none;
  }
  
  .nav__list {
    display: flex;
    column-gap: 2rem;
  }
  
  .nav__menu {
    position: initial;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
  }
  
  .nav__link {
    flex-direction: row;
    font-size: var(--normal-font-size);
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero__img {
    width: 400px;
  }
  
  .about__img {
    width: 400px;
  }
  
  .about__features {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .services__container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery__container {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
  }
  
  .contact__detail {
    justify-content: center;
  }
  
  .footer__content {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .modal__buttons {
    flex-direction: row;
  }
}

/* For large devices */
@media screen and (min-width: 992px) {
  .hero__container {
    gap: 4rem;
  }
  
  .hero__img {
    width: 500px;
  }
  
  .about__container {
    gap: 4rem;
  }
  
  .about__img {
    width: 500px;
  }
  
  .services__container {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .instructors__container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact__container {
    gap: 4rem;
  }
  
  .gallery__container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Loading animation for images */
.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.animate-left {
  opacity: 0;
  animation: fadeInLeft 0.6s ease forwards;
}

.animate-right {
  opacity: 0;
  animation: fadeInRight 0.6s ease forwards;
}

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--border-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-color-alt);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* JavaScript-added classes */
.hovered {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px var(--shadow-color) !important;
}

.loaded {
  opacity: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white-color);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* ===== SPECIAL OFFER MODAL ===== */
.special-offer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5vh;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.special-offer-modal.show-modal {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.special-offer-content {
  background-color: var(--white-color);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem;
  max-width: 400px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.4s ease-out;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.special-offer-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--text-color-light);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  line-height: 1;
  z-index: 10;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.special-offer-close:hover {
  color: var(--text-color);
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.modal-image {
  width: 100%;
  max-width: 250px;
  height: 150px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.special-offer-content h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-weight: var(--font-bold);
}

.special-offer-content p {
  color: var(--text-color-light);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  font-size: var(--small-font-size);
}

.special-offer-content p:first-of-type {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
}

.special-offer-content ul {
  text-align: left;
  margin: 1rem 0;
  padding-left: 0;
  list-style: none;
}

.special-offer-content li {
  color: var(--text-color-light);
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.4;
  font-size: var(--small-font-size);
}

.special-offer-content li:before {
  content: "✓";
  color: var(--primary-color);
  font-weight: var(--font-bold);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
}

.special-offer-content .btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: var(--font-medium);
  display: inline-block;
  margin-top: 0.75rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: var(--small-font-size);
}

.special-offer-content .btn-primary:hover {
  background-color: var(--primary-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 139, 87, 0.3);
}


/* Responsive adjustments for special offer modal */
@media screen and (max-width: 568px) {
  .special-offer-content {
    margin: 0.5rem;
    padding: 1.5rem;
    max-width: calc(100vw - 1rem);
  }
  
  .special-offer-content h2 {
    font-size: 1.5rem;
  }
  
  .modal-image {
    height: 150px;
  }
  
  .special-offer-close {
    top: 0.75rem;
    right: 1rem;
    font-size: 1.75rem;
  }
}

@media screen and (max-width: 350px) {
  .special-offer-content {
    padding: 1rem;
  }
  
  .special-offer-content h2 {
    font-size: 1.25rem;
  }
  
  .modal-image {
    height: 120px;
  }
}