/* Mars IT School — Branch Pages
   Aesthetic: Cosmic Mars — deep space + warm orange glow */

/* ── Fonts ── */
@font-face { font-family: 'Gilroy'; src: url('fonts/Gilroy-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('fonts/Gilroy-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('fonts/Gilroy-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('fonts/Gilroy-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ── Variables ── */
:root {
  --space: #0B0E1A;
  --space-light: #111627;
  --space-card: #161B2E;
  --mars: #FF6B35;
  --mars-glow: #FF8C5A;
  --mars-deep: #E85520;
  --cream: #F5F0EB;
  --cream-dim: #C8C0B8;
  --white: #FFFFFF;
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1120px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Gilroy', system-ui, sans-serif;
  background: var(--space);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Utility ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,14,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo {
  height: 32px;
  width: auto;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--cream-dim);
  align-items: center;
}
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--mars); }
.breadcrumb__sep { opacity: 0.4; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mars-glow);
  margin-bottom: 24px;
  animation: fadeSlideUp .6s ease both;
}
.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--mars);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--mars);
}
.hero__title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeSlideUp .6s ease .1s both;
}
.hero__title span {
  background: linear-gradient(135deg, var(--mars) 0%, var(--mars-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 18px;
  color: var(--cream-dim);
  max-width: 560px;
  margin-bottom: 36px;
  animation: fadeSlideUp .6s ease .2s both;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeSlideUp .6s ease .3s both;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--mars) 0%, var(--mars-deep) 100%);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(255,107,53,0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,107,53,0.45);
}
.btn--ghost {
  background: var(--glass);
  color: var(--cream);
  border: 1px solid var(--glass-border);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.btn__icon {
  width: 20px;
  height: 20px;
}

/* ── Info Cards Grid ── */
.info-section {
  padding: 80px 0;
  position: relative;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.info-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .3s ease;
}
.info-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,107,53,0.3);
  transform: translateY(-4px);
}
.info-card__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--mars), var(--mars-glow));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.info-card__label {
  font-size: 13px;
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.info-card__value {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.info-card__value a {
  color: var(--mars-glow);
  transition: color .2s;
}
.info-card__value a:hover { color: var(--white); }

/* ── Gallery ── */
.gallery-section {
  padding: 0 0 80px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  transition: transform .3s ease, filter .3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid img { height: 160px; }
}

/* ── Map ── */
.map-section {
  padding: 0 0 80px;
}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  height: 400px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: brightness(0.85) contrast(1.1) saturate(0.8);
}

/* ── Courses ── */
.courses-section {
  padding: 80px 0;
  background: var(--space-light);
}
.section-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mars);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 48px;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  background: var(--space-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}
.course-card:hover {
  border-color: rgba(255,107,53,0.4);
  transform: translateY(-4px);
}
.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mars), var(--mars-glow));
  opacity: 0;
  transition: opacity .3s;
}
.course-card:hover::before { opacity: 1; }
.course-card__age {
  display: inline-block;
  background: rgba(255,107,53,0.12);
  color: var(--mars-glow);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.course-card__name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.course-card__desc {
  color: var(--cream-dim);
  font-size: 15px;
  margin-bottom: 20px;
}
.course-card__price {
  font-size: 15px;
  font-weight: 600;
  color: var(--mars-glow);
}

/* ── Features ── */
.features-section {
  padding: 80px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.feature__text h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.feature__text p {
  font-size: 14px;
  color: var(--cream-dim);
}

/* ── CTA ── */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}
.cta__subtitle {
  font-size: 18px;
  color: var(--cream-dim);
  margin-bottom: 40px;
  position: relative;
}
.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── Footer ── */
.site-footer {
  background: var(--space-light);
  border-top: 1px solid var(--glass-border);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer__brand p {
  color: var(--cream-dim);
  font-size: 14px;
  margin-top: 12px;
}
.footer__branches-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer__branches-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  list-style: none;
}
.footer__branches-list a {
  font-size: 15px;
  color: var(--cream);
  padding: 6px 0;
  display: inline-block;
  transition: color .2s;
}
.footer__branches-list a:hover { color: var(--mars); }
.footer__branches-list .is-current a {
  color: var(--mars-glow);
  font-weight: 600;
}
.footer__bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--cream-dim);
}
.footer__bottom a { color: var(--mars-glow); }
.footer__bottom a:hover { color: var(--white); }

/* ── Animations ── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hero { padding: 64px 0 48px; }
  .info-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .map-wrap { height: 280px; }
  .info-section, .courses-section, .features-section { padding: 48px 0; }
  .cta-section { padding: 64px 0; }
  .btn { padding: 14px 24px; font-size: 15px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}
