/*
Theme Name: Baseline Digital Marketing
Theme URI: https://baselinemarketing.co.uk
Author: Baseline Digital Marketing
Author URI: https://baselinemarketing.co.uk
Description: A premium, technical marketing-agency theme for Baseline Digital Marketing — specialist marketing for gyms, padel clubs and leisure venues, positioned as a fractional marketing department. Shares its visual language (navy, blue, peach, Barlow) with The Padel Club Launch System microsite.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: baseline-marketing
*/

/* =========================================================================
   BRAND VARIABLES
   EDIT THIS block to re-theme the whole site — every colour on the site
   is drawn from these four variables (plus a few tints/shades of them).
========================================================================= */
:root {
  --navy: #1D1F29;
  --navy-700: #2A2D3A;
  --navy-600: #3B3F4F;
  --blue: #5BC1CF;
  --blue-dark: #3FA3B1;
  --peach: #F7B5A6;
  --white: #FFFFFF;
  --ink-400: rgba(29, 31, 41, 0.55);
  --ink-500: rgba(29, 31, 41, 0.7);
  --line: rgba(29, 31, 41, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);

  --content-width: 1180px;
  --header-height: 84px;
  --radius-card: 10px;
  --radius-btn: 8px;

  color-scheme: light;
}

/* =========================================================================
   FONTS — Barlow, self-hosted (same choice as The Padel Club Launch System:
   faster, works offline, nothing to declare as a third-party request in
   the privacy policy). Weights: 200 Extra Light, 400 Regular, 500 Medium
   (used sparingly for the odd emphasis), 900 italic Black Italic (photo
   overlays only, per the Baseline brand guidelines).
========================================================================= */
@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/barlow-latin-200-normal.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/barlow-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/barlow-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/barlow-latin-900-italic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* =========================================================================
   RESET / BASE
========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: 'Barlow', sans-serif;
  font-weight: 200;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Barlow', sans-serif; font-weight: 400; margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--blue);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-btn);
  font-weight: 500;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* =========================================================================
   LAYOUT HELPERS
========================================================================= */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark .eyebrow { color: var(--blue); }
.section--tint { background: #F7F7F8; }
.section-heading { margin-top: 18px; margin-bottom: 28px; }
.prose-wide { max-width: 780px; margin-left: auto; margin-right: auto; }
.prose { max-width: 760px; }
.prose h2 { margin: 2.2rem 0 .8rem; font-size: 1.7rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin: 1rem 0 1.5rem; }
.prose li { margin-bottom: .45rem; }
.text-link { color: var(--blue-dark); font-weight: 500; }
.text-link:hover { text-decoration: underline; }
.split-copy { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.topic-nav { border-block: 1px solid var(--line); background: var(--white); }
.topic-nav .container { display: flex; gap: 24px; overflow-x: auto; padding-block: 14px; }
.topic-nav a { white-space: nowrap; font-size: .9rem; font-weight: 500; }
.topic-nav a:hover { color: var(--blue-dark); }
.pathway-card, .case-card { display: block; transition: transform .18s ease, border-color .18s ease; }
.pathway-card:hover, .case-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.pathway-card h2, .case-card h2, .case-card h3 { margin: 14px 0 12px; }
.faq-list details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 500; font-size: 1.1rem; }
.faq-list details p { margin: 14px 0 0; }
.case-study-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; }
.case-facts { border-top: 3px solid var(--blue); padding-top: 20px; position: sticky; top: calc(var(--header-height) + 24px); }
.case-facts strong { display: block; font-weight: 500; }
.case-facts p { color: var(--ink-500); margin: 0 0 18px; }
.case-note { padding: 18px; background: #F7F7F8; border-left: 3px solid var(--peach); }
@media (max-width: 900px) {
  .split-copy, .case-study-layout { grid-template-columns: 1fr; gap: 32px; }
  .case-facts { position: static; }
}

.court-grid-bg {
  background-image:
    repeating-linear-gradient(0deg, rgba(91,193,207,0.08) 0px, rgba(91,193,207,0.08) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(90deg, rgba(91,193,207,0.08) 0px, rgba(91,193,207,0.08) 1px, transparent 1px, transparent 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8125rem;
  color: var(--blue-dark);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
.lede { font-size: 1.15rem; font-weight: 200; color: var(--ink-500); }
.section--dark .lede { color: rgba(255,255,255,0.75); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   BUTTONS
========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--navy);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }

/* Outline button on a light background */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Outline button on a dark/navy background — resting state is deliberately
   explicit (white text, transparent fill, blue border) rather than reusing
   .btn-primary, so it can never resolve to unreadable dark-on-dark. */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--blue);
}
.btn-ghost:hover { background: var(--blue); color: var(--navy); }

/* =========================================================================
   CARDS
========================================================================= */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
}
.card-dark {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  padding: 28px;
}
.card img { border-radius: calc(var(--radius-card) - 4px); margin-bottom: 18px; }

/* =========================================================================
   HEADER
========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(29, 31, 41, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 34px; width: auto; }

.main-nav { margin-left: auto; display: none; }
.main-nav ul { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 0.9375rem;
  font-weight: 200;
  color: rgba(255,255,255,0.85);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--blue); }

.header-cta { margin-left: 0; display: none; }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none !important; }
}

.menu-toggle {
  margin-left: auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--white);
}
.menu-toggle svg { width: 26px; height: 26px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  border-top: 1px solid var(--line-dark);
  background: var(--navy);
}
.mobile-nav ul { display: flex; flex-direction: column; padding: 8px 0; }
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 200;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav__cta { padding: 16px 24px 24px; }
.mobile-nav__cta .btn { width: 100%; }
@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}

/* =========================================================================
   HERO
========================================================================= */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  color: var(--white);
  margin: 18px 0 22px;
}
.hero p.lede { max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__credibility {
  margin-top: 22px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.hero__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  position: relative;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.hero__overlay-statement {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 24px;
  background: linear-gradient(0deg, rgba(29,31,41,0.85) 10%, transparent 100%);
}
.hero__overlay-statement p {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--white);
  margin: 0;
  max-width: 22ch;
}

/* =========================================================================
   PILLARS / SERVICE CARDS
========================================================================= */
.pillars { margin-top: 48px; }
.pillar-card { text-align: left; }
.pillar-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue-dark);
  font-size: 0.875rem;
  margin-bottom: 18px;
}
.pillar-card h3 { font-size: 1.15rem; margin: 0 0 10px; }
.pillar-card p { color: var(--ink-500); font-size: 0.95rem; }

/* =========================================================================
   QUAD BLOCK ("We don't just do marketing...")
========================================================================= */
.quad { margin-top: 48px; }
.quad-item { border-top: 1px solid var(--line); padding-top: 24px; }
.quad-item strong { display: block; font-weight: 500; margin-bottom: 8px; color: var(--navy); }
.quad-item p { color: var(--ink-500); }

/* =========================================================================
   COMPARISON (fractional marketing department)
========================================================================= */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 44px;
}
@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
}
.compare__col { background: var(--white); padding: 32px; }
.compare__col--highlight { background: var(--navy); color: var(--white); }
.compare__col h3 { font-size: 1.1rem; margin-bottom: 18px; }
.compare__col--highlight h3 { color: var(--blue); }
.compare__col ul { display: flex; flex-direction: column; gap: 12px; }
.compare__col li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--ink-500); }
.compare__col--highlight li { color: rgba(255,255,255,0.85); }
.compare__col li svg { flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; }

/* =========================================================================
   PADEL CROSS-PROMO BAND
========================================================================= */
.promo-band {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.promo-band__text h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 8px; }
.promo-band__text p { color: rgba(255,255,255,0.7); max-width: 52ch; margin: 0; }

/* =========================================================================
   TEAM / ABOUT
========================================================================= */
.team-card { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.team-card__photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.team-card__body h3 { font-size: 1.4rem; margin-bottom: 4px; }
.team-card__role { color: var(--blue-dark); font-size: 0.9375rem; margin-bottom: 14px; }

.checklist { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex-shrink: 0; margin-top: 4px; width: 18px; height: 18px; color: var(--blue-dark); }

/* =========================================================================
   FORMS
========================================================================= */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-row .required { color: var(--blue-dark); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="url"],
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231D1F29'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.25a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z' clip-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--blue); }
.form-hint { font-size: 0.8125rem; color: var(--ink-400); margin-top: 6px; }
.form-error-list {
  background: #FCEEED;
  border: 1px solid #E8A79B;
  color: #7A2E22;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.9375rem;
}
.form-success {
  background: #EAF7F3;
  border: 1px solid var(--blue);
  color: var(--navy);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.consent-row { display: flex; gap: 10px; align-items: flex-start; }
.consent-row input[type="checkbox"] { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.consent-row label { font-size: 0.875rem; font-weight: 200; color: var(--ink-500); }
.form-submit-row { margin-top: 8px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Honeypot — hidden from real visitors, tempting to bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* =========================================================================
   FAQ / ACCORDION (native <details>, no JS required)
========================================================================= */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 200;
  color: var(--blue-dark);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; color: var(--ink-500); }

/* =========================================================================
   FOOTER
========================================================================= */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 64px 0 32px; }
.site-footer a:hover { color: var(--blue); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; font-size: 0.9375rem; }
.footer-col h4 { color: var(--white); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 0.8125rem; color: rgba(255,255,255,0.5); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid var(--line-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 16px; height: 16px; }

/* =========================================================================
   REVEAL-ON-SCROLL (progressive enhancement, see assets/js/theme.js)
========================================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   BLOG / INSIGHTS
========================================================================= */
.post-card { display: flex; flex-direction: column; text-align: left; transition: box-shadow 0.18s ease, transform 0.18s ease; }
.post-card:hover { box-shadow: 0 8px 24px rgba(29,31,41,0.08); transform: translateY(-2px); }
.post-card img { border-radius: calc(var(--radius-card) - 4px); margin-bottom: 16px; width: 100%; aspect-ratio: 8/5; object-fit: cover; }
.post-card h3 { color: var(--navy); margin-bottom: 8px; }
.post-card p { color: var(--ink-500); font-size: 0.9375rem; }

.post-content { color: var(--navy); }
.post-content > * + * { margin-top: 1.1em; }
.post-content h2 { font-size: 1.5rem; font-weight: 400; margin-top: 2em; }
.post-content h3 { font-size: 1.2rem; font-weight: 500; margin-top: 1.6em; }
.post-content p { line-height: 1.75; color: rgba(29,31,41,0.85); }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content li { margin-bottom: 0.5em; line-height: 1.65; color: rgba(29,31,41,0.85); }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.post-content strong { font-weight: 500; color: var(--navy); }
.post-content blockquote {
  border-left: 2px solid var(--peach);
  padding-left: 1.2em;
  font-size: 1.05rem;
  color: var(--ink-500);
}

.post-cta {
  margin-top: 56px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 36px;
}
.post-cta h3 { color: var(--white); margin: 12px 0 10px; font-size: 1.3rem; }
.post-cta p { color: rgba(255,255,255,0.75); margin-bottom: 20px; max-width: 56ch; }

.related-posts { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }

/* =========================================================================
   UTILITIES
========================================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-content { max-width: 640px; }
.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;
}
