/* ===================================
   Self-hosted DM Sans (variable font)
   =================================== */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===================================
   UK Book Publishing - Global Styles
   =================================== */

:root {
  --primary: #2EA3F2;
  --primary-dark: #1a7bbf;
  --primary-light: #5bb8f5;
  --secondary: #1B3A5C;
  --secondary-dark: #0f2640;
  --secondary-light: #2d5a8a;
  --accent: #E02B20;
  --accent-dark: #b8221a;
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #767676;
  --link: #0c7dba;
  --bg: #ffffff;
  --bg-light: #f7f8fc;
  --bg-dark: #1B3A5C;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
  --max-width: 1200px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', Helvetica, Arial, Lucida, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #1D1D1D;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 2rem; margin-bottom: 1.5rem; }
h2 { font-size: 31px; margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p, li {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 1rem;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #085a87; }

/* Focus styles for keyboard navigation */
a:focus-visible,
.btn:focus-visible,
.nav-links a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--secondary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--secondary);
  text-decoration: none;
}
.nav-logo:hover { color: var(--secondary); }
.nav-logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li {
  margin: 0;
}

.nav-links a {
  padding: 0.5rem 0.75rem;
  color: #1d1d1d;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1em;
  border-radius: 6px;
  transition: opacity 0.4s ease-in-out, background-color 0.4s ease-in-out;
}
.nav-links a:hover {
  color: var(--primary);
  background: var(--bg-light);
}

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
}

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu li {
  margin-bottom: 0.25rem;
}
.nav-dropdown-menu li:last-child {
  margin-bottom: 0;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 0;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
}

@media (max-width: 1130px) {
  .nav-logo img { height: 30px; }
  .nav-links a { font-size: 0.875rem; padding: 0.5rem 0.5rem; }
  .nav-phone a { font-size: 0.875rem; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; width: 100%; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown-menu.open { display: block; }
}

/* Sections */
.section {
  padding: 5rem 0;
}
.section-light {
  background: var(--bg-light);
}
.section-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  margin-bottom: 1.5rem;
}
.section-header p {
  font-size: 24px;
}

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Content styles */
.content h2 { margin-top: 2rem; }
.content h3 { margin-top: 1.5rem; }
.content ul, .content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content li { margin-bottom: 0.5rem; }
.content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.content .table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}
.content table {
  width: 100%;
  border-collapse: collapse;
}
.content th, .content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.content th {
  background: var(--bg-light);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: #122942;
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand h3 {
  color: #fff;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 1rem;
  line-height: 1.6;
}

.footer-reviews-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.3rem;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  line-height: 1.5;
}
.footer-col a:hover {
  color: #fff;
}
.footer-cookie-btn {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
  font-family: inherit;
}
.footer-cookie-btn:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
  text-align: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom p {
  font-size: 15px;
  margin-bottom: 0;
}

/* Form styles */
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0.375rem;
  color: var(--text);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #999;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.15);
}
.form-textarea {
  min-height: 150px;
  resize: vertical;
}
.form-input:user-invalid,
.form-textarea:user-invalid,
.form-select:user-invalid {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 43, 32, 0.15);
}
.form-error {
  color: var(--accent);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}
.form-input:user-invalid ~ .form-error,
.form-textarea:user-invalid ~ .form-error,
.form-select:user-invalid ~ .form-error {
  display: block;
}

/* Hero */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e8f4fd 100%);
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 700px;
}
.hero p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Blog post styles */
.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.post-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-light);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.post-category:hover {
  background: var(--primary);
  color: #fff;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.testimonial-card blockquote {
  font-style: italic;
  margin-bottom: 1rem;
  border: none;
  padding: 0;
  background: none;
}
.testimonial-author {
  font-weight: 700;
  color: var(--secondary);
}
.testimonial-book {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility: noindex indicator for dev */
.page-main {
  padding-top: 70px;
  min-height: calc(100vh - 70px);
}

/* Screen reader only */
.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;
}
.sr-only-focusable:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  z-index: 999;
  text-decoration: none;
}

/* ===================================
   Homepage Styles
   =================================== */

/* Nav phone number */
.nav-phone a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #29AB87 !important;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.4s ease-in-out, background-color 0.4s ease-in-out;
}
.nav-phone a:hover {
  color: #1f8a6c !important;
  background: transparent !important;
}
.nav-phone svg {
  flex-shrink: 0;
}

/* Hero — white bg, centred text */
.hero-home {
  padding: 5rem 0 1.5rem;
  text-align: center;
  background: #fff;
}
.hero-home h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  color: #1D1D1D;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero-home__subtitle {
  color: #0094CE;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.7em;
  max-width: 840px;
  margin: 0 auto;
}

/* Service blurb cards (4-column) */
.service-blurbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) {
  .service-blurbs {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .service-blurbs {
    grid-template-columns: 1fr;
  }
}
.service-blurb {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  background: #fff;
}
.service-blurb:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: inherit;
}
.service-blurb picture,
.service-blurb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.service-blurb__body {
  padding: 1.25rem;
}
.service-blurb__body h2,
.service-blurb__body h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 28px;
  margin-bottom: 0.5rem;
  color: #1D1D1D;
}
.service-blurb__body p {
  font-size: 1rem;
  color: #444444;
  margin-bottom: 0.75rem;
}
.service-blurb__link {
  color: #11ACDA;
  font-size: 18px;
  font-weight: 700;
}

/* Video testimonial section */
.video-section {
  background: #0094CE;
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}
.video-section h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.video-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}
.video-embed {
  max-width: 600px;
  aspect-ratio: 16/9;
  margin: 0 auto 2rem;
  overflow: hidden;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Video facade — lightweight placeholder until user clicks play */
.video-facade {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: #000;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.video-facade:hover .video-facade__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-section__btn {
  display: inline-block;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.video-section__btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.reviews-heading {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .reviews-heading {
    white-space: normal;
  }
}

.text-link {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
}
.text-link:hover {
  color: var(--primary-dark);
}

/* Google review cards */
.review-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .review-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .review-cards {
    grid-template-columns: 1fr;
  }
}
.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
}
.review-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
img.review-card__avatar { object-fit: cover; }
.review-card:nth-child(2) .review-card__avatar { background: #1B3A5C; }
.review-card:nth-child(3) .review-card__avatar { background: #E02B20; }
.review-card:nth-child(4) .review-card__avatar { background: #0B7A3E; }
.review-card:nth-child(5) .review-card__avatar { background: #7C3AED; }
.review-card:nth-child(6) .review-card__avatar { background: #D97706; }
.review-card__author {
  font-weight: 700;
  font-size: 1rem;
  color: #000;
}
.review-card__date {
  font-size: 0.8125rem;
  color: #8a8a8a;
}
.review-card__stars {
  display: flex;
  gap: 0;
  margin-bottom: 0.5rem;
}
.review-card__stars svg {
  width: 22px;
  height: 22px;
}
.review-card__text {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* Client logo row */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.logo-row img {
  height: 65px;
  width: auto;
  object-fit: contain;
}
.logo-row .logo-large img {
  height: 101px;
}
.logo-row .logo-small img {
  height: 45px;
}

/* Feature rows — alternating image/text */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.feature-row:last-child {
  margin-bottom: 0;
}
.feature-row--reverse .feature-row__image {
  order: 2;
}
.feature-row--reverse .feature-row__text {
  order: 1;
}
.feature-row__image picture,
.feature-row__image img {
  width: 100%;
  border-radius: var(--radius);
}
.feature-row__text h3 {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #1D1D1D;
  margin-bottom: 1rem;
}
.feature-row__text p {
  color: #444444;
  margin-bottom: 0.75rem;
}
.feature-row__text a {
  color: #0094CE;
}
.feature-row__text a:hover {
  color: #007bb3;
}
@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  .feature-row--reverse .feature-row__image {
    order: 0;
  }
  .feature-row--reverse .feature-row__text {
    order: 0;
  }
}

/* Services grid images */
.grid img, .grid picture img {
  width: 100%;
  border-radius: var(--radius);
}

/* CTA contact form */
.cta-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 520px) {
  .cta-form__row {
    grid-template-columns: 1fr;
  }
}
.cta-form__submit {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', Helvetica, Arial, Lucida, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.cta-form__submit:hover {
  background: var(--primary-dark);
}

/* Reviews page — 3-column grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-video-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.review-video-card__embed {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
}
.review-video-card__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.review-video-card h3 {
  padding: 1rem 1.25rem 0;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.review-video-card p {
  padding: 0 1.25rem 1.25rem;
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 0;
}

.written-review-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.written-review-card picture {
  flex-shrink: 0;
  width: 80px;
  line-height: 0;
  align-self: flex-start;
}
.written-review-card picture img {
  width: 80px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.written-review-card__content {
  flex: 1;
  min-width: 0;
}
.written-review-card p {
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 0;
}
.written-review-card cite {
  display: block;
  font-style: normal;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 0.75rem;
  font-size: 0.9375rem;
}
.reviews-subheading {
  text-align: center;
  margin-top: 5rem;
}
@media (max-width: 480px) {
  .written-review-card picture,
  .written-review-card picture img {
    width: 60px;
  }
}

/* Meet the team — 4-column card grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  text-align: center;
}
.team-card__photo {
  width: 70%;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
}
.team-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: left;
}
.team-card__body h3 {
  margin-bottom: 0.125rem;
}
.team-card__role {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.team-card__body p {
  font-size: 18px;
  margin-bottom: 0.5rem;
}
.team-card__body p:last-child {
  margin-bottom: 0;
}

/* Showcase / Our work page */
.showcase-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
}
.showcase-row__text h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.showcase-row__text p {
  color: #444;
}
.showcase-row__covers {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.showcase-row__covers img {
  max-height: 180px;
  width: auto;
  border-radius: 4px;
}
.showcase-row__link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--primary);
  font-weight: 500;
}
.showcase-row__link:hover {
  color: var(--primary-dark);
}
.showcase-video-embed {
  position: relative;
  width: 80%;
  padding-bottom: 106%;
  border-radius: var(--radius);
  overflow: hidden;
}
.showcase-video-embed--landscape {
  padding-bottom: 60%;
}
.showcase-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.showcase-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
@media (max-width: 768px) {
  .showcase-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .showcase-video-embed {
    width: 100%;
  }
}

/* ── Cookie Consent Banner ───────────────────────────────── */
@keyframes cookieFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes cookieFadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}
#cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
}
#cookie-banner:not(.hidden) {
  animation: cookieFadeIn 0.3s ease-out;
}
#cookie-banner.hiding {
  animation: cookieFadeOut 0.3s ease-in forwards;
}
#cookie-banner.hidden {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  #cookie-banner,
  #cookie-banner.hiding {
    animation: none;
  }
}
.cookie-banner__inner {
  max-width: 540px;
  width: 100%;
  background: #e8f4fd;
  border-top: 3px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  padding: 1.75rem;
}
.cookie-banner__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* Banner is a centered card — always stacked layout */
.cookie-banner__text {
  flex: 1;
}
.cookie-banner__text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}
.cookie-banner__text a {
  color: var(--primary);
  font-weight: 600;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.cookie-btn-outline {
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--secondary);
  border-radius: 6px;
  background: transparent;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-btn-outline:hover {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  text-decoration: none;
}
.cookie-btn-link:hover {
  text-decoration: underline;
}

/* Settings panel */
.cookie-settings {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.cookie-settings.hidden {
  display: none;
}
.cookie-settings__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0 0 1rem;
}
.cookie-settings__categories {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}
.cookie-category__info {
  flex: 1;
}
.cookie-category__name {
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  display: inline;
}
.cookie-category__badge {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--primary);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.cookie-category__desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0.25rem 0 0;
}
.cookie-settings__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--primary);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
}
.cookie-toggle input:disabled + .cookie-toggle-slider {
  background: var(--primary);
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-toggle input:disabled:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
}
.cookie-toggle input:focus-visible + .cookie-toggle-slider {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
#cookie-banner button:focus-visible,
#cookie-banner a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
