/* ==========================================================================
   Ben Hurley – Remedial Massage
   ========================================================================== */

:root {
  --navy: #22324c;
  --blue: #448cdf;
  --bullet: #a5e1fa;
  --text: #333333;
  --white: #ffffff;
  --cream: #fbf6f2;
  --card-bg: #e9f3ff;
  --card-border: #acc9eb;
  --input-border: #d3cfcf;
  --focus-border: rgba(255, 255, 255, 0.4);

  --font-heading: "Momo Trust Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Banner images – replaced with the Customizer uploads when set. */
  --hero-bg: url("../images/ben-banner.jpg");
  --hero-bg-mobile: url("../images/ben-banner-mobile.jpg");

  --container: 1800px;
  --gutter: 40px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 30px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, figure {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.br-mobile {
  display: none;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 20px;
  clip: auto;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */
.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0.3px;
  color: var(--navy);
  text-align: center;
}

.section-title--light {
  color: var(--white);
}

.section-title--left {
  text-align: left;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--blue);
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn--sm {
  width: 149px;
  height: 40px;
}

.btn--lg {
  width: 249px;
  height: 55px;
  font-weight: 600;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  /* Banner keeps the 2560 x 850 artwork ratio so the full image is visible
     on every desktop/laptop screen (exactly 850px tall at 2560px wide). */
  height: max(420px, 33.2031vw);
  background: #faf1ea var(--hero-bg) 70% center / cover no-repeat;
}

.logo {
  display: inline-block;
  margin-left: 2px;
  padding-top: 37px;
}

.logo img {
  width: clamp(220px, 11.3281vw, 290px);
}

.hero__content {
  margin-top: clamp(56px, 9.3359vw, 239px);
  max-width: 900px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(36px, 2.5391vw, 65px);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--navy);
  max-width: 13.6em;
}

.hero__text {
  margin-top: 0.75em;
  max-width: 34.2em;
  font-size: clamp(17px, 0.9375vw, 24px);
  line-height: 1.3333;
  color: var(--navy);
}

/* ==========================================================================
   Intro
   ========================================================================== */
.intro {
  padding: 88px 0 91px;
  text-align: center;
}

.intro__text {
  margin-top: 21px;
}

/* ==========================================================================
   Specialisation & focus
   ========================================================================== */
.focus {
  background: var(--blue);
  padding: 72px 0 68px;
  color: var(--white);
}

.focus__grid {
  display: flex;
  justify-content: center;
  gap: 21px;
  margin-top: 45px;
}

.focus-card {
  border: 2px solid var(--focus-border);
  border-radius: 10px;
  padding: 18px 24px 19px;
}

.focus-card--techniques {
  width: 337px;
}

.focus-card--indications {
  width: 853px;
}

.focus-card__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 28px;
  line-height: 40px;
  letter-spacing: 0;
  color: var(--white);
  white-space: nowrap;
}

.focus-card__cols {
  display: grid;
  grid-template-columns: 534px auto;
}

.bullet-list {
  margin-top: 15px;
}

.bullet-list li {
  position: relative;
  padding-left: 23px;
  font-size: 16px;
  line-height: 29px;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bullet);
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  padding-top: 97px;
}

.about__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(1496px + var(--gutter) * 2);
}

.about__content {
  flex: 0 1 900px;
}

.about__content p {
  margin-top: 0;
}

.about__content .section-title + p {
  margin-top: 28px;
}

.about__content p + p {
  margin-top: 28px;
}

.about__media {
  flex: 0 0 557px;
}

.about__media img {
  width: 100%;
  border-radius: 20px;
}

/* ==========================================================================
   Locations
   ========================================================================== */
.locations {
  padding: 98px 0 102px;
}

.locations__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 39px;
  margin-top: 40px;
}

.location-card {
  width: 577px;
  min-height: 343px;
  padding: 43px 44px 55px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.location-card__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 28px;
  line-height: 40px;
  letter-spacing: 0;
  color: var(--blue);
}

.location-card__list {
  margin-top: 31px;
}

.location-card__list li {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 24px;
  font-size: 16px;
  line-height: 24px;
}

.location-card__list li + li {
  margin-top: 18px;
}

.location-card__list img {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.location-card__list a:hover {
  color: var(--blue);
}

.location-card .btn {
  margin-top: 24px;
  margin-left: 2px;
}

/* ==========================================================================
   Appointment form
   ========================================================================== */
.appointment {
  background: var(--cream);
  padding: 90px 0 90px;
}

.appointment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 19px;
  row-gap: 17px;
  max-width: 981px;
  margin: 49px auto 0;
}

.form-field--full,
.form-actions {
  grid-column: 1 / -1;
}

.appointment-form input[type="text"],
.appointment-form input[type="email"],
.appointment-form input[type="tel"],
.appointment-form select,
.appointment-form textarea {
  display: block;
  width: 100%;
  height: 57px;
  padding: 0 29px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--white);
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.appointment-form textarea {
  height: 107px;
  padding-top: 15px;
  padding-bottom: 15px;
  resize: none;
}

.appointment-form ::placeholder {
  color: var(--text);
  opacity: 1;
}

.appointment-form select {
  padding-right: 56px;
  cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='8' viewBox='0 0 13 8'%3E%3Cpath d='M0 0h13L6.5 8z' fill='%2322324c'/%3E%3C/svg%3E") right 24px center / 13px 8px no-repeat;
}

.appointment-form select:invalid {
  color: var(--text);
}

.appointment-form input[type="text"]:focus,
.appointment-form input[type="email"]:focus,
.appointment-form input[type="tel"]:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(68, 140, 223, 0.15);
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 1px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: var(--white);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 134px;
}

.site-footer__copy {
  font-size: 16px;
  line-height: 24px;
}

.site-footer__logo img {
  width: 290px;
}

/* ==========================================================================
   Form messages & spam trap
   ========================================================================== */
.form-notice {
  max-width: 981px;
  margin: 32px auto -17px;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.form-notice--success {
  background: #e7f6ec;
  border: 1px solid #9fd8b2;
  color: #1d5e33;
}

.form-notice--error {
  background: #fdecec;
  border: 1px solid #efb2b2;
  color: #8a1f1f;
}

.bh-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.locations__empty {
  margin-top: 24px;
  text-align: center;
}

/* ==========================================================================
   Contact Form 7 – same look as the built-in form
   ========================================================================== */
.appointment-cf7 .wpcf7 .hidden-fields-container,
.appointment-cf7 .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.appointment-cf7 .wpcf7-form-control-wrap {
  display: block;
  position: relative;
}

/* Submit is an <input> in CF7 – give it the button styles. */
.appointment-cf7 .wpcf7-submit.btn {
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
}

.appointment-cf7 .wpcf7-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.appointment-cf7 .form-actions {
  position: relative;
}

.appointment-cf7 .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: calc(50% + 136px);
  margin: -12px 0 0;
}

.appointment-cf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  padding-left: 4px;
  font-size: 13px;
  line-height: 18px;
  color: #b42318;
  text-align: left;
}

.appointment-cf7 .appointment-form .wpcf7-not-valid {
  border-color: #e59a9a;
}

.appointment .appointment-cf7 .wpcf7 form .wpcf7-response-output {
  max-width: 981px;
  margin: 24px auto 0;
  padding: 16px 24px;
  border: 1px solid #efb2b2;
  border-radius: 8px;
  background: #fdecec;
  color: #8a1f1f;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.appointment .appointment-cf7 .wpcf7 form.sent .wpcf7-response-output {
  border-color: #9fd8b2;
  background: #e7f6ec;
  color: #1d5e33;
}

.appointment .appointment-cf7 .wpcf7 form.init .wpcf7-response-output,
.appointment .appointment-cf7 .wpcf7 form.resetting .wpcf7-response-output,
.appointment .appointment-cf7 .wpcf7 form.submitting .wpcf7-response-output {
  display: none;
}

/* ==========================================================================
   Inner pages (privacy policy, posts, 404)
   ========================================================================== */
.site-header {
  background: var(--cream);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.site-header .logo {
  padding-top: 0;
}

.site-header .logo img {
  width: 220px;
}

.page-shell {
  padding: 80px 0 100px;
}

.page-shell__inner {
  max-width: calc(900px + var(--gutter) * 2);
}

.page-shell--center {
  text-align: center;
}

.page-shell__actions {
  margin-top: 32px;
}

.page-title {
  margin-bottom: 32px;
}

.entry-content > * + * {
  margin-top: 1em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.6em;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}

.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 26px; }
.entry-content h4 { font-size: 22px; }

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}

.entry-content ul {
  list-style: disc;
}

.entry-content a,
.post-list__title a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content img {
  border-radius: 12px;
}

.post-list__item + .post-list__item {
  margin-top: 48px;
}

.post-list__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  color: var(--navy);
}

.post-list__meta {
  margin: 6px 0 12px;
  font-size: 14px;
  color: #6b6b6b;
}

.nav-links {
  display: flex;
  gap: 12px;
  margin-top: 48px;
}

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1400px) {
  .focus-card--indications {
    width: auto;
    flex: 0 1 853px;
  }

  .focus-card__cols {
    grid-template-columns: 1fr auto;
    column-gap: 40px;
  }

  .about__content {
    flex: 1 1 auto;
    padding-right: 48px;
  }

  .about__media {
    flex-basis: 480px;
  }
}

/* Below ~1265px the banner can no longer keep its full ratio, so the image is
   cropped – add a soft fade behind the copy to keep it readable. */
@media (max-width: 1264px) {
  .hero {
    background:
      linear-gradient(90deg, rgba(250, 242, 236, 0.94) 0%, rgba(250, 242, 236, 0.8) 38%, rgba(250, 242, 236, 0) 68%),
      #faf1ea var(--hero-bg) 70% center / cover no-repeat;
  }
}

@media (max-width: 1199px) {
  :root {
    --gutter: 32px;
  }

  .section-title {
    font-size: 40px;
  }

  .focus__grid {
    flex-direction: column;
    align-items: center;
  }

  .focus-card--techniques,
  .focus-card--indications {
    width: 100%;
    max-width: 853px;
    flex: none;
  }

  .focus-card--techniques .bullet-list {
    columns: 2;
  }

  .locations__grid {
    flex-direction: column;
    align-items: center;
  }

  .location-card {
    width: 100%;
    max-width: 640px;
  }
}

@media (max-width: 991px) {
  .about__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .about__content {
    padding-right: 0;
    max-width: none;
  }

  .about__media {
    flex: none;
    margin-top: 48px;
    max-width: 557px;
  }

  .focus-card__cols {
    grid-template-columns: 1fr;
  }
}

/* ---------- Mobile (design: 360px) ---------- */
@media (max-width: 767px) {
  :root {
    --gutter: 16px;
  }

  .br-desktop {
    display: none;
  }

  .br-mobile {
    display: inline;
  }

  body {
    line-height: 29px;
  }

  .section-title {
    font-size: 23.5px;
  }

  /* Hero */
  .hero {
    height: 385px;
    text-align: center;
    background:
      linear-gradient(to bottom, rgba(253, 248, 244, 0) 50%, #fdf8f4 68%),
      radial-gradient(ellipse 230px 160px at 280px 180px, rgba(253, 248, 244, 0.2) 0%, rgba(253, 248, 244, 0.7) 60%, #fdf8f4 100%),
      #fdf8f4 var(--hero-bg-mobile) right -150px top -85px / 560px auto no-repeat;
  }

  .logo {
    margin-left: 0;
    padding-top: 24px;
  }

  .logo img {
    width: 200px;
  }

  .hero__content {
    margin-top: 61px;
    max-width: none;
  }

  .hero__title {
    max-width: 290px;
    margin: 0 auto;
    font-size: 30px;
    line-height: 36px;
    letter-spacing: 0;
  }

  .hero__text {
    max-width: 290px;
    margin: 9px auto 0;
    font-size: 16px;
    line-height: 19px;
  }

  /* Intro */
  .intro {
    padding: 50px 0 45px;
  }

  .intro__text {
    max-width: 296px;
    margin: 13px auto 0;
  }

  /* Focus */
  .focus {
    padding: 51px 0 57px;
  }

  .focus .container {
    padding: 0 12px;
  }


  .focus__grid {
    flex-direction: column;
    gap: 19px;
    margin-top: 29px;
  }

  .focus-card {
    padding: 29px 15px 22px 23px;
  }

  .focus-card--techniques {
    padding-bottom: 24px;
  }

  .focus-card--indications .focus-card__cols .bullet-list:first-child {
    margin-top: 13px;
  }

  .focus-card--techniques .bullet-list {
    columns: 1;
  }

  .focus-card__title {
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0;
    white-space: normal;
  }

  .focus-card__cols {
    grid-template-columns: 1fr;
  }

  .focus-card__cols .bullet-list + .bullet-list {
    margin-top: 0;
  }

  .bullet-list li {
    line-height: 29px;
  }

  .focus-card--indications .bullet-list li {
    line-height: 20px;
    padding-top: 4px;
    padding-bottom: 5px;
  }

  .focus-card--indications .bullet-list li::before {
    top: 10px;
  }

  /* About */
  .about {
    padding-top: 50px;
  }

  .about .container {
    padding-right: 19px;
  }

  .about__inner {
    flex-direction: column;
  }

  .about__content .section-title + p {
    margin-top: 13px;
  }

  .about__content p + p {
    margin-top: 29px;
  }

  .about__media {
    margin-top: 32px;
    max-width: none;
  }

  .about__media img {
    border-radius: 20px;
  }

  /* Locations */
  .locations {
    padding: 76px 0 77px;
  }

  .locations__grid {
    gap: 18px;
    margin-top: 29px;
  }

  .location-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 275px;
    padding: 21px 16px 27px 23px;
  }

  .location-card__title {
    font-size: 20px;
    line-height: 28px;
  }

  .location-card__list {
    margin-top: 17px;
  }

  .location-card__list li {
    align-items: flex-start;
    gap: 16px;
    line-height: 20px;
  }

  .location-card__list li img {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    margin-top: -3px;
  }

  .location-card__list li + li {
    margin-top: 18px;
  }

  .location-card .btn {
    margin-top: auto;
  }

  .location-card__list {
    margin-bottom: 19px;
  }

  /* Appointment */
  .appointment {
    padding: 44px 0 52px;
  }

  .appointment .container {
    padding: 0 14px;
  }


  .appointment-form {
    grid-template-columns: 1fr;
    row-gap: 15px;
    margin-top: 31px;
  }

  .appointment-form input[type="text"],
  .appointment-form input[type="email"],
  .appointment-form input[type="tel"],
  .appointment-form select,
  .appointment-form textarea {
    padding: 0 29px;
    border-radius: 12px;
  }

  .appointment-form textarea {
    padding-top: 15px;
  }

  .appointment-form select {
    background-image: none;
  }

  .form-actions {
    margin-top: 7px;
  }

  /* Footer */
  .site-footer__inner {
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    min-height: 175px;
    padding-top: 3px;
    padding-bottom: 9px;
    text-align: center;
  }

  .site-footer__logo img {
    width: 200px;
  }

  /* Inner pages */
  .site-header .logo img {
    width: 160px;
  }

  .appointment-cf7 .wpcf7-spinner {
    left: calc(50% + 132px);
  }

  .page-shell {
    padding: 48px 0 64px;
  }

  .entry-content h2 { font-size: 26px; }
  .entry-content h3 { font-size: 22px; }
}
