/* UMAI Qatar Karate redesign */
:root {
  --color-ink: #161514;
  --color-ink-soft: #3c3935;
  --color-muted: #706b64;
  --color-paper: #f7f3ed;
  --color-panel: #fffaf3;
  --color-white: #ffffff;
  --color-red: #b20816;
  --color-red-dark: #820611;
  --color-line: rgba(22, 21, 20, 0.12);
  --shadow-soft: 0 22px 60px rgba(27, 22, 18, 0.12);
  --shadow-card: 0 18px 40px rgba(27, 22, 18, 0.14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  --header-height: 88px;
  --text-xs: 0.72rem;
  --text-sm: 0.82rem;
  --text-base: 0.94rem;
  --text-lg: 1.05rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.75rem, 3.2vw, 2.75rem);
  --text-3xl: clamp(2.2rem, 4.5vw, 3.5rem);
  --text-hero: clamp(2.4rem, 5.5vw, 4.2rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: var(--text-base);
  background: var(--color-paper);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--color-white);
  background: var(--color-red);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--color-white);
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  color: var(--color-ink);
  background: rgba(255, 250, 243, 0.94);
  box-shadow: 0 14px 35px rgba(22, 21, 20, 0.1);
  backdrop-filter: blur(18px);
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 10, 0.2);
  font-size: 0.82rem;
}

.site-header.is-scrolled .topbar,
body.nav-open .topbar {
  border-color: var(--color-line);
  background: rgba(255, 255, 255, 0.45);
}

.topbar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.topbar a,
.topbar span {
  opacity: 0.88;
}

.topbar a:hover {
  color: var(--color-red);
}

.nav-shell__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 154px;
  padding: 8px 0;
}

.brand img {
  width: 154px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.22));
}

.site-header.is-scrolled .brand img,
body.nav-open .brand img {
  filter: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: currentColor;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
  background: var(--color-red);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero-section {
  position: relative;
  min-height: min(100svh, 860px);
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 48px) 0 72px;
  color: var(--color-white);
  isolation: isolate;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(90deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.52) 45%, rgba(10, 10, 10, 0.22) 100%),
    url("../images/hero-dojo.jpg");
  background-size: cover;
  background-position: center left;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(0deg, rgba(247, 243, 237, 0.98), rgba(247, 243, 237, 0));
  pointer-events: none;
}

.hero-section__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 16% 40%, rgba(178, 8, 22, 0.34), transparent 28%),
    radial-gradient(circle at 72% 68%, rgba(178, 8, 22, 0.18), transparent 32%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 300px);
  align-items: end;
  gap: 32px;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-red);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hero-copy .eyebrow {
  color: #ff3446;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 640px;
  margin: 16px 0 18px;
  font-size: var(--text-hero);
  line-height: 1.05;
}

h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.78);
}

.hero-copy p {
  max-width: 540px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-lg);
  line-height: 1.65;
}

.hero-actions,
.social-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.control-btn:hover,
.scroll-top:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--color-white);
  background: var(--color-red);
  box-shadow: 0 14px 26px rgba(178, 8, 22, 0.24);
}

.btn-primary:hover {
  background: var(--color-red-dark);
}

.btn-secondary {
  color: inherit;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.section-copy .btn-secondary,
.footer-section .btn-secondary {
  border-color: var(--color-line);
}

.hero-card,
.dark-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(20, 20, 20, 0.68);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.hero-card {
  padding: 24px;
}

.hero-card__label {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-card__stat {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-card__stat strong {
  font-size: 2.6rem;
  line-height: 0.85;
}

.hero-card__stat span {
  color: #ff3446;
  font-weight: 800;
}

.hero-card__divider {
  width: 100%;
  height: 1px;
  margin: 22px 0;
  background: rgba(255, 255, 255, 0.14);
}

.hero-card p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.section {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0;
}

.section:nth-of-type(odd):not(.hero-section) {
  background: var(--color-panel);
}

.about-grid,
.success-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.dark-card h2,
.contact-split__form h2 {
  margin: 12px 0 18px;
  color: var(--color-ink);
  font-size: var(--text-2xl);
  line-height: 1.08;
}

.section-copy p,
.section-heading p,
.contact-split__form p,
.footer-section li,
.footer-section p {
  color: var(--color-muted);
  font-size: var(--text-base);
}

.section-copy p {
  max-width: 620px;
}

.image-panel {
  position: relative;
  min-height: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.image-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  pointer-events: none;
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.image-panel__note {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  max-width: 260px;
  padding: 18px 20px;
  border-radius: 18px;
  color: var(--color-white);
  background: rgba(22, 21, 20, 0.84);
  box-shadow: var(--shadow-card);
}

.image-panel__note span {
  display: block;
  color: #ff3446;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.image-panel__note strong {
  display: block;
  margin-top: 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 36px;
  text-align: center;
  margin-inline: auto;
}

.section-heading p {
  margin: 0 auto;
  max-width: 520px;
}

.section-heading--split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  text-align: left;
}

.section-heading--lined .section-kicker::before {
  display: none;
}

.section-heading--lined .section-kicker {
  justify-content: center;
  width: 100%;
}

.section-heading--lined h2 {
  margin-bottom: 16px;
}

.section-heading__line {
  display: block;
  width: 48px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-red);
}

.card-grid,
.instructor-grid,
.stat-grid,
.value-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.batch-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.person-card,
.value-card,
.stat-card,
.quote-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.person-card:hover,
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(27, 22, 18, 0.18);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.card-number,
.value-card span {
  color: var(--color-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.feature-card h3,
.value-card h3,
.person-card h3,
.footer-section h3 {
  margin: 6px 0 8px;
  color: var(--color-ink);
  font-size: var(--text-lg);
  line-height: 1.3;
}

.feature-card p,
.person-card p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.success-section {
  overflow: hidden;
}

.success-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.dark-card {
  padding: clamp(32px, 5vw, 56px);
  color: var(--color-white);
  background: var(--color-ink);
}

.dark-card h2,
.dark-card p {
  color: var(--color-white);
}

.dark-card p {
  opacity: 0.76;
}

.value-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.value-card h3 {
  margin-bottom: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.instructors-section {
  background: var(--color-panel);
}

.featured-masters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(32px, 5vw, 48px);
}

.featured-master {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  min-height: 280px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.featured-master__media {
  overflow: hidden;
}

.featured-master__media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: top center;
}

.featured-master__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vw, 28px);
}

.featured-master__role {
  display: block;
  margin-bottom: 8px;
  color: var(--color-red);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.featured-master__content h3 {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.featured-master__content blockquote {
  margin: 0 0 16px;
  color: var(--color-ink-soft);
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--text-base);
  line-height: 1.55;
}

.featured-master__content blockquote em {
  font-style: italic;
}

.instructor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.instructor-grid--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}

.instructor-grid--six .person-card__body {
  padding: 12px 10px 14px;
}

.instructor-grid--six .person-card h3 {
  font-size: 0.88rem;
}

.instructor-grid--six .person-card p {
  font-size: 0.68rem;
}

.person-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(27, 22, 18, 0.14);
}

.person-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  background: #ece5dc;
}

.person-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px 20px;
  text-align: left;
}

.person-card h3 {
  margin: 0 0 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.person-card p {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.counter-section {
  padding: 40px 0;
  color: var(--color-white);
  background: var(--color-ink);
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  padding: 28px 20px;
  text-align: center;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.stat-card strong {
  display: block;
  color: var(--color-white);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonials-section {
  background: var(--color-paper);
}

.testimonials-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
}

.quote-card {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(22, 21, 20, 0.08);
  border-radius: var(--radius-sm);
  background: #f0ebe3;
  box-shadow: 0 8px 24px rgba(27, 22, 18, 0.06);
}

.quote-card__icon {
  display: block;
  margin-bottom: 12px;
  color: var(--color-red);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
}

.quote-card blockquote {
  flex: 1;
  margin: 0 0 24px;
  color: var(--color-ink-soft);
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--text-base);
  font-style: italic;
  line-height: 1.6;
  text-align: center;
}

.quote-card__footer {
  margin-top: auto;
  text-align: left;
}

.quote-card__footer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-ink);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quote-card__footer span {
  display: block;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.control-btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-ink);
  background: var(--color-white);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.control-btn:hover {
  color: var(--color-white);
  background: var(--color-red);
}

.contact-section {
  padding: 0;
  background: var(--color-panel);
}

.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(720px, auto);
}

.contact-split__form {
  display: flex;
  align-items: center;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 64px);
  background: var(--color-paper);
}

.contact-split__inner {
  width: min(100%, 520px);
  margin-inline: auto;
}

.contact-split__form h2 {
  margin: 10px 0 14px;
}

.contact-split__form > .contact-split__inner > p {
  margin-bottom: 24px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row--full {
  grid-column: 1 / -1;
}

label {
  color: var(--color-ink);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  padding: 12px 0;
  color: var(--color-ink);
  background: transparent;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%), linear-gradient(135deg, var(--color-muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% + 2px), calc(100% - 10px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-red);
  box-shadow: none;
}

.contact-split__visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.contact-split__visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
}

.contact-split__caption {
  position: absolute;
  left: clamp(20px, 4vw, 36px);
  bottom: clamp(24px, 4vw, 40px);
  z-index: 2;
  max-width: 280px;
}

.contact-split__line {
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: 12px;
  background: var(--color-red);
}

.contact-split__caption p {
  margin: 0;
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.contact-split__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.08), rgba(10, 10, 10, 0.55));
  pointer-events: none;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

.contact-details__item span {
  display: block;
  margin-bottom: 4px;
  color: var(--color-red);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-details__item p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.contact-details__item a:hover {
  color: var(--color-red);
}

.form-status {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
}

.form-status.is-success {
  color: #1f5a32;
  background: #e8f5ec;
  border: 1px solid #b8dfc4;
}

.form-status.is-error {
  color: #7a1420;
  background: #fdecee;
  border: 1px solid #f0c2c8;
}

.contact-form.is-submitting {
  opacity: 0.72;
  pointer-events: none;
}

.footer-section {
  color: var(--color-white);
  background: #10100f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  gap: 42px;
  padding: 62px 0 42px;
}

.footer-brand img {
  width: 160px;
  margin-bottom: 22px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li + li {
  margin-top: 8px;
}

.footer-section h3 {
  color: var(--color-white);
  margin-bottom: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 6px;
}

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--color-white);
  font-weight: 800;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  color: var(--color-white);
  background: var(--color-red);
  box-shadow: 0 16px 34px rgba(178, 8, 22, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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


.redirect-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--color-paper);
}

.redirect-card {
  width: min(100%, 460px);
  padding: 38px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.redirect-card img {
  width: 170px;
  margin: 0 auto 22px;
}

.redirect-card h1 {
  margin-bottom: 14px;
  color: var(--color-ink);
  font-size: clamp(2.4rem, 10vw, 4rem);
}

.redirect-card p {
  color: var(--color-muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .success-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 420px;
  }

  .featured-masters {
    grid-template-columns: 1fr;
  }

  .featured-master {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .batch-grid,
  .instructor-grid,
  .instructor-grid--six,
  .testimonials-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-split {
    grid-template-columns: 1fr;
  }

  .contact-split__visual {
    min-height: 320px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 74px;
    --text-hero: clamp(2rem, 10vw, 3rem);
    --text-2xl: clamp(1.55rem, 7vw, 2.2rem);
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .topbar {
    display: none;
  }

  .site-header {
    color: var(--color-ink);
    background: rgba(255, 250, 243, 0.96);
    box-shadow: 0 14px 35px rgba(22, 21, 20, 0.1);
  }

  .nav-shell__inner {
    min-height: 74px;
  }

  .brand,
  .brand img {
    width: 120px;
  }

  .nav-toggle {
    display: block;
    border-color: var(--color-line);
  }

  .main-nav {
    position: fixed;
    inset: 74px 14px auto;
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: 24px;
    color: var(--color-ink);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .nav-link {
    padding: 12px 14px;
    font-size: var(--text-sm);
  }

  .hero-section {
    min-height: auto;
    padding: calc(var(--header-height) + 32px) 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-card {
    max-width: none;
    padding: 20px;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading--split {
    display: block;
  }

  .image-panel,
  .image-panel img {
    min-height: 300px;
  }

  .featured-master,
  .featured-master__media img {
    min-height: 240px;
  }

  .featured-master {
    grid-template-columns: 1fr;
  }

  .featured-master__media img {
    min-height: 220px;
    max-height: 280px;
  }

  .batch-grid,
  .instructor-grid,
  .instructor-grid--six,
  .value-grid,
  .stat-grid,
  .testimonials-row,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-split__form {
    padding: 48px 20px;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-split__visual img {
    min-height: 260px;
  }
}

@media (max-width: 460px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .control-btn {
    width: 100%;
  }

  .image-panel__note {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .dark-card {
    border-radius: 20px;
  }

  .contact-split__visual {
    min-height: 260px;
  }
}
