/* ============================================================
   APEX MARTIAL ARTS — Shared Stylesheet
   Edit colors at the top to re-theme the whole site.
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables (Edit here to re-theme) ---------- */
:root {
  --navy:       #1B3A6B;
  --navy-dark:  #122955;
  --navy-light: #254d8a;
  --red:        #CC2929;
  --red-dark:   #a81f1f;
  --gold:       #D4A017;
  --white:      #ffffff;
  --bg-light:   #f4f7fb;
  --bg-mid:     #e8eef7;
  --text-dark:  #1e2d40;
  --text-mid:   #4a5568;
  --text-light: #718096;
  --border:     #d0dae8;
  --radius:     8px;
  --shadow-sm:  0 2px 8px rgba(27,58,107,0.10);
  --shadow-md:  0 4px 20px rgba(27,58,107,0.14);
  --transition: 0.22s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 5rem 0; }
.section--gray { background: var(--bg-light); }
.section--blue { background: var(--navy); color: var(--white); }
.section--mid  { background: var(--bg-mid); }

.section-tag {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  color: var(--navy);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.section--blue .section-title { color: var(--white); }

.section-sub {
  color: var(--text-mid);
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.section--blue .section-sub { color: rgba(255,255,255,0.8); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar a { color: rgba(255,255,255,0.85); transition: color var(--transition); }
.topbar a:hover { color: var(--white); }
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.topbar-item { display: flex; align-items: center; gap: 0.35rem; }
.topbar-socials { display: flex; gap: 0.75rem; }
.topbar-socials a { font-size: 1rem; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { fill: var(--white); width: 28px; height: 28px; }
.logo-text { line-height: 1.1; }
.logo-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.logo-sub {
  font-size: 0.7rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--navy); background: var(--bg-light); }
.nav-links a.active { color: var(--navy); font-weight: 700; }
.nav-cta { margin-left: 0.5rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--bg-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mobile-nav a:hover { color: var(--navy); background: var(--bg-light); }
.mobile-nav .btn { margin: 0.75rem 1.25rem; display: block; text-align: center; }

/* ---------- PAGE HERO ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  position: relative;
}
.page-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  position: relative;
}
.page-hero .breadcrumb {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.75rem;
  position: relative;
}
.page-hero .breadcrumb a { opacity: 0.85; }
.page-hero .breadcrumb a:hover { opacity: 1; }
.page-hero .red-bar {
  width: 60px;
  height: 4px;
  background: var(--red);
  margin: 0.75rem auto 0;
  border-radius: 2px;
  position: relative;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-body { padding: 1.5rem; }
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}
.card-icon.red { background: rgba(204,41,41,0.1); }
.card-icon.navy { background: rgba(27,58,107,0.1); }
.card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.card-text { color: var(--text-mid); font-size: 0.95rem; }

/* ---------- GRIDS ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-sub { color: rgba(255,255,255,0.6); }
.footer-brand p { font-size: 0.9rem; margin-top: 0.75rem; opacity: 0.75; line-height: 1.7; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--white);
  transition: background var(--transition);
}
.footer-socials a:hover { background: var(--red); }

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a {
  font-size: 0.9rem;
  opacity: 0.75;
  transition: opacity var(--transition), color var(--transition);
}
.footer-col ul li a:hover { opacity: 1; color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  opacity: 0.8;
}
.footer-contact-item .icon { font-size: 1rem; margin-top: 1px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  opacity: 0.65;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-right { display: none; }
}
