/*
Theme Name: British Fitness Club
Theme URI: https://britishfitnessclub.health/
Author: British Fitness Club
Description: A responsive editorial WordPress theme for BritishFitnessClub.health, focused on training, nutrition, recovery and healthy living.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: british-fitness-club
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  color-scheme: dark;
  --ink: #0b0d0c;
  --panel: #121513;
  --panel-2: #191d1a;
  --line: rgba(255, 255, 255, 0.14);
  --paper: #f4f6ef;
  --muted: #a6aca6;
  --acid: #c8ff37;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }

img { max-width: 100%; }

.custom-logo { display: block; width: auto; max-width: 180px; max-height: 42px; }
.brand--logo { align-items: center; }
.site-nav ul, .site-footer nav ul { display: contents; margin: 0; padding: 0; list-style: none; }
.site-nav li, .site-footer nav li { display: contents; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  padding: .75rem 1rem;
  background: var(--acid);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 20;
  inset: 1rem 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(calc(100% - 3rem), 1440px);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: .15rem;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -.03em;
  flex: 0 0 auto;
  min-height: 3.65rem;
  padding: .75rem 1.15rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(8,10,9,.88);
  box-shadow: 0 .7rem 2rem rgba(0,0,0,.2);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: .55rem;
  transform: skew(-10deg);
}

.brand-mark i { width: .32rem; background: var(--acid); }
.brand-mark i:nth-child(1) { height: 45%; }
.brand-mark i:nth-child(2) { height: 72%; }
.brand-mark i:nth-child(3) { height: 100%; }
.brand-name { font-size: 1.05rem; }
.brand-domain { color: var(--acid); font-size: .78rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 1.5vw, 1.65rem);
  min-height: 3.65rem;
  padding: .65rem 1.2rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(8,10,9,.88);
  box-shadow: 0 .7rem 2rem rgba(0,0,0,.2);
  backdrop-filter: blur(14px);
}
.site-nav a {
  position: relative;
  padding-block: .4rem;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 680;
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-button { display: none; }

.hero {
  position: relative;
  min-height: 760px;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: center; }
.hero-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(6,8,7,.84) 0%, rgba(6,8,7,.68) 34%, rgba(6,8,7,.16) 68%, rgba(6,8,7,.08) 100%), linear-gradient(0deg, rgba(6,8,7,.82), transparent 38%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(calc(100% - 3rem), var(--max));
  height: 100%;
  margin-inline: auto;
  padding-top: 7rem;
}

.eyebrow, .section-kicker, .topic-label {
  margin: 0;
  color: var(--acid);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: .65rem; }
.eyebrow span { display: inline-block; width: 2.8rem; height: 1px; background: var(--acid); }

.hero h1 {
  max-width: 850px;
  margin: 1.1rem 0 1.5rem;
  font-size: clamp(4rem, 9.8vw, 8.8rem);
  line-height: .82;
  letter-spacing: -.075em;
  text-transform: uppercase;
  text-shadow: 0 .12em .5em rgba(0,0,0,.28);
}

.hero h1 em { color: var(--acid); font-family: Georgia, "Times New Roman", serif; font-weight: 400; text-transform: none; }
.hero-copy { max-width: 34rem; margin: 0 0 2rem; color: #d3d7d2; font-size: clamp(1rem, 1.35vw, 1.2rem); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  width: fit-content;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--acid);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 750;
}
.text-link span { color: var(--acid); font-size: 1.25rem; transition: transform .2s ease; }
.text-link:hover span { transform: translate(.2rem, .2rem); }

.hero-note {
  position: absolute;
  right: max(1.5rem, calc((100vw - var(--max)) / 2));
  bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.45);
  font-size: .86rem;
}
.hero-note span { color: var(--acid); font-weight: 800; }
.hero-note p { margin: 0; line-height: 1.35; }

.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.topic-card {
  position: relative;
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4.8rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: background .25s ease;
}
.topic-card:nth-child(even) { border-right: 0; }
.topic-card:hover { background: var(--panel-2); }
.topic-card--featured { background: var(--acid); color: var(--ink); }
.topic-card--featured:hover { background: #d7ff6d; }
.topic-card--featured .topic-label, .topic-card--featured .topic-number { color: var(--ink); }
.topic-number { color: var(--muted); font-size: .78rem; font-weight: 750; }
.topic-card h3 { max-width: 34rem; margin: .55rem 0 1rem; font-size: clamp(2rem, 3.7vw, 3.6rem); line-height: 1; letter-spacing: -.05em; }
.topic-card p:not(.topic-label) { max-width: 30rem; margin: 0; color: inherit; opacity: .72; }
.topic-icon { position: absolute; right: 2rem; top: 1.6rem; font-size: 1.8rem; }

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr .7fr 1fr;
  gap: 3rem;
  padding: 3.5rem max(1.5rem, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #070807;
}
.footer-brand p { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; }
.footer-brand p span { color: var(--acid); font-size: .8rem; }
.footer-brand small, .footer-meta { color: var(--muted); font-size: .82rem; }
.site-footer nav { display: grid; gap: .45rem; align-content: start; }
.site-footer nav a { width: fit-content; text-decoration: none; font-size: .9rem; }
.site-footer nav a:hover { color: var(--acid); }
.footer-meta p { margin: 0 0 .55rem; }

.content-shell { width: min(calc(100% - 3rem), var(--max)); margin-inline: auto; padding: 10rem 0 7rem; }
.content-header { max-width: 850px; margin-bottom: 3.5rem; }
.content-header h1 { margin: .7rem 0 1rem; font-size: clamp(2.8rem, 6vw, 5.7rem); line-height: .95; letter-spacing: -.06em; }
.content-header p { max-width: 650px; color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.post-card { overflow: hidden; padding: 1.5rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--panel); }
.post-card--featured { grid-column: span 2; }
.post-card__image { display: block; margin: -1.5rem -1.5rem 1.35rem; overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel-2); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card__image img { transform: scale(1.025); }
.post-card a { text-decoration: none; }
.post-card h2 { margin: .65rem 0 .8rem; font-size: 1.65rem; line-height: 1.08; letter-spacing: -.035em; }
.post-card p { color: var(--muted); }
.post-meta { color: var(--acid); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.entry-content { max-width: 780px; font-size: 1.08rem; }
.entry-content > * { margin-block: 0 1.4rem; }
.entry-content h2, .entry-content h3 { margin-top: 2.2rem; line-height: 1.15; }
.entry-content a { color: var(--acid); }
.entry-content img { height: auto; border-radius: .8rem; }
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .55rem .85rem; border: 1px solid var(--line); border-radius: .45rem; text-decoration: none; }
.pagination .current { background: var(--acid); color: var(--ink); }
.site-header--solid { position: relative; inset: auto; margin-top: 1rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.latest-section { width: min(calc(100% - 3rem), var(--max)); margin-inline: auto; padding-block: clamp(4.5rem, 8vw, 7rem); }
.latest-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.latest-heading h2 { margin: .65rem 0 0; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .95; letter-spacing: -.055em; }
.featured-feed { display: grid; grid-template-columns: 1.35fr .65fr; gap: 1.25rem; }
.lead-story { position: relative; min-height: 36rem; overflow: hidden; border-radius: 1rem; background: var(--panel); }
.lead-story__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead-story__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,7,6,.95), rgba(5,7,6,.08) 75%); }
.lead-story__content { position: absolute; inset: auto 0 0; padding: clamp(1.5rem, 4vw, 3rem); }
.lead-story h3 { max-width: 700px; margin: .5rem 0 .85rem; font-size: clamp(2.2rem, 4.5vw, 4.5rem); line-height: .96; letter-spacing: -.055em; }
.lead-story h3 a { text-decoration: none; }
.lead-story p { max-width: 620px; margin: 0; color: #d3d7d2; }
.story-list { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; background: var(--line); }
.story-list article { padding: 1.4rem; background: var(--panel); }
.story-list h3 { margin: .45rem 0 0; font-size: 1.35rem; line-height: 1.1; }
.story-list h3 a { text-decoration: none; }
.story-list h3 a:hover { color: var(--acid); }
.empty-feed { padding: 2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); color: var(--muted); }
.category-strip { display: flex; gap: .65rem; margin: 0 0 2rem; padding: 0 0 .35rem; overflow-x: auto; list-style: none; }
.category-strip a { display: block; white-space: nowrap; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 700; }
.category-strip a:hover { border-color: var(--acid); color: var(--acid); }
.topic-card-link { color: inherit; text-decoration: none; }
.topic-card-link .topic-card { height: 100%; }
.article-layout { display: grid; grid-template-columns: minmax(0, 780px) minmax(240px, 320px); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.article-sidebar { position: sticky; top: 2rem; display: grid; gap: 1rem; }
.widget { padding: 1.35rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--panel); }
.widget-title { margin: 0 0 .9rem; font-size: 1rem; color: var(--acid); text-transform: uppercase; letter-spacing: .08em; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border: 0; }
.widget a { text-decoration: none; }
.widget a:hover { color: var(--acid); }
.search-form { display: flex; gap: .5rem; width: min(100%, 34rem); }
.search-field { min-width: 0; flex: 1; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); color: var(--paper); font: inherit; }
.search-submit { padding: .75rem 1rem; border: 0; border-radius: .5rem; background: var(--acid); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.article-disclaimer { margin-top: 3rem; padding: 1.25rem; border-left: 3px solid var(--acid); background: var(--panel); color: var(--muted); font-size: .92rem; }
.more-section { border-top: 1px solid var(--line); }
.more-section .latest-heading { margin-bottom: 2rem; }
.author-box { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; margin-top: 2.5rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--panel); }
.author-box img { border-radius: 50%; }
.author-box h2 { margin: 0 0 .35rem; font-size: 1.2rem; }
.author-box p { margin: 0; color: var(--muted); font-size: .95rem; }
.policy-note { padding: 1rem 1.15rem; border-left: 3px solid var(--acid); background: var(--panel); color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .8rem; border: 1px solid var(--line); text-align: left; }
.contact-form { display: grid; gap: 1rem; max-width: 760px; margin-top: 2rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .4rem; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); color: var(--paper); font: inherit; }
.contact-form textarea { min-height: 11rem; resize: vertical; }
.contact-form button { width: fit-content; padding: .8rem 1.15rem; border: 0; border-radius: .5rem; background: var(--acid); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.contact-form__status { padding: 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.contact-form__status--success { border-color: var(--acid); }
.contact-form__trap { position: absolute !important; left: -9999px !important; }

@media (max-width: 1100px) {
  .site-header { width: calc(100% - 2rem); }
  .menu-button {
    position: relative;
    z-index: 22;
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 3.65rem;
    padding: .75rem 1.1rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(8,10,9,.88);
    box-shadow: 0 .7rem 2rem rgba(0,0,0,.2);
    color: #fff;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    backdrop-filter: blur(14px);
  }
  .menu-lines, .menu-lines::before { display: block; width: 1.25rem; height: 1px; background: currentColor; transition: transform .2s ease; }
  .menu-lines::before { content: ""; transform: translateY(-.35rem); }
  .menu-button[aria-expanded="true"] .menu-lines { transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-lines::before { transform: rotate(-90deg); }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 21;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border: 0;
    border-radius: 0;
    background: var(--ink);
    transform: translateY(-102%);
    transition: transform .3s ease;
  }
  .site-nav.is-open { transform: none; }
  .site-nav a { font-size: 2.2rem; letter-spacing: -.04em; }
}

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .featured-feed, .article-layout { grid-template-columns: 1fr; }
  .story-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .article-sidebar { position: static; }
}

@media (max-width: 760px) {
  .brand-name { font-size: .94rem; }
  .brand-mark { width: 1.25rem; height: 1.25rem; }
  .brand { min-height: 3.2rem; padding: .6rem .85rem; }
  .menu-button { min-height: 3.2rem; padding: .6rem .85rem; }
  .hero { min-height: 720px; }
  .hero-image { object-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(6,8,7,.93), rgba(6,8,7,.48)), linear-gradient(0deg, rgba(6,8,7,.95), transparent 60%); }
  .hero-content { width: calc(100% - 2rem); padding-top: 4rem; justify-content: flex-end; padding-bottom: 8.5rem; }
  .hero h1 { margin-top: .9rem; font-size: clamp(3.55rem, 18vw, 5.5rem); }
  .hero-copy { max-width: 28rem; font-size: 1rem; }
  .hero-note { left: 1rem; right: 1rem; bottom: 1.4rem; justify-content: flex-end; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 23rem; border-right: 0; padding: 2rem 1rem; }
  .site-footer { grid-template-columns: 1fr; gap: 2.2rem; }
  .content-shell { width: calc(100% - 2rem); padding-top: 8rem; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card--featured { grid-column: auto; }
  .latest-section { width: calc(100% - 2rem); }
  .latest-heading { align-items: start; flex-direction: column; }
  .lead-story { min-height: 31rem; }
  .story-list { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
