/* RF Fitness Rathfriland — mobile-first stylesheet (brand: brand/BRAND.md) */

:root {
  --lime: #B6FF00;
  --black: #000000;
  --charcoal: #1A1A1A;
  --grey: #4D4D4D;
  --white: #FFFFFF;
  --muted: #B3B3B3;
  --head: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --script: "Permanent Marker", "Comic Sans MS", cursive;
  --skew: skewX(-8deg);
  --radius: 8px;
  --gutter: 1rem;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B6FF00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8.5 12.5 2.5 2.5 4.5-5'/%3E%3C/svg%3E");
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background-color: var(--black);
  background-image:
    var(--noise),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(182, 255, 0, .10), transparent 70%),
    radial-gradient(ellipse 50% 30% at 0% 55%, rgba(182, 255, 0, .05), transparent 70%);
  color: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; height: auto; }
a { color: var(--lime); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
small { font-size: .8em; color: var(--muted); }
.lime { color: var(--lime); }

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

/* Placeholder markers — delete once content is confirmed */
.tbc {
  display: inline-block;
  padding: .05rem .45rem;
  background: #3a2f00; color: #FFD447;
  font-family: var(--body); font-size: .85rem; font-weight: 700; letter-spacing: .05em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  background: var(--lime);
  color: var(--black);
  border: 2px solid var(--lime);
  border-radius: 4px;
  font-family: var(--head);
  font-size: 1.15rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--white); border-color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--sm { padding: .4rem .9rem; font-size: .95rem; }
.btn--block { display: block; width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem var(--gutter);
  background: rgba(0, 0, 0, .9);
  border-bottom: 2px solid var(--lime);
  backdrop-filter: blur(6px);
}
.topbar__brand img { height: 46px; width: auto; }
.topbar__nav { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 2rem var(--gutter) 3rem;
  background:
    radial-gradient(ellipse 70% 60% at 75% 35%, rgba(182, 255, 0, .16), transparent 70%),
    linear-gradient(180deg, #0b0b0b 0%, #000 100%);
  border-bottom: 1px solid var(--grey);
}
/* Diagonal lime slashes in the corners */
.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none;
  width: 9rem; height: 9rem;
  background: repeating-linear-gradient(135deg, var(--lime) 0 10px, transparent 10px 26px);
  opacity: .85;
}
.hero::before { left: -3rem; bottom: -3rem; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.hero::after  { right: -3rem; top: -3rem; clip-path: polygon(0 0, 100% 0, 100% 100%); opacity: .5; }

.hero__inner {
  position: relative; z-index: 1;
  max-width: 72rem; margin: 0 auto;
  display: grid; gap: 1.5rem; justify-items: center; text-align: center;
}
.hero__logo { width: min(100%, 30rem); }
.hero__title {
  margin: 0;
  font-family: var(--head); font-weight: 400;
  font-size: clamp(3rem, 15vw, 6.5rem);
  line-height: .95; letter-spacing: -0.01em; text-transform: uppercase;
  transform: var(--skew);
}
.hero__slogan {
  margin: 1rem 0 0;
  font-family: var(--body); font-weight: 600; font-size: .85rem;
  letter-spacing: .22em; text-transform: uppercase;
}
.hero__slogan span { color: var(--lime); padding: 0 .3em; }
.hero__actions {
  display: flex; flex-direction: column; gap: .75rem;
  margin: 1.75rem auto 0; max-width: 20rem;
}

/* ---------- Sections ---------- */
.section { padding: 3rem var(--gutter); }
.section--tight { padding-top: 1rem; }
.wrap { max-width: 72rem; margin: 0 auto; }
.wrap--narrow { max-width: 46rem; }

/* Lime brush-stroke bar behind section headings */
.brush {
  position: relative;
  margin: 0 auto 2rem; padding: .9rem 1.5rem .8rem;
  max-width: 52rem;
  background: var(--lime); color: var(--black);
  text-align: center;
  clip-path: polygon(2% 8%, 9% 0, 30% 5%, 55% 0, 80% 4%, 97% 0, 100% 30%, 98% 55%, 100% 82%, 94% 100%, 70% 95%, 45% 100%, 20% 94%, 4% 100%, 0 75%, 2% 48%, 0 22%);
}
.brush__title {
  margin: 0;
  font-family: var(--head); font-weight: 400;
  font-size: clamp(2.6rem, 12vw, 5.5rem);
  line-height: 1; letter-spacing: -0.01em; text-transform: uppercase;
  transform: var(--skew);
}
.brush__strap {
  margin: .35rem 0 0;
  font-family: var(--head); font-size: clamp(.8rem, 3.2vw, 1.15rem);
  letter-spacing: .08em; text-transform: uppercase;
  transform: var(--skew);
}
.brush__strap span { padding: 0 .4em; }
.brush--sm { max-width: 30rem; padding: .6rem 1.25rem .5rem; }
.brush--sm .brush__title { font-size: clamp(2rem, 9vw, 3rem); }
.brush--left { margin-left: 0; }

/* ---------- Membership cards ---------- */
.plans { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: stretch; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.75rem 1.25rem 1.5rem;
  background: var(--charcoal);
  border: 2px solid var(--lime);
  border-radius: var(--radius);
  text-align: center;
}
.card--featured { box-shadow: 0 0 0 1px var(--lime), 0 0 32px rgba(182, 255, 0, .22); }
.card__name {
  margin: 0;
  font-family: var(--head); font-weight: 400;
  font-size: 1.7rem; line-height: 1.1; text-transform: uppercase; letter-spacing: 0;
}
.card__price {
  margin: .4rem 0 0;
  font-family: var(--head); font-size: 4rem; line-height: 1;
  color: var(--lime); transform: var(--skew);
}
.card__price--text { font-size: 2.1rem; line-height: 1.1; text-transform: uppercase; }
.card__period {
  margin: .35rem 0 1rem;
  font-family: var(--head); font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase;
}
.card__badge {
  align-self: center;
  margin: -.25rem 0 1rem; padding: .3rem 1.4rem;
  background: var(--lime); color: var(--black);
  font-family: var(--head); font-size: 1.3rem; letter-spacing: .03em; text-transform: uppercase;
  transform: var(--skew);
  clip-path: polygon(3% 0, 100% 6%, 97% 100%, 0 92%);
}
.checks { list-style: none; margin: 0 0 1.5rem; padding: 0; text-align: left; }
.checks li {
  position: relative;
  padding: .35rem 0 .35rem 2rem;
  line-height: 1.35;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32rem;
  width: 1.35rem; height: 1.35rem;
  background: var(--check) center / contain no-repeat;
}
.card .btn { margin-top: auto; }

/* ---------- Feature strip ---------- */
.features {
  padding: 1.5rem var(--gutter);
  background: rgba(26, 26, 26, .85);
  border-top: 1px solid var(--grey);
  border-bottom: 1px solid var(--grey);
}
.features__list {
  list-style: none; margin: 0 auto; padding: 0; max-width: 72rem;
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.features__list li {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem .25rem;
  border-bottom: 1px solid var(--grey);
  font-family: var(--head); font-size: 1.05rem; line-height: 1.2;
  letter-spacing: .03em; text-transform: uppercase;
}
.features__list li:last-child { border-bottom: 0; }
.features__list small { display: block; font-family: var(--body); font-size: .72rem; letter-spacing: .04em; }
.features__list svg {
  flex: none; width: 2.6rem; height: 2.6rem;
  fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- About ---------- */
.about__text { text-align: center; color: #DADADA; }

/* ---------- Opening hours ---------- */
.hours-row { display: grid; gap: 2rem; align-items: center; }
.hours {
  padding: 1.25rem 1.25rem 1rem;
  background: var(--charcoal);
  border: 2px solid var(--lime);
  border-radius: var(--radius);
}
.hours__title {
  margin: 0 0 .75rem;
  font-family: var(--head); font-weight: 400; font-size: 2.2rem; line-height: 1;
  text-transform: uppercase; transform: var(--skew);
}
.hours__body { display: flex; align-items: center; gap: .9rem; }
.hours__icon {
  flex: none; width: 2.75rem; height: 2.75rem;
  fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round;
}
.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .35rem 0; font-size: 1rem; }
.hours th { text-align: left; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; padding-right: .75rem; }
.hours th, .hours td { font-size: .92rem; }
.hours td { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours__note { margin: .75rem 0 0; color: var(--muted); font-size: .9rem; text-align: center; }

/* ---------- Find us ---------- */
.findus { display: grid; gap: 2rem; }
.findus address { font-style: normal; margin-bottom: 1.5rem; line-height: 1.9; }
.contact { margin: 0 0 .75rem; }
.contact__label {
  display: block; font-family: var(--head); font-size: .95rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--lime);
}
.findus__map { border: 2px solid var(--lime); border-radius: var(--radius); overflow: hidden; }
.findus__map iframe { width: 100%; height: 20rem; border: 0; filter: grayscale(.6) contrast(1.05); }

/* ---------- Contact form ---------- */
.contact-form {
  padding: 1.5rem 1.25rem;
  background: var(--charcoal);
  border: 2px solid var(--lime);
  border-radius: var(--radius);
}
.contact-form__row { display: grid; gap: 0 1rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block; margin-bottom: .35rem;
  font-family: var(--head); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase;
}
.field label small { font-family: var(--body); text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%;
  padding: .75rem .85rem;
  background: var(--black); color: var(--white);
  border: 1px solid var(--grey); border-radius: 4px;
  font-family: var(--body); font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.contact-form__status { margin: 1rem 0 0; text-align: center; font-weight: 600; min-height: 1.5em; }
.contact-form__status.is-ok { color: var(--lime); font-family: var(--head); font-size: 1.4rem; font-weight: 400; letter-spacing: .03em; }
.contact-form__status.is-error { color: #FF6B6B; }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { margin-top: 2rem; text-align: center; color: var(--muted); font-size: .9rem; }
.footer__band {
  background: var(--lime);
  padding: 1.25rem var(--gutter) 0;
  clip-path: polygon(0 18%, 6% 6%, 18% 14%, 32% 2%, 50% 12%, 66% 0, 82% 10%, 94% 3%, 100% 14%, 100% 100%, 0 100%);
}
.footer__band img { margin: 0 auto; width: min(100%, 50rem); filter: brightness(0); }
.footer__inner { padding: 2rem var(--gutter) 2.5rem; background: var(--black); }
.footer__mark { margin: 0 auto 1rem; width: 180px; }
.footer p { margin: .3rem 0; }
.signoff {
  font-family: var(--script); color: var(--white);
  font-size: clamp(1.4rem, 6vw, 2.2rem); line-height: 1.2;
  transform: rotate(-3deg);
}
.signoff--footer { margin: .5rem 0 1.25rem !important; }
.footer__slogan {
  font-family: var(--body); font-weight: 600; font-size: .8rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--white);
}
.footer__slogan span { color: var(--lime); }
.footer__contact a { color: var(--white); }
.footer__powered { margin-top: 1rem !important; font-size: .75rem; letter-spacing: .06em; }

/* ---------- Larger screens ---------- */
@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }
  .hero__actions { flex-direction: row; justify-content: center; max-width: none; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .features__list { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
  .features__list li:nth-last-child(2) { border-bottom: 0; }
  .section { padding: 4.5rem var(--gutter); }
  .section--tight { padding-top: 1rem; }
  .hours__icon { width: 3.5rem; height: 3.5rem; }
  .hours th, .hours td { font-size: 1.05rem; }
}

@media (min-width: 64em) {
  .topbar__brand img { height: 56px; }
  .topbar__nav { display: flex; gap: 1.75rem; }
  .topbar__nav a {
    color: var(--white); text-decoration: none;
    font-family: var(--head); font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase;
  }
  .topbar__nav a:hover { color: var(--lime); }
  .hero { padding: 4rem var(--gutter) 5rem; }
  .hero::before, .hero::after { width: 16rem; height: 16rem; }
  .hero__inner { grid-template-columns: 1.1fr 1fr; align-items: center; text-align: left; justify-items: start; gap: 3rem; }
  .hero__logo { width: 100%; max-width: 34rem; }
  .hero__actions { justify-content: flex-start; margin-left: 0; }
  .features__list { grid-template-columns: repeat(5, 1fr); column-gap: 0; }
  .features__list li { border-bottom: 0; border-right: 1px solid var(--grey); padding: .5rem 1rem; }
  .features__list li:last-child { border-right: 0; }
  .hours-row { grid-template-columns: minmax(0, 36rem); justify-content: center; }
  .findus { grid-template-columns: 1fr 1.6fr; align-items: start; }
  .contact-form { padding: 2rem; }
  .contact-form__row { grid-template-columns: 1fr 1fr; }
  .findus__map iframe { height: 26rem; }
}

@media (min-width: 75em) {
  .plans { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
