/* ===== Custom Properties ===== */
:root {
  /* Navy palette */
  --navy: #1a2332;
  --navy-light: #243447;

  /* Gold palette */
  --gold: #c8a45e;
  --gold-hover: #d4b06a;
  --gold-light: rgba(200, 164, 94, 0.12);

  /* WhatsApp palette */
  --whatsapp: #25D366;
  --whatsapp-hover: #20bd5a;

  /* Neutrals */
  --white: #fbfbfd;
  --black: #1d1d1f;
  --gray-100: #f5f5f7;
  --gray-200: #e8e8ed;
  --gray-400: #86868b;
  --gray-600: #6e6e73;
  --gray-800: #424245;

  /* Layout */
  --nav-h: 48px;
  --section-pad: clamp(80px, 12vw, 160px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
    'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }
img { display: block; }
.btn svg { display: inline-block; vertical-align: middle; margin-right: 8px; }

/* ===== Utilities ===== */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.container--wide {
  max-width: 1200px;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-600);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
  line-height: 1.5;
  font-weight: 400;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--primary {
  background: var(--gold);
  color: #fff;
}

.btn--primary:hover {
  background: var(--gold-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
  padding: 12px 4px;
}

.btn--ghost::after {
  content: ' >';
  transition: margin-left 0.2s;
}

.btn--ghost:hover::after {
  margin-left: 4px;
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn--whatsapp:hover {
  background: var(--whatsapp-hover);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn--dark {
  background: #fff;
  color: var(--black);
}

.btn--dark:hover {
  background: var(--gray-100);
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Staggered children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--black);
}

.logo-text--sm {
  font-size: 0.95rem;
}

.logo-accent {
  color: var(--gold);
}

.nav__menu {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-800);
  transition: color 0.2s;
}

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

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 30% 50%,
      rgba(200, 164, 94, 0.1) 0%,
      transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 55%,
      rgba(36, 52, 71, 0.25) 0%,
      transparent 70%);
  animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.08); }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  width: 100%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__text {
  text-align: left;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero__tagline {
  color: var(--gold);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gray-400);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.6;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero__portrait {
  display: flex;
  justify-content: center;
}

.hero__img {
  border-radius: 50%;
  max-width: 320px;
  width: 100%;
  height: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3),
              0 0 0 3px var(--gold-light);
  border: 3px solid var(--gold-light);
}

/* ===== Services ===== */
.services {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--gray-100);
  border-radius: 20px;
  padding: 40px 32px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--white);
  margin-bottom: 24px;
  color: var(--black);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card__body {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.card__tags li {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--white);
  color: var(--gray-800);
}

/* ===== Languages ===== */
.languages {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.languages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lang-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--gray-100);
  border-radius: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lang-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.lang-card__flag {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1;
}

.lang-card__name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.lang-card__level {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.lang-card__quote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  text-align: left;
}

/* RTL support for Arabic quote */
.lang-card__quote[dir="rtl"] {
  border-left: none;
  border-right: 3px solid var(--gold);
  padding-right: 16px;
  padding-left: 0;
  text-align: right;
}

/* ===== Why (About) ===== */
.why {
  padding: var(--section-pad) 0;
  background: var(--navy);
  color: #fff;
}

.why .section-title {
  color: #fff;
}

.why .section-subtitle {
  color: var(--gray-400);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why__item {
  padding: 40px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s, border-color 0.3s;
}

.why__item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

.why__number {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1;
}

.why__item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.why__item p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Reviews ===== */
.reviews {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.review-card {
  background: var(--gray-100);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.review-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.review-card__stars {
  margin-bottom: 16px;
}

.review-card__stars .star {
  color: var(--gold);
  font-size: 1.1rem;
}

.review-card__text {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 20px;
}

.review-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black);
}

.review-card__role {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.reviews__add {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.reviews__add-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.review-form__input,
.review-form__textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--gray-100);
  color: var(--black);
  transition: border-color 0.2s;
}

.review-form__input:focus,
.review-form__textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.review-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.review-form__stars {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.review-form__stars button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-200);
  cursor: pointer;
  transition: color 0.15s;
  padding: 2px;
  line-height: 1;
}

.review-form__stars button.active,
.review-form__stars button:hover {
  color: var(--gold);
}

.review-form__note {
  margin-top: 16px;
  color: var(--whatsapp);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ===== Contact (CTA) ===== */
.contact {
  padding: var(--section-pad) 0;
  text-align: center;
  background: var(--gray-100);
}

.contact .section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.contact__subtitle {
  color: var(--gray-600);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 480px;
  margin: 16px auto 40px;
  line-height: 1.6;
}

.contact__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  padding: 24px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__tagline {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--gray-600);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--black);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.footer__credit {
  display: inline-block;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--gray-200);
}

.footer__credit a {
  color: var(--gold);
  font-weight: 500;
  transition: color 0.2s;
}

.footer__credit a:hover {
  color: var(--gold-hover);
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
  .services__grid,
  .why__grid,
  .languages__grid,
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(251, 251, 253, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 8px 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__menu li {
    width: 100%;
    text-align: center;
  }

  .nav__link {
    display: block;
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    text-align: center;
    order: 1;
  }

  .hero__portrait {
    order: -1;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .services__grid,
  .why__grid,
  .languages__grid,
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .review-form__row {
    grid-template-columns: 1fr;
  }

  .footer__credit {
    display: block;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 4px;
  }

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

  /* Hamburger animation */
  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }
}
