/* ==========================================================================
   SIMPSON THACHER & BARTLETT LLP (STBLAW.COM) - SISTEMA DE DISEÑO EXACTO
   Réplica de Alta Fidelidad - Desktop, Tablet y Mobile
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES CSS / TOKENS GLOBALES
   -------------------------------------------------------------------------- */
:root {
  /* Paleta Espresso */
  --wp--preset--color--espresso-800: rgba(58, 44, 32, 1);       /* #3A2C20 - Header principal */
  --wp--preset--color--espresso-700: rgba(73, 55, 40, 1);       /* #493728 - Texto primario, botones */
  --wp--preset--color--espresso-600: rgba(146, 135, 126, 1);    /* #92877E - Divisores y líneas */
  --wp--preset--color--espresso-400: rgba(73, 55, 40, 0.25);
  --wp--preset--color--espresso-300: rgba(200, 195, 191, 1);    /* #C8C3BF */
  --wp--preset--color--espresso-50:  rgba(246, 245, 244, 1);    /* #F6F5F4 - Fondo crema cálido */
  --wp--preset--color--text-on-light-muted: rgba(119, 105, 94, 1); /* #77695E - Eyebrows, fechas */

  /* Paleta Sky Blue */
  --wp--preset--color--sky-blue-700: rgba(156, 182, 211, 1);    /* #9CB6D3 - Fondo Footer */
  --wp--preset--color--sky-blue-800: rgba(125, 146, 169, 1);    /* #7D92A9 */
  --wp--preset--color--sky-blue-600: rgba(196, 211, 229, 1);    /* #C4D3E5 */
  --wp--preset--color--sky-blue-300: rgba(225, 233, 242, 1);    /* #E1E9F2 */
  --wp--preset--color--sky-blue-50:  rgba(250, 251, 253, 1);    /* #FAFBFD */

  /* Acentos y Neutrales */
  --wp--preset--color--neutral-100: #FFFFFF;
  --wp--preset--color--neutral-900: rgba(35, 31, 32, 1);        /* #231F20 */
  --wp--preset--color--accent-midnight-navy: rgba(31, 53, 94, 1); /* #1F355E - Cabeceras oscuras */
  --wp--preset--color--accent-harbor-blue:  rgba(97, 142, 180, 1);/* #618EB4 - Tarjeta Sedes / Chips */
  --wp--preset--color--accent-olive-green:  rgba(115, 152, 74, 1);/* #73984A - Tarjeta Prácticas */
  --wp--preset--color--accent-mulberry-clay: rgba(141, 60, 69, 1);/* #8D3C45 - Tarjeta Abogados */
  --wp--preset--color--accent-royal-signal:  rgba(0, 85, 184, 1); /* #0055B8 */
  --wp--preset--color--text-hover: rgba(75, 111, 141, 1);        /* #4B6F8D */

  /* Tipografías */
  --wp--preset--font-family--inter: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wp--preset--font-family--serif: "Georgia", "Gelasio", "Times New Roman", serif;

  /* Dimensiones y Spacing */
  --stb-header-height: 86.5px;
  --stb-header-height-mobile: 80px;
  --stb-section-gutter: 18px;
  --stb-max-content-width: 1272px;
  --stb-max-container-width: 1308px; /* 1272px + 2*18px */
  --stb-max-1440: 1440px;

  /* Radios */
  --radius-xxs: 4px;
  --radius-xs: 8px;
  --radius-s: 16px;
  --radius-m: 32px;
  --radius-l: 64px;
  --radius-pill: 999px;
  --border-radius-btn: 10px;

  /* Transiciones */
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET Y ESTILOS BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--wp--preset--font-family--inter);
  color: var(--wp--preset--color--espresso-700);
  background-color: var(--wp--preset--color--neutral-100);
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--wp--preset--color--text-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. TIPOGRAFÍA Y ESCALA STB
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.wp-block-title,
.stb-article-title,
.cta-card-title,
.section-headline {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 400;
  line-height: 1.18;
  color: var(--wp--preset--color--espresso-700);
}

h1.wp-block-title--xxl,
h2.wp-block-title--xxl {
  font-size: clamp(2rem, 1.6rem + 1.8vw, 2.75rem); /* 32px a 44px */
  letter-spacing: -0.015em;
}

h2.wp-block-title--xl,
h3.wp-block-title--xl {
  font-size: clamp(1.75rem, 1.45rem + 1.2vw, 2.375rem); /* 28px a 38px */
}

h2.wp-block-title--l,
h3.wp-block-title--l {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); /* 24px a 32px */
}

h3.wp-block-title--m {
  font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.75rem); /* 22px a 28px */
}

.wp-block-eyebrow {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.8125rem; /* 13px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wp--preset--color--text-on-light-muted);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.text-muted {
  color: var(--wp--preset--color--text-on-light-muted);
}

/* --------------------------------------------------------------------------
   4. LAYOUT Y CONTENEDORES
   -------------------------------------------------------------------------- */
.stb-container {
  width: 100%;
  max-width: var(--stb-max-container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--stb-section-gutter);
  padding-right: var(--stb-section-gutter);
}

.mx-auto-1440 {
  width: 100%;
  max-width: var(--stb-max-1440);
  margin-left: auto;
  margin-right: auto;
  padding-inline: 40px;
}

.stb-section {
  padding-top: 72px;
  padding-bottom: 72px;
  position: relative;
}

.stb-section--small {
  padding-top: 44px;
  padding-bottom: 44px;
}

.stb-section--large {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* --------------------------------------------------------------------------
   5. BOTONES Y ENLACES STB
   -------------------------------------------------------------------------- */
.stb-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--wp--preset--color--espresso-700);
  color: var(--wp--preset--color--neutral-100);
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--border-radius-btn);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.stb-btn-primary:hover {
  background-color: var(--wp--preset--color--espresso-800);
  color: var(--wp--preset--color--neutral-100);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 44, 32, 0.15);
}

.stb-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--wp--preset--color--espresso-700);
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--border-radius-btn);
  border: 1px solid var(--wp--preset--color--espresso-700);
  transition: all var(--transition-fast);
}

.stb-btn-secondary:hover {
  background-color: var(--wp--preset--color--espresso-50);
  color: var(--wp--preset--color--espresso-800);
}

.stb-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wp--preset--color--espresso-700);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.stb-link-arrow:hover {
  color: var(--wp--preset--color--text-hover);
  transform: translateX(4px);
}

.stb-link-arrow svg {
  transition: transform var(--transition-fast);
}

.stb-link-arrow:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   6. HEADER PRINCIPAL (.main-header)
   -------------------------------------------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--stb-header-height);
  background-color: color-mix(in srgb, var(--wp--preset--color--espresso-800) 98%, transparent);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color var(--transition-fast), height var(--transition-fast);
}

.main-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--stb-max-1440);
  margin-left: auto;
  margin-right: auto;
  padding-inline: 40px;
}

/* Logo */
.main-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.main-header__logo img {
  max-height: 44px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  transition: all var(--transition-fast);
}

/* Navegación Desktop */
.main-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-header__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-header__link,
.main-header__menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
  color: var(--wp--preset--color--neutral-100);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
  background: transparent;
  border: none;
  cursor: pointer;
}

.main-header__link:hover,
.main-header__menu-btn:hover,
.main-header__menu-btn[aria-expanded="true"] {
  color: var(--wp--preset--color--sky-blue-600);
}

.main-header__menu-btn svg.chevron-icon {
  transition: transform var(--transition-fast);
}

.main-header__menu-btn[aria-expanded="true"] svg.chevron-icon {
  transform: rotate(180deg);
}

/* Botón Búsqueda Circular */
.header-search-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-m);
  background-color: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--neutral-100);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
}

.header-search-icon:hover {
  background-color: rgba(255, 255, 255, 0.22);
  transform: scale(1.04);
}

/* Iconos Header Móvil/Tablet */
.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1004;
}

.mobile-search-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--neutral-100);
  cursor: pointer;
}

.hamburger-btn {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: var(--wp--preset--color--neutral-100);
  cursor: pointer;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--wp--preset--color--neutral-100);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-line:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. MEGA-MENÚS DESKOPT (#mega-menu-popover)
   -------------------------------------------------------------------------- */
.header-mega-menu {
  position: fixed;
  left: 0;
  top: var(--stb-header-height);
  width: 100%;
  background-color: var(--wp--preset--color--neutral-100);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  z-index: 999;
  max-height: calc(100vh - var(--stb-header-height));
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  border-top: 1px solid var(--wp--preset--color--espresso-50);
}

.header-mega-menu.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.megamenu-panel {
  display: none;
  padding-top: 48px;
  padding-bottom: 56px;
}

.megamenu-panel.is-active {
  display: block;
}

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

.megamenu-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

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

.megamenu-column-title {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.375rem; /* 22px */
  color: var(--wp--preset--color--espresso-700);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--wp--preset--color--espresso-300);
}

.megamenu-links-list li {
  margin-bottom: 12px;
}

.megamenu-links-list a {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.9375rem;
  color: var(--wp--preset--color--espresso-700);
  display: inline-block;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.megamenu-links-list a:hover {
  color: var(--wp--preset--color--text-hover);
  transform: translateX(4px);
}

.megamenu-view-all {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wp--preset--color--espresso-700);
}

.megamenu-view-all:hover {
  color: var(--wp--preset--color--text-hover);
}

/* Oficinas en Mega-Menu About */
.megamenu-offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
}

.megamenu-languages-row {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--wp--preset--color--espresso-300);
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
}

.megamenu-languages-row a {
  border-left: 2px solid var(--wp--preset--color--accent-harbor-blue);
  padding-left: 8px;
  color: var(--wp--preset--color--espresso-700);
}

/* --------------------------------------------------------------------------
   8. SEARCH OVERLAY (DESKTOP Y MÓVIL)
   -------------------------------------------------------------------------- */
.header-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--stb-header-height);
  background-color: #FFFFFF;
  z-index: 1005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all var(--transition-smooth);
}

.header-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-search-form {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 834px;
}

.header-search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-input {
  width: 100%;
  height: 52px;
  padding: 0 24px;
  background-color: var(--wp--preset--color--espresso-50);
  border: 1px solid var(--wp--preset--color--espresso-300);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  color: var(--wp--preset--color--espresso-700);
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.header-search-input:focus {
  border-color: var(--wp--preset--color--espresso-700);
  background-color: #FFFFFF;
}

.header-search-submit {
  width: 44px;
  height: 44px;
  position: absolute;
  right: 4px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--espresso-700);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.header-search-submit:hover {
  background-color: var(--wp--preset--color--espresso-800);
}

.header-search-cancel {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--wp--preset--color--espresso-700);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  transition: color var(--transition-fast);
}

.header-search-cancel:hover {
  color: var(--wp--preset--color--text-hover);
}

/* --------------------------------------------------------------------------
   9. DRAWER LATERAL MÓVIL / TABLET (323px ancho)
   -------------------------------------------------------------------------- */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: var(--stb-header-height-mobile);
  right: 0;
  width: 323px;
  height: calc(100vh - var(--stb-header-height-mobile));
  background-color: var(--wp--preset--color--neutral-100);
  z-index: 1002;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-level {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-level.is-active {
  display: flex;
}

.mobile-nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wp--preset--color--text-on-light-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--wp--preset--color--espresso-50);
  margin-bottom: 12px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 1.0625rem; /* 17px */
  font-weight: 500;
  color: var(--wp--preset--color--espresso-700);
  padding: 12px 0;
  border-bottom: 1px solid var(--wp--preset--color--espresso-50);
}

.mobile-nav-link svg {
  color: var(--wp--preset--color--text-on-light-muted);
}

.mobile-nav-sublinks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 8px;
}

.mobile-nav-sublinks a {
  font-size: 0.9375rem;
  color: var(--wp--preset--color--espresso-700);
  padding: 6px 0;
}

/* --------------------------------------------------------------------------
   10. HERO DE LA HOME (.stb-homepage-hero)
   -------------------------------------------------------------------------- */
.stb-homepage-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--stb-header-height));
  min-height: 800px;
  margin-top: var(--stb-header-height);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stb-homepage-hero__slides-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.stb-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
}

.stb-hero-slide.is-active {
  opacity: 1;
}

.stb-homepage-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(20, 15, 10, 0.55) 0%, rgba(20, 15, 10, 0.45) 50%, rgba(20, 15, 10, 0.82) 100%);
  pointer-events: none;
}

/* Buscador Predictivo en Hero */
.stb-homepage-hero__search {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 834px;
  padding-inline: 24px;
}

.stb-predictive-search {
  position: relative;
  width: 100%;
}

.stb-predictive-search__box {
  width: 100%;
  height: 72px;
  background-color: #FFFFFF;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  padding: 0 10px 0 28px;
  transition: box-shadow var(--transition-fast);
}

.stb-predictive-search__box:focus-within {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.stb-predictive-search__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.125rem; /* 18px */
  color: var(--wp--preset--color--espresso-700);
  outline: none;
}

.stb-predictive-search__input::placeholder {
  color: var(--wp--preset--color--text-on-light-muted);
}

.stb-predictive-search__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--espresso-700);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.stb-predictive-search__btn:hover {
  background-color: var(--wp--preset--color--espresso-800);
  transform: scale(1.05);
}

/* Resultados Predictivos Dropdown */
.auto-results-container {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  border-radius: var(--radius-s);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  padding: 24px;
  z-index: 100;
  display: none;
}

.auto-results-container.is-active {
  display: block;
}

.auto-results-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--text-on-light-muted);
  margin-bottom: 12px;
}

.auto-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auto-results-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  color: var(--wp--preset--color--espresso-700);
  font-size: 0.9375rem;
  transition: background-color var(--transition-fast);
}

.auto-results-item a:hover {
  background-color: var(--wp--preset--color--espresso-50);
  color: var(--wp--preset--color--text-hover);
}

.auto-results-tag {
  font-size: 0.75rem;
  color: var(--wp--preset--color--text-on-light-muted);
}

/* Controles Inferiores del Hero */
.stb-homepage-hero__controls {
  position: absolute;
  bottom: 28px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 40px;
  z-index: 10;
  color: #FFFFFF;
}

.stb-hero-controls-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stb-hero-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: background-color var(--transition-fast);
}

.stb-hero-ctrl-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.stb-hero-progress-track {
  width: 120px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.stb-hero-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #FFFFFF;
}

.stb-hero-slide-counter {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
}

/* --------------------------------------------------------------------------
   11. SECCIÓN LATEST NEWS (CARRUSEL 3 TARJETAS DESKTOP)
   -------------------------------------------------------------------------- */
.stb-article-section {
  position: relative;
  background-color: #FFFFFF;
  overflow: hidden;
}

.accent-circle-1 {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--sky-blue-700);
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}

.stb-article-section__header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.stb-article-feed--slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
}

.stb-article-feed__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  border-right: 1px dotted var(--wp--preset--color--espresso-600);
  background-color: #FFFFFF;
  transition: transform var(--transition-fast);
}

.stb-article-feed__card:last-child {
  border-right: none;
}

.stb-article-card-top {
  margin-bottom: 24px;
}

.stb-article-category {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--text-on-light-muted);
  margin-bottom: 12px;
  display: block;
}

.stb-article-title {
  font-size: 1.375rem; /* 22px */
  line-height: 1.3;
  color: var(--wp--preset--color--espresso-700);
  margin-bottom: 16px;
}

.stb-article-title a:hover {
  color: var(--wp--preset--color--text-hover);
}

.stb-article-excerpt {
  font-size: 0.9375rem;
  color: var(--wp--preset--color--text-on-light-muted);
  line-height: 1.5;
}

/* Avatares superpuestos */
.stb-avatar-stack {
  display: flex;
  align-items: center;
  gap: -12px;
  padding-top: 20px;
  border-top: 1px dotted var(--wp--preset--color--espresso-300);
}

.stb-avatar-stack-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  overflow: hidden;
  margin-right: -12px;
  background-color: var(--wp--preset--color--espresso-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stb-avatar-stack-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stb-avatar-stack-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background-color: var(--wp--preset--color--accent-midnight-navy);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stb-article-feed-footer {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   12. ZIGZAG SPLIT-SCREEN (NUESTRA HISTORIA & STATEMENT FROM THE CHAIR)
   -------------------------------------------------------------------------- */
.image-content-block {
  padding-top: 72px;
  padding-bottom: 72px;
  position: relative;
  overflow: hidden;
}

.image-content-block.is-cream-bg {
  background-color: var(--wp--preset--color--espresso-50);
}

.image-content-block__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.image-content-block.is-layout-image-left .image-content-block__inner {
  direction: ltr;
}

.image-content-block.is-layout-image-right .image-content-block__media {
  order: 2;
}

.image-content-block.is-layout-image-right .image-content-block__text {
  order: 1;
}

.image-content-block__media {
  position: relative;
  border-radius: var(--radius-s);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(58, 44, 32, 0.1);
}

.video-embed-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background-color: var(--wp--preset--color--espresso-800);
}

.video-embed-container iframe,
.video-embed-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--espresso-700);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
  z-index: 5;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background-color: var(--wp--preset--color--espresso-800);
}

.image-content-block__text-content {
  max-width: 540px;
}

.image-content-block__title {
  font-size: clamp(1.85rem, 1.5rem + 1.2vw, 2.5rem);
  margin-bottom: 20px;
  color: var(--wp--preset--color--espresso-700);
}

.image-content-block__body {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--wp--preset--color--espresso-700);
  margin-bottom: 28px;
}

.image-content-block__quote {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--wp--preset--color--espresso-700);
  margin-bottom: 24px;
  border-left: 3px solid var(--wp--preset--color--espresso-600);
  padding-left: 20px;
}

/* --------------------------------------------------------------------------
   13. MAPA GLOBAL Y SEDES INTERNACIONALES (.stb-offices-section)
   -------------------------------------------------------------------------- */
.stb-offices-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #FFFFFF;
}

.stb-offices-section__header-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: end;
}

.stb-offices-section__map-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  position: relative;
}

.stb-map-sticky-col {
  position: sticky;
  top: calc(var(--stb-header-height) + 24px);
  height: fit-content;
}

.stb-map-frame {
  position: relative;
  border-radius: var(--radius-s);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  background-color: var(--wp--preset--color--espresso-50);
  padding: 16px;
}

.stb-office-list__items {
  display: flex;
  flex-direction: column;
}

.stb-office-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px dotted var(--wp--preset--color--espresso-600);
  transition: background-color var(--transition-fast), padding-left var(--transition-fast);
}

.stb-office-item:hover {
  background-color: var(--wp--preset--color--espresso-50);
  padding-left: 24px;
}

.stb-office-name {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.25rem;
  color: var(--wp--preset--color--espresso-700);
}

.stb-office-arrow {
  color: var(--wp--preset--color--accent-harbor-blue);
  transition: transform var(--transition-fast);
}

.stb-office-item:hover .stb-office-arrow {
  transform: translateX(4px);
}

.stb-offices-footer-btn {
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   14. CUADRÍCULA DE MÉTRICAS (WAYFINDING GRID 2X2 DARK)
   -------------------------------------------------------------------------- */
.wp-block-wayfinding-grid {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: var(--wp--preset--color--accent-midnight-navy);
}

.cta-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  border-radius: 6px;
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 8px 16px 4px rgba(16, 25, 38, 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px 6px rgba(16, 25, 38, 0.3);
  color: #FFFFFF;
}

.cta-card--sedes {
  background-color: var(--wp--preset--color--accent-harbor-blue);
}

.cta-card--industrias {
  background-color: var(--wp--preset--color--espresso-700);
}

.cta-card--practicas {
  background-color: var(--wp--preset--color--accent-olive-green);
}

.cta-card--abogados {
  background-color: var(--wp--preset--color--accent-mulberry-clay);
}

.cta-card-title {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2.125rem); /* ~24px a 34px */
  color: #FFFFFF;
}

.cta-card-arrow-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #FFFFFF;
  color: var(--wp--preset--color--espresso-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.cta-card:hover .cta-card-arrow-circle {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   15. RED DE ENLACES (LINK GRID: RECURSOS, PRO BONO, PERSPECTIVAS)
   -------------------------------------------------------------------------- */
.stb-link-grid-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #FFFFFF;
}

.stb-link-grid-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.stb-link-grid-column__title {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.5rem;
  color: var(--wp--preset--color--espresso-700);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--wp--preset--color--espresso-700);
}

.stb-link-grid-items {
  display: flex;
  flex-direction: column;
}

.stb-link-grid-row {
  padding: 14px 0;
  border-bottom: 1px dotted var(--wp--preset--color--espresso-600);
}

.stb-link-grid-row a {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.9375rem;
  color: var(--wp--preset--color--espresso-700);
  transition: color var(--transition-fast);
  display: block;
}

.stb-link-grid-row a:hover {
  color: var(--wp--preset--color--text-hover);
}

.stb-link-grid-item-card {
  padding: 18px 0;
  border-bottom: 1px dotted var(--wp--preset--color--espresso-600);
}

.stb-link-grid-item-date {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--text-on-light-muted);
  margin-bottom: 6px;
  display: block;
}

.stb-link-grid-item-title {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.125rem;
  color: var(--wp--preset--color--espresso-700);
  line-height: 1.35;
}

.stb-link-grid-item-title a:hover {
  color: var(--wp--preset--color--text-hover);
}

.stb-link-grid-btn {
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   16. FOOTER STB (.footer-section.has-sky-blue-700-background-color)
   -------------------------------------------------------------------------- */
.footer-section {
  background-color: var(--wp--preset--color--sky-blue-700);
  color: var(--wp--preset--color--espresso-700);
  padding-top: 60px;
  padding-bottom: 40px;
  font-family: var(--wp--preset--font-family--inter);
}

.footer-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(73, 55, 40, 0.2);
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand img {
  max-height: 40px;
  width: auto;
  max-width: 195px;
  object-fit: contain;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--wp--preset--color--espresso-700);
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--wp--preset--color--espresso-700);
}

.footer-nav-links a:hover {
  color: var(--wp--preset--color--espresso-800);
  text-decoration: underline;
}

.footer-row-middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(73, 55, 40, 0.2);
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-subscribe-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
}

.footer-subscribe-title {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.25rem;
  color: var(--wp--preset--color--espresso-700);
}

.footer-subscribe-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-subscribe-input {
  flex: 1;
  height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(73, 55, 40, 0.3);
  background-color: #FFFFFF;
  color: var(--wp--preset--color--espresso-700);
  outline: none;
}

.footer-subscribe-btn {
  height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-xs);
  background-color: var(--wp--preset--color--espresso-700);
  color: #FFFFFF;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color var(--transition-fast);
}

.footer-subscribe-btn:hover {
  background-color: var(--wp--preset--color--espresso-800);
}

.footer-subscribe-note {
  font-size: 0.75rem;
  color: var(--wp--preset--color--espresso-700);
  opacity: 0.85;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #FFFFFF;
  color: var(--wp--preset--color--espresso-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.footer-social-btn:hover {
  transform: scale(1.08);
  background-color: var(--wp--preset--color--espresso-50);
}

.footer-bottom-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.75rem;
}

.footer-disclaimer {
  max-width: 680px;
  line-height: 1.5;
  color: var(--wp--preset--color--espresso-700);
  opacity: 0.9;
}

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

.footer-legal-links a {
  color: var(--wp--preset--color--espresso-700);
}

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

/* --------------------------------------------------------------------------
   17. PÁGINAS SECUNDARIAS: CABECERAS INTERIORES & ESTILOS
   -------------------------------------------------------------------------- */
.stb-page-header {
  position: relative;
  padding-top: 130px;
  padding-bottom: 56px;
  background-color: var(--wp--preset--color--espresso-50);
}

.stb-page-header.dark {
  background-color: var(--wp--preset--color--accent-midnight-navy);
  color: #FFFFFF;
}

.stb-breadcrumbs {
  font-size: 0.8125rem;
  color: var(--wp--preset--color--text-on-light-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stb-page-header.dark .stb-breadcrumbs {
  color: rgba(255, 255, 255, 0.7);
}

.stb-breadcrumbs a {
  color: inherit;
}

.stb-breadcrumbs a:hover {
  text-decoration: underline;
}

.stb-page-title {
  font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem);
  color: var(--wp--preset--color--espresso-700);
}

.stb-page-header.dark .stb-page-title {
  color: #FFFFFF;
}

/* Buscador en Header de Nuestro Equipo */
.team-search-wrap {
  margin-top: 28px;
  max-width: 614px;
}

.team-search-input {
  width: 100%;
  height: 64px;
  border-radius: var(--radius-pill);
  background-color: #FFFFFF;
  border: 1px solid transparent;
  padding: 0 24px;
  font-size: 1.0625rem;
  color: var(--wp--preset--color--espresso-700);
  outline: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Fila de Filtros con Borde Discontinuo */
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--wp--preset--color--espresso-300);
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wp-btn-filter {
  height: 44px;
  padding: 0 16px;
  border: 1px dashed var(--wp--preset--color--espresso-600);
  border-radius: var(--radius-xs);
  background-color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp--preset--color--espresso-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wp-btn-filter:hover {
  border-color: var(--wp--preset--color--espresso-700);
  background-color: var(--wp--preset--color--espresso-50);
}

.filter-results-counter {
  font-size: 0.875rem;
  color: var(--wp--preset--color--text-on-light-muted);
}

.view-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-switcher-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xxs);
  border: 1px solid var(--wp--preset--color--espresso-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--espresso-700);
}

.view-switcher-btn.is-active {
  background-color: var(--wp--preset--color--espresso-700);
  color: #FFFFFF;
  border-color: var(--wp--preset--color--espresso-700);
}

/* Grid de Abogados / Sedes (3 Columnas) */
.stb-card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stb-lawyer-card {
  border: 1px solid var(--wp--preset--color--espresso-300);
  border-radius: var(--radius-xs);
  overflow: hidden;
  background-color: #FFFFFF;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stb-lawyer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(58, 44, 32, 0.1);
}

.stb-lawyer-card__photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background-color: var(--wp--preset--color--espresso-50);
}

.stb-lawyer-card__info {
  padding: 24px;
}

.stb-lawyer-name {
  font-size: 1.25rem;
  color: var(--wp--preset--color--espresso-700);
  margin-bottom: 6px;
}

.stb-lawyer-role {
  font-size: 0.875rem;
  color: var(--wp--preset--color--text-on-light-muted);
  margin-bottom: 12px;
}

.stb-lawyer-contact {
  font-size: 0.8125rem;
  color: var(--wp--preset--color--espresso-700);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Chips de Prácticas */
.stb-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.stb-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--wp--preset--color--accent-harbor-blue);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Formulario de Contacto (Caja Crema) */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-form-box {
  background-color: var(--wp--preset--color--espresso-50);
  border-radius: var(--radius-s);
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

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

.contact-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wp--preset--color--espresso-700);
  margin-bottom: 8px;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--wp--preset--color--espresso-300);
  background-color: #FFFFFF;
  color: var(--wp--preset--color--espresso-700);
  outline: none;
  transition: border-color var(--transition-fast);
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
  border-color: var(--wp--preset--color--espresso-700);
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE MEDIA QUERIES (TABLET Y MÓVIL EXACTOS)
   -------------------------------------------------------------------------- */

/* Tablet & Mobile (<= 1024px) */
@media screen and (max-width: 1024px) {
  :root {
    --stb-header-height: var(--stb-header-height-mobile);
  }

  .main-header__nav {
    display: none;
  }

  .header-search-icon {
    display: none;
  }

  .mobile-header-actions {
    display: flex;
  }

  .main-header__container {
    padding-inline: 20px;
  }

  .main-header__logo img {
    max-height: 36px;
    width: auto;
    max-width: 165px;
  }

  .header-mega-menu {
    display: none !important;
  }

  .stb-homepage-hero {
    min-height: 640px;
    height: 75vh;
  }

  .stb-article-feed--slider {
    grid-template-columns: repeat(2, 1fr);
  }

  .stb-article-feed__card:nth-child(2) {
    border-right: none;
  }

  .stb-article-feed__card:nth-child(3) {
    display: none;
  }

  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-row-top,
  .footer-row-middle,
  .footer-bottom-sec {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile Small (<= 767px) */
@media screen and (max-width: 767px) {
  .stb-homepage-hero {
    min-height: 520px;
    height: 70vh;
  }

  .stb-predictive-search__box {
    height: 60px;
    padding: 0 8px 0 18px;
  }

  .stb-predictive-search__input {
    font-size: 0.9375rem;
  }

  .stb-homepage-hero__controls {
    padding-inline: 20px;
    bottom: 16px;
  }

  .stb-article-feed--slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
  }

  .stb-article-feed__card {
    min-width: 285px;
    scroll-snap-align: start;
    border-right: none;
    border: 1px solid var(--wp--preset--color--espresso-300);
    border-radius: var(--radius-xs);
  }

  .stb-article-feed__card:nth-child(3) {
    display: flex;
  }

  .image-content-block__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .image-content-block.is-layout-image-right .image-content-block__media {
    order: 1;
  }

  .image-content-block.is-layout-image-right .image-content-block__text {
    order: 2;
  }

  .stb-offices-section__header-row,
  .stb-offices-section__map-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stb-map-sticky-col {
    position: static;
  }

  .cta-grid-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stb-link-grid-columns {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stb-card-grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-form-box {
    padding: 24px 18px;
  }

  .footer-subscribe-form {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-subscribe-btn {
    width: 100%;
  }
}
