/* Sporting Club Masaku - preview
   Pine, bronze and cream sampled straight from the club's own logo file.
   --pine is the exact background colour of their artwork. Do not nudge it. */

:root {
  --pine:        #143133;
  --pine-deep:   #0E2426;
  --pine-lift:   #1B3E41;
  --bronze:      #B49167;
  --bronze-lit:  #CDA87C;
  --cream:       #FCF5C3;
  --cream-soft:  rgba(252, 245, 195, 0.78);
  --cream-dim:   rgba(252, 245, 195, 0.55);
  --rule:        rgba(180, 145, 103, 0.28);

  --display: "Archivo", "Archivo Black", "Helvetica Neue", sans-serif;
  --body:    "Karla", "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --wide:   1180px;
  --out:    cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pine);
  color: var(--cream-soft);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; max-width: 66ch; }

a { color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--bronze-lit);
  outline-offset: 3px;
}

.wrap { max-width: var(--wide); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 60;
  background: var(--cream);
  color: var(--pine);
  padding: 0.6rem 1rem;
}

/* ---------- header ---------- */

.site {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 36px);
  padding: 0.8rem var(--gutter);
  background: var(--pine);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--cream);
  margin-right: auto;
  white-space: nowrap;
}
.brand img { border-radius: 3px; }

.site-nav { display: flex; gap: clamp(12px, 1.7vw, 24px); }
.site-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream-soft);
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s;
}
.site-nav a:hover { color: var(--cream); border-bottom-color: var(--bronze); }
.site-nav a[aria-current="page"] {
  color: var(--cream);
  border-bottom-color: var(--bronze);
}

.menu-btn { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--bronze);
  color: var(--pine);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.7rem;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s var(--out), transform 0.3s var(--out);
}
.btn:hover { background: var(--bronze-lit); transform: translateY(-2px); }
.btn-sm { padding: 0.58rem 1rem; font-size: 0.8rem; }

.btn-ghost {
  background: none;
  color: var(--cream);
  border: 1px solid var(--bronze);
}
.btn-ghost:hover { background: rgba(180, 145, 103, 0.14); color: var(--cream); }

/* ---------- home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 11vh, 128px) var(--gutter) clamp(56px, 8vh, 92px);
}
.hero-mark {
  position: absolute;
  top: 2%;
  right: -10%;
  width: clamp(560px, 82vw, 1180px);
  opacity: 0.17;
  pointer-events: none;
  user-select: none;
}
.hero-inner { position: relative; max-width: var(--wide); margin-inline: auto; }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.8rem;
  color: var(--bronze-lit);
  margin-bottom: 1.4rem;
}

h1 { font-size: clamp(2.7rem, 8.4vw, 6.4rem); font-weight: 900; max-width: 16ch; }
h1 em { font-style: normal; color: var(--bronze); }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  max-width: 54ch;
  margin-top: 1.8rem;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 34px);
  margin-top: 2.4rem;
}
.tel {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--cream);
  text-decoration: none;
  border-bottom: 2px solid var(--bronze);
  padding-bottom: 2px;
  transition: color 0.25s;
}
.tel:hover { color: var(--bronze-lit); }

.where {
  margin-top: 2.6rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

/* ---------- inner page header ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vh, 96px) var(--gutter) clamp(34px, 5vh, 60px);
  border-bottom: 1px solid var(--rule);
}
.page-head h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  max-width: 18ch;
}
.page-head .lede { margin-top: 1.3rem; }

/* ---------- generic section ---------- */

section { padding-inline: var(--gutter); }

.section-title {
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
  max-width: var(--wide);
  margin-inline: auto;
  padding-bottom: 2.2rem;
}

.block { padding-block: clamp(46px, 7vw, 92px); }
.block-tight { padding-block: clamp(36px, 5vw, 64px); }
.block-lift { background: var(--pine-lift); }

/* ---------- numbered / ruled lists ---------- */

.lines {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--wide);
}
.lines li {
  display: grid;
  grid-template-columns: minmax(70px, 118px) 1fr;
  gap: clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--rule);
  padding-block: clamp(28px, 4vw, 48px);
}
.lines li:last-child { border-bottom: 1px solid var(--rule); }
.num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.7rem, 4.4vw, 3.2rem);
  line-height: 0.9;
  color: var(--bronze);
}
.lines h3 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); margin-bottom: 0.7rem; }
.lines p { margin: 0; }
.lines .more {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-lit);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.lines .more:hover { border-bottom-color: var(--bronze-lit); }

/* ---------- illustrated band ---------- */

.band {
  display: grid;
  grid-template-columns: minmax(200px, 380px) 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  max-width: var(--wide);
  margin-inline: auto;
  padding-block: clamp(34px, 5vw, 66px) clamp(46px, 7vw, 90px);
}
.band img { width: 100%; }
.pull {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
  max-width: 18ch;
}

/* ---------- three reasons ---------- */

.reasons {
  max-width: var(--wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4.5vw, 62px);
}
.reasons article:nth-child(2) { margin-top: clamp(0px, 2.2vw, 30px); }
.reasons article:nth-child(3) { margin-top: clamp(0px, 4.4vw, 60px); }

.rlabel {
  margin: 0 0 0.9rem;
  padding-top: 0.9rem;
  border-top: 2px solid var(--bronze);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-lit);
}
.reasons h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); margin-bottom: 0.7rem; }
.reasons p { margin: 0; font-size: 0.99rem; }

/* ---------- programme strip ---------- */

.programmes {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.6vw, 16px);
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.programmes li {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.6rem 1rem;
  transition: border-color 0.3s var(--out);
}
.programmes li:has(a):hover { border-color: var(--bronze-lit); }
.programmes a { text-decoration: none; color: inherit; }

/* ---------- timeline ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 940px;
}
.timeline li {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr;
  gap: clamp(16px, 3.5vw, 46px);
  padding-block: clamp(24px, 3.2vw, 40px);
  border-top: 1px solid var(--rule);
}
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.when {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
  color: var(--bronze);
  letter-spacing: 0.01em;
  padding-top: 0.15rem;
}
.timeline h3 { font-size: clamp(1.15rem, 2.1vw, 1.5rem); margin-bottom: 0.5rem; }
.timeline p { margin: 0; }

/* ---------- team ---------- */

.roster {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--wide);
}
.roster li {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.4fr);
  gap: clamp(16px, 4vw, 56px);
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-block: clamp(28px, 4vw, 46px);
}
.roster li:last-child { border-bottom: 1px solid var(--rule); }
.roster h3 {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 900;
}
.role {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-lit);
}
.motto {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.25;
  color: var(--cream);
  margin: 0;
  letter-spacing: -0.01em;
}
.motto-label {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.6rem;
}

/* ---------- courses ---------- */

.course-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--wide);
}
.course-list li {
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(22px, 3vw, 34px);
  transition: padding-left 0.4s var(--out);
}
.course-list li:first-child { border-top: 1px solid var(--rule); }
.course-list li:hover { padding-left: 14px; }
.course-list h3 { font-size: clamp(1.2rem, 2.3vw, 1.7rem); margin-bottom: 0.35rem; }
.course-list p { margin: 0; }

.course-cta { max-width: var(--wide); margin: 2.2rem auto 0; font-size: 1.05rem; }
.course-cta a { color: var(--bronze-lit); }

.quote {
  max-width: 820px;
  margin: 0 auto;
  padding-block: clamp(34px, 5vw, 62px);
}
.quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.quote cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-lit);
}

/* ---------- vision list ---------- */

.vision {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--wide);
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}
.vision li {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cream);
  border-top: 1px solid var(--rule);
  padding-top: clamp(14px, 2vw, 20px);
}
.vision li span { color: var(--bronze); }

/* ---------- contact ---------- */

.contact {
  background: var(--cream);
  color: var(--pine);
  padding-block: clamp(64px, 10vw, 120px);
}
.contact-inner { max-width: var(--wide); margin-inline: auto; }
.contact h2, .contact h1 {
  color: var(--pine);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 900;
}
.contact-lede {
  color: rgba(20, 49, 51, 0.8);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  margin-top: 1rem;
}

.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(18px, 3vw, 34px);
  margin-top: clamp(32px, 5vw, 56px);
}
.ways a, .ways p {
  margin: 0;
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  color: var(--pine);
  text-decoration: none;
  border-top: 2px solid rgba(20, 49, 51, 0.22);
  padding-top: 0.9rem;
  overflow-wrap: break-word;
  transition: border-color 0.3s var(--out);
}
.ways a:hover { border-top-color: var(--pine); }
.ways a[href^="mailto"] { font-size: 0.9rem; letter-spacing: -0.01em; }
.ways span {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(20, 49, 51, 0.6);
  margin-bottom: 0.45rem;
}

/* ---------- footer ---------- */

.site-foot {
  background: var(--pine-deep);
  text-align: center;
  padding: clamp(46px, 7vw, 76px) var(--gutter);
}
.foot-mark { width: clamp(130px, 20vw, 190px); margin: 0 auto 1.2rem; opacity: 0.85; }
.vamos {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--bronze);
  margin: 0 auto 1.6rem;
}
.foot-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(12px, 2.4vw, 26px);
  margin-bottom: 1.3rem;
}
.foot-nav a {
  font-size: 0.88rem;
  color: var(--cream-soft);
  text-decoration: none;
}
.foot-nav a:hover { color: var(--cream); }
.social {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 30px);
  margin-bottom: 1.4rem;
}
.social a {
  font-size: 0.9rem;
  color: var(--cream-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.social a:hover { color: var(--cream); }
.copy { margin: 0 auto; font-size: 0.82rem; color: rgba(252, 245, 195, 0.45); }

/* ---------- motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.r1, .r2, .r3, .r4, .r5 { opacity: 0; animation: rise 0.9s var(--out) forwards; }
.r1 { animation-delay: 0.05s; }
.r2 { animation-delay: 0.15s; }
.r3 { animation-delay: 0.28s; }
.r4 { animation-delay: 0.40s; }
.r5 { animation-delay: 0.52s; }

/* Hidden only when JS is running, so the page still reads with scripts off. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--out), transform 0.85s var(--out);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r1, .r2, .r3, .r4, .r5 { animation: none; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .course-list li:hover { padding-left: 0; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 0.83rem; }
}

@media (max-width: 900px) {
  .reasons { grid-template-columns: 1fr; }
  .reasons article:nth-child(2),
  .reasons article:nth-child(3) { margin-top: 0; }
  .band { grid-template-columns: 1fr; }
  .band img { max-width: 320px; }
  .roster li { grid-template-columns: 1fr; gap: 1.1rem; }
}

@media (max-width: 860px) {
  .site { gap: 9px; }
  .js .menu-btn {
    display: block;
    order: 2;
    background: none;
    border: 1px solid var(--bronze);
    color: var(--cream);
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 0.72rem;
    border-radius: 2px;
    cursor: pointer;
    white-space: nowrap;
  }
  .site .btn-sm {
    order: 3;
    padding: 0.5rem 0.72rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }
  .site-nav {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 0.5rem;
  }
  .js .site-nav[hidden] { display: none; }
  .site-nav a {
    padding-block: 0.8rem;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
  }
}

@media (max-width: 720px) {
  .hero-mark { top: auto; bottom: -4%; right: -22%; opacity: 0.13; }
  .lines li,
  .timeline li { grid-template-columns: 1fr; gap: 0.6rem; }
  .actions { gap: 18px; }
  .actions .btn { width: 100%; text-align: center; }
  .brand { font-size: 0.95rem; }
  .brand img { width: 46px; height: 21px; }
}

/* Below this the header wraps to two rows, so the mark steps aside and the
   wordmark carries the brand. The mark still shows in the hero and footer. */
@media (max-width: 540px) {
  .brand img { display: none; }
}
