/* ========================================
   ghafforzoda.net — Design System
   Colors: Cream #FAFAF8, Terracotta #C2613A
   Fonts: Satoshi (headlines), DM Sans (body)
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #1A1A1A;
  background-color: #FAFAF8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Language Toggle (CSS-driven) --- */
/* Default: Russian visible, English hidden */
span.lang-en { display: none; }
span.lang-ru { display: inline; }
div.lang-en, ul.lang-en, p.lang-en { display: none; }
div.lang-ru, ul.lang-ru, p.lang-ru { display: block; }

/* When body has lang-en class */
body.lang-en span.lang-ru { display: none; }
body.lang-en span.lang-en { display: inline; }
body.lang-en div.lang-ru, body.lang-en ul.lang-ru, body.lang-en p.lang-ru { display: none; }
body.lang-en div.lang-en, body.lang-en ul.lang-en, body.lang-en p.lang-en { display: block; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 80px;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.btn--primary {
  background-color: #C2613A;
  color: #fff;
}

.btn--primary:hover {
  background-color: #A8522F;
  transform: scale(1.02);
}

.btn--secondary {
  background-color: transparent;
  color: #C2613A;
  border: 2px solid #C2613A;
}

.btn--secondary:hover {
  background-color: rgba(194, 97, 58, 0.06);
  transform: scale(1.02);
}

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

/* --- Section Headings --- */
.section-heading {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 42px;
    margin-bottom: 32px;
  }
}

/* --- Placeholder Images --- */
.placeholder-image {
  background-color: #E8E6E1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B6B6B;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  aspect-ratio: 4 / 3;
  width: 100%;
}

.placeholder-image--portrait {
  aspect-ratio: 3 / 4;
}

.placeholder-image--wide {
  aspect-ratio: 16 / 9;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  background-color: rgba(250, 250, 248, 0.97);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

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

.nav__logo {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #1A1A1A;
  letter-spacing: -0.01em;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

.nav__link {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1A1A1A;
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: #C2613A;
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.lang-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #6B6B6B;
  padding: 4px 6px;
  transition: color 0.3s ease;
}

.lang-btn.active {
  color: #C2613A;
}

.lang-btn:hover {
  color: #C2613A;
}

.lang-sep {
  color: #D0D0D0;
  font-size: 14px;
  user-select: none;
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1A1A1A;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

/* Mobile Menu */
.nav__links.mobile-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FAFAF8;
  padding: 40px 24px;
  gap: 24px;
  align-items: flex-start;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav__links.mobile-open .nav__link {
  font-size: 20px;
}

.nav__links.mobile-open .nav__lang {
  margin-left: 0;
  margin-top: 16px;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 160px;
    padding-bottom: 120px;
  }
}

.hero__inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

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

.hero__name {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .hero__name {
    font-size: 56px;
    margin-bottom: 16px;
  }
}

.hero__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #6B6B6B;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 22px;
    margin-bottom: 24px;
  }
}

.hero__tagline {
  font-size: 17px;
  color: #1A1A1A;
  max-width: 520px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .hero__tagline {
    font-size: 18px;
    margin-bottom: 40px;
  }
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.hero__image img {
  max-width: 480px;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* ========================================
   CONSULTING
   ======================================== */
.consulting {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .consulting {
    padding: 140px 0;
  }
}

.services-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
  }
}

.service-block {
  border-left: 3px solid #C2613A;
  padding: 24px 24px 24px 28px;
  background-color: rgba(250, 250, 248, 0.5);
  border-radius: 0 8px 8px 0;
  transition: background-color 0.3s ease;
}

.service-block:hover {
  background-color: rgba(194, 97, 58, 0.04);
}

.service-block__title {
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .service-block__title {
    font-size: 22px;
  }
}

.service-block__desc {
  font-size: 16px;
  color: #6B6B6B;
  line-height: 1.6;
}

.consulting__closing {
  font-size: 18px;
  color: #1A1A1A;
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.6;
}

/* Clients */
.clients {
  margin-bottom: 40px;
}

.clients__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  margin-bottom: 16px;
}

.client-logo {
  height: 40px;
  width: auto;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.client-logo:hover {
  opacity: 1;
}

.clients__footnote {
  font-size: 14px;
  color: #6B6B6B;
  font-style: italic;
}

.consulting__cta {
  margin-bottom: 48px;
}

.consulting__image {
  max-width: 800px;
}

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

/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: 80px 0;
  background-color: #F5F4F0;
}

@media (min-width: 768px) {
  .about {
    padding: 140px 0;
  }
}

.about__content {
  display: grid;
  gap: 40px;
  margin-bottom: 56px;
}

@media (min-width: 768px) {
  .about__content {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-bottom: 72px;
  }
}

.about__text p {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.65;
  color: #1A1A1A;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__photo img {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Proof Points */
.proof-points {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .proof-points {
    gap: 48px;
  }
}

.proof-point {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 120px;
}

.proof-point__number {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: #C2613A;
  line-height: 1.1;
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .proof-point__number {
    font-size: 44px;
  }
}

.proof-point__label {
  font-size: 14px;
  color: #6B6B6B;
  line-height: 1.4;
}

/* ========================================
   COURSES
   ======================================== */
.courses {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .courses {
    padding: 140px 0;
  }
}

.courses__intro {
  font-size: 18px;
  color: #6B6B6B;
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .courses__intro {
    margin-bottom: 48px;
  }
}

/* Featured Course Card */
.course-featured {
  background-color: #FDF6F3;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .course-featured {
    padding: 40px;
    margin-bottom: 40px;
  }
}

.course-featured__name {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 16px;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .course-featured__name {
    font-size: 28px;
  }
}

.course-featured__desc {
  font-size: 17px;
  color: #1A1A1A;
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 600px;
}

.course-featured__enrollment {
  font-size: 14px;
  color: #C2613A;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Course List */
.course-list {
  list-style: none;
  margin-bottom: 48px;
}

.course-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #E8E6E1;
}

.course-list__item:first-child {
  border-top: 1px solid #E8E6E1;
}

.course-list__name {
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 17px;
}

.course-list__status {
  font-size: 14px;
  color: #6B6B6B;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 16px;
}

.course-list__status--enrolling {
  color: #C2613A;
  font-weight: 600;
}

.course-list__status a {
  color: #C2613A;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.course-list__status a:hover {
  color: #A8522F;
}

.courses__image {
  max-width: 800px;
}

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

/* ========================================
   CONTACT
   ======================================== */
.contact {
  padding: 80px 0;
  background-color: #F5F4F0;
}

@media (min-width: 768px) {
  .contact {
    padding: 140px 0;
  }
}

.contact .section-heading {
  text-align: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  max-width: 480px;
  margin: 0 auto;
}

.contact-form__field {
  position: relative;
  margin-bottom: 32px;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #1A1A1A;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #D0D0D0;
  padding: 12px 0 8px;
  outline: none;
  transition: border-color 0.3s ease;
}

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

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-bottom-color: #C2613A;
}

.contact-form__field label {
  position: absolute;
  top: 12px;
  left: 0;
  font-size: 16px;
  color: #6B6B6B;
  pointer-events: none;
  transition: all 0.3s ease;
}

.contact-form__field input:focus ~ label,
.contact-form__field input:not(:placeholder-shown) ~ label,
.contact-form__field textarea:focus ~ label,
.contact-form__field textarea:not(:placeholder-shown) ~ label {
  top: -12px;
  font-size: 12px;
  color: #C2613A;
}

/* Hide native placeholder — we use floating labels */
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: transparent;
}

.contact-form .btn {
  margin-top: 8px;
}

.contact-form__status {
  margin-top: 16px;
  font-size: 15px;
  text-align: center;
  min-height: 24px;
}

.contact-form__status.success {
  color: #2D7D46;
}

.contact-form__status.error {
  color: #C2613A;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: #6B6B6B;
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered hero reveals */
.hero .reveal:nth-child(1) { transition-delay: 0ms; }
.hero .reveal:nth-child(2) { transition-delay: 100ms; }
.hero .reveal:nth-child(3) { transition-delay: 200ms; }
.hero .reveal:nth-child(4) { transition-delay: 300ms; }

.hero__text .reveal:nth-child(1) { transition-delay: 0ms; }
.hero__text .reveal:nth-child(2) { transition-delay: 100ms; }
.hero__text .reveal:nth-child(3) { transition-delay: 200ms; }
.hero__text .reveal:nth-child(4) { transition-delay: 300ms; }
.hero__image.reveal { transition-delay: 200ms; }
