/* ============================================================
   Freestyle Dojo – Site CSS
   Colors: teal #509595 | dark #141e26 | beige #f1ede1 | amber #e8b352
   ============================================================ */

:root {
  --teal:  #509595;
  --dark:  #141e26;
  --beige: #f1ede1;
  --light: #f2f2f2;
  --amber: #e8b352;
}

@font-face {
  font-family: 'Boogaloo';
  src: url('../fonts/Boogaloo-Regular.ttf') format('truetype');
  font-display: swap;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--dark);
  background: #fff;
  margin: 0;
  padding: 0;
}

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

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dark);
  padding: 0.6rem 0;
}

.site-nav .navbar-brand img {
  height: 42px;
  filter: brightness(0) invert(1);
}

.site-nav .nav-link {
  color: rgba(255,255,255,0.82) !important;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--teal) !important;
}

.site-nav .navbar-toggler {
  border-color: rgba(255,255,255,0.25);
}
.site-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.75%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── BUTTONS ── */
.btn-teal {
  display: inline-block;
  background: var(--teal);
  color: #fff !important;
  border: none;
  padding: 0.6rem 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.82rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
}
.btn-teal:hover { background: #3d7676; color: #fff !important; }
.btn-teal.lg    { padding: 0.85rem 2.2rem; font-size: 0.92rem; }

/* ── HERO (home) ── */
.hero {
  height: 100vh;
  min-height: 540px;
  background: url('../images/Freestyle-Dojo-22.jpeg') center center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-bottom: 20vh;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,30,38,0.58);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 0 1.5rem;
}

.hero-content h1 {
  font-family: 'Boogaloo', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  margin-bottom: 2rem;
  opacity: 0.88;
  font-weight: 500;
}

/* ── PROGRAMS OVERVIEW ── */
.programs-overview {
  padding: 5.5rem 2rem 3rem;
  text-align: center;
}

.programs-overview h2 {
  font-family: 'Boogaloo', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
}

.programs-overview .lead {
  color: #666;
  max-width: 580px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.program-card {
  display: block;
  text-decoration: none;
  color: var(--dark);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(0,0,0,0.10);
  transition: transform 0.22s, box-shadow 0.22s;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.16);
  color: var(--dark);
}

.program-card-img {
  height: 300px;
  background-size: cover;
  background-position: center;
}

.program-card-body {
  padding: 1.6rem;
  background: #fff;
  text-align: left;
}

.program-card-body h3 {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.program-card-body p {
  color: #666;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.card-link {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ── PROGRAM DETAIL ── */
.program-detail {
  padding: 5rem 2rem;
}

.program-detail.bg-beige { background: var(--beige); }

.detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.detail-inner.reversed          { direction: rtl; }
.detail-inner.reversed > *      { direction: ltr; }

.detail-img img {
  width: 100%;
  border-radius: 5px;
}

.detail-text h2 {
  font-family: 'Boogaloo', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.age-tag {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.8rem;
  border-radius: 3px;
  margin-bottom: 1.2rem;
}

.detail-text p {
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
}

.detail-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
}

.detail-text ul li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  color: #444;
  position: relative;
}

.detail-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 9rem 2rem 4rem;
}

.page-hero h1 {
  font-family: 'Boogaloo', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.72;
  font-size: 1.05rem;
}

/* ── SCHEDULE PAGE ── */
.schedule-section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.schedule-section img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.12);
}

.cta-strip {
  margin-top: 3.5rem;
  padding: 3rem 2rem;
  background: var(--beige);
  border-radius: 5px;
  text-align: center;
}

.cta-strip h3 {
  font-family: 'Boogaloo', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-strip p {
  color: #555;
  margin-bottom: 1.5rem;
}

/* ── CONTACT PAGE ── */
.contact-section {
  padding: 4rem 2rem 5rem;
  max-width: 1050px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Boogaloo', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}

.contact-icon {
  color: var(--teal);
  font-size: 1.1rem;
  margin-right: 1rem;
  margin-top: 0.15rem;
  width: 1.4rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 0.2rem;
}

.contact-item a {
  color: var(--dark);
  text-decoration: none;
}
.contact-item a:hover { color: var(--teal); }

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.32rem 0;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.hours-list li span:first-child { font-weight: 600; }

.map-wrap {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(0,0,0,0.11);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.72);
  text-align: center;
  padding: 3.5rem 1rem 2rem;
}

.footer-logo {
  height: 38px;
  margin: 0 auto 1.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

footer p {
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

footer a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
}
footer a:hover { color: var(--teal); }

.footer-social {
  margin: 1.6rem 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0 0.3rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.footer-social a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.footer-hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 1.5rem auto;
  max-width: 420px;
}

.footer-copy {
  font-size: 0.76rem;
  opacity: 0.4;
}

/* ── SCHEDULE TABLE ── */
.schedule-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 5px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.10);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: #fff;
}

.schedule-table thead th {
  background: var(--dark);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.85rem 0.5rem;
  text-align: center;
}

.schedule-table thead th:first-child {
  width: 110px;
  text-align: left;
  padding-left: 1rem;
}

.schedule-table td {
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  vertical-align: top;
  text-align: center;
}

.schedule-table tr:last-child td { border-bottom: none; }

.schedule-table tr:nth-child(even) td { background: #fafafa; }

.sched-time {
  font-weight: 700;
  font-size: 0.75rem;
  color: #777;
  text-align: left;
  padding-left: 1rem;
  white-space: nowrap;
  vertical-align: middle;
}

/* Class pills */
.cls {
  display: inline-block;
  margin: 2px auto;
  padding: 0.28rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  width: 100%;
  max-width: 130px;
  box-sizing: border-box;
}

.cls small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  opacity: 0.82;
  margin-top: 1px;
}

.cls.adult    { background: rgba(80,149,149,0.14); color: #356060; }
.cls.kids     { background: rgba(232,179,82,0.22); color: #7a5410; }
.cls.fitness  { background: rgba(206,75,44,0.13);  color: #8c2e18; }
.cls.advanced { background: rgba(20,30,38,0.09);   color: var(--dark); }
.cls.openmat  {
  background: transparent;
  color: var(--teal);
  border: 1.5px dashed var(--teal);
}

/* Legend */
.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.schedule-legend .cls {
  width: auto;
  max-width: none;
  padding: 0.25rem 0.8rem;
  font-size: 0.75rem;
}

.scroll-hint {
  display: none;
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .scroll-hint { display: block; }
}

/* ── CONTACT FORM ── */
.contact-info-heading {
  font-family: 'Boogaloo', sans-serif;
  font-size: 2rem;
  margin-bottom: 1.8rem;
}

.contact-form .cf-group {
  margin-bottom: 1.2rem;
}

.contact-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #ddd;
  border-radius: 3px;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  color: var(--dark);
  background: #fff;
  transition: border-color 0.2s;
  appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form button {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.88rem;
}

.cf-feedback {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.4em;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  .programs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .program-card-img { height: 220px; }

  .detail-inner,
  .detail-inner.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .page-hero { padding: 8rem 1.5rem 3rem; }

  .programs-overview { padding: 5rem 1.5rem 2rem; }
}
