/* Alpha Martial Arts Academy — shared stylesheet
   Colors/fonts matched against the live site (alphatkd.wixsite.com/mobile):
   pure black/white bands, bright blue pill buttons (#0E87EA), mint "Class
   Schedule" pill, condensed heavy display headings, monospace hero line. */

:root {
  --color-bg: #000000;
  --color-white: #ffffff;
  --color-text: #f5f5f5;
  --color-text-muted: #c9c9c9;
  --color-text-on-white: #111111;
  --color-blue: #0e87ea;
  --color-blue-dark: #0b6bbd;
  --color-mint: #9dffc0;
  --color-border: #333333;
  --max-width: 1160px;
  --radius: 10px;
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-mono: "Courier Prime", "Courier New", Courier, monospace;
  --font-body: Arial, Helvetica, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  font-weight: 400;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.6rem, 4vw, 2.6rem); }

p { margin: 0 0 1em; color: var(--color-text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--color-blue);
  margin-bottom: 0.8em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 0.9em 1.7em;
  border-radius: var(--radius);
  border: 2px solid #fff;
  background: var(--color-blue);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--color-blue-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--color-text);
}

.btn-outline:hover { background: var(--color-text); color: #000; border-color: var(--color-text); }

.btn-mint {
  background: var(--color-mint);
  border-color: var(--color-mint);
  color: #04170b;
}

.btn-mint:hover { background: #7cf0a6; border-color: #7cf0a6; }

.btn-sm {
  padding: 0.5em 1.1em;
  font-size: 0.72rem;
  border-radius: 999px;
  border-color: #fff;
  background: transparent;
}

.btn-sm:hover { background: #fff; color: #000; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  padding: 14px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: #fff;
  padding: 6px 12px;
  border-radius: 4px;
}

.brand img {
  height: 46px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 1.4rem;
  padding: 6px 12px;
  cursor: pointer;
}

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

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.main-nav .nav-link {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  border-radius: 999px;
  color: #fff;
}

.main-nav .nav-link:hover,
.main-nav li.active > .nav-link {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #111;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.6);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  font-size: 0.9rem;
  border-radius: 4px;
  white-space: nowrap;
}

.dropdown a:hover { background: #222; color: var(--color-blue); }

.class-schedule-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: bold;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--color-mint);
  color: #04170b;
  padding: 0.7em 1.2em;
  border-radius: 999px;
}

.class-schedule-btn:hover { background: #7cf0a6; }

/* ---------- Hero photo + intro (home) ---------- */

.hero-photo-wrap {
  padding: 30px 0 10px;
  text-align: center;
}

.hero-photo-frame {
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  position: relative;
}

.hero-photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-photo-frame img.is-active { opacity: 1; }

.intro {
  text-align: center;
  padding: 30px 0 60px;
}

.intro h1 {
  font-weight: 400;
  margin-bottom: 0.3em;
}

.intro .founded {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.6em;
}

.intro .intro-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.intro .intro-copy p {
  color: var(--color-text);
}

/* ---------- Alternating bands ---------- */

.band-white {
  background: #fff;
  color: #000;
}

.band-white h2, .band-white h3 { color: #000; }

.band-black {
  background: #000;
}

.program-title-band {
  padding: 50px 0 10px;
  text-align: center;
}

.program-title-band h2 {
  margin: 0;
}

.program-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0;
}

.program-row .photo img {
  border-radius: 4px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.program-row .ages {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4em;
}

.band-white .program-row p { color: #333; }
.band-black .program-row p { color: var(--color-text-muted); }

/* ---------- Jump-link button group (program subpages) ---------- */

.jump-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 16px;
  justify-content: center;
  padding: 40px 0 10px;
}

.jump-links a {
  display: block;
  text-align: center;
  background: var(--color-blue);
  border: 1px solid #fff;
  border-radius: var(--radius);
  padding: 0.9em 1.2em;
  font-weight: bold;
}

.jump-links a:hover { background: var(--color-blue-dark); }

.section-photo {
  max-width: 760px;
  margin: 40px auto;
}

.section-photo img {
  border-radius: 4px;
  width: 100%;
}

.copy-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

.copy-block:last-of-type { border-bottom: none; }

.copy-block h3 { margin-bottom: 0.5em; }

.copy-block p { color: var(--color-text); }

.copy-block .back-to-top {
  display: inline-block;
  margin-top: 0.5em;
  font-size: 0.75rem;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 0.4em 1em;
}

.copy-block .back-to-top:hover { background: #fff; color: #000; }

/* ---------- Sections (generic pages) ---------- */

section { padding: 72px 0; }

.page-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 2.6em;
  text-align: center;
}

/* ---------- Cards / grids ---------- */

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

.card {
  background: #0d0d0d;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-body h3 { font-size: 1.4rem; margin-bottom: 0.2em; }
.card-body .btn { align-self: flex-start; margin-top: auto; }

.photo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.photo-strip img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }

/* ---------- Testimonials ---------- */

.testimonial {
  background: #0d0d0d;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.testimonial p { color: var(--color-text); font-style: italic; }

.testimonial cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: bold;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  color: var(--color-blue);
}

/* ---------- Info blocks ---------- */

.info-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.info-block img { border-radius: var(--radius); }

.stat-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 1.6em;
}

.stat-row .stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--color-blue);
}

.stat-row .stat span {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- CTA band ---------- */

.cta-band { background: var(--color-blue); text-align: center; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); }

/* ---------- Contact / map ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contact-details {
  background: #0d0d0d;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-details dt {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  color: var(--color-blue);
  margin-top: 1.2em;
}

.contact-details dd { margin: 0.2em 0 0; color: var(--color-text); }

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #000;
  border-top: 1px solid var(--color-border);
  padding: 56px 0 26px;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 24px;
  align-items: start;
  text-align: left;
}

.footer-grid .follow h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 0 0 0.1em;
}

.footer-grid .address {
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.footer-grid .address p { color: var(--color-text); margin-bottom: 0.2em; }

.social-row {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #ccc;
}

.social-row a:hover { color: var(--color-blue); }
.social-row svg { width: 22px; height: 22px; fill: currentColor; }

.footer-phone {
  margin-top: 22px;
  font-weight: bold;
  font-size: 1.05rem;
}

.footer-bottom {
  margin-top: 26px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .info-block, .contact-grid, .program-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid .address { text-align: center; }
  .social-row { justify-content: center; }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  .header-right { width: 100%; justify-content: space-between; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border-top: 1px solid var(--color-border);
    padding: 10px 20px 20px;
  }

  .main-nav.open { display: block; }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: none;
    border-radius: 0;
  }

  .main-nav .nav-link { border-radius: 6px; }

  .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 14px;
  }

  .has-dropdown.open .dropdown,
  .has-dropdown:focus-within .dropdown { display: block; }

  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .jump-links { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  section { padding: 52px 0; }
}
