/*
Theme Name: Certified Translations US
Theme URI: https://translationsforeurope.com
Author: Certified Translations
Description: Custom lightweight theme for translationsforeurope.com. Modern storytelling design with custom fonts, CSS Grid, and entrance animations.
Version: 1.0.32
Update URI: false
Text Domain: certified-us
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  /* Colors */
  /* P1 colours: cream text on #fe5900 gave 2.99; #c2410c gives 4.89 - the same orange as the EU brands. */
  --color-primary-0: #c2410c;
  --color-primary-1: #fbe0d0;
  --color-secondary-0: #004852;
  --color-secondary-1: #004852;
  --color-secondary-2: #d0e7f2;
  --color-neutral-0: #002429;
  --color-neutral-1: #fbf8f5;
  --color-neutral-2: #f7f1eb;
  --color-neutral-255: #ffffff;

  /* Aliases (used throughout the stylesheet) */
  --color-primary: var(--color-primary-0);
  --color-primary-light: var(--color-primary-1);
  --color-secondary: var(--color-secondary-0);
  --color-secondary-light: var(--color-secondary-2);
  --color-dark: var(--color-neutral-0);
  --color-bg: var(--color-neutral-1);
  --color-white: var(--color-neutral-255);
  --color-accent: #cdf31d;
  /* D9-9 dark mode: cream and teal are also text colours (cream on the orange buttons, teal for most text),
     so the surfaces have tokens of their own - only the dark colour set (end of this file) changes them. */
  --color-surface: var(--color-bg);
  --color-surface-raised: var(--color-white);
  --color-secondary-bg: var(--color-secondary);
  --color-dark-bg: var(--color-dark);

  /* Typography */
  --font-headings: "P22MackinacProBook", Helvetica, sans-serif;
  --font-body-250: "TWKLausanne250", Arial, Helvetica, sans-serif;
  --font-body-650: "TWKLausanne650", Arial, Helvetica, sans-serif;
  --font-heading: var(--font-headings);
  --font-body: var(--font-body-250);
  --font-body-bold: var(--font-body-650);

  /* Spacing */
  --border-radius: 8px;
  --section-padding: 80px;
  --card-padding: 30px;
  --card-radius: 12px;
  --btn-radius: var(--border-radius);
  --grid-margin-mobile: 15px;   /* R26-5: 15 px from the screen edge, as the EU sites (was 2vw = 7.5 px at 375) */
  --grid-margin-desktop: 5vw;
}

/* =============================================
   FONT FACE — Self-Hosted Fonts
   (declared inline via wp_add_inline_style in functions.php
    so URLs resolve against the current site's host and avoid
    cross-origin font requests on multisite)
   ============================================= */

/* =============================================
   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);
  color: var(--color-secondary);
  line-height: 1.4;
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: normal;
  color: var(--color-secondary);
  line-height: 1.1;
}

h1 {
  font-size: 4rem;
  line-height: 1.05em;
}

h2 {
  font-size: 2.625rem;
  line-height: 1.4em;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.3em;
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 15px;
  line-height: 1.4em;
  font-size: 16px;
}

strong,
b {
  font-family: var(--font-body-bold);
}

/* =============================================
   LAYOUT — CSS Grid (not Bootstrap)
   ============================================= */
.container {
  display: grid;
  grid-template-columns: var(--grid-margin-mobile) 1fr var(--grid-margin-mobile);
  width: 100%;
}

.container > * {
  grid-column: 2;
}

.container--full {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .container {
    grid-template-columns: var(--grid-margin-desktop) 1fr var(
        --grid-margin-desktop
      );
  }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body-bold);
  font-size: 15px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

.btn-outline {
  background-color: transparent;
  color: inherit;
}

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

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 2vw;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background-color: var(--color-surface);
  border-radius: 14px;
  padding: 12px 24px;
  max-width: 1400px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 36, 41, 0.12);
}

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

.site-logo .site-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-secondary);
}

/* Main Nav wrapper */
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Nav links group (menu items + lang dropdown) — centered */
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links li {
  list-style: none;
  display: inline;
}

.nav-links a {
  font-family: var(--font-body-bold);
  font-size: 15px;
  color: #000;
  white-space: nowrap;
  text-decoration: none;
}

.nav-links > li > a,
.nav-links > a {
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.nav-links > li > a:hover,
.nav-links > a:hover {
  color: #000;
  border-bottom-color: #000;
}

.nav-links > li.current-menu-item > a,
.nav-links > li.current_page_item > a {
  border-bottom-color: #000;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  margin-left: 4px;
}

.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body-bold);
  font-size: 15px;
  color: var(--color-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.lang-dropdown-toggle:hover {
  color: var(--color-primary);
}

.lang-dropdown-toggle svg {
  transition: transform 0.3s ease;
}

.lang-dropdown.open .lang-dropdown-toggle svg {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-surface-raised);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 36, 41, 0.12);
  min-width: 120px;
  padding: 6px 0;
  z-index: 10;
}

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

.lang-dropdown-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 15px;
  color: var(--color-secondary);
  white-space: nowrap;
  border: none;
}

.lang-dropdown-menu a:hover {
  background-color: var(--color-surface);
}

.lang-dropdown-menu a.active {
  font-family: var(--font-body-bold);
}

/* Header CTA Buttons */
.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
}

.nav-btn-contact {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  font-size: 15px;
  background: unset;
  box-shadow: inset 0px 0px 1px 1.5px var(--color-primary-1);
  color: var(--color-primary);
}

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

.nav-btn-cta {
  padding: 10px 24px;
  font-size: 16px;
}

/* 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-secondary-bg);
  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);
}

/* Mobile Slide-out Panel */
.mobile-panel {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background-color: var(--color-secondary-bg);
  z-index: 1001;
  transition: right 0.3s ease;
  padding: 60px 30px 30px;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.mobile-panel.active {
  right: 0;
}

.mobile-panel li {
  list-style: none;
}

.mobile-panel a {
  color: var(--color-white);
  font-size: 16px;
  font-family: var(--font-body);
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-panel-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
}

/* Mobile Language Switcher */
.lang-switcher-mobile {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.lang-switcher-mobile a {
  font-size: 13px;
  font-family: var(--font-body-bold);
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.6;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: inline-block;
}

.lang-switcher-mobile a:hover,
.lang-switcher-mobile a.active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Mobile CTA Group */
.mobile-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.mobile-cta-group .btn {
  text-align: center;
  width: 100%;
}

.mobile-cta-group .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

.mobile-cta-group .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.mobile-overlay.active {
  display: block;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  min-height: 100vh;
  background-color: var(--color-secondary-light);
  position: relative;
  color: var(--color-secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: calc(2vw + 110px);
}

.hero-grid {
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 45%;
}

.hero-subheading {
  font-family: var(--font-body-bold);
  font-size: 14.4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.hero-section h1 {
  font-size: 4.25rem;
  color: var(--color-secondary);
  margin-bottom: 30px;
  max-width: 75%;
}

.hero-description {
  font-size: 16px;
  margin-bottom: 35px;
  color: var(--color-secondary);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* =============================================
   LEGAL PAGE HERO (Privacy / Terms)
   ============================================= */
.legal-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  overflow: hidden;
}

.legal-hero__content {
  background: var(--color-secondary-light);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.legal-hero__label {
  display: inline-block;
  font-family: var(--font-body-bold);
  font-size: 14.4px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.legal-hero__title {
  font-family: var(--font-heading);
  font-size: 4.25rem;
  line-height: 1.15;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

.legal-hero__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-secondary);
  opacity: 0.8;
  max-width: 520px;
}

.legal-hero__image {
  position: relative;
  overflow: hidden;
}

.legal-hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .legal-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .legal-hero__content {
    padding: 50px 28px;
  }

  .legal-hero__title {
    font-size: 2rem;
  }

  .legal-hero__image {
    min-height: 280px;
  }

  .legal-hero__image img {
    position: static;
    width: 100%;
    height: 280px;
  }
}

/* =============================================
   INNER PAGE HERO
   ============================================= */
.inner-hero {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 60px;
  text-align: center;
}

.inner-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 36, 41, 0.7);
  z-index: 1;
}

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

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

/* =============================================
   TEAM HERO
   ============================================= */
.team-hero {
  overflow: hidden;
  background-color: var(--color-secondary-bg);
}

.team-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  align-items: stretch;
}

.team-hero-content {
  padding: 140px 60px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.team-hero-content .content-subheading {
  color: rgba(255, 255, 255, 0.75);
}

.team-hero-content h1 {
  color: var(--color-white);
  font-size: 4.25rem;
  margin-bottom: 16px;
}

.team-hero__desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.7;
  max-width: 520px;
}

.team-hero-image {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
}

.team-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 80px 40px 0px 0px;
}

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

  .team-hero-content {
    padding: 60px 24px;
    align-items: flex-start;
  }

  .team-hero-image {
    min-height: 280px;
  }

  .team-hero-image img {
    position: relative;
    inset: auto;
    width: 100%;
    height: 280px;
    object-fit: cover;
  }
}

/* =============================================
   TRUST BADGES
   ============================================= */
.trust-badges-section {
  padding: 80px 0;
  background-color: var(--color-surface);
}

.trust-badges-inner {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 40px;
}

.trust-title {
  font-family: var(--font-heading);
  font-size: 2.625rem;
  line-height: 1.2;
  color: var(--color-secondary);
  margin: 0;
}

.trust-badges-grid {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.trust-badge-item {
  flex: 1;
  text-align: center;
}

.trust-badge-item img {
  width: 300px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
  object-fit: contain;
}

.trust-badge-caption {
  font-size: 16px;
  color: var(--color-secondary);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 991px) {
  .trust-badges-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trust-badges-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .trust-badge-item {
    flex: 0 1 calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .trust-title {
    font-size: 2rem;
  }

  .trust-badges-grid {
    /* flex-direction: column; */
    align-items: center;
  }

  .trust-badge-item {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
  }

  .trust-badge-item img {
    width: 200px;
  }
}

/* =============================================
   INFO / WHAT YOU NEED TO KNOW
   ============================================= */
.info-section {
  padding: var(--section-padding) 0;
  background-color: var(--color-secondary-light);
}

/* Subheading style (uppercase label above headings) */
.content-subheading {
  font-family: var(--font-body-bold);
  font-size: 14.4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.info-header {
  text-align: center;
  margin-bottom: 40px;
}

.info-header h2 {
  margin-bottom: 0;
}

/* Two white cards side by side */
.info-cards-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 24px;
  align-items: stretch;
}

.info-card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 40px;
}

.info-card h3 {
  font-family: var(--font-body-bold);
  font-size: 1.15rem;
  color: var(--color-secondary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.info-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-secondary);
}

.info-card ul,
.info-card ol {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-secondary);
  margin: 10px 0;
  padding-left: 20px;
}

.info-card ul {
  list-style: disc;
}

.info-card ol {
  list-style: decimal;
}

.info-card li {
  margin-bottom: 6px;
}

/* Right card: text on left, icons on right */
.info-card-right-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* Icons grid: 3 columns, 2 rows */
.info-icons-grid {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
}

.info-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.info-icon-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon-circle svg {
  width: 100%;
  height: 100%;
  display: block;
}

.info-icon-circle img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.info-icon-item span {
  font-size: 11px;
  font-family: var(--font-body-bold);
  text-transform: uppercase;
  color: var(--color-secondary);
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .info-card-right-inner {
    grid-template-columns: 1fr;
  }
}

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

  .info-icons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================
   DOCUMENT TYPES GRID
   ============================================= */
.doc-types-section {
  padding: var(--section-padding) 0;
  background-color: var(--color-surface-raised);
}

.doc-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.doc-type-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--card-radius);
  transition: transform 0.3s ease;
}

.doc-type-item:hover {
  transform: translateY(-5px);
}

.doc-type-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
}

.doc-type-icon svg {
  width: 100%;
  height: 100%;
}

.doc-type-item h3 {
  font-size: 1.1rem;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works-section {
  padding: var(--section-padding) 0;
  background-color: var(--color-surface);
}

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

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

.hiw-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hiw-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* How it works image composition
   — main photo (.hiw-img-back) is position:relative and drives the container height
   — everything else is layered on top with position:absolute               */
.hiw-image-composition {
  position: relative;
}

/* Colour decoration blocks */
.hiw-deco-block {
  position: absolute;
  border-radius: 16px;
  z-index: 0;
}

.hiw-deco-blue {
  background: var(--color-secondary-light);
  right: 0;
  top: 12%;
  width: 35%;
  bottom: 0;
}

/* Main large photo — position:relative so it sets the container height */
.hiw-img-back {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hiw-img-back img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* Secondary photo — overlaid at right */
.hiw-img-front {
  position: absolute;
  right: 0;
  top: 10%;
  width: 34%;
  z-index: 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.hiw-img-front img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* Quote card */
.hiw-quote-card {
  position: absolute;
  right: 33%;
  top: 5%;
  width: 195px;
  z-index: 5;
  background: var(--color-surface-raised);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.hiw-quote-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-secondary);
  margin-bottom: 12px;
  font-style: italic;
}

.hiw-quote-name {
  display: block;
  font-family: var(--font-body-bold);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 2px;
}

.hiw-quote-role {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .hiw-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hiw-img-front,
  .hiw-deco-blue,
  .hiw-quote-card {
    display: none;
  }
}

/* =============================================
   TESTIMONIALS (Glide.js)
   ============================================= */
.testimonials-section {
  padding: var(--section-padding) 0;
  background-color: var(--color-secondary-bg);
}

/* Centered uppercase label */
.testimonials-label {
  font-family: var(--font-body-bold);
  font-size: 17px;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-white);
  text-align: center;
}

/* Wrapper holds the carousel + side arrows */
.testimonials-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
}

#testimonials-glide {
  width: 68%;
  max-width: 900px;
  position: relative;
}

/* Track — clips non-active slides */
#testimonials-glide .glide__track {
  overflow: hidden;
}

/* Slide — padding gives room for avatar outside the card */
#testimonials-glide .glide__slide {
  padding: 60px 60px 0 0;
}

/* Card */
.testimonial-card {
  background-color: var(--color-secondary-light);
  border-radius: 20px;
  padding: 50px 44px;
  position: relative;
  overflow: visible;
  min-height: 300px;
}

/* Avatar — top-right corner, fully visible */
.testimonial-avatar-wrap {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 148px;
  height: 148px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 72, 82, 0.35);
  z-index: 2;
}

.testimonial-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Name + location at top */
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 20px;
}

.testimonial-name {
  font-family: var(--font-body-bold);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-secondary);
}

.testimonial-location {
  font-size: 16px;
  color: var(--color-secondary);
  opacity: 0.85;   /* P1: 5.59 on the light blue card (0.7 gave 3.89) */
}

/* Large bold quote headline (stored in 'context' field) */
.testimonial-headline {
  font-family: var(--font-body-bold);
  font-size: 1.7rem;
  line-height: 1.3;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

/* Supporting quote text */
.testimonial-text {
  font-family: var(--font-body-bold);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-secondary);
  opacity: 0.85;
  margin: 0;
}

/* Arrows — left & right sides of the card */
.glide__arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 3;
}

.glide__arrow--left {
  transform: translateX(-180px);
}
.glide__arrow--right {
  transform: translateX(180px);
}

.glide__arrow {
  pointer-events: all;
  background: none;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.glide__arrow:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

@media (max-width: 900px) {
  #testimonials-glide {
    width: 88%;
  }

  #testimonials-glide .glide__slide {
    padding: 40px 40px 0 0;
  }

  .testimonial-avatar-wrap {
    top: -30px;
    right: -30px;
    width: 130px;
    height: 130px;
  }

  .testimonial-headline {
    font-size: 1.25rem;
  }
}

/* =============================================
   WHY CHOOSE US
   ============================================= */
.why-choose-section {
  padding: var(--section-padding) 0;
  background-color: var(--color-secondary-light);
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.why-choose-heading {
  padding-right: 20px;
}

.why-choose-heading h2 {
  margin-bottom: 16px;
  font-size: 3rem;
  line-height: 1.2;
}

.why-choose-heading p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

.why-choose-item {
  background-color: var(--color-surface);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.why-choose-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.why-choose-icon svg {
  width: 100%;
  height: 100%;
}

.why-choose-item h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.why-choose-item p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

/* =============================================
   ABOUT / HISTORY
   ============================================= */
.about-section {
  padding: var(--section-padding) 0;
  background-color: var(--color-surface);
}

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

.about-text h2 {
  margin-top: 12px;
  margin-bottom: 20px;
}

.about-text .btn {
  margin-top: 28px;
}

.about-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--card-radius);
  object-fit: cover;
}

/* =============================================
   QUOTE FORM
   ============================================= */
.quote-form-section {
  padding: var(--section-padding) 0;
  background-color: var(--color-secondary-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1447' height='512' viewBox='0 0 1447 512' fill='none'%3E%3Cpath d='M-171.997 81.9304C-131.837 147.856 -58.1278 179.184 5.16638 195.884C37.053 204.297 69.6921 210.078 102.616 211.951C125.039 213.227 147.565 212.687 169.901 210.34C219.915 205.083 270.416 189.904 308.692 157.275C346.968 124.646 402.928 25.1007 357.594 3.32494C322.711 -13.4309 270.915 63.657 259.026 129.384C247.003 195.851 262.956 264.173 296.052 323.047C412.42 530.049 735 513 807 508C879 503 1131.88 504.171 1375 211.951' stroke='%23CDF31D' stroke-width='1.5' stroke-miterlimit='10'/%3E%3Cpath d='M1445.75 129L1397.38 164.768V181.55L1414.82 174.916' stroke='%23CDF31D' stroke-width='1.5' stroke-miterlimit='10'/%3E%3Cpath d='M1397.38 164.768L1375 151.645L1445.75 129V192.998L1407.45 170.61' stroke='%23CDF31D' stroke-width='1.5' stroke-miterlimit='10'/%3E%3Cpath d='M1445.75 129L1397.38 181.55' stroke='%23CDF31D' stroke-width='1.5' stroke-miterlimit='10'/%3E%3C/svg%3E");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: left center;
  position: relative;
  overflow: hidden;
}

.quote-form-title {
  text-align: center;
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.quote-form-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.quote-form-card {
  background-color: var(--color-secondary-bg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--card-radius);
  padding: 36px 28px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 0 11px #283638;
  position: relative;
  z-index: 1;
}

/* Outlined floating-label form fields inside dark card */
.quote-form-card .form-group {
  position: relative;
  margin-bottom: 22px;
}

.quote-form-card .form-group label {
  position: absolute;
  top: -9px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-body-bold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background: var(--color-secondary-bg);
  padding: 0 5px;
  line-height: 1;
  pointer-events: none;
}

.quote-form-card .form-group select,
.quote-form-card .form-group input[type="text"],
.quote-form-card .form-group input[type="email"] {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-white);
  background-color: var(--color-secondary-bg);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.quote-form-card .form-group select:focus,
.quote-form-card .form-group input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.55);
}

.quote-form-card .form-group select option {
  background-color: var(--color-secondary-bg);
  color: var(--color-white);
}

/* Two-column language row */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Submit button */
.quote-form-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* Support link */
.quote-form-support {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.quote-form-support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.quote-form-support a {
  color: var(--color-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Legacy form styles (contact page, etc.) */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-family: var(--font-body-bold);
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--color-secondary);
}

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

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

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

.file-upload-area svg {
  color: var(--color-secondary);
  opacity: 0.5;
  margin: 0 auto 10px;
  display: block;
}

.file-upload-text {
  font-size: 15px;
  color: var(--color-secondary);
  margin-bottom: 5px;
}

.file-upload-hint {
  font-size: 12px;
  color: var(--color-secondary);
  opacity: 0.5;
}

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

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background-color: var(--color-secondary-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1447' height='512' viewBox='0 0 1447 512' fill='none'%3E%3Cpath d='M-171.997 81.9304C-131.837 147.856 -58.1278 179.184 5.16638 195.884C37.053 204.297 69.6921 210.078 102.616 211.951C125.039 213.227 147.565 212.687 169.901 210.34C219.915 205.083 270.416 189.904 308.692 157.275C346.968 124.646 402.928 25.1007 357.594 3.32494C322.711 -13.4309 270.915 63.657 259.026 129.384C247.003 195.851 262.956 264.173 296.052 323.047C412.42 530.049 735 513 807 508C879 503 1131.88 504.171 1375 211.951' stroke='%23CDF31D' stroke-width='1.5' stroke-miterlimit='10'/%3E%3Cpath d='M1445.75 129L1397.38 164.768V181.55L1414.82 174.916' stroke='%23CDF31D' stroke-width='1.5' stroke-miterlimit='10'/%3E%3Cpath d='M1397.38 164.768L1375 151.645L1445.75 129V192.998L1407.45 170.61' stroke='%23CDF31D' stroke-width='1.5' stroke-miterlimit='10'/%3E%3Cpath d='M1445.75 129L1397.38 181.55' stroke='%23CDF31D' stroke-width='1.5' stroke-miterlimit='10'/%3E%3C/svg%3E");
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: 0 10%;
  color: var(--color-white);
  padding: 10vw 0 2vw;
  position: relative;
}

.site-footer .container {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Quote Form in Footer */
.footer-quote-form {
  text-align: center;
  margin-bottom: 50px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-quote-form h2 {
  color: var(--color-white);
  font-size: 2.625rem;
  max-width: 520px;
  margin: auto;
  margin-bottom: 10px;
}

.footer-quote-subtitle {
  margin-bottom: 30px;
}

.footer-form-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--color-secondary-bg);
  box-shadow: 0 0 11px #283638;
  border-radius: 12px;
  padding: 40px 35px;
}

/* Fieldset-legend style form groups */
.footer-form .form-group {
  position: relative;
  margin-bottom: 20px;
  border: 2px solid white;
  border-radius: var(--btn-radius);
  padding: 0;
}

.footer-form .form-group label {
  position: absolute;
  top: -8px;
  left: 12px;
  background-color: var(--color-secondary-bg);
  padding: 0 6px;
  color: var(--color-white);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0;
  z-index: 1;
  line-height: 1;
}

.footer-form .form-group select {
  background-color: var(--color-secondary-bg);
  border: none;
  color: #ffffff;
  padding: 14px 40px 14px 15px;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.footer-form .form-group select:focus {
  outline: none;
  border: none;
}

.footer-form .form-group select option {
  background-color: var(--color-secondary-bg);
  color: #ffffff;
}

.footer-form .form-group select option:hover,
.footer-form .form-group select option:checked {
  background-color: var(--color-primary);
  color: #ffffff;
}

.footer-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.footer-form-row .form-group {
  margin-bottom: 20px;
}

.footer-form-btn {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  margin-top: 14px;
  border-radius: var(--btn-radius);
}

.footer-form-support {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  font-size: 11px;
  font-family: var(--font-body-bold);
  color: var(--color-white);
}

.footer-form-support svg {
  flex-shrink: 0;
}

.footer-form-support a {
  color: var(--color-white);
  text-decoration: underline;
  font-family: var(--font-body-bold);
}

/* Footer Links Card (light bg) */
.footer-links-card {
  background-color: var(--color-surface);
  border-radius: 16px;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-links-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 30px;
}

.footer-info .footer-logo img {
  max-width: 104px;
}

.footer-links h4 {
  color: var(--color-secondary);
  font-family: var(--font-body-bold);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--color-secondary);
  font-size: 17px;
  transition: color 0.3s ease;
}

.footer-contact a {
  color: var(--color-secondary);
  font-size: 17px;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  text-decoration: underline;
}

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

.footer-contact h4 {
  color: var(--color-secondary);
  font-family: var(--font-body-bold);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.footer-contact p {
  font-size: 17px;
  color: var(--color-secondary);
  line-height: 1.5;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(0, 72, 82, 0.1);
  padding: 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-secondary);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--color-secondary);
  font-size: 12px;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.footer-rights {
  opacity: 0.8;   /* P1: 5.68 on the cream footer (0.5 gave 2.66) */
}

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

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

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

.content-section .entry-content h3 {
  font-size: 1.4rem;
  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;
  list-style: disc;
}

/* Sticky Sidebar (Blog/Resources) */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.sidebar {
  position: sticky;
  top: 10vh;
  align-self: start;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-form-section {
  padding: 80px 0;
  background: var(--color-neutral-2);
}

.contact-form-card {
  background: var(--color-surface);
  border-radius: 16px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  padding: 48px;
  max-width: 760px;
  margin: 0 auto;
}

/* Two-column row for name + email */
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Floating-label field */
.cf-field {
  position: relative;
  margin-bottom: 20px;
}

.cf-field:last-of-type {
  margin-bottom: 0;
}

.cf-field label {
  position: absolute;
  top: -9px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-body-bold);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  background: var(--color-surface-raised);
  padding: 0 5px;
  line-height: 1;
  pointer-events: none;
}

.contact-form-row .cf-field {
  margin-bottom: 0;
}

.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-secondary);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-secondary);
  background: var(--color-surface);
  transition: border-color 0.2s;
  resize: none;
}

.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-consent {
  font-size: 14px;
  color: var(--color-secondary);
  line-height: 1.6;
  margin-top: 20px;
  margin-bottom: 24px;
}

.contact-consent a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.contact-form-btn {
  padding: 16px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Written by the quote widget when a message is sent, or cannot be. Same colours as certified-eu,
   in this theme's own body font. */
.contact-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 15px;
  text-align: center;
}

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

@media (max-width: 600px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }

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

/* =============================================
   TEAM / ABOUT US PAGE
   ============================================= */

/* Hero enhancements */
.inner-hero__subheading {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0.85;
}

.inner-hero__desc {
  max-width: 700px;
  margin-top: 15px;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Trust Badges */
.team-badges-section {
  padding: 50px 0;
  background-color: var(--bg-light);
}

.team-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.team-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.team-badge img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.team-badge p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-secondary);
}

@media (max-width: 768px) {
  .team-badges {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Split layout for About & Mission */
/* About Section — full-bleed two-column */
.team-about-section {
  overflow: hidden;
}

.team-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  align-items: stretch;
}

.team-about-image {
  overflow: hidden;
  min-height: 400px;
}

.team-about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}

.team-about-content {
  background-color: var(--color-secondary-light);
  padding: 80px 80px 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-about-content h2 {
  color: var(--color-secondary);
  font-size: 42.5px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.team-about-text {
  font-size: 16px;
  line-height: 1.4em;
  color: var(--color-secondary);
}

.team-about-text p + p {
  margin-top: 16px;
}

/* Mission Section — full-bleed two-column */
.team-mission-section {
  overflow: hidden;
}

.team-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  align-items: stretch;
}

.team-mission-content {
  background-color: var(--color-surface);
  padding: 80px 60px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-mission-content h2 {
  color: var(--color-secondary);
  font-size: 42.5;
  margin-bottom: 20px;
  line-height: 1.2;
}

.team-mission-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-secondary);
}

.team-mission-text p + p {
  margin-top: 16px;
}

.team-mission-image {
  overflow: hidden;
  min-height: 400px;
}

.team-mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}

/* Location split (container-based) */
.team-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.team-split__content h2 {
  margin-bottom: 20px;
}

.team-mission-text p + p {
  margin-top: 15px;
}

.team-split__image img {
  width: 100%;
  border-radius: var(--card-radius);
}

@media (max-width: 768px) {
  .team-about-grid,
  .team-mission-grid,
  .team-location-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .team-about-content,
  .team-mission-content,
  .team-location-content {
    padding: 50px 24px;
  }

  .team-location-image {
    min-height: 280px;
  }

  .team-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Team Members */
.team-members-section {
  padding: 80px 0;
  background-color: var(--color-neutral-2);
}

.team-members-header {
  text-align: center;
  margin-bottom: 14px;
}

.team-members-header h2 {
  font-size: clamp(1.8rem, 2.63vw, 2.625rem);
  color: var(--color-secondary);
  margin-top: 10px;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-member-card {
  background: var(--color-surface);
  border-radius: var(--card-radius);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  padding: 28px;
}

.team-member-card__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: var(--card-radius);
}

.team-member-card__info {
  padding: 14px 0 6px;
}

.team-member-card__info h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--color-secondary);
}

.team-member-card__role {
  display: block;
  font-size: 1rem;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.team-member-card__info p {
  font-size: 1rem;
  line-height: 1.4em;
  color: var(--color-text);
}

@media (max-width: 991px) {
  .team-members-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .team-members-grid {
    grid-template-columns: 1fr;
  }
}

/* Why Choose Us (Team page) */
.team-why-section {
  padding: 60px 0;
  background-color: var(--color-secondary-bg);
  color: #fff;
}

.team-why-heading {
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
}

.team-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-why-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
  padding: 30px;
}

.team-why-card h3 {
  color: var(--color-primary);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.team-why-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .team-why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* -- Location -- */
.team-location-section {
  overflow: hidden;
}

.team-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  align-items: stretch;
}

.team-location-content {
  background-color: var(--color-surface);
  padding: 80px 60px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-location-content h2 {
  color: var(--color-secondary);
  font-size: clamp(1.8rem, 2.9vw, 2.625rem);
  margin-bottom: 16px;
}

.team-location-text {
  line-height: 1.7;
  color: var(--color-secondary);
}

.team-location-detail {
  margin-top: 20px;
}

.team-location-detail__label {
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 4px;
}

.team-location-address a,
.team-location-email a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color 0.3s;
}

.team-location-address a:hover,
.team-location-email a:hover {
  color: var(--color-primary);
}

.team-location-image {
  overflow: hidden;
  min-height: 400px;
}

.team-location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}

/* -- Team CTA -- */
.team-cta-section {
  padding: 60px 0;
}

.team-cta-inner {
  background-color: var(--color-secondary-bg);
  color: var(--color-white);
  border-radius: var(--card-radius, 12px);
  padding: 50px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.team-cta-inner h3 {
  color: var(--color-white);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.team-cta-inner p {
  opacity: 0.9;
  max-width: 550px;
}

@media (max-width: 768px) {
  .team-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 25px;
  }
}

/* =============================================
   HOW IT WORKS PAGE
   ============================================= */

/* -- Hero -- */
.hiw-hero {
  background-color: var(--color-neutral-2);
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hiw-hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 40px;
  align-items: center;
}

.hiw-hero-content h1 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.hiw-hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-light);
}

/* -- Steps -- */
.hiw-steps-section {
  background-color: var(--color-secondary-light);
  padding: var(--section-padding) 0;
}

.hiw-steps-section .content-subheading,
.hiw-steps-section h2 {
  text-align: center;
}

.hiw-steps-section h2 {
  margin-bottom: 50px;
  color: var(--color-secondary);
}

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

.hiw-step-card {
  background: var(--color-surface);
  border-radius: var(--card-radius);
  padding: 32px 28px;
}

.hiw-step-icon {
  width: 130px;
  height: 130px;
  margin-bottom: 24px;
}

.hiw-step-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hiw-step-icon img {
  max-width: 100%;
  height: auto;
  max-height: 160px;
  display: block;
}

.hiw-step-card .hiw-step-label {
  font-family: var(--font-body-bold);
  font-size: 22px;
  color: var(--color-secondary);
}

.hiw-step-card h3 {
  font-size: 1.375rem;
  font-family: var(--font-body-bold);
  color: var(--color-secondary);
  margin-bottom: 12px;
  line-height: 1.35;
}

.hiw-step-card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-secondary);
  margin: 0;
}

/* -- CTA Banner -- */
.hiw-cta-banner {
  background-color: var(--color-secondary-light);
  padding: 0 0 60px;
}

.hiw-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(
    135deg,
    var(--color-secondary-2),
    var(--color-primary-1)
  );
  border-radius: var(--card-radius);
  box-shadow: 0 0 5px rgb(162 193 208);
  padding: 30px 36px;
}

.hiw-cta-inner h3 {
  color: var(--color-secondary);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.hiw-cta-inner p {
  color: var(--color-secondary);
  font-size: 16px;
  margin: 0;
}

.btn-white {
  background-color: var(--color-surface-raised);
  color: var(--color-primary);
  padding: 12px 30px;
  border-radius: var(--btn-radius);
  font-family: var(--font-body-bold);
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-white:hover {
  opacity: 0.9;
}

/* -- What is a sworn translation -- */
.hiw-what-section {
  background-color: var(--color-neutral-2);
  overflow: hidden;
}

.hiw-what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.hiw-what-image {
  position: relative;
}

.hiw-what-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hiw-what-content {
  padding: var(--section-padding) 60px var(--section-padding) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hiw-what-content h2 {
  margin-bottom: 20px;
  font-size: 2.625rem;
}

.hiw-what-text p {
  margin-bottom: 16px;
  line-height: 1,4em;
  font-size: 16px;
}

/* -- When do you need -- */
.hiw-when-section {
  background-color: var(--color-secondary-light);
  padding: var(--section-padding) 0;
}

.hiw-when-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hiw-when-content h2 {
  margin-bottom: 20px;
  font-size: 2.625rem;
  line-height: 1.2;
}

.hiw-when-text p {
  margin-bottom: 12px;
  line-height: 1.4em;
  font-size: 16px;
}

.hiw-when-text ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.hiw-when-text li {
  margin-bottom: 2px;
  list-style: disc;
  font-size: 16px;
  line-height: 1.4em;
}

.hiw-when-icons-card {
  background-color: var(--color-surface);
  border-radius: var(--card-radius);
  padding: 36px 28px;
}

.hiw-when-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 16px;
}

.hiw-when-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.hiw-when-icon-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.hiw-when-icon-circle svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hiw-when-icon-item span {
  font-size: 8px;
  font-family: var(--font-body-bold);
  text-transform: uppercase;
  padding: 0px 20px;
  letter-spacing: 0.5px;
  color: var(--color-secondary);
  line-height: 1.3;
}

.hiw-when-footer {
  margin-top: 40px;
}

.hiw-when-footer p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* -- FAQ CTA Banner -- */
.hiw-faq-cta {
  background-color: var(--color-secondary-light);
  padding: 100px 20px;
}

.hiw-faq-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(
    135deg,
    var(--color-secondary-2),
    var(--color-primary-1)
  );
  border-radius: var(--card-radius);
  box-shadow: 0 0 5px rgb(162 193 208);
  padding: 30px 36px;
}

.hiw-faq-inner h3 {
  color: var(--color-secondary);
  font-size: 22.4px;
  font-weight: 600;
  margin-bottom: 6px;
}

.hiw-faq-inner p {
  color: var(--color-secondary);
  font-size: 16px;
  margin: 0;
}

/* -- HIW Page Responsive -- */
@media (max-width: 768px) {
  .hiw-hero {
    padding: 100px 0 40px;
  }

  .hiw-hero-grid,
  .hiw-when-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hiw-what-grid {
    grid-template-columns: 1fr;
  }

  .hiw-what-image {
    min-height: 280px;
    position: relative;
  }

  .hiw-what-content {
    padding: 40px 24px;
  }

  .hiw-hero-content h1 {
    font-size: 2.2rem;
  }

  .hiw-steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hiw-cta-inner,
  .hiw-faq-inner {
    flex-direction: column;
    text-align: center;
  }

  .hiw-when-icons {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 10px;
  }

  .hiw-when-icon-circle {
    width: 70px;
    height: 70px;
  }
}

/* =============================================
   CONTACT PAGE HERO
   ============================================= */
.contact-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  overflow: hidden;
}

.contact-hero__content {
  background: var(--color-secondary-light);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-hero__label {
  display: inline-block;
  font-family: var(--font-body-bold);
  font-size: 14.4px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.contact-hero__title {
  font-family: var(--font-heading);
  font-size: 4.25rem;
  line-height: 1.15;
  color: var(--color-secondary);
  margin-bottom: 14px;
  max-width: 70%;
}

.contact-hero__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-secondary);
  max-width: 520px;
  margin-bottom: 20px;
}

.contact-hero__btn {
  align-self: flex-start;
}

.contact-hero__image {
  position: relative;
  overflow: hidden;
}

.contact-hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .contact-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .contact-hero__content {
    padding: 50px 28px;
  }

  .contact-hero__title {
    font-size: 2rem;
  }

  .contact-hero__image {
    min-height: 280px;
  }

  .contact-hero__image img {
    position: static;
    width: 100%;
    height: 280px;
  }
}

/* =============================================
   CONTACT ABOUT SECTION
   ============================================= */
.contact-about-section {
  padding: 80px 0;
  background: var(--color-surface-raised);
}

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

.contact-about-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

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

.contact-about-text a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.contact-detail-block {
  margin-top: 24px;
}

.contact-detail-block__label {
  font-family: var(--font-body-bold);
  color: var(--color-secondary);
  margin-bottom: 4px;
}

.contact-detail-block a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color 0.3s;
}

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

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

.contact-map-wrap img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 12px;
}

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

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

/* =============================================
   LEGAL CONTENT SECTIONS (Privacy / Terms)
   ============================================= */
.legal-content-section {
  padding: 80px 0;
  background: var(--color-surface);
}

.legal-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 60px;
  align-items: start;
}

/* Sticky TOC sidebar */
.legal-sidebar {
  position: sticky;
  top: calc(4vw + 110px);
}

.legal-sidebar__label {
  font-family: var(--font-body-bold);
  font-size: 12.8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.legal-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-sidebar__link {
  font-size: 12.8px;
  font-family: var(--font-body-bold);
  color: var(--color-secondary);
  text-decoration: none;
  padding: 4px 0;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.legal-sidebar__link:hover,
.legal-sidebar__link.active {
  color: var(--color-primary);
}

/* Section + card */
.legal-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal-section {
  scroll-margin-top: calc(4vw + 110px);
}

.legal-section__title {
  font-family: var(--font-body-bold);
  font-size: 25.6px;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.legal-section__card {
  background: var(--color-surface);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  border-radius: var(--card-radius);
  padding: 32px 36px;
}

.legal-section__card p {
  font-size: 16px;
  line-height: 1.4em;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.legal-section__card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .legal-sidebar__link {
    background: var(--color-surface-raised);
    border: 1px solid rgba(0, 72, 82, 0.15);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
  }
}

/* =============================================
   RESOURCES PAGE
   ============================================= */
.resources-description {
  font-size: 17px;
  max-width: 700px;
  margin-bottom: 40px;
  opacity: 0.8;
}

.resources-articles {
  padding: 0 0 var(--section-padding);
}

.resources-articles .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* --- Resource Hero (first article — full-bleed) --- */
.resource-hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  overflow: hidden;
}

.resource-hero-card__content {
  background: var(--color-secondary-bg);
  color: var(--color-white);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.resource-hero-card__title {
  font-family: var(--font-heading);
  font-size: 4.25rem;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 24px;
}

.resource-hero-card__desc {
  font-size: 16px;
  line-height: 1.4em;
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 520px;
}

.resource-hero-card__image {
  position: relative;
  overflow: hidden;
}

.resource-hero-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .resource-hero-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .resource-hero-card__content {
    padding: 50px 28px;
  }

  .resource-hero-card__title {
    font-size: 2rem;
  }

  .resource-hero-card__image {
    min-height: 280px;
  }

  .resource-hero-card__image img {
    position: static;
    width: 100%;
    height: 280px;
  }
}

/* --- Resource Card --- */
.resource-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.resource-card--reverse {
  direction: rtl;
}

.resource-card--reverse > * {
  direction: ltr;
}

.resource-card__content {
  background: var(--color-secondary-bg);
  color: var(--color-white);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.resource-card__label {
  display: inline-block;
  font-family: var(--font-body-bold);
  font-size: 14.4px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.resource-card__title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 20px;
}

.resource-card__desc {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 28px;
}

.resource-card__link {
  display: inline-block;
  font-family: var(--font-body-bold);
  font-size: 16px;
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.resource-card__link:hover {
  color: var(--color-white);
}

.resource-card__image {
  overflow: hidden;
}

.resource-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .resource-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .resource-card--reverse {
    direction: ltr;
  }

  .resource-card__content {
    padding: 40px 28px;
  }

  .resource-card__title {
    font-size: 1.8rem;
  }

  .resource-card__image {
    min-height: 260px;
  }
}

/* --- Resource Grid (3-column cards) --- */
.resources-grid-section {
  padding: 80px 0 var(--section-padding);
}

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

.resource-grid-card {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  background: var(--color-surface);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.resource-grid-card__image {
  overflow: hidden;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  aspect-ratio: 4 / 3;
}

.resource-grid-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.resource-grid-card:hover .resource-grid-card__image img {
  transform: scale(1.03);
}

.resource-grid-card__body {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.resource-grid-card__title {
  font-family: var(--font-body-bold);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.resource-grid-card__desc {
  font-size: 16px;
  line-height: 1.4em;
  color: var(--color-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.resource-grid-card__link {
  display: inline-block;
  font-family: var(--font-body-bold);
  font-size: 16px;
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.resource-grid-card__link:hover {
  color: var(--color-primary);
}

@media (max-width: 991px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
}

.resources-cta-section {
  padding: 60px 0;
}

.resources-cta-inner {
  background-color: var(--color-secondary-bg);
  color: var(--color-white);
  border-radius: var(--card-radius, 12px);
  padding: 50px 40px;
  text-align: center;
}

.resources-cta-inner h3 {
  color: var(--color-white);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.resources-cta-inner p {
  opacity: 0.9;
  max-width: 550px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .resources-cta-inner {
    padding: 40px 25px;
  }
}

/* =============================================
   RESOURCE DETAIL PAGE
   ============================================= */

/* --- Hero --- */
.rd-hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.rd-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.rd-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: 60px;
  width: 100%;
}

.rd-hero__title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  line-height: 1.15;
  color: var(--color-white);
  max-width: 700px;
}

/* --- Content Layout --- */
.rd-content-section {
  padding: var(--section-padding) 0;
  background: var(--color-surface);
}

.rd-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 50px;
  align-items: start;
}

/* --- Body Content --- */
.rd-body {
  min-width: 0;
}

.rd-body h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1.3;
  color: var(--color-secondary);
  margin-top: 48px;
  margin-bottom: 16px;
}

.rd-body h2:first-child {
  margin-top: 0;
}

.rd-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-top: 36px;
  margin-bottom: 12px;
}

.rd-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.rd-body strong {
  font-family: var(--font-body-bold);
}

.rd-body em {
  font-style: italic;
}

.rd-body ul {
  margin: 16px 0 20px 24px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-secondary);
  list-style: disc !important;
}

.rd-body li > ul {
  margin-top: 8px;
  margin-bottom: 0;
}

.rd-body ol {
  margin: 16px 0 20px 24px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-secondary);
  list-style: decimal;
}

.rd-body li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.rd-body a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd-body a:hover {
  color: var(--color-secondary);
}

.rd-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--color-neutral-2);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  font-style: italic;
}

/* --- Sticky Author Sidebar --- */
.rd-sidebar {
  position: sticky;
  top: calc(4vw + 110px);
}

.rd-author-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rd-author-card__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.rd-author-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rd-author-card__name {
  font-family: var(--font-body-bold);
  font-size: 16px;
  color: var(--color-secondary);
}

.rd-author-card__role {
  font-size: 16px;
  color: var(--color-secondary);
}

/* --- Related Article Card --- */
.rd-related {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 72, 82, 0.15);
}

.rd-related__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.rd-related__label {
  font-family: var(--font-body-bold);
  font-size: 16px;
  color: var(--color-secondary);
}

.rd-related__viewall {
  font-size: 16px;
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd-related__viewall:hover {
  color: var(--color-secondary);
}

.rd-related-card {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  background: var(--color-surface);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rd-related-card__image {
  overflow: hidden;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  aspect-ratio: 4 / 3;
}

.rd-related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rd-related-card:hover .rd-related-card__image img {
  transform: scale(1.03);
}

.rd-related-card__body {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rd-related-card__title {
  font-family: var(--font-body-bold);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.rd-related-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-secondary);
  opacity: 0.8;
  margin-bottom: 20px;
  flex: 1;
}

.rd-related-card__link {
  display: inline-block;
  font-family: var(--font-body-bold);
  font-size: 15px;
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.rd-related-card__link:hover {
  color: var(--color-primary);
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .rd-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rd-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .rd-hero {
    min-height: 60vh;
  }

  .rd-hero__title {
    font-size: 2.2rem;
  }

  .rd-hero__inner {
    padding-bottom: 40px;
  }

  .rd-content-section {
    padding: 50px 0;
  }

  .rd-body h2 {
    font-size: 1.5rem;
    margin-top: 36px;
  }
}

/* =============================================
   GET STARTED PAGE
   ============================================= */
.gs-intro {
  font-size: 18px;
  max-width: 700px;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* =============================================
   FAQ PAGE
   ============================================= */
.faq-hero {
  overflow: hidden;
}

.faq-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.faq-hero-content {
  background-color: var(--color-secondary-light);
  padding: var(--section-padding) 60px var(--section-padding) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}

.faq-hero-content h1 {
  color: var(--color-secondary);
  font-size: 4.25rem;
  line-height: 1.15;
  margin: 0;
}

.faq-hero-content .content-subheading {
  margin-bottom: 0;
}

.faq-hero__desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-secondary);
  opacity: 0.85;
  margin: 0;
}

.faq-hero-image {
  position: relative;
}

.faq-hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.faq-content-section {
  background-color: var(--color-surface);
  padding: 60px 0;
}

/* Two-column layout */
.faq-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 60px;
  align-items: start;
}

/* Sticky sidebar */
.faq-sidebar {
  position: sticky;
  top: calc(4vw + 110px);
}

.faq-sidebar__label {
  font-family: var(--font-body-bold);
  font-size: 12.8px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.faq-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-sidebar__link {
  font-size: 12.8px;
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.faq-sidebar__link:hover,
.faq-sidebar__link.active {
  color: var(--color-primary);
}

/* Category + accordion card */
.faq-category {
  margin-bottom: 50px;
  scroll-margin-top: calc(4vw + 110px);
}

.faq-category:last-child {
  margin-bottom: 0;
}

.faq-category__title {
  font-size: 25px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--color-secondary);
}

.faq-category .accordion {
  background: var(--color-surface);
  border-radius: var(--card-radius);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 72, 82, 0.1);
  overflow: hidden;
}

.faq-cta-section {
  background-color: var(--color-secondary-light);
  padding: 100px 20px;
}

.faq-cta-inner {
  background: linear-gradient(
    135deg,
    var(--color-secondary-2),
    var(--color-primary-1)
  );
  border-radius: var(--card-radius);
  box-shadow: 0 0 5px rgb(162 193 208);
  padding: 30px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.faq-cta-inner h3 {
  color: var(--color-secondary);
  font-size: 22.4px;
  font-weight: 600;
  margin-bottom: 6px;
}

.faq-cta-inner p {
  color: var(--color-secondary);
  font-size: 16px;
  margin: 0;
}

@media (max-width: 767px) {
  .faq-hero-grid {
    grid-template-columns: 1fr;
  }

  .faq-hero-content {
    padding: 50px 24px 40px;
  }

  .faq-hero-content h1 {
    font-size: 2.2rem;
  }

  .faq-hero-image {
    min-height: 280px;
    position: relative;
  }

  .faq-hero-image img {
    position: static;
    width: 100%;
    height: 280px;
  }

  .faq-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq-sidebar {
    position: static;
  }

  .faq-sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .faq-sidebar__link {
    background: var(--color-surface-raised);
    border: 1px solid rgba(0, 72, 82, 0.15);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
  }

  .faq-category__title {
    font-size: 1.2rem;
  }
}

/* =============================================
   ACCORDION (FAQ)
   ============================================= */
.accordion-item {
  border-bottom: 1px solid rgba(0, 72, 82, 0.1);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  cursor: pointer;
  font-family: var(--font-body-bold);
  font-size: 15px;
  color: var(--color-secondary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.2s ease;
  gap: 16px;
}

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

.accordion-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-secondary);
  transition:
    transform 0.3s ease,
    border-color 0.2s ease;
}

.accordion-chevron svg {
  width: 14px;
  height: 15px;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
}

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

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

.accordion-body-inner p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-secondary);
}

/* Animations disabled — content always visible */

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

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

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

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 991px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.2rem;
  }

  :root {
    --section-padding: 60px;
  }

  .site-header {
    padding: 8px 12px;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .doc-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-choose-heading {
    grid-column: 1 / -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

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

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 16px;
  }

  .site-header {
    top: 0;
    padding: 6px 10px;
  }

  .header-inner {
    padding: 8px 14px;
    border-radius: 10px;
  }

  .hero-section {
    min-height: auto;
    padding: 100px 0 0px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .doc-types-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
  }

  .why-choose-heading {
    grid-column: 1;
  }

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

  .footer-form-row {
    grid-template-columns: 1fr;
  }

  .footer-form-card {
    padding: 25px 20px;
  }

  .footer-links-card {
    padding: 25px;
  }

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

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

  .quote-form-card {
    padding: 28px 20px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   GET STARTED PAGE
   =========================================================== */

/* ATF two-column layout */
.gs-atf {
  display: grid;
  grid-template-columns: 60% 40%;
  min-height: 100vh;
}

.gs-atf__left {
  background: var(--color-neutral-2);
  padding: 140px 6vw 60px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gs-atf__left > * {
  max-width: 680px;
}

.gs-atf__image {
  position: relative;
  overflow: hidden;
}

.gs-atf__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Step indicator */
.gs-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}

.gs-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gs-step span {
  font-size: 13px;
  font-family: var(--font-body-bold);
  color: #000;
}

.gs-step--active {
  border-color: black;
  background: black;
}

.gs-step--active span {
  color: #fff;
}

.gs-step-line {
  flex: 1;
  height: 2px;
  background: #000;
}

/* Step content */
.gs-step-label {
  font-family: var(--font-body-bold);
  font-size: 16px;
  letter-spacing: 1px;
  margin: 10px 0px 0px 0px;
}

.gs-step-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--color-secondary);
  line-height: 1.2;
  margin-bottom: 14px;
}

.gs-step-desc {
  font-size: 16px;
  color: var(--color-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  max-width: 520px;
}

/* Form card */
.gs-form-card {
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid #e4e4e4;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  padding: 28px 28px 24px;
  margin-bottom: 16px;
}

/* Floating-label select */
.gs-select-wrap {
  position: relative;
  margin-bottom: 20px;
}

.gs-select-wrap label {
  position: absolute;
  top: -9px;
  left: 14px;
  background: var(--color-surface);
  padding: 0 4px;
  font-size: 10.4px;
  letter-spacing: 0.6px;
  color: var(--color-neutral-0);
  pointer-events: none;
  z-index: 1;
}

.gs-select-wrap select {
  width: 100%;
  padding: 8.5px 17px;
  border: 1px solid var(--color-neutral-0);
  border-radius: 8px;
  background: var(--color-surface);
  font-size: 13.6px;
  color: var(--color-secondary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23004852' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.gs-select-wrap select:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.gs-lang-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Multi-select */
.gs-multiselect {
  position: relative;
}

.gs-multiselect__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8.5px 17px;
  border: 1.5px solid var(--color-neutral-0);
  border-radius: 8px;
  background: var(--color-surface);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s;
}

.gs-multiselect--open .gs-multiselect__trigger,
.gs-multiselect__trigger:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.gs-multiselect__display {
  flex: 1;
  font-size: 13.6px;
  color: #626875;   /* P1: 5.28 on the cream background (#999 gave 2.69) */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-multiselect__trigger > svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.gs-multiselect--open .gs-multiselect__trigger > svg {
  transform: rotate(180deg);
}

.gs-multiselect__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--color-surface-raised);
  border: 1.5px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 72, 82, 0.12);
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
}

.gs-multiselect--open .gs-multiselect__dropdown {
  display: block;
}

.gs-multiselect__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 15px;
  color: var(--color-secondary);
  transition: background 0.1s;
}

.gs-multiselect__option:hover:not(.selected) {
  background: var(--color-neutral-2);
}

.gs-multiselect__option.selected {
  background: var(--color-primary);
  color: #fff;
}

.gs-check-icon {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}

.gs-multiselect__option.selected .gs-check-icon {
  opacity: 1;
}

/* Continue button */
.gs-continue-btn {
  margin-top: 4px;
  font-family: var(--font-body-bold);
  letter-spacing: 0.8px;
}

/* No-files card */
.gs-no-files-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--color-surface);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 16px;
  font-size: 16px;
  font-family: var(--font-body-bold);
  color: var(--color-secondary);
}

.gs-no-files-btn {
  font-family: var(--font-body-bold);
  font-size: 16px;
  letter-spacing: 0.6px;
  color: var(--color-primary);
  background: unset;
  box-shadow: inset 0px 0px 1px 1.5px var(--color-primary-1);
  border-radius: 6px;
  padding: 12px 28px;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.gs-no-files-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Footer multi-select — dark background overrides (must come after generic gs-multiselect) */
.footer-form .gs-multiselect__trigger {
  border: none;
  background: transparent;
  padding: 14px 15px;
  border-radius: var(--btn-radius);
}

.footer-form .gs-multiselect--open .gs-multiselect__trigger,
.footer-form .gs-multiselect__trigger:focus {
  border: none;
  outline: none;
}

.footer-form .gs-multiselect__display {
  color: var(--color-white);
  font-size: 14px;
  text-align: left;
}

.footer-form .gs-multiselect__display.placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.footer-form .gs-multiselect__dropdown {
  background: var(--color-secondary-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.footer-form .gs-multiselect__option {
  color: var(--color-white);
  font-size: 14px;
}

.footer-form .gs-multiselect__option:hover:not(.selected) {
  background: rgba(255, 255, 255, 0.1);
}

.footer-form .gs-multiselect__option.selected {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Support note */
.gs-support-note {
  display: flex;
  align-items: center;
  text-transform: uppercase;
  gap: 6px;
  font-family: var(--font-body-bold);
  font-size: 10.2px;
}

.gs-support-note a {
  color: var(--color-secondary);
  font-family: var(--font-body-bold);
  text-decoration: underline;
}

/* How it works */
.gs-hiw-section {
  padding: 80px 0;
  background: var(--color-neutral-2);
}

.gs-hiw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .gs-hiw-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.gs-hiw-card {
  background: var(--color-surface-raised);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 12px rgba(0, 72, 82, 0.07);
  padding: 30px;
  text-align: center;
}

.gs-hiw-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-secondary-bg);
  color: #fff;
  font-family: var(--font-body-bold);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.gs-hiw-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--color-secondary);
}

.gs-hiw-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-secondary);
}

/* Responsive */
@media (max-width: 900px) {
  .gs-atf {
    grid-template-columns: 1fr;
  }

  .gs-atf__left {
    padding: 120px 24px 50px;
  }

  .gs-atf__left > * {
    max-width: 100%;
  }

  .gs-atf__image {
    min-height: 320px;
  }

  .gs-atf__image img {
    position: static;
    width: 100%;
    height: 320px;
    object-fit: cover;
  }

  .gs-atf__image {
    order: -1;
  }

  .gs-lang-row {
    grid-template-columns: 1fr;
  }
}

/* Get Started page: hide quote form + decorative SVG, keep links/copyright */
.page-template-page-get-started .footer-quote-form {
  display: none;
}
.page-template-page-get-started .site-footer {
  background-image: none;
  padding-top: 0;
}

/* ── Step 2 — done step ──────────────────────────────────────── */
.gs-step--done {
  background: #000;
  border-color: #000;
}

.gs-step--done span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
}

.gs-step-line--done {
  background: var(--color-secondary-bg);
}

/* ── Step 2 — right column (order summary) ───────────────────── */
.gs-atf__summary {
  background: linear-gradient(
    150deg,
    var(--color-secondary-light) 0%,
    var(--color-primary-light) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 5vw;
}

.gs-summary-inner {
  width: 100%;
  max-width: 360px;
}

.gs-summary-label {
  font-family: var(--font-body-bold);
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.gs-summary-card {
  background: var(--color-surface);
  border-radius: 14px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  padding: 30px;
}

.gs-summary-heading {
  font-family: var(--font-body-bold);
  font-size: 16px;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.gs-summary-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #000;
  border-radius: 10px;
}

.gs-summary-row:last-child {
  margin-bottom: 0;
}

.gs-summary-key {
  font-family: var(--font-body-bold);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--color-secondary);
}

.gs-summary-doc-list {
  list-style: disc;
  padding: 0 0 0 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gs-summary-doc-list li {
  font-size: 14px;
  color: var(--color-secondary);
}

.gs-summary-langs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-secondary);
}

.gs-summary-langs svg {
  flex-shrink: 0;
  color: var(--color-secondary);
}

.gs-summary-val {
  font-size: 14px;
  color: var(--color-secondary);
}

.gs-summary-delivery {
  margin: 10px 0px 0px 0px;
  font-size: 16px;
  color: var(--color-secondary);
  font-family: var(--font-body-bold);
}

/* ── File upload area (get-started) ─────────────────────────── */
.gs-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gs-upload-area input[type="file"] {
  display: none;
}

.gs-file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.gs-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--color-secondary);
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-secondary);
}

.gs-file-item__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-file-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 12px;
  color: var(--color-secondary);
  line-height: 1;
}

.gs-file-item__remove:hover {
  color: var(--color-primary);
}

/* ── Step 3 — Quote form ─────────────────────────────────────── */
.gs-atf--step3 .gs-form-card input[type="text"],
.gs-atf--step3 .gs-form-card input[type="email"],
.gs-atf--step3 .gs-form-card textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-secondary);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--color-secondary);
  background: var(--color-surface);
}

.gs-atf--step3 .gs-form-card textarea {
  resize: vertical;
}

.gs-summary-row--price {
  background: transparent;
}

.gs-summary-price-text {
  font-family: var(--font-body-bold);
  font-size: 14px;
  color: var(--color-secondary);
  line-height: 1.5;
}

.gs-summary-consent {
  margin-top: 16px;
  font-size: 12px;
  color: var(--color-secondary);
  line-height: 1.5;
}

.gs-summary-consent a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.gs-summary-btn {
  width: 100%;
  margin-top: 16px;
}

/* ── Responsive — step 2/3 ───────────────────────────────────── */
@media (max-width: 900px) {
  .gs-atf__summary {
    padding: 40px 24px;
    min-height: auto;
  }

  .gs-summary-inner {
    max-width: 100%;
  }
}

/* =============================================
   COMPREHENSIVE RESPONSIVE FIXES
   ============================================= */

/* ── TABLET (768px – 991px) ──────────────────────────────────── */
@media (max-width: 991px) {
  /* Show mobile menu on tablets — nav links overflow at this size */
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-panel {
    display: flex;
  }

  /* Hero */
  .hero-section h1 {
    max-width: 100%;
    font-size: 3rem;
  }

  .hero-content {
    max-width: 60%;
  }

  .hero-image {
    width: 50%;
  }

  /* Info cards right inner already handled at 1024px */

  /* Testimonials — reduce arrow offset */
  .glide__arrow--left {
    transform: translateX(-60px);
  }
  .glide__arrow--right {
    transform: translateX(60px);
  }

  /* Footer links inner — make it grid */
  .footer-links-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  /* HIW page — CTA banners */
  .hiw-cta-inner,
  .hiw-faq-inner,
  .faq-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Team about/mission — reduce padding */
  .team-about-content,
  .team-mission-content {
    padding: 60px 40px;
  }

  /* Team location */
  .team-location-content {
    padding: 60px 40px;
  }

  /* Resource cards */
  .resource-card__content {
    padding: 40px 36px;
  }

  .resource-card__title {
    font-size: 2rem;
  }
}

/* ── SMALL TABLET (max 768px) ────────────────────────────────── */
@media (max-width: 768px) {
  /* Homepage hero — full stack */
  .hero-content {
    max-width: 100%;
  }

  .hero-section h1 {
    max-width: 100%;
    font-size: 2.2rem;
  }

  .hero-image {
    position: relative;
    width: 100%;
    right: auto;
    bottom: auto;
    margin-top: 20px;
  }

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

  /* Testimonials — full width, hide arrows, small card */
  #testimonials-glide {
    width: 100%;
  }

  #testimonials-glide .glide__slide {
    padding: 50px 20px 0 0;
  }

  .testimonial-card {
    padding: 36px 28px;
    min-height: auto;
  }

  .testimonial-avatar-wrap {
    top: -30px;
    right: -10px;
    width: 120px;
    height: 120px;
  }

  .testimonial-headline {
    font-size: 1.1rem;
  }

  .testimonials-wrapper {
    padding: 0 20px;
  }

  .glide__arrow--left {
    transform: translateX(-10px);
  }
  .glide__arrow--right {
    transform: translateX(10px);
  }

  .glide__arrow {
    width: 36px;
    height: 36px;
  }

  /* Footer quote form */
  .footer-quote-form h2 {
    font-size: 2rem;
  }

  /* Team about/mission images */
  .team-about-image,
  .team-mission-image,
  .team-location-image {
    min-height: 260px;
  }

  .team-about-image img,
  .team-mission-image img,
  .team-location-image img {
    min-height: 260px;
  }

  /* HIW page hero image */
  .hiw-hero-image img {
    border-radius: 12px;
  }

  /* HIW what section image on mobile */
  .hiw-what-image img {
    position: static;
    width: 100%;
    height: 280px;
  }

  /* HIW when icons smaller */
  .hiw-when-icon-circle {
    width: 64px;
    height: 64px;
  }

  .hiw-when-icon-item span {
    font-size: 7px;
  }

  /* Contact form section */
  .contact-form-section {
    padding: 50px 0;
  }

  /* Resource hero — smaller padding */
  .resource-hero-card__content {
    padding: 40px 24px;
  }

  .resource-hero-card__title {
    font-size: 1.8rem;
  }

  /* Step icon smaller on mobile */
  .hiw-step-icon {
    width: 100px;
    height: 100px;
  }

  /* Info section icons smaller */
  .info-icon-circle {
    width: 72px;
    height: 72px;
  }

  /* Team CTA */
  .team-cta-inner {
    padding: 30px 20px;
  }

  .team-cta-inner h3 {
    font-size: 1.3rem;
  }
}

/* ── MOBILE (max 576px) ──────────────────────────────────────── */
@media (max-width: 576px) {
  /* Get Started */
  .gs-atf__left {
    padding: 36px 16px 40px;
  }

  .gs-form-card {
    padding: 20px 16px 18px;
  }

  .gs-step-title {
    font-size: 1.5rem;
  }

  .gs-lang-row {
    grid-template-columns: 1fr;
  }

  /* Info icons — 2 columns */
  .info-icons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  /* HIW when icons — 2 columns */
  .hiw-when-icons {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-links-card {
    padding: 20px 16px;
  }

  /* Legal section card */
  .legal-section__card {
    padding: 24px 20px;
  }

  /* Team member cards */
  .team-member-card {
    padding: 20px;
  }

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

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

  /* Contact hero */
  .contact-hero__content {
    padding: 40px 20px;
  }

  .contact-hero__title {
    font-size: 1.8rem;
  }

  /* Resources */
  .resource-card__content {
    padding: 30px 20px;
  }

  .resource-card__title {
    font-size: 1.5rem;
  }

  /* Testimonials — smaller avatar, compact card */
  .testimonial-avatar-wrap {
    top: -20px;
    right: 10px;
    width: 100px;
    height: 100px;
  }

  #testimonials-glide .glide__slide {
    padding: 30px 10px 0 0;
  }

  .testimonial-card {
    padding: 28px 20px;
    padding-top: 36px;
  }

  /* Why choose items */
  .why-choose-item {
    padding: 24px 20px;
  }

  /* HIW CTA banners */
  .hiw-cta-inner,
  .hiw-faq-inner,
  .faq-cta-inner {
    padding: 24px 20px;
  }

  /* GS summary */
  .gs-summary-card {
    padding: 20px 16px 18px;
  }

  .gs-summary-row {
    padding: 12px 14px;
  }

  /* 404 page */
  .page-404 {
    padding: 80px 0;
  }

  .page-404 h1 {
    font-size: 4rem;
  }

  .page-404 p {
    font-size: 16px;
  }

  /* Footer quote heading */
  .footer-quote-form h2 {
    font-size: 1.6rem;
  }

  /* Resources CTA */
  .resources-cta-inner {
    padding: 30px 20px;
  }

  .resources-cta-inner h3 {
    font-size: 1.2rem;
  }

  /* Team hero */
  .team-hero-content {
    padding: 50px 20px;
  }

  .team-hero-content h1 {
    font-size: 3rem;
  }

  /* Team about/mission compact */
  .team-about-content,
  .team-mission-content {
    padding: 40px 20px;
  }

  .team-location-content {
    padding: 40px 20px;
  }

  /* Legal hero compact */
  .legal-hero__content {
    padding: 40px 20px;
  }

  .legal-hero__title {
    font-size: 1.8rem;
  }

  /* FAQ hero compact */
  .faq-hero-content {
    padding: 40px 20px 30px;
  }

  .faq-hero-content h1 {
    font-size: 1.8rem;
  }

  .faq-category__title {
    font-size: 1.1rem;
  }

  /* HIW hero compact */
  .hiw-hero {
    padding: 80px 0 30px;
  }

  .hiw-hero-content h1 {
    font-size: 1.8rem;
  }

  /* Contact about compact */
  .contact-about-content h2 {
    font-size: 1.5rem;
  }

  /* Resource hero compact */
  .resource-hero-card__content {
    padding: 30px 20px;
  }

  .resource-hero-card__title {
    font-size: 1.5rem;
  }

  /* GS image smaller on mobile */
  .gs-atf__image {
    min-height: 220px;
  }

  .gs-atf__image img {
    height: 220px;
  }
}

/* ── EXTRA SMALL (max 400px) ────────────────────────────────── */
@media (max-width: 400px) {
  .hero-section h1 {
    font-size: 1.7rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .doc-types-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-icons-grid {
    grid-template-columns: 1fr;
  }

  .hiw-when-icons {
    grid-template-columns: 1fr;
  }

  .trust-badge-item img {
    width: 140px;
  }

  .glide__arrow {
    width: 30px;
    height: 30px;
  }

  .page-404 h1 {
    font-size: 3rem;
  }
}

/* R9 (David 2026-10-15): the Spanish "Empezar" page at 375 px was laid out 571 px wide - the "Contact us"
   button never wraps, and a grid column or flex item will not shrink below its content by default, so the
   whole step column grew with it. Everything may shrink now; the button goes under the question. */
@media (max-width: 900px) {
  .gs-atf {
    grid-template-columns: minmax(0, 1fr);
  }

  .gs-atf__left,
  .gs-atf__left > *,
  .gs-form-card,
  .gs-multiselect__display {
    min-width: 0;
  }

  /* One column: the fields' own 20 px margin is the spacing; the grid gap doubled it. */
  .gs-lang-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

@media (max-width: 576px) {
  .gs-no-files-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 20px 16px;
  }

  .gs-no-files-btn {
    white-space: normal;
    text-align: center;
    padding: 12px 16px;
  }
}

/* The footer's two columns on phones: the e-mail address is one long word and stretched its column past
   the screen (seen with R9). The columns may shrink and the address breaks where it has to. */
.footer-links-inner > * {
  min-width: 0;
}

.footer-contact a {
  overflow-wrap: anywhere;
}

/* PL-V4 (David 2026-10-15, V4): on an iPhone the page could be dragged sideways - the closed mobile menu
   waits 280 px past the right edge, and Safari ignores overflow-x on body alone. The page edge is
   clipped (clip, not hidden: it makes no scroll container, so nothing sticky breaks), and the closed
   menu is hidden, so its links cannot be reached with Tab either. */
html {
  overflow-x: hidden;
  overflow-x: clip;
}

.mobile-panel {
  visibility: hidden;
  transition: right 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-panel.active {
  visibility: visible;
  transition: right 0.3s ease, visibility 0s;
}

/* RT1 (David 2026-10-19): the intro line above the contact form. */
.contact-card-intro {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-secondary);
}

.contact-card-intro strong {
  display: block;
  font-family: var(--font-body-bold);
  font-weight: 700;
}

/* R20-1 (David 2026-10-20): no single word alone on the last line of the contact card heading. */
.contact-card-intro,
.contact-card-intro strong {
    text-wrap: balance;
}

/* R22-6 (David 2026-10-21): TFE service pages (page-tfe-service.php) - the legal pages' hero, the
   resource articles' typography, one centred column. */
.tfe-service-content {
  padding: var(--section-padding) 0;
  background: var(--color-surface);
}

.tfe-service-body {
  max-width: 820px;
  margin: 0 auto;
}

/* R26-5 / R26-7 (David 2026-10-22): at phone width every hero and body text sits 15 px from the screen
   edge, as on the EU sites (it was 7.5, 20 or 24 px), and the legal / service page hero starts below the
   fixed header (73.5 px high at 375 px; the title of a TFE service page sat 34 px behind it). */
@media (max-width: 576px) {
  .legal-hero__content {
    padding: 110px 15px 40px;
  }

  .faq-hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .resource-hero-card__content {   /* its label sat behind the header too */
    padding: 110px 15px 30px;
  }

  .hiw-what-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* R26-7: the same top spacing on tablets, where these heroes are one column under the fixed header too. */
@media (min-width: 577px) and (max-width: 768px) {
  .legal-hero__content,
  .resource-hero-card__content {
    padding-top: 120px;
  }
}

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

/* 1. Header 992-1279 px. .nav-links is centred over the header (absolute, left 50%), outside the layout,
   so on narrower desktop widths it slides under the buttons on the right ("EN" into CONTACT).
   English: the links take their place in the row, 20 px apart. */
@media (min-width: 992px) and (max-width: 1139px) {
    .wp-theme-certified-us .site-header .nav-links { position: static; transform: none; gap: 20px; }
    .wp-theme-certified-us .site-header .main-nav { gap: 20px; align-items: center; }
    .wp-theme-certified-us .site-header .nav-cta-group { margin-left: 0; gap: 10px; }
}

/* The full menu whenever it fits one row, in either language (David 2026-11-19: Spanish showed the
   hamburger up to 1279 px). main.js measures the row and sets html.tc-nav-compact only when the links
   would not fit next to the logo - with today's Spanish labels below about 1120 px. */
@media (min-width: 992px) {
    html.tc-nav-static .wp-theme-certified-us .site-header .nav-links { position: static; transform: none; gap: 20px; }
    html.tc-nav-static .wp-theme-certified-us .site-header .main-nav { gap: 20px; align-items: center; }
    html.tc-nav-static .wp-theme-certified-us .site-header .nav-cta-group { margin-left: 0; gap: 10px; }
    html.tc-nav-compact .wp-theme-certified-us .site-header .main-nav { display: none; }
    html.tc-nav-compact .wp-theme-certified-us .site-header .menu-toggle { display: flex; }
    html.tc-nav-compact .wp-theme-certified-us .mobile-panel { display: flex; }
}

/* 3. The quote form on How it works lands under the fixed header without this. */
.wp-theme-certified-us #quote-form { scroll-margin-top: 60px; }

/* ==========================================================================
   Polish phase, TFE-EN4 / TFE-EN8 (David's design review 2026-10-07)
   ========================================================================== */

/* TFE-EN4: the homepage hero keeps 20 px at the sides on phones (was 15 px). */
@media (max-width: 767px) {
    .wp-theme-certified-us .hero-section .container { grid-template-columns: 20px 1fr 20px; }   /* the side margins are grid columns (--grid-margin-mobile, 15 px) */
}

/* TFE-EN8: on Resources the header (fixed, up to 116 px tall with the full menu at 992-1199 px) ran into the
   "Latest article" label of the top banner, whose padding was 80 px (at 1200 px and up the centred content
   could still come up to 7 px under it); 769 px and up had been left out when the phone widths got room for
   it. The label now starts at least 40 px under the header at every width. */
@media (min-width: 769px) {
    .wp-theme-certified-us .resource-hero-card__content { padding-top: 156px; }
}
/* 577-768 px: the header is ~97 px tall there; 120 px left 23 px. */
@media (min-width: 577px) and (max-width: 768px) {
    .wp-theme-certified-us .resource-hero-card__content { padding-top: 140px; }
}

/* 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 1, 4, 5)
   ========================================================================== */

/* 1. Mobile menu as on the EU brands (W7): every tap target at least 44 px (links were 43, the close button
   14 x 28, EN / ES 43 x 32, the menu button 45 x 36), the current page marked, and the language row labelled. */
.wp-theme-certified-us .menu-toggle { min-height: 44px; min-width: 44px; justify-content: center; align-items: center; }
.wp-theme-certified-us .mobile-panel li > a { min-height: 44px; display: flex; align-items: center; }
.wp-theme-certified-us .mobile-panel .current-menu-item > a {
  font-family: var(--font-body-bold);
  color: var(--color-accent);   /* lime on the dark teal panel */
}
.wp-theme-certified-us .mobile-panel-close {
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 32px;
}
.wp-theme-certified-us .lang-switcher-mobile { flex-wrap: wrap; align-items: center; }
.wp-theme-certified-us .lang-switcher-mobile::before {
  content: "Language";
  flex: 0 0 100%;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--color-white);
  opacity: 0.85;
}
html[lang^="es"] .wp-theme-certified-us .lang-switcher-mobile::before { content: "Idioma"; }
.wp-theme-certified-us .lang-switcher-mobile a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.85;   /* was 0.6 */
}
.wp-theme-certified-us .lang-switcher-mobile a.active { opacity: 1; border-color: rgba(255, 255, 255, 0.6); }

/* 4. Article hero: the white title sits on the photo's lower half; the gradient there was 15-55 % black, too
   weak on a light photo. At least 60 % black behind the title keeps white text above 5.7:1 on any photo. */
.wp-theme-certified-us .rd-hero__overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.2) 100%);
}

/* 5. Phone footer: the Contact column shared a row and was 144 px wide, so the e-mail address broke in the
   middle. Below 768 px it gets the whole row and the address stays on one line. */
@media (max-width: 767px) {
  .wp-theme-certified-us .footer-links-inner > .footer-contact { grid-column: 1 / -1; }
  .wp-theme-certified-us .footer-contact a[href^="mailto:"] { overflow-wrap: normal; white-space: nowrap; }
}

/* ==========================================================================
   D9-9 Dark mode (David 2026-11-03): when the visitor's device is set to dark, the page follows it - a deep teal
   page, the light-blue and sand sections as darker teal bands, the dark-teal sections stay teal, and the teal
   text turns light. Text at least 4.5:1, borders and icons at least 3:1. Orange buttons keep cream text (4.89).
   The light logos switch in through <picture>.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --color-surface: #0b1d20;
    --color-surface-raised: #13292d;
    --color-secondary-2: #123238;   /* the light-blue sections */
    --color-neutral-2: #10262a;     /* the sand sections */
    --color-secondary-bg: #0a3b42;  /* the dark-teal sections, a step lighter than the page */
    --color-dark-bg: #061517;
    --color-secondary-0: #cfe8ea;   /* teal text becomes light (--color-secondary follows) */
    --color-secondary-1: #cfe8ea;
    --color-neutral-0: #e7f2f3;     /* --color-dark follows */
  }
  body { background-color: var(--color-surface); color: var(--color-secondary); }
  .nav-links a,
  .nav-links > li > a:hover,
  .nav-links > a:hover,
  .gs-step span { color: var(--color-secondary); }
  .nav-links > li > a:hover,
  .nav-links > a:hover { border-bottom-color: var(--color-secondary); }
  /* orange as text on the dark page: #c2410c gave 3.35, #fb923c gives 7.9 (hover fills keep the orange) */
  a,
  .nav-btn-contact,
  .gs-no-files-btn { color: #fb923c; }
  .gs-multiselect__display { color: #a9bcbf; }
  .menu-toggle span { background-color: var(--color-secondary); }   /* the menu button's lines are ink, not a teal band */
  /* Pictures drawn for a light page: the "why choose" icons are inline teal drawings (light teal here, 7.4 on
     the card), the trust logos are files with dark marks - they sit on a cream chip. */
  /* Teal drawings on the dark page (icons, discs, FAQ chevrons): mid teal, 4.45 on the page, white marks on it 3.90 */
  .wp-theme-certified-us svg [fill="#004852" i] { fill: #4f8a92; }
  .wp-theme-certified-us svg [stroke="#004852" i] { stroke: #4f8a92; }
  .accordion-item { border-color: #4f8a92; }
  .accordion-chevron { border-color: #4f8a92; }
  .why-choose-icon svg [fill="#004852" i] { fill: #7fc4cc; }
  .gs-multiselect__trigger svg [stroke="#004852" i] { stroke: var(--color-secondary); }   /* the field chevron (1.69 before) */
  .gs-multiselect__trigger svg [fill="#004852" i] { fill: var(--color-secondary); }
  .gs-support-note svg [fill="#002429" i] { fill: var(--color-secondary); }   /* the "?" disc: light, with its dark mark */
  .gs-support-note svg [fill="#FBF8F5" i] { fill: var(--color-surface); }
  .why-choose-icon svg [stroke="#004852" i] { stroke: #7fc4cc; }
  /* Get started steps: black circles and line on the dark page become light; the current / done step is a
     light disc with a dark number. */
  .gs-step { border-color: var(--color-secondary); }
  .gs-step-line,
  .gs-step-line--done { background: var(--color-secondary); }
  .gs-step--active,
  .gs-step--done { background: var(--color-secondary); border-color: var(--color-secondary); }
  .gs-step--active span,
  .gs-step--done span { color: var(--color-surface); }
  .trust-badge-item img { background: #fbf8f5; border-radius: var(--card-radius); padding: 12px 16px; box-sizing: border-box; }
}

/* David 2026-11-03: Contact (a button, not a menu item) marked on the contact page - light peach with a darker
   orange (5.80) and a full outline on the header, lime like the current menu item in the phone menu. */
.wp-theme-certified-us .nav-btn-contact.is-current {
  background-color: var(--color-primary-light);
  color: #9a3412;
  box-shadow: inset 0 0 0 2px var(--color-primary);
}
.wp-theme-certified-us .mobile-cta-group .btn-outline.is-current {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
@media (prefers-color-scheme: dark) {
  .wp-theme-certified-us .nav-btn-contact.is-current { background-color: #3a2418; color: #fb923c; }   /* 6.42 */
}

/* David 2026-11-04, dark mode: the peach end of the "Ready to get started?" / "Still have questions?" gradients put
   the light text on a grey middle (2.3:1) - dark teal to dark brown here; orange buttons get a light orange edge
   (their fill was 2.4 - 2.6:1 against the teal sections); the current menu item's underline and the current
   Contact button are drawn in light colours. */
@media (prefers-color-scheme: dark) {
  .wp-theme-certified-us .hiw-cta-inner,
  .wp-theme-certified-us .hiw-faq-inner,
  .wp-theme-certified-us .faq-cta-inner,
  .wp-theme-certified-us .gs-atf__summary { background: linear-gradient(135deg, #123238, #2a2019); }
  .wp-theme-certified-us .btn-primary { border-color: #fb923c; }
  .wp-theme-certified-us .nav-links > li.current-menu-item > a,
  .wp-theme-certified-us .nav-links > li.current_page_item > a { border-bottom-color: var(--color-secondary); }
  .wp-theme-certified-us .nav-btn-contact.is-current { border-color: #fb923c; box-shadow: inset 0 0 0 2px #fb923c; }
}

/* =============================================
   Reviews slider (David 2026-11-13, Google reviews brief v3)
   ============================================= */
/* The quote sign of the EU review cards, in the colour of the reviewer's name (David 2026-11-17: the
   lime accent did not work on the light card) - the same theme variable, so it follows dark mode. */
#testimonials-glide {
  --tc-quote-color: var(--color-secondary);
}

/* Each slide its own height: the slides no longer stretch to the tallest one, and the track follows
   the active slide (main.js). */
#testimonials-glide .glide__slides {
  align-items: flex-start;
}

#testimonials-glide .glide__track {
  transition: height 0.35s ease;
}

/* A card without a photo leaves no room for one. */
#testimonials-glide .glide__slide--plain {
  padding-top: 0;
  padding-right: 0;
}

#testimonials-glide .testimonial-card {
  min-height: 0;
}

.testimonial-card .testimonial-quote-icon {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 0.75;
  height: 32px;
  overflow: hidden;
  color: var(--tc-quote-color);
  user-select: none;
  margin-bottom: 14px;
}

/* Google cards: stars and date under the text (the Google mark is in front of the name). */
.testimonial-google {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 22px;
}

.testimonial-stars {
  display: inline-flex;
  gap: 2px;
}

.testimonial-stars .star-filled {
  fill: #f5b301;
}

.testimonial-stars .star-empty {
  fill: rgba(0, 72, 82, 0.2);
}

.testimonial-date {
  font-size: 14px;
  color: var(--color-secondary);
  opacity: 0.85;
}

/* David 2026-11-19: the Google mark in front of the reviewer's name (G + name), as on the EU cards. */
.testimonial-meta--google {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.testimonial-google-mark {
  flex-shrink: 0;
}

/* Phones and tablets: the arrows sit under the card, never on the text. */
@media (max-width: 768px) {
  #testimonials-glide .glide__arrows {
    position: static;
    transform: none;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }

  #testimonials-glide .glide__arrow--left,
  #testimonials-glide .glide__arrow--right {
    transform: none;
  }

  #testimonials-glide .glide__slide--plain {
    padding-top: 0;
    padding-right: 0;
  }
}

/* =============================================
   David 2026-11-17 - step 2 on the same layout as step 3 (the order page in the checkout)
   ============================================= */
/* 12 px under the step label, as on the order page */
.gs-step-label {
  margin-bottom: 12px;
}

/* "ORDER SUMMARY" level with "STEP x": both columns start at the top (the step column was centred
   vertically, the summary 113 - 126 px lower); the summary column's top padding is the step column's
   padding + step bar + its margin + the label's top margin. */
@media (min-width: 901px) {
  .gs-atf__left {
    justify-content: flex-start;
  }

  .gs-atf__summary {
    align-items: flex-start;
    padding-top: calc(140px + 32px + 28px + 10px);
  }
}

/* The summary boxes of the order page: a 1.5 px outline that shows on both themes, the card's own
   background, 12 px apart. */
.gs-summary-row {
  border: 1.5px solid #002429;
  background: #fbf8f5;
  margin-bottom: 12px;
}

@media (prefers-color-scheme: dark) {
  .wp-theme-certified-us .gs-summary-row {
    border-color: #6f9ca1;
    background: #13292d;
  }
}

/* ==========================================================================
   David 2026-11-19 (end-to-end review):
   - Phones: the step circles under the menu bar (it ends at 68 px), 20 px between, as on the EU sites;
     step 2, the personal quote step and the order page alike.
   - Tap targets at least 44 px: the step 1 dropdowns and the "remove file" cross (its icon unchanged).
   ========================================================================== */
@media (max-width: 576px) {
  .gs-atf__left {
    padding-top: 88px;
  }
}

.gs-select-wrap select,
.gs-multiselect__trigger {
  min-height: 44px;
}

.gs-file-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: -13px -14px -13px 0;
}

/* Visitor sitemap (David 2026-11-24, M9 / M10): the page lists in the legal-page cards. */
.tfe-sitemap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tfe-sitemap-list a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tfe-sitemap-list a:hover, .tfe-sitemap-list a:focus-visible { color: var(--color-orange, #c2410c); }


/* TFE service pages (David 2026-11-25): the hero filled one whole screen on desktop (min-height 100vh), so the
   page text started below the fold. Now about as tall as the EU service hero (~515 px) - the first heading and
   the start of its text show on a 1366x768 laptop - with 140 px at the top for the fixed header and a 3rem
   title (4.25rem ran to 2-4 lines). Phones: a 160 px image (was 280) so the text starts above the fold. */
@media (min-width: 769px) {
  .wp-theme-certified-us .tfe-service-hero { min-height: 0; }
  .wp-theme-certified-us .tfe-service-hero .legal-hero__content { padding: 140px 60px 48px; }
  .wp-theme-certified-us .tfe-service-hero .legal-hero__title { font-size: 3rem; }
  .wp-theme-certified-us .tfe-service-hero + .tfe-service-content { padding-top: 48px; }
}
@media (max-width: 768px) {
  .wp-theme-certified-us .tfe-service-hero .legal-hero__image { min-height: 160px; }
  .wp-theme-certified-us .tfe-service-hero .legal-hero__image img { height: 160px; }
  .wp-theme-certified-us .tfe-service-hero .legal-hero__content { padding-bottom: 24px; }
  .wp-theme-certified-us .tfe-service-hero + .tfe-service-content { padding-top: 24px; }
}

/* =====================================================================
   TFE - shorter heroes on all NON-service page types + button spacing (David 2026-11-26,
   tfe-hero-fix-all-page-types.css, measured by David's team at 1366x768, 1440x900, 1920x1080 and 390x664 /
   390x844, EN + ES). The service pages (.tfe-service-hero) keep their own rules above.
   ===================================================================== */

/* ---------- Desktop (>= 769px) ---------- */
@media (min-width: 769px) {
  /* remove the 100vh / 80vh heights */
  .wp-theme-certified-us .legal-hero:not(.tfe-service-hero),   /* privacy, terms, sitemap */
  .wp-theme-certified-us .faq-hero-grid,                        /* FAQ */
  .wp-theme-certified-us .contact-hero,                         /* Contact */
  .wp-theme-certified-us .resource-hero-card,                   /* Resources overview */
  .wp-theme-certified-us .team-hero-grid,                       /* About us */
  .wp-theme-certified-us .hiw-hero,                             /* How it works */
  .wp-theme-certified-us .rd-hero,                              /* Resource articles */
  .wp-theme-certified-us .hero-section {                        /* Homepage */
    min-height: 0;
  }

  /* same padding as the service hero: clear of the fixed header, tight bottom */
  .wp-theme-certified-us .legal-hero:not(.tfe-service-hero) .legal-hero__content,
  .wp-theme-certified-us .faq-hero-content,
  .wp-theme-certified-us .contact-hero__content,
  .wp-theme-certified-us .resource-hero-card__content,
  .wp-theme-certified-us .team-hero-content {
    padding-top: 140px;
    padding-bottom: 48px;
  }
  .wp-theme-certified-us .hiw-hero { padding: 140px 0 48px; }
  .wp-theme-certified-us .rd-hero__inner { padding-bottom: 48px; }
  .wp-theme-certified-us .hero-section { padding-bottom: 48px; }

  /* title 3rem instead of 4.25rem, like the service pages */
  .wp-theme-certified-us .legal-hero h1,
  .wp-theme-certified-us .faq-hero h1,
  .wp-theme-certified-us .contact-hero h1,
  .wp-theme-certified-us .resource-hero-card h1,
  .wp-theme-certified-us .team-hero h1,
  .wp-theme-certified-us .hiw-hero h1,
  .wp-theme-certified-us .hero-section h1 {
    font-size: 3rem;
  }

  /* About us: the collage image set the hero height (555px); let it follow the text */
  .wp-theme-certified-us .team-hero-image { position: relative; min-height: 0; }
  .wp-theme-certified-us .team-hero-image img {
    position: absolute; inset: 40px 30px;
    width: calc(100% - 60px); height: calc(100% - 80px);
    padding: 0; object-fit: contain;
  }
}

/* ---------- Tablet + phone (<= 768px) ---------- */
@media (max-width: 768px) {
  .wp-theme-certified-us .faq-hero-grid,     /* FAQ was 100vh on phones too */
  .wp-theme-certified-us .team-hero-grid,
  .wp-theme-certified-us .hiw-hero,
  .wp-theme-certified-us .rd-hero {          /* was 60vh */
    min-height: 0;
  }

  /* hero images 280px -> 160px (same as the service pages) */
  .wp-theme-certified-us .faq-hero-image,
  .wp-theme-certified-us .contact-hero__image,
  .wp-theme-certified-us .resource-hero-card__image,
  .wp-theme-certified-us .legal-hero:not(.tfe-service-hero) .legal-hero__image { min-height: 160px; }
  .wp-theme-certified-us .faq-hero-image img,
  .wp-theme-certified-us .contact-hero__image img,
  .wp-theme-certified-us .resource-hero-card__image img,
  .wp-theme-certified-us .legal-hero:not(.tfe-service-hero) .legal-hero__image img { height: 160px; }

  /* About us: the collage stays on phones (it sits under the text), shown whole, straight under the text */
  .wp-theme-certified-us .team-hero-image { min-height: 0; padding: 0 20px 32px; }
  .wp-theme-certified-us .team-hero-image img {
    height: auto; width: 100%; max-height: 260px; padding: 0; object-fit: contain;
  }

  /* FAQ / Contact / About: the small label slid under the fixed header (header ends at 74px) */
  .wp-theme-certified-us .faq-hero-content,
  .wp-theme-certified-us .contact-hero__content,
  .wp-theme-certified-us .team-hero-content { padding-top: 104px; padding-bottom: 32px; }

  .wp-theme-certified-us .legal-hero:not(.tfe-service-hero) .legal-hero__content,
  .wp-theme-certified-us .resource-hero-card__content { padding-bottom: 24px; }

  .wp-theme-certified-us .team-hero h1 { font-size: 1.8rem; }   /* was 48px, 4-5 lines */
  .wp-theme-certified-us .rd-hero__inner { padding-top: 100px; padding-bottom: 24px; }
}

/* ---------- Small phones (<= 576px) ---------- */
@media (max-width: 576px) {
  .wp-theme-certified-us .legal-hero:not(.tfe-service-hero) .legal-hero__content { padding-top: 92px; }
  .wp-theme-certified-us .contact-hero__image,
  .wp-theme-certified-us .legal-hero:not(.tfe-service-hero) .legal-hero__image { min-height: 120px; }
  .wp-theme-certified-us .contact-hero__image img,
  .wp-theme-certified-us .legal-hero:not(.tfe-service-hero) .legal-hero__image img { height: 120px; }
  /* Get started: the photo sits ABOVE the form and pushes it down */
  .wp-theme-certified-us .gs-atf__image { display: none; }

  /* How it works: the label started 6px below the fixed header (header ends at 74px) */
  .wp-theme-certified-us .hiw-hero { padding-top: 104px; }
}

/* ---------- Hero buttons: 40px above / below on desktop, 32 / 32 on phones ---------- */
@media (min-width: 769px) {
  .wp-theme-certified-us .faq-hero__desc { margin-bottom: 30px; }   /* + 10px flex gap = 40px */
  .wp-theme-certified-us .contact-hero__desc,
  .wp-theme-certified-us .resource-hero-card__desc,
  .wp-theme-certified-us .hero-section .hero-description { margin-bottom: 40px; }
  .wp-theme-certified-us .faq-hero-content,
  .wp-theme-certified-us .contact-hero__content,
  .wp-theme-certified-us .resource-hero-card__content { padding-bottom: 40px; }
  .wp-theme-certified-us .hero-section { padding-bottom: 40px; }
}
@media (max-width: 768px) {
  .wp-theme-certified-us .faq-hero__desc { margin-bottom: 22px; }   /* + 10px flex gap = 32px */
  .wp-theme-certified-us .contact-hero__desc,
  .wp-theme-certified-us .resource-hero-card__desc,
  .wp-theme-certified-us .hero-section .hero-description { margin-bottom: 32px; }
  .wp-theme-certified-us .resource-hero-card__content { padding-bottom: 32px; }
  .wp-theme-certified-us .hero-section .hero-image { margin-top: 32px; }   /* was 20px */
}

/* ---------- Header buttons: Contact and Get started the same size ---------- */
.wp-theme-certified-us .nav-cta-group .btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; font-size: 15px; line-height: 1;
}

/* ---------- Visitor sitemap (tfe-visitor-sitemap.php): its hero has no image, so the right half was an empty
   (dark, in dark mode) column - one column, the text across the width. ---------- */
.wp-theme-certified-us.tfe-visitor-sitemap .legal-hero { grid-template-columns: 1fr; }

/* ---------- Homepage: the globe must not cover the intro text ---------- */
@media (min-width: 992px) {
  .wp-theme-certified-us .hero-section .hero-image { width: 52%; }   /* was 58%: clears the text column */
  .wp-theme-certified-us .hero-section { min-height: calc(32vw + 140px); }   /* the whole globe under the header */
}

/* Homepage intro in paragraphs (template-parts/hero.php): 16px between them; the last keeps the 40 / 32px
   above the button. */
.wp-theme-certified-us .hero-section .hero-description:not(:last-of-type) { margin-bottom: 16px; }

/* Homepage on phones (<= 576px): the shorter Phone intro of Domain Settings instead of the full intro
   (template-parts/hero.php; a <div> before the paragraphs, so :last-of-type above still counts <p> only). */
.wp-theme-certified-us .hero-section .hero-description--phone { display: none; }
@media (max-width: 576px) {
  .wp-theme-certified-us .hero-section .hero-description--phone { display: block; }
  .wp-theme-certified-us .hero-section .hero-description--full { display: none; }
  /* the <div> is followed by the buttons' <div>, so :last-of-type above gives it 16px: 32px like the others */
  .wp-theme-certified-us .hero-section .hero-description.hero-description--phone { margin-bottom: 32px; }
}

/* Homepage on wide screens (David 2026-11-27): the header box is at most 1400px and centred, while the hero
   text kept the 5vw page margin, so from about 1500px it started left of the logo (1920: 96px vs 284px).
   The hero's side margins now follow the header: its box ((100vw - 1400px) / 2) plus its 24px padding, never
   less than the 5vw it had. Up to about 1500px nothing changes. The globe stays on the right edge. */
@media (min-width: 768px) {
  .wp-theme-certified-us .hero-section .container {
    --tc-hero-margin: max(var(--grid-margin-desktop), calc((100vw - 1400px) / 2 + 24px));
    grid-template-columns: var(--tc-hero-margin) 1fr var(--tc-hero-margin);
  }
}
