/*
Theme Name: KRN Fitness
Theme URI: https://krnfitness.co.uk/
Author: IIH Global
Description: Custom WordPress theme for KRN Fitness, based on the approved Harrow personal-training homepage design. Homepage copy and media can be managed from Appearance > Customize > KRN Fitness Homepage.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.0
Text Domain: krn-fitness
*/

:root {
  --ink: #202323;
  --red: #b52d34;
  --muted: #5a6264;
  --paper: #f3f5f5;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  font:
    17px/1.7 Arial,
    Helvetica,
    sans-serif;
  color: var(--ink);
  background: white;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.13;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  font-weight: 700;
}
h3 {
  font-size: 1.65rem;
}
p {
  margin-bottom: 1.2rem;
}
a {
  color: inherit;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #db9b1c;
  outline-offset: 5px;
}
img {
  display: block;
  width: 100%;
  object-fit: cover;
}
header {
  height: 94px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-bottom: 1px solid #e9ebeb;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  font-weight: 900;
  font-size: 29px;
  letter-spacing: -1.5px;
}
.brand span {
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 1px;
}
.brand i {
  width: 9px;
  height: 9px;
  background: var(--red);
  margin-left: 2px;
}
nav {
  display: flex;
  align-items: center;
}
.site-nav li {
    margin: 0;
}
.site-nav li:last-child a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--red);
    color: #fff;
    padding: 10px 21px;
    border-radius: 4px;
}
.site-nav ul {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--red);
  color: white;
  padding: 14px 25px;
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.15s;
}
.button:hover {
  background: #92212a;
}
.button.small {
  padding: 10px 21px;
}
.text-link {
  display: inline-block;
  text-underline-offset: 6px;
  font-size: 16px;
  font-weight: 700;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  min-height: 730px;
}
.hero-copy {
  padding: 64px 10% 64px 10%;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(4rem, 6.8vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 0 0 30px;
}
.hero h1 span {
  color: var(--red);
}
.hero h2 {
  font-size: 1.55rem;
  letter-spacing: -0.025em;
  max-width: 340px;
}
.hero p:not(.eyebrow) {
  max-width: 470px;
  color: #41494b;
  font-size: 16px;
}
.hero .text-link {
  margin-left: 20px;
  margin-top: 18px;
}
.hero-photo {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.hero-photo > img {
  position: absolute;
  height: 100%;
  object-position: 43% 34%;
}
.photo-caption {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  background: #202323e8;
  color: white;
  padding: 22px 26px;
  font-size: 15px;
  border-left: 4px solid var(--red);
}
.photo-caption strong {
  font-size: 20px;
}
.wrap {
  max-width: 1240px;
  margin: auto;
  padding: 90px 5%;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
}
.welcome h2 span {
  color: var(--muted);
}
.welcome {
  padding-bottom: 30px;
}
.welcome p:not(.eyebrow) {
  color: var(--muted);
}
.training > h2 {
  max-width: 700px;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 42px;
}
.service {
  background: var(--paper);
  padding: 38px;
  border-top: 3px solid var(--red);
  display: flex;
  flex-direction: column;
}
.number {
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: bold;
  color: var(--red);
  margin-bottom: 30px;
}
.service p {
  color: var(--muted);
  font-size: 16px;
}
.service .text-link {
  margin-top: auto;
  align-self: start;
}
.gym {
  position: relative;
  margin: 0 5%;
  height: 520px;
  overflow: hidden;
}
.gym img {
  height: 100%;
  object-position: 50% 58%;
}
.gym-label {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 30px 42px;
  background: #202323ee;
  color: white;
}
.gym-label .eyebrow {
  color: #ffadb0;
  margin-bottom: 12px;
}
.gym-label h2 {
  font-size: 2.2rem;
  margin: 0;
}
.stories {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 65px;
  align-items: center;
}
.stories-intro p:not(.eyebrow) {
  color: var(--muted);
}
.videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.videos video {
  width: 100%;
  aspect-ratio: 512/910;
  display: block;
  background: #222;
  border-radius: 6px;
}
.videos h3 {
  font-size: 1.3rem;
  margin: 20px 0 5px;
}
.videos p {
  font-size: 14px;
  color: var(--muted);
}
.steps-section {
  background: var(--ink);
  color: white;
}
.steps-section .eyebrow {
  color: #ffadb0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  margin-top: 48px;
}
.steps article {
  border-top: 1px solid #606464;
  padding-top: 25px;
}
.steps span {
  color: #ffadb0;
  font-size: 16px;
  font-weight: bold;
}
.steps h3 {
  font-size: 1.5rem;
  margin-top: 22px;
}
.steps p {
  color: #d0d5d5;
  font-size: 16px;
}
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;
}
.about img {
  height: 560px;
  object-position: 40% 20%;
  border-radius: 4px;
}
.about p:not(.eyebrow) {
  color: var(--muted);
}
.contact {
  background: var(--paper);
}
.contact p:not(.eyebrow) {
  color: var(--muted);
}
form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
label {
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #a9b1b2;
  background: white;
  color: var(--ink);
  padding: 11px 13px;
  border-radius: 4px;
  font-size: 16px;
}
textarea {
  resize: vertical;
}
form .button {
  align-self: start;
  margin-top: 15px;
}
.preview-note {
  font-size: 14px;
  padding: 12px 15px;
  border: 1px solid #c7cece;
  border-radius: 4px;
  margin-bottom: 10px;
}
#form-status {
  font-size: 15px;
  margin: 8px 0 0;
}
footer {
  padding: 35px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer p {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
}
.menu {
  display: none;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  padding: 10px;
  background: white;
  z-index: 9;
}
.skip:focus {
  top: 8px;
}
section {
  scroll-margin-top: 20px;
}
@media (min-width: 1600px) {
  .hero-copy {
    padding-left: max(10%, calc((100vw - 1240px) / 2));
  }
}
@media (max-width: 950px) {
  nav {
    gap: 17px;
  }
  .hero-copy {
    padding: 45px 8%;
  }
  .hero h1 {
    font-size: 4.5rem;
  }
  .hero .text-link {
    margin-left: 0;
    display: table;
  }
  .two-col,
  .about {
    gap: 35px;
  }
  .stories {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .stories-intro {
    max-width: 560px;
  }
  .videos {
    max-width: 700px;
  }
  .steps {
    gap: 25px;
  }
  footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 1024px) {
  header {
    height: 76px;
    position: relative;
    z-index: 5;
  }
  .brand {
    font-size: 25px;
  }
  .brand span {
    font-size: 17px;
  }
  .menu {
    display: block;
    border: 1px solid #bfc6c6;
    padding: 8px 14px;
    background: white;
    border-radius: 4px;
    font-size: 15px;
    min-height: 44px;
  }
  nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: white;
    padding: 22px 5%;
    box-shadow: 0 10px 15px #0001;
    align-items: stretch;
  }
  nav.open {
    display: flex;
    flex-direction: column;
  }
  nav a {
    padding: 6px 0;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 40px 6%;
  }
  .hero h1 {
    font-size: clamp(3.5rem, 15vw, 5rem);
  }
  .hero h2 {
    max-width: none;
  }
  .hero-photo {
    height: 450px;
  }
  .hero-photo img {
    object-position: 45% 25%;
  }
  .photo-caption {
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 15px 18px;
  }
  .hero .text-link {
    margin-left: 18px;
    display: inline-block;
  }
  .eyebrow {
    font-size: 12px;
  }
  .wrap {
    padding: 60px 6%;
  }
  .two-col,
  .service-grid,
  .steps,
  .about {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .welcome {
    padding-bottom: 0;
  }
  .service {
    padding: 28px;
  }
  .service h3 {
    font-size: 1.6rem;
  }
  .gym {
    height: 370px;
    margin: 0;
  }
  .gym-label {
    padding: 20px 6%;
  }
  .gym-label h2 {
    font-size: 1.8rem;
  }
  .gym img {
    object-position: 65% 50%;
  }
  .videos {
    gap: 18px;
  }
  .videos h3 {
    font-size: 1.15rem;
  }
  .videos p {
    font-size: 13px;
  }
  .about img {
    height: 430px;
  }
  .about {
    gap: 35px;
  }
  .contact .two-col {
    gap: 25px;
  }
  footer {
    padding: 30px 6%;
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .site-nav ul {
    display: block !important;
}
.site-nav li {
    margin: 15px 0;
}
}
@media (max-width: 380px) {
  .hero .text-link {
    margin-left: 0;
    display: table;
  }
  .videos {
    grid-template-columns: 1fr;
  }
  .videos article {
    max-width: 270px;
  }
  .brand span {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.whatsapp-contact {
  align-self: center;
  background: white;
  padding: 32px;
  border-top: 3px solid var(--red);
  border-radius: 4px;
  min-width: 0;
}
.whatsapp-contact .button {
  text-align: center;
  max-width: 100%;
}
.contact-number {
  margin: 18px 0 0;
  font-size: 16px;
}

.hero h1 span {
  display: block;
  font-size: 0.7em;
  line-height: 1.08;
}
.hero .trial-note {
  margin: 16px 0 0;
}
.hero .text-link {
  margin-left: 0;
}
.hero-copy,
.two-col > *,
.about > *,
.service {
  min-width: 0;
}
.practical dt {
  font-weight: 700;
  margin-top: 22px;
}
.practical dd {
  margin: 7px 0 20px;
  color: var(--muted);
}
address {
  font-style: normal;
  margin-bottom: 20px;
}
.email-contact {
  margin: 16px 0 0;
  overflow-wrap: anywhere;
}
img {
  max-width: 100%;
}
.contact a {
  overflow-wrap: anywhere;
}

.faq-accordion {
    margin: 0;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.faq-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-item dd {
    display: none;
    margin: 0;
    padding: 0 40px 20px 0;
}

.faq-item.active dd {
    display: block;
}

.map-wrapper iframe {
    width: 100%;
}

.not-found {
    text-align: center;
    padding: 100px 0;
}