/* ========== CSS VARIABLES ========== */
:root {
  /* Colors - Tunisian inspired warm palette */
  --primary-color: #c8102e;
  --primary-dark: #a00d25;
  --primary-light: #e61e3d;
  --secondary-color: #d4af37;
  --secondary-dark: #b8962d;

  --text-color: #2c2c2c;
  --text-light: #6b6b6b;
  --background: #ffffff;
  --background-alt: #f8f8f8;
  --border-color: #e5e5e5;

  --success-color: #27ae60;
  --warning-color: #f39c12;

  /* Typography */
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;

  /* Spacing */
  --header-height: 4rem;
  --section-padding: 5rem 0;
  --container-padding: 1.5rem;

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

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-color);
}

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

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

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ========== LAYOUT ========== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.section-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.header.scroll-header {
  box-shadow: var(--shadow-md);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-color);
}

.nav__logo-icon {
  font-size: 1.5rem;
}

.nav__menu {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.85), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  animation: fadeInUp 1s ease;
}

.hero__title {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-body);
  font-weight: 300;
  opacity: 0.95;
}

.hero__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__stars {
  display: flex;
  gap: 0.25rem;
}

.star {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.3);
}

.star.filled {
  color: var(--secondary-color);
}

.hero__rating-text {
  font-size: 1.125rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  transition: var(--transition);
}

.button--primary {
  background: var(--secondary-color);
  color: var(--text-color);
}

.button--primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3);
}

.button--secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.button--secondary:hover {
  background: white;
  color: var(--primary-color);
}

/* ========== ABOUT SECTION ========== */
.about {
  background: var(--background);
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.about__features {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--background-alt);
  border-radius: 12px;
  transition: var(--transition);
}

.feature:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-sm);
}

.feature__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature__title {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.feature__text {
  color: var(--text-light);
  font-size: 0.9375rem;
}

.about__image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about__image:hover .about__img {
  transform: scale(1.05);
}

/* ========== SPECIALTIES SECTION ========== */
.specialties {
  background: var(--background-alt);
}

.specialties__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.specialty-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.specialty-card__icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.specialty-card__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.specialty-card__description {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.specialty-card__badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}

.specialties__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.info-box {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--border-color);
}

.info-box__title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.info-box__text {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* ========== REVIEWS SECTION ========== */
.reviews {
  background: white;
}

.reviews__stats {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--background-alt);
  border-radius: 16px;
  align-items: center;
}

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

.review-stat__number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-heading);
  line-height: 1;
}

.review-stat__stars {
  margin: 1rem 0;
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.review-stat__text {
  color: var(--text-light);
}

.review-stat-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-bar__label {
  min-width: 60px;
  font-size: 0.9375rem;
  color: var(--text-light);
}

.stat-bar__bar {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.stat-bar__fill {
  height: 100%;
  background: var(--secondary-color);
  transition: width 1s ease;
}

.stat-bar__count {
  min-width: 30px;
  text-align: right;
  font-weight: 600;
  color: var(--text-color);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--background-alt);
  padding: 2rem;
  border-radius: 12px;
  transition: var(--transition);
}

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

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.review-card__stars {
  color: var(--secondary-color);
  font-size: 1.125rem;
}

.review-card__date {
  font-size: 0.875rem;
  color: var(--text-light);
}

.review-card__text {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.review-card__ratings {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
}

.review-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-rating__label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.review-rating__stars {
  color: var(--secondary-color);
  font-size: 0.875rem;
}

.review-card__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.review-card__context {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ========== CONTACT SECTION ========== */
.contact {
  background: var(--background-alt);
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-item__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.contact-item__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-family: var(--font-body);
  font-weight: 600;
}

.contact-item__text {
  color: var(--text-light);
  line-height: 1.6;
}

.contact-item__link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

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

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

.map-container {
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-info {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.map-info__text {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin: 0.25rem 0;
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__logo-icon {
  font-size: 1.75rem;
}

.footer__description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer__stars {
  color: var(--secondary-color);
}

.footer__rating-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer__subtitle {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--secondary-color);
  padding-left: 0.5rem;
}

.footer__text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copyright,
.footer__powered {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE DESIGN ========== */
@media screen and (max-width: 1023px) {
  .section-title {
    font-size: 2rem;
  }

  .about__content,
  .contact__content {
    grid-template-columns: 1fr;
  }

  .reviews__stats {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --header-height: 3.5rem;
    --section-padding: 3rem 0;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s ease;
  }

  .nav__menu.show-menu {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 2rem;
  }

  .nav__toggle,
  .nav__close {
    display: block;
  }

  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.125rem;
  }

  .hero__badges {
    gap: 0.5rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .specialties__grid,
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .footer__content {
    grid-template-columns: 1fr;
  }

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

  .scroll-top {
    width: 2.5rem;
    height: 2.5rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media screen and (max-width: 320px) {
  .container {
    padding: 0 1rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }
}
