/* ==========================================================================
   Gulao Boxing Association — site stylesheet
   Look & feel carried over from the original site: dark wood backdrop,
   centered white "page", deep red ribbon, Kudasai brush-script navigation.
   ========================================================================== */

@font-face {
  font-family: "Kudasai";
  src: url("../fonts/kudasai.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #91061d;
  --red-dark: #6e0416;
  --red-light: #b3132f;
  --accent: #e0674a;          /* modernised version of the old #f5886a promo links */
  --text: #3b3a3a;
  --muted: #6d6968;
  --nav: #808080;
  --line: #e2dfdd;
  --paper: #ffffff;
  --page-max: 1250px;
  --gutter: clamp(18px, 4vw, 40px);
  --head-font: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --brush-font: "Kudasai", "Brush Script MT", cursive;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: #2b2020 url("../images/wood-background.jpg") repeat;
  color: var(--text);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover, a:focus-visible { color: var(--red-light); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--head-font);
  font-stretch: condensed;
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(30px, 4vw, 40px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 21px; font-weight: 700; color: var(--red); }

p { margin: 0 0 1.1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Utility bar (sits on the wood, above the page) ---------- */
.utility {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 6px var(--gutter) 0;
  text-align: right;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.utility a { color: #fff; text-decoration: none; margin-left: 28px; opacity: .85; }
.utility a:hover { color: #fffb52; opacity: 1; }

/* ---------- The white page ---------- */
.page {
  position: relative;
  max-width: var(--page-max);
  margin: 6px auto 24px;
  background: var(--paper);
  box-shadow: 0 0 30px 5px rgba(0, 0, 0, .85);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  height: 150px;
  z-index: 20;
}

.brand {
  position: absolute;
  top: 10px;
  left: 51px;
  z-index: 3;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  width: 130px;
  height: 130px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.brand-name { /* shown only on small screens, next to the logo */
  display: none;
  font-family: var(--brush-font);
  color: var(--red);
  font-size: 20px;
  line-height: 1.1;
  margin-left: 12px;
}

/* The red ribbon that wraps past the page edges, as on the original site */
.ribbon {
  position: absolute;
  top: 89px;
  left: -36px;
  right: -36px;
  height: 50px;
  background: linear-gradient(#9a0820, var(--red) 55%, #84051a);
  box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .55);
  z-index: 1;
  display: flex;
  align-items: center;
  padding-left: 236px;
  padding-right: 60px;
}
.ribbon::before, .ribbon::after {   /* folded ends */
  content: "";
  position: absolute;
  bottom: -10px;
  border-top: 10px solid #000;
}
.ribbon::before { left: 0;  border-left: 36px solid transparent; }
.ribbon::after  { right: 0; border-right: 36px solid transparent; }
.ribbon p {
  margin: 0;
  color: #fff;
  font-family: var(--head-font);
  font-stretch: condensed;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav {
  position: absolute;
  top: 0;
  right: 30px;
  height: 89px;
  z-index: 2;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  height: 100%;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: block;
  position: relative;
  padding: 10px 14px;
  font-family: var(--brush-font);
  font-size: 17px;
  color: var(--nav);
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .25s;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--red); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--red); font-weight: bold; }

.nav-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 22px;
  width: 48px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--red);
  cursor: pointer;
  z-index: 4;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  position: absolute;
  left: 12px;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s, opacity .25s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { content: ""; left: 0; top: -8px; }
.nav-toggle span::after  { content: ""; left: 0; top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero / splash ---------- */
.hero {
  position: relative;
  margin-top: -1px;
  background: #cfd8de;
  aspect-ratio: 1250 / 607;
  overflow: hidden;
}
.hero img.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero .badges {
  position: absolute;
  right: 2.4%;
  bottom: 3.5%;
  width: 30%;
  max-width: 383px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45));
}

/* Page banner for inner pages (a slim strip of the splash) */
.page-banner {
  position: relative;
  height: clamp(120px, 18vw, 210px);
  overflow: hidden;
  background: #2f3b2a;
}
.page-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.page-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.05) 70%);
}
.page-banner h1 {
  position: absolute;
  left: var(--gutter);
  bottom: 18px;
  right: var(--gutter);
  margin: 0;
  color: #fff;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

/* ---------- Promotional row ---------- */
.promos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 33px;
  padding: 10px var(--gutter) 40px;
  position: relative;
}
.promos::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%; bottom: 5px;
  height: 2px;
  background: #b2b2b2;
}
.promo { display: flex; flex-direction: column; }
.promo h2 {
  font-size: 35px;
  margin: 26px 0 18px;
  line-height: 1;
}
.promo h2 small { font-size: 19px; color: var(--accent); margin-left: 4px; }
.promo .promo-img {
  display: block;
  overflow: hidden;
  border-top: 8px solid var(--red);
}
.promo .promo-img img { width: 100%; aspect-ratio: 370 / 153; object-fit: cover; transition: transform .5s; }
.promo .promo-img:hover img { transform: scale(1.05); }
.promo p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 18px 0 12px; flex: 1; }

.more {
  font-family: var(--head-font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.more::after { content: " \203A"; font-size: 1.25em; transition: margin .2s; }
.more:hover { color: var(--red); }
.more:hover::after { margin-left: 4px; }

/* ---------- Main content ---------- */
.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 50px;
  padding: 40px var(--gutter) 60px;
}
.content.single { grid-template-columns: minmax(0, 1fr); }

.article > h1:first-child, .article > h2:first-child { margin-top: 0; }
.article .lead { font-size: 19px; color: #2e2d2d; }

.article ul { padding-left: 1.2em; }
.article li { margin-bottom: .45em; }
.article li::marker { color: var(--red); }

.figure { margin: 26px 0; }
.figure img {
  margin: 0 auto;
  padding: 4px;
  border: 1px solid #222;
  background: #fff;
}
.figure figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 8px; }
.float-right { float: right; margin: 4px 0 18px 26px; max-width: 45%; }
.float-right img { padding: 4px; border: 1px solid #222; }
.clear { clear: both; }

blockquote.poem {
  margin: 30px 0;
  padding: 24px 30px;
  background: #faf6f4;
  border-left: 5px solid var(--red);
  font-style: italic;
}
blockquote.poem h3 { font-style: normal; margin-bottom: .8em; }
blockquote.poem p { margin: 0 0 .5em; }

.check-list { list-style: none; padding: 0 !important; margin: 0; }
.check-list li {
  position: relative;
  padding: 7px 0 7px 30px;
  border-bottom: 1px dashed var(--line);
  margin: 0 !important;
  font-size: 15.5px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 13px;
  width: 0; height: 0;
  border-left: 9px solid var(--red);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}
.photo-pair img { width: 100%; padding: 4px; border: 1px solid #222; }

/* ---------- Sidebar ---------- */
.sidebar > section { margin-bottom: 36px; }
.sidebar h2 {
  font-size: 26px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a {
  display: block;
  padding: 7px 0 7px 14px;
  border-bottom: 1px solid var(--line);
  color: #000;
  text-decoration: none;
  font-size: 15.5px;
  transition: color .2s, padding .2s;
}
.side-links a::before { content: "\2013"; margin-left: -14px; margin-right: 6px; color: var(--red); }
.side-links a:hover { color: var(--red); padding-left: 20px; }

.cta-card {
  background: var(--red);
  color: #fff;
  padding: 26px 24px;
  border-radius: 3px;
  box-shadow: 0 10px 20px -12px rgba(0,0,0,.6);
}
.cta-card h2 { color: #fff; border-color: rgba(255,255,255,.35) !important; }
.cta-card p { font-size: 15px; }

.button {
  display: inline-block;
  padding: 11px 24px;
  border: 2px solid var(--red);
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-family: var(--head-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.button:hover, .button:focus-visible { background: #fff; color: var(--red); }
.cta-card .button { background: #fff; color: var(--red); border-color: #fff; }
.cta-card .button:hover { background: transparent; color: #fff; }

/* ---------- Instructor cards ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  margin: 10px 0 30px;
}
.person {
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .2s, transform .2s;
}
.person:hover { box-shadow: 0 12px 24px -14px rgba(0,0,0,.5); transform: translateY(-3px); color: var(--text); }
.person h2 { font-size: 24px; margin-bottom: .3em; }
.person p { font-size: 15px; color: var(--muted); margin: 0 0 .8em; }

/* ---------- Schedule ---------- */
.note {
  background: #faf6f4;
  border-left: 5px solid var(--red);
  padding: 14px 20px;
  font-weight: 700;
  letter-spacing: .03em;
}
.schedule { width: 100%; border-collapse: collapse; margin: 0 0 34px; font-size: 15px; }
.schedule caption {
  text-align: left;
  font-family: var(--head-font);
  font-size: 24px;
  margin-bottom: 10px;
}
.schedule th, .schedule td { padding: 10px 12px; text-align: left; vertical-align: top; }
.schedule thead th { background: var(--red); color: #fff; font-weight: 700; }
.schedule tbody th { font-weight: 700; width: 22%; }
.schedule tbody tr { border-bottom: 1px solid var(--line); transition: background .15s; }
.schedule tbody tr:hover { background: #f6f0d8; }
.schedule td:not(:empty) { color: var(--red-dark); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 14px; color: var(--red); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c9c4c2;
  border-radius: 3px;
  font: inherit;
  font-size: 16px;   /* prevents iOS zoom on focus */
  color: var(--text);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: 2px solid rgba(145, 6, 29, .2); }
.field textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; font-size: 15px; margin-bottom: 18px; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-weight: 700; }
.form-status.ok { color: #1d6b2a; }
.form-status.err { color: var(--red); }
.info-card { background: #faf6f4; padding: 24px; border-top: 5px solid var(--red); }
.info-card h2 { font-size: 24px; }
.info-card address { font-style: normal; margin-bottom: 1em; }

/* ---------- Map ---------- */
.map {
  position: relative;
  height: 290px;
  background: #e5e3df;
}
.map::before {   /* soft top shadow like the original map-shadow image */
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 22px;
  background: linear-gradient(rgba(0,0,0,.22), rgba(0,0,0,0));
  z-index: 1;
  pointer-events: none;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35); }
.map-card {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: #fff;
  padding: 18px 22px;
  border-top: 5px solid var(--red);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
  font-size: 15px;
  line-height: 1.5;
}
.map-card strong { display: block; font-family: var(--head-font); font-size: 19px; color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px 50px;
  align-items: center;
  padding: 40px 90px 55px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.footer-brand img { width: 90px; height: 90px; border-radius: 3px; }
.footer-brand span { font-family: var(--brush-font); color: var(--red); font-size: 20px; line-height: 1.2; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.footer-nav a {
  font-family: var(--brush-font);
  font-size: 13px;
  color: var(--nav);
  text-decoration: none;
  text-transform: uppercase;
}
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--red); }
.footer-meta { font-size: 13px; color: var(--muted); text-align: right; line-height: 1.6; }
.footer-meta a { color: var(--muted); }
.site-footer::after {   /* the red band at the bottom of the page */
  content: "";
  position: absolute;
  left: 6%; right: 6%; bottom: 0;
  height: 15px;
  background: var(--red);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  line-height: 46px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  z-index: 50;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { color: #fff; background: var(--red); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1290px) {
  /* no room for the ribbon overhang: keep it inside the page */
  .ribbon { left: 0; right: 0; }
  .ribbon::before, .ribbon::after { display: none; }
  .page { margin-left: 0; margin-right: 0; }
}

@media (max-width: 1100px) {
  .main-nav { right: 10px; }
  .main-nav a { padding: 10px 9px; font-size: 15px; }
  .main-nav a::after { left: 9px; right: 9px; }
  .brand { left: 30px; }
  .ribbon { padding-left: 200px; }
  .site-footer { padding: 40px var(--gutter) 55px; grid-template-columns: auto 1fr; }
  .footer-meta { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .utility { display: none; }
  .page { margin-top: 0; margin-bottom: 0; box-shadow: none; }

  .site-header { height: auto; min-height: 88px; }
  .brand { position: relative; top: 0; left: 0; padding: 10px 76px 10px var(--gutter); }
  .brand img { width: 68px; height: 68px; }
  .brand-name { display: block; }
  .ribbon { position: relative; top: 0; height: auto; padding: 9px var(--gutter); }
  .ribbon p { white-space: normal; font-size: 13px; }
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    background: #fff;
    box-shadow: 0 14px 20px -10px rgba(0,0,0,.45);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-open .main-nav { max-height: 520px; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 10px; }
  .main-nav a { padding: 13px var(--gutter); font-size: 18px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav a[aria-current="page"] { border-left: 5px solid var(--red); }

  .promos { grid-template-columns: 1fr; gap: 10px; }
  .promo h2 { margin-top: 20px; }
  .content { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-card { position: relative; left: 0; top: 0; transform: none; box-shadow: none; }
  .map { height: auto; }
  .map iframe { height: 260px; }
  .site-footer { grid-template-columns: 1fr; gap: 22px; padding-bottom: 45px; }
}

@media (max-width: 640px) {
  .hero .badges { width: 38%; }
  .float-right { float: none; max-width: 100%; margin: 0 0 20px; }
  .float-right img { margin: 0 auto; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .photo-pair { grid-template-columns: 1fr; }
  blockquote.poem { padding: 18px 18px; }

  /* Schedule tables become stacked cards */
  .schedule thead { display: none; }
  .schedule caption { display: block; width: 100%; }
  .schedule, .schedule tbody, .schedule tr, .schedule th, .schedule td { display: block; width: 100%; }
  .schedule tbody tr { border: 1px solid var(--line); border-top: 4px solid var(--red); margin-bottom: 14px; padding: 6px 0; }
  .schedule tbody th { width: auto; font-size: 17px; }
  .schedule td:empty { display: none; }
  .schedule td { display: flex; justify-content: space-between; padding: 4px 12px; }
  .schedule td::before { content: attr(data-day); color: var(--text); font-weight: 400; }
}

@media print {
  body { background: #fff; }
  .utility, .nav-toggle, .main-nav, .to-top, .map, .sidebar .cta-card { display: none !important; }
  .page { box-shadow: none; }
}
