/*
Theme Name: Certified Translations EU
Theme URI: https://certifiedtranslations.be
Author: Certified Translations
Description: Custom lightweight theme for 11 EU certified translation websites. Built with SCF for content management.
Version: 1.0.29
Update URI: false
Text Domain: certified-eu
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  /* Colors */
  --color-primary: #1a63e2;
  --color-primary-light: #005ec6;   /* P1 / D9-9: #007bff gave 3.98 under white text and 3.27 on the step badge */
  --color-primary-hover: #0056b3;
  --color-secondary: #79a9f9;
  /* P1 colours (David's change list): white text at least 4.5:1 - #eb560d gave 3.58, #c2410c gives 5.18;
     hover #9a3412 7.31. One orange for the EU brands and Translations for Europe. */
  --color-orange: #c2410c;
  --color-orange-hover: #9a3412;
  --color-success: #28a745;
  --color-bg-light: #f3f5fb;
  --color-bg-gray: #edeff0;
  --color-text-dark: #03031a;
  --color-text-gray: #434343;
  --color-text-light: #626875;   /* P1: #999 gave 2.85 on white; 5.59 on white, 5.13 on #f3f5fb */
  --color-border: #eaeaea;
  --color-white: #ffffff;
  /* D9-9 dark mode: --color-white is also the text on blue and orange buttons, and --color-primary the
     button colour - so the page surface and the blue used as text have tokens of their own, which only
     the dark colour set changes (end of this file). */
  --color-surface: #ffffff;
  --color-primary-text: var(--color-primary);

  /* Typography */
  --font-heading: "Roboto Flex", "Roboto", sans-serif;
  --font-body:
    "Roboto Flex", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;

  /* Spacing */
  --section-padding: 50px;
  --card-padding: 30px;
  --card-radius: 8px;
  --btn-radius: 4px;
  --container-width: 1140px;
  --card-shadow: 0px 0 10px 2px #eaeaea;
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-dark);
  line-height: 1.5;
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-hover);
}

ul,
ol {
  list-style: none;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 1.3;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 20px;
}

h3 {
  font-size: 28px;
  font-weight: 600;
}

h4 {
  font-size: 22px;
  font-weight: 600;
}

p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* =============================================
   CONTAINER
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-white);
}

.btn-orange {
  background-color: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}

.btn-orange:hover {
  background-color: var(--color-orange-hover);
  border-color: var(--color-orange-hover);
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-orange);
  border-color: var(--color-orange);
}

.btn-outline:hover {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.btn-white {
  background-color: var(--color-surface);
  color: var(--color-primary-text);
  border-color: var(--color-white);
}

.btn-white:hover {
  background-color: var(--color-bg-light);
  color: var(--color-primary-hover);
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.site-header {
  background-color: var(--color-bg-light);
  position: relative;
  z-index: 10;
}

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

/* Site name text fallback (no custom logo) */
.site-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-dark);
  text-decoration: none;
}

.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.site-logo img {
  max-width: 280px;
  height: auto;
}

/* Strip list-item display from wp_nav_menu li items */
.main-nav li {
  list-style: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: #29348f;
  padding: 4px 0;
  position: relative;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary-hover);
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Reset nav underline animation for lang dropdown links */
.lang-switcher-dropdown .lang-option::after,
.lang-switcher-dropdown .lang-option:hover::after,
.lang-switcher-dropdown .lang-option.active::after {
  display: none !important;
  width: 0 !important;
}

/* Language Switcher Dropdown */
.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font-heading);
  color: #4a5d97;   /* P1: 5.83 on #f3f5fb (was 4.50) */
  cursor: pointer;
  transition: color 0.25s ease;
  line-height: 1;
}

.lang-switcher-btn:hover,
.lang-switcher.open .lang-switcher-btn {
  color: var(--color-primary-text);
}

.lang-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.lang-switcher.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-switcher-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 150px;
  z-index: 200;
  padding: 6px 8px;
}

.lang-switcher.open .lang-switcher-dropdown {
  display: block;
}

.lang-option,
.lang-option:link,
.lang-option:visited,
.lang-option:hover,
.lang-option:focus,
.lang-option:active,
.lang-option.active {
  color: var(--color-text) !important;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease !important;
}

.lang-option {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 6px;
}

.lang-option:hover {
  background: var(--color-bg-light);
}

.lang-option.active {
  font-weight: 600;
  background: var(--color-bg-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-text-dark);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO SECTION — 2-column split layout
   ============================================= */
.hero-section {
  background-color: var(--color-surface);
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
  /* clip, not just hidden (W1, David 2026-10-09): the half circle below makes the content wider than
     the section, and a hidden overflow can still be scrolled - a focused field scrolled the hero
     sideways and cut its left side off until reload. clip draws the same and cannot scroll. Browsers
     without clip keep hidden. */
  overflow: clip;
}

/* Large half-circle rising from the bottom */
.hero-section::before {
  content: "";
  position: absolute;
  bottom: 280px;
  width: 1800px;
  height: 100%;
  left: -8%;
  right: -5%;
  border-radius: 50%;
  background-color: var(--color-bg-light);
  pointer-events: none;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Left column */
.hero-content h1 {
  font-size: 40px;
  font-weight: 600;
  color: var(--color-primary-text);
  margin-bottom: 14px;
  line-height: 1.2;
  text-wrap: balance; /* even line lengths - David 2026-10-07 */
}

.hero-subtitle {
  font-size: 16px;
  margin-bottom: 14px;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 0;
}

.hero-features li {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font-size: 16px;
  color: var(--color-text-dark);
  line-height: 1.5;
}

.hero-features li::before {
  content: "";
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231a63e2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 10 8 14 16 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Right column — form card + badge stacked */
.hero-form-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*
 * Desktop alignment (David 2026-10-07), two columns only:
 * - the card's right edge on the navigation's right edge: the card column sits at the end of its grid
 *   cell instead of in its middle, which left it ~45px short of the header;
 * - the hero text centred on the CARD, not on card + trust badge: the badge is taken out of the flow
 *   below the card, and .hero-inner keeps its space (20px gap + 44px avatars) so the section is as tall
 *   as before and nothing below moves.
 */
@media (min-width: 992px) {
  .hero-form-wrap {
    position: relative;
    width: 100%;
    max-width: 440px;
    justify-self: end;
  }

  .hero-form-wrap .hero-badge {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }

  .hero-inner {
    margin-bottom: 64px;
  }
}

.hero-form-card {
  background: var(--color-surface);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 35px;
  width: 100%;
  max-width: 440px;
}

.form-card-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 28px;
  line-height: 1.4;
  text-align: center;
}

/* Floating label form fields */
.form-field-wrap {
  position: relative;
  margin-bottom: 22px;
}

.field-float-label {
  position: absolute;
  top: -9px;
  left: 12px;
  background: var(--color-surface);
  padding: 0 4px;
  font-size: 12px;
  color: var(--color-text-light);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
}

.form-select {
  width: 100%;
  padding: 14px 36px 14px 14px;
  border: 1.5px solid #8a8a8a;   /* P1: field borders at least 3:1 (was 1.62) */
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 17px;
  color: #6b7280;
  background-color: var(--color-surface);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 99, 226, 0.1);
}

/* Multi-select dropdown (document type) */
.multiselect-wrap {
  position: relative;
}

.multiselect-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-body);
  color: #6b7280;
}

.multiselect-trigger[aria-expanded="true"] {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 99, 226, 0.1);
}

.multiselect-required-proxy {
  position: absolute;
  left: 16px;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
  margin: 0;
}

.multiselect-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 4px;
}

.multiselect-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 260px;
  overflow-y: auto;
  z-index: 50;
  padding: 4px 0;
}

.multiselect-wrap.open .multiselect-dropdown {
  display: block;
}

.multiselect-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  cursor: pointer;
  font-size: 15px;
  color: #6b7280;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
  user-select: none;
}

.multiselect-option:hover {
  background-color: var(--color-bg-light);
}

/* Hide native checkbox */
.multiselect-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.multiselect-option span {
  flex: 1;
  line-height: 1.3;
}

/* Checkmark icon — hidden by default */
.multiselect-option::after {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 10px;
}

/* Selected state — blue bg, white text, white checkmark */
.multiselect-option.selected {
  background-color: var(--color-primary);
  color: #fff;
}

.multiselect-option.selected:hover {
  background-color: #1555c7;
}

.multiselect-option.selected::after {
  content: "\2713";
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Narrower selects in language pair row */
.lang-pair-row .form-select {
  padding-right: 28px;
  background-position: right 8px center;
  font-size: 17px;
}

/* Language pair row — contains two .form-field-wrap + arrow */
.lang-pair-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-top: 9px;
  /* offset for floating labels */
}

.lang-pair-row .form-field-wrap {
  margin-bottom: 0;
}

.lang-arrow {
  font-size: 18px;
  color: var(--color-white);
  text-align: center;
}

/* SVG arrow inside button */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
}

.btn-arrow svg {
  display: block;
}

/* Full-width button */
.btn-full {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  font-size: 20px;
  margin-top: 30px;
}

/* Trust badge — below the white card, no background */
.hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.badge-avatars-group {
  display: flex;
  align-items: center;
}

.badge-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--color-bg-light);
  border: 2px solid var(--color-white);
  margin-left: -10px;
  flex-shrink: 0;
}

.badge-avatar-img:first-child {
  margin-left: 0;
}

.badge-avatars-placeholder {
  display: flex;
  align-items: center;
}

.badge-avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--color-white);
  margin-left: -10px;
  overflow: hidden;
}

.badge-avatar-circle:first-child {
  margin-left: 0;
}

.badge-text {
  font-size: 16px;
  color: var(--color-text-gray);
  opacity: 0.85;   /* P1: 6.37 on white (0.6 gave 3.28) */
}

/* =============================================
   INNER PAGE HERO
   ============================================= */
.inner-hero {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 60px 0;
  text-align: center;
}

.inner-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 99, 226, 0.85),
    rgba(3, 3, 26, 0.7)
  );
  z-index: 1;
}

.inner-hero .container {
  position: relative;
  z-index: 2;
}

.inner-hero h1 {
  color: var(--color-white);
  font-size: 36px;
}

/* =============================================
   ORDER FORM SECTION
   ============================================= */
.order-form-section {
  padding: var(--section-padding) 0;
  background-color: var(--color-surface);
  margin-top: -60px;
  position: relative;
  z-index: 3;
}

.order-form-card {
  background-color: var(--color-surface);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.order-form-card h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.form-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-step {
  display: flex;
  align-items: center;
  gap: 15px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.form-step-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-step select,
.form-step input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-dark);
  background-color: var(--color-surface);
  transition: border-color 0.3s ease;
}

.form-step select:focus,
.form-step input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.file-upload-area {
  border: 2px dashed var(--color-border);
  border-radius: var(--card-radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
  margin-top: 20px;
}

.file-upload-area:hover {
  border-color: var(--color-primary);
  background-color: var(--color-bg-light);
}

.file-upload-area p {
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.order-form-card .btn {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  font-size: 18px;
}

.order-form-call-btn {
  display: none;
}

.order-form-divider {
  display: none;
}

@media (max-width: 767px) {
  .order-form-divider {
    display: block;
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 16px 0 0;
  }
  .order-form-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-weight: 400;
  }
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features-section {
  padding: var(--section-padding) 0;
  background-color: var(--color-bg-light);
}

.features-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  color: var(--color-primary-text);
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 14px;
  color: var(--color-text-gray);
}

/* =============================================
   TESTIMONIALS SECTION — Google review card style
   ============================================= */
.testimonials-section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

/* Decorative background circle — right side, behind cards */
.testimonials-section::after {
  content: "";
  position: absolute;
  right: -70px;
  top: 55%;
  transform: translateY(-50%);
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background-color: var(--color-bg-light);
  pointer-events: none;
  z-index: 0;
}

.testimonials-section .container {
  position: relative;
  padding: 30px;
  z-index: 1;
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background-color: var(--color-surface);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* padding: 24px 24px 0; */
  justify-content: space-between;
}

/* Decorative typographic quote icon — large gray " character */
.testimonial-quote-icon {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 80px;
  color: #e4e8f1;
  line-height: 0.75;
  height: 35px;
  overflow: hidden;
  user-select: none;
  margin: 25px 25px 0px 25px;
}

/* Review body text */
.testimonial-text {
  font-size: 16px;
  color: black;
  flex: 1;
  margin: -14px 25px 0px 25px;
}

/* Star rating */
.testimonial-rating {
  display: flex;
  gap: 3px;
  margin: 5px 25px 25px 25px;
}

.star-icon {
  fill: #e0e0e0;
  width: 25px;
  height: 25px;
}

.star-filled {
  fill: #c08a00;   /* P1: icons at least 3:1 on white - #ffd700 gave 1.40, #c08a00 gives 3.05 */
}

/* Blue footer bar */
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-primary);
  /* margin: 0 -24px; */
  padding: 12px 20px;
  margin-top: auto;
}

.google-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--color-surface);
  border-radius: 50%;
  flex-shrink: 0;
}

.google-logo {
  display: block;
}

.reviewer-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;   /* A long name and its date ran together ("Laura von Hinten-Reed26-08-2025"): the date moves under the name */
  gap: 2px 12px;
}

.reviewer-name {
  font-size: 16px;
  color: var(--color-white);
  font-family: var(--font-heading);
  min-width: 0;
  overflow-wrap: anywhere;
}

.review-date {
  font-size: 16px;
  color: #ffffff;   /* P1: 5.35 on the blue bar (75 % white gave 3.71) */
  white-space: nowrap;
}

/* =============================================
   HOW IT WORKS SECTION — 2-column layout
   ============================================= */
.how-it-works-section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

/* Decorative circles live on the image wrap — sit behind the SVG */

.how-it-works-section .container {
  position: relative;
  z-index: 1;
}

.how-it-works-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.how-it-works-content h2 {
  margin-bottom: 20px;
}

.how-it-works-subtitle {
  font-size: 16px;
  color: var(--color-text-gray);
  margin-bottom: 10px;
}

/* Numbered steps list */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-number-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
}

.step-text {
  font-size: 15px;
  color: var(--color-text-dark);
  line-height: 1.5;
}

.step-desc {
  font-size: 13px;
  color: var(--color-text-gray);
  line-height: 1.4;
}

/* Right: decorative image — circles rendered behind via pseudo-elements */
.how-it-works-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.how-it-works-image-wrap::before,
.how-it-works-image-wrap::after {
  display: none;
}

.how-it-works-image-wrap > * {
  position: relative;
  z-index: 1;
}

.how-it-works-img {
  border-radius: 12px;
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: cover;
}

.how-it-works-placeholder {
  width: 100%;
  max-width: 320px;
}

.how-it-works-placeholder svg {
  width: 100%;
  height: auto;
}

/* =============================================
   PRICE CTA SECTION — rounded blue card
   ============================================= */
.price-cta-section {
  padding: var(--section-padding) 0;
  background: linear-gradient(
    to bottom,
    var(--color-surface) 50%,
    var(--color-bg-light) 50%
  );
}

.price-cta-card {
  background-color: var(--color-primary);
  border-radius: 20px;
  padding: 75px 50px;
  text-align: center;
  /* max-width: 780px; */
  /* margin: 0 auto; */
}

/* Avatar group above headline */
.cta-avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.cta-avatars-group {
  justify-content: center;
}

.cta-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--color-bg-light);
  border: 3px solid rgba(255, 255, 255, 0.6);
  margin-left: -10px;
  flex-shrink: 0;
}

.cta-avatar-img:first-child {
  margin-left: 0;
}

.cta-avatars-placeholder {
  align-items: center;
}

.cta-avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
  border: 3px solid rgba(255, 255, 255, 0.6);
  margin-left: -10px;
}

.cta-avatar-circle:first-child {
  margin-left: 0;
}

.price-cta-card h2 {
  color: var(--color-white);
  font-size: 32px;
  margin-bottom: 8px;
}

.price-cta-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin-bottom: 16px;
}

.price-cta-card a {
  font-size: 16px;
  font-weight: 300;
  color: white;
  padding: 6px 12px;
}

/* File upload drag-over state */
.file-upload-area.drag-over {
  border-color: var(--color-primary);
  background-color: var(--color-bg-light);
}

/* =============================================
   UPLOAD PAGE
   ============================================= */

/* Curved hero header — same pattern as page-title-section */
.upload-hero {
  padding: 20px 0 100px;
  text-align: center;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
  overflow: clip; /* same as .hero-section (W1): the form fields live inside, and hidden can scroll */
}

.upload-hero::before {
  content: "";
  position: absolute;
  bottom: 50px;
  width: 1900px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background-color: var(--color-bg-light);
  pointer-events: none;
  z-index: 0;
}

.upload-hero .container {
  position: relative;
  z-index: 1;
}

.upload-step {
  display: inline-block;
  font-size: 14px;
  color: var(--color-primary-light);
  background: #d8ebff;
  padding: 5px 15px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.upload-title {
  /* Same as the homepage headline (.hero-content h1) - David 2026-10-07 */
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary-text);
  font-family: var(--font-heading);
  margin-bottom: 6px;
}

.upload-subtitle {
  font-size: 16px;
  color: var(--color-primary-text);   /* P1: #79a9f9 gave 2.37 on white; 4.97 */
  margin: 0;
}

/* Content area */
.upload-section {
  padding: 0 0 var(--section-padding);
  margin-top: 40px;
  min-height: 50vh;
}

.upload-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

/* Left column — upload area */
.upload-main {
  padding: 0;
}

.upload-dropzone {
  background: var(--color-surface);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
}

.upload-dropzone-inner {
  border: 1px dashed #ddd;
  border-radius: 5px;
  padding: 30px 40px;
  text-align: center;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.upload-dropzone:hover .upload-dropzone-inner {
  border-color: var(--color-primary);
  background-color: rgba(26, 99, 226, 0.02);
}

.upload-dropzone.drag-over .upload-dropzone-inner {
  border-color: var(--color-primary);
  background-color: rgba(26, 99, 226, 0.05);
}

.upload-drag-text {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text-dark);
  margin: 0 0 6px;
}

.upload-or {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}

.upload-browse-btn {
  display: inline-block;
  padding: 10px 16px;
  font-family: var(--font-body); /* a <button> does not inherit it - it rendered in Arial */
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary-light);
  background: transparent;
  border: 1.5px solid var(--color-primary-light);
  border-radius: var(--btn-radius);
  cursor: pointer;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.upload-browse-btn:hover {
  background: var(--color-primary-light);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}

.upload-browse-btn:focus,
.upload-browse-btn:active {
  outline: none;
  box-shadow: none;
}

.upload-accepted {
  font-size: 14px;
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.upload-accepted-icon {
  display: inline-flex;
  align-items: center;
  color: #02182f;
  line-height: 0;
}

.upload-file-input {
  display: none;
}

/* File list — outside the box */
.upload-file-list {
  margin-top: 30px;
  padding: 0;
  text-align: center;
}

.upload-empty {
  font-size: 13px;
  text-align: center;
  margin: 0 auto;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
  max-width: 400px;
}

.upload-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border, #eee);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.upload-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.upload-file-icon {
  flex-shrink: 0;
  color: var(--color-primary-text);
}

.upload-file-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-file-size {
  font-size: 13px;
  color: var(--color-text-light, #999);
  flex-shrink: 0;
  margin-left: 8px;
}

.upload-file-remove {
  background: none;
  border: none;
  color: var(--color-text-light, #999);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  transition:
    color 0.2s,
    background 0.2s;
  flex-shrink: 0;
}

.upload-file-remove:hover {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
}

/* Right column — sidebar */
.upload-sidebar-card {
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(26, 99, 226, 0.1);
  padding: 28px 24px;
}

.upload-sidebar-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 24px;
  text-align: left; /* aligned with the card's content - David 2026-10-07 */
}

.upload-sidebar-section {
  margin-bottom: 20px;
}

.upload-sidebar-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.upload-sidebar-value {
  font-size: 15px;
  color: var(--color-text-light);
  font-weight: 400;
  margin: 0;
}

.upload-lang-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-light);
  vertical-align: middle;
}

.upload-doctype-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.upload-doctype-check {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' width='16' fill='%23434343' height='16'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'%3E%3C/path%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.upload-calculate-btn {
  margin-top: 8px;
}

/* Trust badge */
.upload-trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0 8px;
}

.upload-trust-badge .badge-avatars-group {
  display: flex;
  flex-shrink: 0;
}

.upload-trust-badge .badge-avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

.upload-trust-badge .badge-avatar-img + .badge-avatar-img {
  margin-left: -12px;
}

.upload-trust-text {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.4;
}

.upload-trust-primary {
  font-weight: 500;
  color: var(--color-text-dark);
}

.upload-trust-secondary {
  color: var(--color-text-light);
  font-size: 14px;
}

/* Hide footer on upload page */
body.page-template-page-upload .site-footer {
  display: none;
}

/* Responsive */
@media (max-width: 991px) {
  .upload-inner {
    grid-template-columns: 1fr 320px;
    gap: 24px;
  }

  .upload-hero::before {
    width: 1400px;
  }
}

@media (max-width: 768px) {
  .upload-inner {
    grid-template-columns: 1fr;
  }

  .upload-title {
    font-size: 26px;
  }

  .upload-hero {
    padding-bottom: 70px;
  }

  .upload-hero::before {
    display: none;
  }

  .upload-dropzone {
    padding: 30px 20px;
  }
}

/* =============================================
   CONTENT SECTION (Inner Pages)
   ============================================= */
.content-section {
  padding: var(--section-padding) 0;
}

.content-section .entry-content {
  max-width: 800px;
  margin: 0 auto;
}

.content-section .entry-content h2 {
  font-size: 32px;
  margin-top: 40px;
  margin-bottom: 15px;
}

.content-section .entry-content h3 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 10px;
}

.content-section .entry-content p {
  margin-bottom: 20px;
}

.content-section .entry-content ul,
.content-section .entry-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.content-section .entry-content li {
  margin-bottom: 8px;
  color: var(--color-text-gray);
  list-style: disc;
}

.content-section .entry-content a {
  color: var(--color-text-dark);
  text-decoration: none;
}

.content-section .entry-content a:hover {
  color: var(--color-primary-text);
  text-decoration: underline;
}

/* =============================================
   PAGE TITLE SECTION (FAQ, inner pages without hero image)
   ============================================= */
.page-title-section {
  /* Title centred in its header band (David 2026-10-07): it sat 20px from the top with the empty part
     of the band below it. Same total height (110px), so the content below does not move. */
  padding: 40px 0 70px 0;
  text-align: center;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.page-title-section::before {
  content: "";
  position: absolute;
  bottom: 30px;
  width: 1900px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background-color: var(--color-bg-light);
  pointer-events: none;
  z-index: 0;
}

.page-title-section .container {
  position: relative;
  z-index: 1;
}

.page-title {
  /* Same as the homepage headline (.hero-content h1) - David 2026-10-07 */
  font-size: 40px;
  line-height: 1.2;
  color: var(--color-primary-text);
  font-family: var(--font-heading);
  font-weight: 600;
}

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-section {
  padding: 30px 0 60px;
}

.faq-content {
  max-width: 740px;
  margin: 0 auto;
}

/* =============================================
   ACCORDION (FAQ)
   ============================================= */
.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-dark);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.2s ease;
}

.accordion-header:hover {
  color: var(--color-primary-text);
}

.accordion-item.active .accordion-header {
  color: var(--color-primary-text);
  font-weight: 600;
}

/* + / × toggle icon */
.accordion-arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--color-text-dark);
  transition: color 0.2s ease;
}

.accordion-arrow::before {
  content: "+";
}

.accordion-item.active .accordion-arrow {
  color: var(--color-primary-text);
}

.accordion-item.active .accordion-arrow::before {
  content: "\00d7";
  font-size: 24px;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-body-inner {
  padding: 0 0 20px;
}

.accordion-body-inner p {
  font-size: 16px;
  line-height: 1.7;
  padding: 0px 18px;
}

.accordion-body-inner ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.accordion-body-inner ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-gray);
  list-style: disc;
  margin-bottom: 4px;
}

/* =============================================
   TEAM PAGE
   ============================================= */
/* =============================================
   TEAM PAGE — single centered column layout
   ============================================= */
.team-content-section {
  padding: 60px 0 70px;
  background-color: var(--color-surface);
}

/* Centered column — card matching service/apostille page width */
.team-content-wrap {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  background: var(--color-bg-light);
  border-radius: 12px;
  padding: 48px 56px 48px;
}

/* Decorative quote icon — SVG, top-right corner of card */
.team-quote-icon {
  position: absolute;
  top: -30px;
  right: 60px;
  width: 70px;
  height: 70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' aria-hidden='true' fill='%23dadeef'%3E%3Cpath d='M9.352 4C4.456 7.456 1 13.12 1 19.36c0 5.088 3.072 8.064 6.624 8.064 3.36 0 5.856-2.688 5.856-5.856 0-3.168-2.208-5.472-5.088-5.472-.576 0-1.344.096-1.536.192.48-3.264 3.552-7.104 6.624-9.024L9.352 4zm16.512 0c-4.8 3.456-8.256 9.12-8.256 15.36 0 5.088 3.072 8.064 6.624 8.064 3.264 0 5.856-2.688 5.856-5.856 0-3.168-2.304-5.472-5.184-5.472-.576 0-1.248.096-1.44.192.48-3.264 3.456-7.104 6.528-9.024L25.864 4z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

/* WP editor content inside the team column */
.team-editor-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-top: 0;
  margin-bottom: 12px;
}

.team-editor-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-top: 28px;
  margin-bottom: 8px;
}

.team-editor-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

/* Bullet list — dot style matching live site */
.team-editor-content ul {
  padding-left: 0;
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-editor-content ul li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-dark);
  list-style: none;
  padding-left: 18px;
  position: relative;
}

.team-editor-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-text-dark);
  font-size: 14px;
  line-height: 1.65;
}

/* Team photo — full width within the column, below text */
.team-photo-wrap {
  margin-top: 36px;
}

.team-photo-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.team-photo-placeholder svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* =============================================
   SERVICE PAGE — card layout matching team page
   ============================================= */
.service-content-section {
  padding: 60px 0 70px;
  background-color: var(--color-surface);
}

/* Content card — same style as team page */
.service-content-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  background: var(--color-bg-light);
  border-radius: 12px;
  padding: 35px;
}

/* Editor content typography */
.service-editor-content {
  line-height: 1.75;
  color: var(--color-text-dark);
}

/* Full-width & wide images break out of the 780px card */
.service-editor-content .alignfull,
.service-editor-content .alignfull img,
.service-editor-content figure.alignfull {
  width: calc(100% + 70px);
  max-width: calc(100% + 70px);
  margin-left: -35px;
  margin-right: -35px;
  border-radius: 8px;
  overflow: hidden;
}

.service-editor-content .alignwide,
.service-editor-content figure.alignwide {
  width: 100%;
  max-width: 100%;
}

.service-editor-content .alignfull img,
.service-editor-content .alignwide img,
.service-editor-content figure img {
  width: 100%;
  height: auto;
  display: block;
}

.service-editor-content h2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--color-text-dark);
  margin-bottom: 30px;
}

.service-editor-content h4 {
  font-size: 28px;
  font-weight: 400;
  color: var(--color-text-dark);
  margin-bottom: 8px;
  margin-top: 8px;
}

.service-editor-content h2:first-child {
  margin-top: 0;
}

.service-editor-content h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-top: 24px;
  margin-bottom: 10px;
}

.service-editor-content p,
.service-editor-content > div {
  margin-bottom: 14px;
  color: var(--color-text-dark);
}

.service-editor-content div:empty {
  display: none;
}
.service-editor-content a {
  color: var(--color-text-dark);
  text-decoration: underline;
}

.service-editor-content a:hover {
  color: var(--color-text-dark);
}

/* Bullet list — dot style */
.service-editor-content ul {
  padding-left: 20px;
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-editor-content ul li {
  list-style: none;
  padding-left: 22px;
  position: relative;
  color: var(--color-text-dark);
  line-height: 1.65;
}

.service-editor-content ul li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--color-text-dark);
  font-size: 26px;
  line-height: 1.05;
}

/* Blockquote — blue left border highlight */
.service-editor-content blockquote {
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface);
  margin: 20px 0;
  padding: 16px 20px;
  /* border-radius: 0 6px 6px 0; */
}

.service-editor-content blockquote p {
  margin: 0;
  color: var(--color-text-dark);
  font-style: normal;
}

/* Responsive: team & service */
@media (max-width: 991px) {
  .team-content-wrap {
    max-width: 100%;
    padding: 32px 20px 24px;
  }

  .service-content-inner {
    max-width: 100%;
    padding: 35px;
  }
}

@media (max-width: 767px) {
  .team-content-section,
  .service-content-section {
    padding: 40px 0 50px;
  }

  .team-editor-content h2 {
    font-size: 20px;
  }

  .team-editor-content h3 {
    font-size: 16px;
  }

  .service-editor-content h2 {
    font-size: 20px;
  }

  .service-editor-content h3 {
    font-size: 18px;
  }
}

/* =============================================
   FOOTER — light gray background, 3-column layout
   ============================================= */
.site-footer {
  background-color: var(--color-bg-light);
  padding: 56px 0 0;
}

/* 3-column grid */
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  column-gap: 80px;
  row-gap: 40px;
  padding-bottom: 48px;
  padding-left: 15px;
}

.footer-col--nav {
  margin-left: 20px;
}

/* Column 1: Logo */
.footer-col--logo {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.footer-col--logo .footer-logo img {
  max-width: 300px;
  height: auto;
}

.footer-col--logo .site-title-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text-dark);
}

/* Column 2 & 3: section title */
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}

/* Column 2: Nav links */
.footer-col--nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col--nav a {
  font-size: 16px;
  color: var(--color-text-dark);
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-col--nav a:hover {
  color: var(--color-primary-hover);
  opacity: 0.7;
}

/* Column 3: Contact */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-style: normal;
}

/* Icon + text row */
.footer-contact-row--icon {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #000000;
  text-decoration: none;
}

a.footer-contact-row--link:hover {
  color: var(--color-primary-text);
}

a.footer-contact-row--link:hover .footer-address-line {
  color: var(--color-primary-text);
}

.footer-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #000000;
}

/* Address lines stacked */
.footer-address-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-address-line {
  font-size: 16px;
  color: var(--color-text-gray);
  line-height: 1.5;
}

a.footer-address-line {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

a.footer-address-line:hover {
  color: #0056b3;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 2px solid rgba(0, 0, 0, 0.2);
  margin-top: 60px;
  padding: 20px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8em;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.footer-copyright {
  color: var(--color-text-gray);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-legal a {
  color: var(--color-text-gray);
  text-decoration: underline;
  font-weight: 400;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--color-primary-text);
}

.footer-legal-sep {
  color: var(--color-text-gray);
}

/* =============================================
   404 PAGE
   ============================================= */
.page-404 {
  text-align: center;
  padding: 100px 0;
}

.page-404 h1 {
  font-size: 120px;
  color: var(--color-primary-text);
  margin-bottom: 20px;
}

.page-404 p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* =============================================
   RESPONSIVE - TABLET  (≤ 991px)
   ============================================= */
@media (max-width: 991px) {
  /* --- Typography --- */
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 22px;
  }

  /* --- Header --- */
  .header-inner {
    height: 65px;
  }

  .site-logo img {
    max-width: 260px;
  }

  /* --- Hero --- */
  .hero-section {
    padding: 50px 0 60px;
  }

  .hero-section::before {
    width: 1200px;
    bottom: 200px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-form-card {
    max-width: 100%;
  }

  /* --- Page title section --- */
  .page-title {
    font-size: 32px;
  }

  /* --- Inner page hero --- */
  .inner-hero {
    padding: 50px 0;
  }

  .inner-hero h1 {
    font-size: 30px;
  }

  /* --- Order form (inner page) --- */
  .order-form-card {
    padding: 30px 24px;
  }

  /* --- Features --- */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* --- Testimonials --- */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-section::after {
    width: 320px;
    height: 320px;
    right: 0;
    top: 60%;
  }

  /* --- How it works --- */
  .how-it-works-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how-it-works-image-wrap {
    order: 1;
  }

  .how-it-works-placeholder {
    max-width: 260px;
    margin: 0 auto;
  }

  .how-it-works-image-wrap::before {
    width: 160px;
    height: 160px;
  }

  .how-it-works-image-wrap::after {
    width: 110px;
    height: 110px;
  }

  /* --- Price CTA --- */
  .price-cta-card {
    padding: 40px 30px;
  }

  .price-cta-card h2 {
    font-size: 26px;
    font-weight: 500;
  }

  .price-cta-card p {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.8;
  }

  /* --- Accordion --- */
  .accordion-header {
    font-size: 16px;
  }

  /* --- Content section --- */
  .content-section .entry-content h2 {
    font-size: 26px;
  }

  .content-section .entry-content h3 {
    font-size: 20px;
  }

  /* --- Footer --- */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-col--logo {
    grid-column: 1 / -1;
  }
}

/* =============================================
   RESPONSIVE - MOBILE  (≤ 767px)
   ============================================= */
@media (max-width: 767px) {
  /* --- Global --- */
  :root {
    --section-padding: 35px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 20px;
  }

  /* --- Header / Nav --- */
  .header-inner {
    min-height: 60px;
    height: auto;
    flex-wrap: wrap;
    align-content: center;
  }

  .header-inner .site-logo,
  .header-inner .menu-toggle {
    margin-top: 10px;
    display: flex;
    align-items: center;
  }

  .site-logo img {
    max-width: 250px;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    width: 100%;
    order: 3;
    background-color: var(--color-bg-light);
    padding: 0 24px;
    gap: 0;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.4s ease,
      padding 0.4s ease;
  }

  .main-nav.active {
    max-height: 500px;
    padding: 20px 24px;
  }

  .main-nav a {
    font-size: 16px;
    gap: 8px;
    text-align: left;
    width: 100%;
  }

  .lang-switcher {
    margin-left: 0;
    padding-top: 8px;
  }

  .lang-switcher-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: auto;
  }

  .menu-toggle {
    display: flex;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    padding: 8px 14px;
  }

  .menu-toggle span {
    background-color: var(--color-primary);
  }

  .hero-inner {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
  }

  /* --- Hero --- */
  .hero-section {
    padding: 35px 0 45px;
  }

  .hero-section::before,
  .page-title-section::before {
    width: 160%;
    height: 100%;
    /* bottom: 70%; */
    bottom: 63%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .hero-content h1 {
    font-weight: 550;
    margin: 0px 0 30px;
    font-size: 1.4em;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .hero-features {
    gap: 10px;
  }

  .hero-features li {
    font-size: 14px;
  }

  .hero-form-card {
    padding: 24px 18px 20px;
  }

  .form-card-title {
    font-size: 17px;
    margin-bottom: 18px;
  }

  .form-field-wrap {
    margin-bottom: 16px;
  }

  /* Lang pair: stack vertically on mobile */
  .lang-pair-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
    margin-bottom: 16px;
  }

  .lang-pair-row .form-field-wrap {
    margin-bottom: 16px;
  }

  .lang-arrow {
    display: none;
  }

  .hero-badge {
    margin-top: 14px;
    padding-top: 14px;
  }

  /* --- Inner page hero --- */
  .inner-hero {
    padding: 35px 0;
  }

  .inner-hero h1 {
    font-size: 24px;
  }

  /* --- Order form (inner page) --- */
  .order-form-card {
    padding: 24px 16px;
  }

  .order-form-card h2 {
    font-size: 20px;
  }

  .file-upload-area {
    padding: 24px 16px;
  }

  /* --- Features --- */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-item {
    padding: 20px 16px;
  }

  /* --- Testimonials --- */
  .testimonials-section::after {
    content: "";
    position: absolute;
    left: 40%;
    top: -0px;
    transform: translateY(40px);
    background-repeat: no-repeat;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    pointer-events: none;
    z-index: 0;
  }

  .testimonials-section h2 {
    margin-bottom: 20px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-footer {
    padding: 10px 16px;
  }

  /* --- How it works --- */
  .how-it-works-image-wrap::before,
  .how-it-works-image-wrap::after {
    display: none;
  }

  .how-it-works-content h2 {
    font-size: 24px;
  }

  .how-it-works-subtitle {
    font-size: 16px;
  }

  .step-item {
    gap: 12px;
  }

  .step-number-circle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 13px;
  }

  .step-text {
    font-size: 14px;
  }

  /* --- Price CTA --- */
  .price-cta-section {
    background: var(--color-bg-light);
  }

  .price-cta-card {
    padding: 75px 50px;
    border-radius: 20px;
  }

  /* .price-cta-card h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .price-cta-card p {
        font-size: 15px;
        margin-bottom: 20px;
    } */

  /* --- Page title --- */
  .page-title {
    font-size: 26px;
  }

  /* --- Accordion --- */
  .accordion-header {
    border-top: 1.5px solid var(--color-border);
    font-size: 16px;
    padding: 28px 18px;
    font-weight: 300;
  }

  /* --- Content section --- */
  .content-section .entry-content h2 {
    font-size: 22px;
    margin-top: 28px;
  }

  .content-section .entry-content h3 {
    font-size: 18px;
  }

  /* --- Footer --- */
  .site-footer {
    padding: 35px 0 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 28px;
  }

  .footer-col--logo {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 14px 0;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =============================================
   CONTACT PAGE
   ============================================= */

/* Form section */
.contact-form-section {
  padding: 0px 0 40px;
  background-color: var(--color-surface);
}

.contact-form-card {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(26, 99, 226, 0.07);
}

/* Small triangle on the right side of the card - removed (David 2026-10-07): it pointed at nothing. */
.contact-form-card::after {
  display: none;
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid var(--color-white);
  filter: drop-shadow(2px 0 1px rgba(26, 99, 226, 0.07));
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #eef0f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-avatar-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}

.contact-card-intro {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card-intro strong {
  font-size: 16px;
  color: var(--color-text-dark);
  font-weight: 500;
}

.contact-card-intro span {
  font-size: 16px;
  color: var(--color-text-gray);
  margin-top: 2px;
}

/* Fieldset-style label fields — label always on border */
.contact-field-wrap {
  position: relative;
  margin-bottom: 20px;
}

.contact-input {
  width: 100%;
  padding: 18px 14px 12px;
  border: 1px solid #8a8a8a;   /* P1: field borders at least 3:1 (was 1.47) */
  border-radius: 10px;
  font-size: 17px; /* input text as on the homepage - David 2026-10-07 */
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-surface);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.contact-input:focus {
  border-color: var(--color-primary);
}

.contact-textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-label {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--color-text-light);
  pointer-events: none;
  background: var(--color-surface);
  padding: 0 6px;
}

.contact-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: 16px;
  font-size: 15px;
  text-align: center;
}

.contact-error {
  background-color: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* About us section */
.contact-about-section {
  padding: 30px 15px;
  background-color: var(--color-surface);
}

.contact-about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-about-content h2 {
  font-size: 32px;
  font-weight: 600; /* the other section headings are 600 - David 2026-10-07 */
  color: var(--color-text-dark);
  margin-bottom: 20px;
}

.contact-about-text {
  font-size: 16px;
  color: var(--color-text-gray);
  margin-bottom: 15px;
  line-height: 1.7;
}

.contact-about-text a {
  color: var(--color-text-dark);
  text-decoration: underline;
  font-weight: 500;
}

.contact-about-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--color-text-dark);
  line-height: 1.6;
}

.contact-detail-row a {
  color: var(--color-text-dark);
  text-decoration: underline;
}

.contact-detail-row a:hover {
  color: var(--color-primary-text);
}

.contact-detail-icon {
  color: #555;
  flex-shrink: 0;
  margin-top: 3px;
  width: 20px;
  height: 20px;
}

/* Belgium map */
.contact-map-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-belgium-map {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* Map dot pulse animation */
.map-dot,
.map__core {
  fill: #4a8af4;
  filter: drop-shadow(0 0 3px rgba(74, 138, 244, 0.4));
}

.map-pulse-ring,
.map__radar {
  fill: rgba(74, 138, 244, 0.25);
  transform-box: fill-box;
  transform-origin: center;
  animation: mapPulse 2s ease-out infinite;
}

@keyframes mapPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(4);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .contact-about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-map-wrap {
    order: 1;
  }

  .contact-belgium-map {
    max-width: 300px;
  }

  .contact-form-card {
    padding: 24px 20px;
  }

  .contact-form-card::after {
    display: none;
  }
}

/* R8 (David 2026-10-15, V3): several document types chosen made one long line that stretched the
   widget card to ~690 px on a phone, cutting off the fields, the button and Call me Back. Grid and flex
   children may not shrink below their content by default (min-width: auto), so the label never got to
   its ellipsis. Every box between the hero and the label may now shrink. */
.hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.hero-inner > *,
.hero-form-wrap,
.hero-form-card,
.hero-form-card form,
.multiselect-wrap,
.multiselect-trigger {
  min-width: 0;
  max-width: 100%;
}
.multiselect-label {
  min-width: 0;
  flex: 1 1 auto;
}
@media (max-width: 991px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Tablet header (768-991 px). The burger menu only started at 767 px, so on a tablet in portrait the
   full menu ran past the right edge and the page scrolled sideways (German, Dutch and French menus are
   wider than the screen below ~920 px). The phone header is used up to 991 px; from 992 the menu fits. */
@media (min-width: 768px) and (max-width: 991px) {
  .header-inner {
    min-height: 60px;
    height: auto;
    flex-wrap: wrap;
    align-content: center;
  }

  .header-inner .site-logo,
  .header-inner .menu-toggle {
    margin-top: 10px;
    display: flex;
    align-items: center;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    width: 100%;
    order: 3;
    background-color: var(--color-bg-light);
    padding: 0 24px;
    gap: 0;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.4s ease,
      padding 0.4s ease;
  }

  .main-nav.active {
    max-height: 500px;
    padding: 20px 24px;
  }

  .main-nav a {
    font-size: 16px;
    gap: 8px;
    text-align: left;
    width: 100%;
  }

  .lang-switcher {
    margin-left: 0;
    padding-top: 8px;
  }

  .lang-switcher-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: auto;
  }

  .menu-toggle {
    display: flex;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    padding: 8px 14px;
  }

  .menu-toggle span {
    background-color: var(--color-primary);
  }
}

/* R13 (David 2026-10-15): buttons and titles on phones. */

/* Titles wrap into lines of similar length instead of leaving one word on the last line (V19). */
h1,
h2,
.btn,
.upload-title,
.upload-subtitle,
.page-title,
.tc-confirm-title {
  text-wrap: balance;
}

/* A button's arrow, and a hyphenated word such as "E-Mail", stay on one line. */
.btn-nowrap,
.tc-nowrap {
  white-space: nowrap;
}

/* Buttons that broke over two lines at 320-375 px (V12): smaller text and side padding on phones. */
@media (max-width: 420px) {
  .btn-full {
    font-size: 17px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .upload-browse-btn {
    display: block;
    width: 100%;
    font-size: 15px;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* The price call-to-action card kept 50 px each side: 190 px left for its button at 320. */
  .price-cta-card {
    padding: 56px 20px;
  }

  /* The drop zone padded its button twice (20 px outside + 40 px inside): 168 px left at 320. */
  .upload-dropzone {
    padding-left: 14px;
    padding-right: 14px;
  }

  .upload-dropzone-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* The hero padded its content twice on phones (container 15 px + .hero-inner 15 px), so the quote form
   card was 30 px narrower than every other card. */
@media (max-width: 767px) {
  .hero-inner {
    padding-left: 0;
    padding-right: 0;
  }
}

/* The gap above the quote form's button was ~46 px against 16 px between the fields (V18). */
@media (max-width: 767px) {
  /* RT4 (David 2026-10-19): still 32 px against 16 px between the fields. The second language field
     sits inside .lang-pair-row (a grid), so its own 16 px margin stayed inside the row and the row's
     16 px came on top. The last field in the row drops its margin; the row's margin is the gap. */
  form.order-form .lang-pair-row .form-field-wrap:last-child {
    margin-bottom: 0;
  }

  form.order-form .btn-full {
    margin-top: 0;
  }
}

/* Contact page "About us" at 320 px: the e-mail address (info@beedigdevertalingen.be) is one long word
   and stretched its grid column past the screen. The columns may shrink and the address breaks. */
.contact-about-inner > * {
  min-width: 0;
}

.contact-detail-row a,
.contact-detail-row span {
  overflow-wrap: anywhere;
}

/* RT15 (David 2026-10-19): "Browse your device" filled bright blue when the page opens, white on hover. */
.upload-browse-btn {
  background: var(--color-primary-light);
  color: #fff;
}

.upload-browse-btn:hover,
.upload-browse-btn:focus-visible {
  background: var(--color-surface);
  color: var(--color-primary-light);
}

/* R20-1 (David 2026-10-20): no single word alone on the last line of the trust lines
   ("garantiert", "privacy", "garantie") and the contact card heading ("you.", "répondra."). */
.upload-trust-primary,
.upload-trust-secondary,
.badge-text,
.contact-card-intro strong,
.contact-card-intro span {
    text-wrap: balance;
}

/* R21-2 (David 2026-10-20): at 320 px each trust line broke into single words ("Beveiligde /
   server"). A line is never broken inside; when photos and text do not fit side by side, they
   stack (photos above, text centred under them). */
.upload-trust-badge {
  flex-wrap: wrap;
  row-gap: 8px;
}

.upload-trust-primary,
.upload-trust-secondary {
  white-space: nowrap;
}

@media (max-width: 400px) {
  .upload-trust-badge {
    flex-direction: column;
  }

  .upload-trust-text {
    align-items: center;
    text-align: center;
  }
}

/* R22-2 (David 2026-10-21): the hero trust badge ("Sworn translations since 2008") on the home and
   service pages sat side by side with its photos at 320 px and wrapped to 2-3 lines. On small
   phones it stacks like the upload badge: photos above, text centred under them. */
@media (max-width: 400px) {
  .hero-badge {
    flex-direction: column;
    gap: 8px;
  }

  .hero-badge .badge-text {
    text-align: center;
  }
}

/* R26-5 (David 2026-10-22): at phone width the body-text card (service pages, blog articles, Impressum)
   keeps 20 px inside instead of 35, so its text starts at 35 px from the screen edge, in line with the
   hero checklist, and lines are not cut short. Full-width images still reach the card's edges. */
@media (max-width: 576px) {
  .service-content-inner {
    padding: 20px;
  }

  .service-editor-content .alignfull,
  .service-editor-content .alignfull img,
  .service-editor-content figure.alignfull {
    width: calc(100% + 40px);
    max-width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }
}

/* ==========================================================================
   Polish phase, section B (David 2026-11-02, tested CSS of 2026-10-30)
   ========================================================================== */

/* 2. Header and logo. The logo is sized by its height, so every brand's logo is 28 px tall on desktop
   (beglaubigteubersetzungen.de was 22 px: its file is very wide, and max-width plus width="280" capped it
   - R22-9). Up to 991 px logo and menu button share one row, centred, 12 px above and below; at 320 px
   the button used to drop below the logo (the 10 px margin-top of the max-width:767px rule and the logo's
   max-width). The row still wraps: the opened menu becomes the second row. */
.wp-theme-certified-eu .header-inner .site-logo { flex: 0 1 auto; min-width: 0; margin-right: 24px; }
.wp-theme-certified-eu .header-inner .site-logo img { height: 28px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.wp-theme-certified-eu .header-inner .main-nav { flex-shrink: 0; }
@media (max-width: 991px) {
    .wp-theme-certified-eu .header-inner { padding: 12px 0; align-content: flex-start; }
    .wp-theme-certified-eu .header-inner .site-logo,
    .wp-theme-certified-eu .header-inner .menu-toggle { margin-top: 0; }
    .wp-theme-certified-eu .header-inner .site-logo { flex: 1 1 0%; margin-right: 12px; }
    .wp-theme-certified-eu .header-inner .site-logo img { height: 26px; }
    .wp-theme-certified-eu .header-inner .menu-toggle { flex: 0 0 auto; }
}

/* 3. The bottom CTA put the order card flush against the top of the screen. */
.wp-theme-certified-eu #order-form { scroll-margin-top: 16px; }

/* 5. Review cards on the homepage: the quote mark overlapped the text by 14 px (margin-top:-14px), the text
   and footer started at different edges, and at 768 px the third card sat alone on the left. Now 8 / 12 /
   24 px in every card and the odd last card centred on two columns. */
.wp-theme-certified-eu .testimonial-card .testimonial-quote-icon { margin: 24px 24px 0; height: 32px; line-height: 1; }
.wp-theme-certified-eu .testimonial-card .testimonial-text { margin: 8px 24px 0; flex: 0 0 auto; }
.wp-theme-certified-eu .testimonial-card .testimonial-rating { margin: 12px 24px 24px; }
.wp-theme-certified-eu .testimonial-card .testimonial-footer { padding: 12px 24px; }
@media (min-width: 768px) and (max-width: 991px) {
    .wp-theme-certified-eu .testimonials-grid > .testimonial-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
}

/* ==========================================================================
   Polish phase, W7 / W8 / W13 (David's design review 2026-10-07, PL-V11 / V17 / V30)
   ========================================================================== */

/* P1: the header language arrow shares the class .lang-arrow with the hero's language-pair arrow, whose
   rule made it white - invisible on the light header (1.09:1). It takes the button's colour again. */
.wp-theme-certified-eu .lang-switcher-btn .lang-arrow { color: inherit; }

/* W7: the page you are on is marked in the menu (WordPress gives its item .current-menu-item; the theme
   only styled a.active, which nothing sets). */
.wp-theme-certified-eu .main-nav .current-menu-item > a { color: var(--color-primary-hover); }
.wp-theme-certified-eu .main-nav .current-menu-item > a::after { width: 100%; }

@media (max-width: 991px) {
    /* W7: the opened menu - text on the logo's left edge (was 24 px in), every link a 44 px tap target with
       a thin line between, the current page in the brand colour. */
    .wp-theme-certified-eu .main-nav,
    .wp-theme-certified-eu .main-nav.active { padding-left: 0; padding-right: 0; }
    .wp-theme-certified-eu .main-nav.active { padding-top: 4px; padding-bottom: 16px; max-height: 800px; }   /* 44 px links + the language row need more than the theme's 500 px */
    .wp-theme-certified-eu .main-nav li { width: 100%; }
    .wp-theme-certified-eu .main-nav li > a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 0;
        border-bottom: 1px solid var(--color-border);
        white-space: normal;
    }
    .wp-theme-certified-eu .main-nav li > a::after { display: none; }
    .wp-theme-certified-eu .main-nav .current-menu-item > a { color: var(--color-primary); font-weight: 600; }

    /* W7: the language choice as a labelled row of buttons instead of a 17 x 22 px "NL" that opened an
       unbordered white list. */
    .wp-theme-certified-eu .main-nav .lang-switcher {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding-top: 16px;
    }
    .wp-theme-certified-eu .main-nav .lang-switcher::before {
        content: "Language";
        flex-basis: 100%;
        font-size: 13px;
        color: #4a5d97;   /* P1: 5.83 on #f3f5fb (was 4.50) */
    }
    html[lang^="nl"] .wp-theme-certified-eu .main-nav .lang-switcher::before { content: "Taal"; }
    html[lang^="fr"] .wp-theme-certified-eu .main-nav .lang-switcher::before { content: "Langue"; }
    html[lang^="de"] .wp-theme-certified-eu .main-nav .lang-switcher::before { content: "Sprache"; }
    .wp-theme-certified-eu .main-nav .lang-switcher-btn { display: none; }
    .wp-theme-certified-eu .main-nav .lang-switcher-dropdown {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
        background: none;
    }
    .wp-theme-certified-eu .main-nav .lang-option {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 16px;
        border: 1px solid var(--color-border);
        border-radius: 8px;
        background: var(--color-surface);
        width: auto;   /* the theme's mobile .main-nav a { width: 100% } would stack them */
    }
    .wp-theme-certified-eu .main-nav .lang-option.active {
        border-color: var(--color-primary);
        color: var(--color-primary-text) !important;
        background: var(--color-surface);
    }

    /* W8: the "Go to" column on the logo's and the Contact block's left edge (it sat 20 px in). */
    .wp-theme-certified-eu .footer-col--nav { margin-left: 0; }
}

/* W13 (Certified Translation, Apostille, Team): the decorative quote mark of the text card sits inside the
   card's corner instead of hanging half above it, smaller, and the first heading keeps clear of it. */
.wp-theme-certified-eu .service-content-inner .team-quote-icon,
.wp-theme-certified-eu .team-content-wrap .team-quote-icon { top: 24px; right: 28px; width: 56px; height: 56px; }
.wp-theme-certified-eu .service-editor-content > h2:first-child,
.wp-theme-certified-eu .team-editor-content > h2:first-child { padding-right: 72px; }
@media (max-width: 576px) {
    .wp-theme-certified-eu .service-content-inner .team-quote-icon,
    .wp-theme-certified-eu .team-content-wrap .team-quote-icon { top: 16px; right: 16px; width: 40px; height: 40px; }
    .wp-theme-certified-eu .service-editor-content > h2:first-child,
    .wp-theme-certified-eu .team-editor-content > h2:first-child { padding-right: 52px; }
}

/* Polish P5 / D9-9: the page has its own dark colours (below), so browsers may follow the visitor's setting
   instead of darkening the page themselves (with the meta in header.php). */
:root { color-scheme: light dark; }

/* ==========================================================================
   David's website feedback 2026-11-03 (points 2, 4, 6)
   ========================================================================== */

/* 2. The menu button was 57 x 36 px: at least 44 px high. */
@media (max-width: 991px) {
  .wp-theme-certified-eu .header-inner .menu-toggle { min-height: 44px; min-width: 44px; justify-content: center; }
}

/* 4. Text faded with opacity fell under 4.5:1: the footer's bottom row (opacity 0.6 gave 3.16) gets the muted
   text colour instead (5.13 on the footer); the price card text up to 991 px (opacity 0.8 on 90 % white gave
   3.54 on the blue) stays at 90 % white (4.64). */
.wp-theme-certified-eu .footer-bottom { opacity: 1; }
.wp-theme-certified-eu .footer-copyright,
.wp-theme-certified-eu .footer-legal a,
.wp-theme-certified-eu .footer-legal-sep { color: var(--color-text-light); }
.wp-theme-certified-eu .footer-legal a:hover { color: var(--color-primary); }
@media (max-width: 991px) {
  .wp-theme-certified-eu .price-cta-card p { opacity: 1; }
}

/* 6. Home hero: less room under the team photos (80 px padding plus the content's own margin), and the
   subtitle in shorter, more even lines. */
.wp-theme-certified-eu .hero-section { padding-bottom: 48px; }
.wp-theme-certified-eu .hero-subtitle { max-width: 30em; text-wrap: pretty; }
@media (max-width: 767px) {
  .wp-theme-certified-eu .hero-section { padding-bottom: 45px; }   /* phones keep their own value */
}

/* ==========================================================================
   D9-7 Team member cards (David 2026-11-03): photo, name, role and a short intro per person, as on
   Translations for Europe, in the EU style - 3 / 2 / 1 columns.
   ========================================================================== */
.wp-theme-certified-eu .team-content-section { padding-bottom: 40px; }
.wp-theme-certified-eu .team-members-section { padding: 20px 0 70px; background-color: var(--color-surface); }
.wp-theme-certified-eu .team-members-heading { text-align: center; margin: 0 0 32px; }
.wp-theme-certified-eu .team-members-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--container-width);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.wp-theme-certified-eu .team-member-card {
  margin: 0;
  background: var(--color-bg-light);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.wp-theme-certified-eu .team-member-card__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  border-radius: var(--card-radius);
}
.wp-theme-certified-eu .team-member-card__info { padding-top: 16px; }
.wp-theme-certified-eu .team-member-card__name { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; color: var(--color-text-dark); }
.wp-theme-certified-eu .team-member-card__role { font-size: 16px; color: var(--color-primary-text); margin: 0 0 12px; }
.wp-theme-certified-eu .team-member-card__bio { font-size: 16px; line-height: 1.6; color: var(--color-text-gray); margin: 0; }
@media (max-width: 991px) {
  .wp-theme-certified-eu .team-members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 575px) {
  .wp-theme-certified-eu .team-members-section { padding: 10px 0 50px; }
  .wp-theme-certified-eu .team-members-heading { margin-bottom: 24px; }
  .wp-theme-certified-eu .team-members-grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .wp-theme-certified-eu .team-member-card { padding: 20px; }
}

/* ==========================================================================
   D9-9 Dark mode (David 2026-11-03): when the visitor's device is set to dark, the page follows it with its own
   colours - text at least 4.5:1, borders and icons at least 3:1 (values in the contrast table). Blue and orange
   buttons keep their colours (white text 4.97 / 5.18). The white logos switch in through <picture>.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --color-surface: #0f1522;
    --color-bg-light: #182031;
    --color-bg-gray: #1f2839;
    --color-text-dark: #e8ebf2;
    --color-text-gray: #c5cad5;
    --color-text-light: #a3abbb;
    --color-border: #5d6a85;   /* FAQ item lines and other borders 3.36 (#344058 gave 1.76) */
    --color-primary-text: #8fb4ff;
    --card-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.5);
  }
  body { background-color: var(--color-surface); color: var(--color-text-dark); }
  .main-nav a { color: #c9d4ff; }
  .lang-switcher-btn,
  .wp-theme-certified-eu .main-nav .lang-option { color: #b7c4f2; }
  .form-select,
  .multiselect-trigger,
  .multiselect-option { color: var(--color-text-light); }
  .testimonial-quote-icon { color: #2b3550; }
  .footer-contact-row--icon,
  .footer-icon { color: var(--color-text-dark); }
  a.footer-address-line:hover { color: var(--color-primary-text); }
  .contact-avatar-wrap { background: var(--color-bg-gray); }
  .testimonial-text { color: var(--color-text-dark); }
  a:hover,
  .main-nav a.active,
  .wp-theme-certified-eu .main-nav .current-menu-item > a,
  .footer-col--nav a:hover,
  .upload-browse-btn:hover,
  .upload-browse-btn:focus-visible { color: var(--color-primary-text); }
  .upload-step { color: #cfe0ff; background: #22345a; }
  .btn-outline { color: #fb923c; border-color: #fb923c; }   /* orange as text: 8.06 (#c2410c gave 3.52) */
  .btn-outline:hover { color: var(--color-white); }
  .wp-theme-certified-eu .main-nav .lang-switcher::before { color: var(--color-text-light); }
  .contact-detail-icon { color: var(--color-text-light); }   /* #555 gave 2.45 */
  .contact-map-wrap svg [fill="#DADEEF" i] { fill: #2a3550; }   /* the country map: dark grey-blue, not a white block */
  .contact-map-wrap svg [stroke="#ffffff" i], .contact-map-wrap svg [stroke="#fff" i], .contact-map-wrap svg [stroke="white" i] { stroke: var(--color-surface); }
}

/* David 2026-11-04: the orange button inside the blue price block had no visible edge (1.03:1 against the blue) -
   a white outline marks it, in both colour schemes. */
.wp-theme-certified-eu .price-cta-card .btn { border: 2px solid #ffffff; }

/* ==========================================================================
   David 2026-11-18 - the upload page (step 2) and the order page (step 3) on one layout:
   - The summary card's texts as on the order page: title 20 px / 700 / 24 px line, labels 16 px / 700,
     values 16 px / 400; light #1e293b (title, labels) and #6b7280 (values), dark #e8ebf2 / #a3abbb.
     The e-mail field's label (in its border) keeps its own style.
   - Dark mode: the form card (also the personal quote step's) and the summary card #182031 with the
     order page's black shadow, no light-grey edge. Fields, labels in borders and the price overlay
     inside them take the card's colour.
   ========================================================================== */
body.wp-theme-certified-eu .upload-sidebar-card .upload-sidebar-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: #1e293b;
}
body.wp-theme-certified-eu .upload-sidebar-card .upload-sidebar-section:not(.tc-email) .upload-sidebar-label {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}
body.wp-theme-certified-eu .upload-sidebar-card .upload-sidebar-value,
body.wp-theme-certified-eu .upload-sidebar-card .upload-sidebar-value *,
body.wp-theme-certified-eu .upload-sidebar-card .upload-lang-arrow,
body.wp-theme-certified-eu .upload-sidebar-card .upload-doctype-item {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #6b7280;
}
@media (prefers-color-scheme: dark) {
  body.wp-theme-certified-eu .upload-sidebar-card .upload-sidebar-title,
  body.wp-theme-certified-eu .upload-sidebar-card .upload-sidebar-section:not(.tc-email) .upload-sidebar-label { color: #e8ebf2; }
  body.wp-theme-certified-eu .upload-sidebar-card .upload-sidebar-value,
  body.wp-theme-certified-eu .upload-sidebar-card .upload-sidebar-value *,
  body.wp-theme-certified-eu .upload-sidebar-card .upload-lang-arrow,
  body.wp-theme-certified-eu .upload-sidebar-card .upload-doctype-item { color: #a3abbb; }
  body.wp-theme-certified-eu .upload-dropzone,
  body.wp-theme-certified-eu .tc-step-card,
  body.wp-theme-certified-eu .upload-sidebar-card {
    --color-surface: #182031;
    background: #182031;
    border-color: transparent;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.5);
  }
  body.wp-theme-certified-eu .upload-sidebar-card .tc-waiting { background: rgba(24, 32, 49, 0.94); }
  body.wp-theme-certified-eu .upload-accepted-icon { color: var(--color-text-dark); }   /* the (i) was #02182f on the dark card */
}

/* David 2026-11-19: "Browse your device" in the site's orange outline button (it was the only blue button
   between orange ones); filled orange on hover and focus, as .btn-outline. Dark mode: orange as text
   #fb923c, as the other outline buttons. */
body.wp-theme-certified-eu .upload-browse-btn {
  color: var(--color-orange);
  border: 2px solid var(--color-orange);
  background: transparent;
  box-shadow: none;
  min-height: 44px;   /* a 44 px tap target, as the other fields and buttons (it was 43 px) */
}
body.wp-theme-certified-eu .upload-browse-btn:hover,
body.wp-theme-certified-eu .upload-browse-btn:focus-visible {
  color: var(--color-white);
  background: var(--color-orange);
  border-color: var(--color-orange);
}
@media (prefers-color-scheme: dark) {
  body.wp-theme-certified-eu .upload-browse-btn { color: #fb923c; border-color: #fb923c; }
  body.wp-theme-certified-eu .upload-browse-btn:hover,
  body.wp-theme-certified-eu .upload-browse-btn:focus-visible { color: var(--color-white); background: var(--color-orange); border-color: #fb923c; }
}

/* David 2026-11-24: on the service pages a heading sat closer to the paragraph before it (about 19 px of text
   gap) than to its own text (36 px), so it read as part of the paragraph above. Now 48 px above a heading and
   16 px below it; the first heading of the card starts at the top. Paragraph spacing unchanged (14 px). The
   quote mark is gone from these pages (2026-11-23), so the first heading no longer keeps room for it. */
.wp-theme-certified-eu .service-editor-content h2,
.wp-theme-certified-eu .service-editor-content h3,
.wp-theme-certified-eu .service-editor-content h4 {
  margin-top: 48px;
  margin-bottom: 16px;
}
.wp-theme-certified-eu .service-editor-content > :first-child { margin-top: 0; }
.wp-theme-certified-eu .service-editor-content > h2:first-child { padding-right: 0; }

