/* ========== TOKENS ========== */
:root {
  --black: #0a0a0a;
  --gray-900: #1a1a1a;
  --gray-800: #2d2d2d;
  --gray-700: #404040;
  --gray-600: #555555;
  --gray-500: #777777;
  --gray-400: #999999;
  --gray-300: #c4c4c4;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --accent: #9e6b5a;
  --accent-light: #c4917e;
  --accent-dark: #7a5244;
  --accent-bg: #f8f3f0;
  --gold: #b8975a;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --container: 1200px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --transition: 0.25s ease;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ========== BASE TYPOGRAPHY ========== */
.heading-2 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.heading--light { color: var(--white); }

.text-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-600);
}

.text-muted { color: var(--gray-500); }

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.label--light { color: var(--accent-light); }

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

.section {
  padding: 7rem 0;
}

.section-header {
  max-width: 600px;
  margin-bottom: 3.5rem;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header--light .heading-2 { color: var(--white); }

.section-header__sub {
  margin-top: 1rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn--lg { padding: 1rem 2.5rem; font-size: 0.95rem; }

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

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(158, 107, 90, 0.3);
}

.btn--glass {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

.btn--glass:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.4);
}

.btn--outline-dark {
  background: transparent;
  color: var(--gray-800);
  border: 1.5px solid var(--gray-300);
}

.btn--outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--full { width: 100%; }

/* ========== NAV ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
  transition: color var(--transition);
}

.nav__logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.header.scrolled .nav__logo-text { color: var(--gray-900); }
.header.scrolled .nav__logo-sub { color: var(--gray-500); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
}

.header.scrolled .nav__link {
  color: var(--gray-600);
}

.header.scrolled .nav__link:hover,
.header.scrolled .nav__link.active {
  color: var(--gray-900);
}

.nav__cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 6px;
}

.nav__cta:hover {
  background: var(--accent-dark) !important;
}

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

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.header.scrolled .nav__toggle span {
  background: var(--gray-800);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(10,10,10,0.82) 0%,
    rgba(10,10,10,0.6) 40%,
    rgba(10,10,10,0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  max-width: 700px;
}

.hero__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid rgba(196, 145, 126, 0.4);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero__description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.hero__trust-item i {
  color: var(--accent-light);
  font-size: 0.8rem;
}

.hero__trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
}

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

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

.about__media {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 1rem;
  height: 520px;
}

.about__img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.about__img--large {
  border-radius: var(--radius-lg);
}

.about__img--small {
  border-radius: var(--radius-lg);
  margin-top: 3rem;
}

.about__content .heading-2 {
  margin-bottom: 1.25rem;
}

.about__content .text-body {
  margin-bottom: 1rem;
}

.about__highlights {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.about__highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
}

.about__highlight i {
  color: var(--accent);
  font-size: 1rem;
}

/* ========== PROGRAMS ========== */
.programs {
  background: var(--gray-100);
}

.programs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.program {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.program:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.program__img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.program__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.program:hover .program__img img {
  transform: scale(1.06);
}

.program__duration {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.program__info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.program__desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
}

.program__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1rem;
  transition: gap var(--transition);
}

.program:hover .program__cta {
  gap: 0.7rem;
}

.program__cta i {
  font-size: 0.7rem;
}

/* ========== RESULTS ========== */
.results {
  position: relative;
  overflow: hidden;
}

.results__bg {
  position: absolute;
  inset: 0;
}

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

.results__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.92), rgba(30,30,30,0.88));
}

.results__content {
  position: relative;
  z-index: 2;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.stats-bar__item {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
}

.stats-bar__number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stats-bar__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: all var(--transition);
}

.feature-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}

.feature-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(196, 145, 126, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: var(--white);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  padding: 2rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.testimonial:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.testimonial__stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
}

.testimonial__stars i {
  color: var(--gold);
  font-size: 0.8rem;
}

.testimonial__text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-800);
}

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

/* ========== GALLERY ========== */
.gallery {
  background: var(--gray-100);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}

.gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

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

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item--lg {
  grid-column: span 2;
  grid-row: span 2;
}

/* ========== CTA ========== */
.cta {
  background: var(--accent-bg);
  padding: 4rem 0;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta__text .heading-2 {
  margin-bottom: 0.5rem;
}

.cta__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

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

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact__info .heading-2 {
  margin-bottom: 1rem;
}

.contact__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.contact__card {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.contact__card:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.contact__card i {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.contact__card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-800);
  margin-bottom: 0.2rem;
}

.contact__card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.form {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.form__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  color: var(--gray-900);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__field {
  margin-bottom: 1.25rem;
}

.form__field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--gray-700);
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: all var(--transition);
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(158, 107, 90, 0.1);
}

.form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__field textarea {
  resize: vertical;
  min-height: 100px;
}

.form__field input.error {
  border-color: #d94444;
}

.form__error {
  font-size: 0.78rem;
  color: #d94444;
  margin-top: 0.25rem;
  display: block;
  min-height: 1rem;
}

.form__note {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 0.75rem;
}

.form__success {
  text-align: center;
  padding: 4rem 2rem;
}

.form__success i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.form__success h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form__success p {
  color: var(--gray-500);
  font-size: 1rem;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding-top: 4rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.footer__logo span:first-child {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
}

.footer__logo span:last-child {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gray-500);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer__socials {
  display: flex;
  gap: 0.5rem;
}

.footer__socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.footer__socials a:hover {
  background: var(--accent);
  color: var(--white);
}

.footer__nav h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}

.footer__nav a {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-400);
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--accent-light);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--gray-600);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  color: var(--gray-600);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: var(--accent-light);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--gray-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .programs__grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; max-width: 600px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .cta__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .section { padding: 4.5rem 0; }
  .heading-2 { font-size: 2.1rem; }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right var(--transition);
    z-index: 1001;
  }

  .nav__links.active { right: 0; }

  .nav__link {
    display: block;
    padding: 0.85rem 0;
    color: var(--gray-700) !important;
    font-size: 1rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav__toggle { display: flex; z-index: 1002; }

  .hero__title { font-size: 3rem; }
  .hero__actions { flex-direction: column; }
  .hero__trust { flex-wrap: wrap; gap: 1rem; }
  .hero__trust-divider { display: none; }

  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__media { height: 350px; }

  .programs__grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }

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

  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.4rem; }
  .about__media { height: 280px; }
  .gallery__grid { grid-auto-rows: 160px; }
  .gallery__item--lg { grid-column: span 2; grid-row: span 1; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
