/*
Theme Name: UAE Equipment Rental
Theme URI: https://uaeequipmentrental.ae
Author: Codex
Description: Mobile-first WordPress theme for UAE bobcat and CAT 226B skid steer loader rental, built from the project SRS.
Version: 1.1.6
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: dubai-bobcat-rental
*/

:root {
  --ink: #171717;
  --muted: #5f6670;
  --line: #dde3e6;
  --paper: #ffffff;
  --soft: #f4f7f6;
  --yellow: #f4bf2a;
  --teal: #0d6f72;
  --steel: #26343d;
  --shadow: 0 18px 60px rgba(23, 23, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background: var(--paper);
  max-width: 100%;
  overflow-x: hidden;
}

body.admin-bar .site-header {
  top: 32px;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  padding: 0.85rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  max-width: min(460px, 44vw);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
}

.nav-cta {
  padding: 0.62rem 0.95rem;
  background: var(--ink);
  color: white;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.language-switcher a {
  display: inline-grid;
  min-width: 34px;
  min-height: 28px;
  place-items: center;
  padding: 0 0.5rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.language-switcher a[aria-current="true"] {
  background: var(--ink);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: white;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--steel);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(14, 18, 21, 0.88), rgba(14, 18, 21, 0.58) 43%, rgba(14, 18, 21, 0.14)),
    linear-gradient(0deg, rgba(14, 18, 21, 0.4), rgba(14, 18, 21, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem);
  color: white;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.hero-lede {
  max-width: 680px;
  margin: 1.15rem 0 1.7rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.1rem;
  border: 2px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.7);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.trust-band div {
  padding: 1.15rem clamp(1rem, 2vw, 1.6rem);
  border-right: 1px solid var(--line);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.split-section,
.quote-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.section p {
  color: var(--muted);
}

.service-list,
.area-grid {
  display: grid;
  gap: 1rem;
}

.service-list article,
.area-grid article,
.content-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.machine-section,
.areas-section,
.editor-content {
  background: var(--soft);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 2rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.spec-grid div {
  min-height: 150px;
  padding: 1.25rem;
  background: white;
}

.spec-grid span {
  display: block;
  color: var(--muted);
}

.spec-grid strong {
  display: block;
  margin-top: 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.attachment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.attachment-row span {
  padding: 0.55rem 0.8rem;
  background: var(--steel);
  color: white;
}

.quote-section {
  background: var(--steel);
  color: white;
}

.quote-section p,
.quote-section .check-list {
  color: rgba(255, 255, 255, 0.78);
}

.check-list {
  padding-left: 1.2rem;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: white;
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 0.38rem;
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 700;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem;
  border: 1px solid #c8d0d5;
  border-radius: 4px;
  font: inherit;
}

.quote-form textarea {
  resize: vertical;
}

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

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--teal);
  font-weight: 700;
}

.area-grid {
  grid-template-columns: repeat(4, 1fr);
}

.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 980px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

summary {
  min-height: 56px;
  padding: 1rem;
  font-weight: 800;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 1rem 1rem;
}

.editor-content {
  min-height: 45vh;
}

.editor-content .section {
  max-width: 980px;
  margin: 0 auto;
}

.editor-content h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  color: white;
  background: #111;
}

.site-footer p {
  max-width: 540px;
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a {
  color: white;
}

.mobile-cta {
  display: none;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.58) 44%, rgba(17, 24, 39, 0.08)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.35), rgba(17, 24, 39, 0));
}

html[dir="rtl"] .hero-content {
  margin-left: auto;
  text-align: right;
}

html[dir="rtl"] .check-list {
  padding-right: 1.2rem;
  padding-left: 0;
}

html[dir="rtl"] .quote-form input,
html[dir="rtl"] .quote-form select,
html[dir="rtl"] .quote-form textarea,
html[dir="rtl"] .fluentform input.ff-el-form-control,
html[dir="rtl"] .fluentform select.ff-el-form-control,
html[dir="rtl"] .fluentform textarea.ff-el-form-control {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[name*="phone"],
html[dir="rtl"] input[name*="whatsapp"] {
  direction: ltr;
  text-align: right;
}

html[dir="rtl"] .breadcrumbs span {
  transform: scaleX(-1);
}

.cky-consent-container,
.cky-modal,
.cky-preference-center {
  max-width: calc(100vw - 24px) !important;
}

.cky-consent-container {
  left: 12px !important;
  right: 12px !important;
  width: auto !important;
}

.cky-modal {
  width: calc(100vw - 24px) !important;
}

.cky-accordion-chevron {
  flex: 0 0 16px !important;
  max-width: 16px !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 44px;
  }

  .brand {
    max-width: calc(100% - 62px);
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem;
  }

  .trust-band,
  .spec-grid,
  .area-grid,
  .split-section,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .trust-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(14, 18, 21, 0.88), rgba(14, 18, 21, 0.42));
  }

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

  .site-footer {
    flex-direction: column;
    padding-bottom: 5.5rem;
  }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
  }

  .mobile-cta a {
    min-height: 58px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: white;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-cta a + a {
    background: var(--yellow);
    color: var(--ink);
  }
}

@media (max-width: 520px) {
  html[dir="rtl"] .site-header {
    direction: ltr;
  }

  html[dir="rtl"] .brand {
    direction: ltr;
    text-align: left;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  html[dir="rtl"] .hero-content {
    margin-right: 0;
    margin-left: 0;
  }

  html[dir="rtl"] .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.1rem, 10.5vw, 2.8rem);
    line-height: 1.08;
    white-space: normal;
    word-break: break-word;
  }

  html[dir="rtl"] .hero-lede {
    font-size: 0.95rem;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 660px;
  }

  .hero-actions .button {
    width: 100%;
  }
}

/* ERC-inspired visual system applied to the rental site. */
:root {
  --erc-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --erc-font-size-body: 0.875rem;
  --erc-font-size-label: 0.8125rem;
  --erc-text-title: #111827;
  --erc-text-strong: #111827;
  --erc-text-body: #4b5563;
  --erc-text-muted: #6b7280;
  --erc-app-surface: #ffffff;
  --erc-app-surface-muted: #f9fafb;
  --erc-app-surface-hover: #f3f4f6;
  --erc-app-border: #e5e7eb;
  --erc-control-height: 2.25rem;
  --erc-control-radius: 6px;
  --erc-control-padding-x: 0.75rem;
  --erc-control-border: #d1d5db;
  --erc-control-bg: #ffffff;
  --erc-control-focus-ring: rgba(244, 191, 42, 0.26);
  --erc-card-radius: 12px;
  --erc-card-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.04);

  --ink: var(--erc-text-strong);
  --muted: var(--erc-text-muted);
  --line: var(--erc-app-border);
  --paper: var(--erc-app-surface);
  --soft: #f3f6f5;
  --teal: #0d6f72;
  --steel: #24323a;
  --shadow: var(--erc-card-shadow);
}

body {
  font-family: var(--erc-font-family);
  font-size: var(--erc-font-size-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--erc-text-body);
  background: var(--paper);
}

h1,
h2,
h3 {
  color: var(--erc-text-title);
  font-weight: 700;
}

.site-header {
  min-height: 64px;
  padding: 0.65rem clamp(1.25rem, 4vw, 4rem);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--erc-app-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.brand {
  gap: 0.62rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-width: 1px;
  font-size: 0.72rem;
  border-radius: 2px;
}

.brand strong {
  font-size: 0.82rem;
  line-height: 1.15;
  color: var(--erc-text-title);
}

.brand small {
  margin-top: 0.12rem;
  font-size: 0.68rem;
  color: var(--erc-text-muted);
}

.site-nav,
.site-nav ul {
  gap: clamp(0.6rem, 1.6vw, 1.1rem);
}

.site-nav {
  font-size: 0.78rem;
  line-height: 1.2;
}

.site-nav a {
  color: var(--erc-text-title);
}

.site-nav a:hover {
  color: #0d6f72;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--erc-control-height);
  padding: 0 var(--erc-control-padding-x);
  border-radius: 0;
  background: #111827;
  color: #fff !important;
  font-weight: 600;
}

.hero {
  min-height: clamp(500px, 52vw, 610px);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.58) 44%, rgba(17, 24, 39, 0.08)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.35), rgba(17, 24, 39, 0));
}

.hero-content {
  max-width: 720px;
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1.5rem, 5vw, 5rem);
}

.hero h1,
.hero .hero-lede,
.hero .button.secondary {
  color: #fff;
}

.hero h1 {
  font-size: clamp(3.5rem, 6.8vw, 5.85rem);
  font-weight: 800;
  line-height: 0.98;
}

.hero-lede {
  max-width: 640px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.55;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.button,
.quote-form .button,
.ff-btn.ff-btn-submit {
  box-sizing: border-box;
  min-height: var(--erc-control-height);
  height: var(--erc-control-height);
  padding: 0 var(--erc-control-padding-x);
  border-width: 1px;
  border-radius: var(--erc-control-radius);
  font-size: var(--erc-font-size-body);
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.button:hover,
.ff-btn.ff-btn-submit:hover {
  box-shadow: 0 4px 12px rgba(244, 191, 42, 0.22);
}

.button:active,
.ff-btn.ff-btn-submit:active {
  transform: translateY(1px);
}

.button.primary,
.ff-btn.ff-btn-submit {
  background: var(--yellow) !important;
  border-color: var(--yellow) !important;
  color: #111827 !important;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.trust-band {
  background: var(--erc-app-surface-muted);
  border-top: 1px solid var(--erc-app-border);
  border-bottom: 1px solid var(--erc-app-border);
}

.trust-band div {
  padding: 1rem clamp(1rem, 2vw, 1.4rem);
  border-color: var(--erc-app-border);
}

.trust-band strong {
  color: var(--erc-text-title);
  font-size: var(--erc-font-size-label);
  font-weight: 600;
}

.trust-band span {
  margin-top: 0.2rem;
  color: var(--erc-text-muted);
  font-size: 0.74rem;
}

.section {
  padding: clamp(4rem, 7vw, 6.25rem) clamp(1.5rem, 5vw, 5rem);
}

.section p {
  color: var(--erc-text-body);
}

.split-section,
.quote-section {
  gap: clamp(2rem, 5vw, 5.5rem);
}

.split-section h2,
.section-heading h2,
.quote-section h2,
.faq-section h2 {
  max-width: 760px;
  font-size: clamp(2rem, 3.9vw, 3.15rem);
  line-height: 1.08;
  color: var(--erc-text-title);
}

.quote-section h2 {
  color: #fff;
}

.service-list article,
.area-grid article,
.content-card,
details {
  border: 1px solid var(--erc-card-border, var(--line));
  border-radius: var(--erc-card-radius);
  background: var(--erc-card-bg, #fff);
  box-shadow: none;
}

.service-list article,
.area-grid article {
  padding: 1.25rem 1.5rem;
}

.service-list h3,
.area-grid h3 {
  color: var(--erc-text-title);
  font-size: 0.95rem;
  font-weight: 600;
}

.service-list p,
.area-grid p {
  margin-bottom: 0;
  font-size: 0.82rem;
  color: var(--erc-text-body);
}

.machine-section,
.areas-section,
.editor-content {
  background: #f3f6f5;
}

.spec-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--erc-card-border, var(--line));
  border-radius: 0;
  background: var(--erc-card-border, var(--line));
}

.spec-grid div {
  min-height: 132px;
  padding: 1.35rem 1.5rem;
  background: #fff;
}

.spec-grid span {
  color: var(--erc-text-muted);
  font-size: 0.78rem;
}

.spec-grid strong {
  color: var(--erc-text-title);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 700;
}

.attachment-row {
  gap: 0.5rem;
}

.attachment-row span {
  padding: 0.42rem 0.65rem;
  border-radius: 2px;
  background: #24323a;
  font-size: 0.78rem;
  font-weight: 600;
}

.quote-section {
  background: #24323a;
}

.quote-section p,
.quote-section .check-list {
  color: rgba(255, 255, 255, 0.8);
}

.check-list {
  font-size: 0.85rem;
}

.quote-form {
  gap: 0.85rem 1rem;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  border: 1px solid var(--erc-card-border);
  border-radius: var(--erc-card-radius);
  box-shadow: var(--erc-card-shadow);
}

.quote-form label,
.fluentform .ff-el-input--label label {
  gap: 0.375rem;
  color: var(--erc-text-muted) !important;
  font-size: 0.78rem;
  font-weight: 400 !important;
}

.quote-form input,
.quote-form select,
.quote-form textarea,
.fluentform input.ff-el-form-control,
.fluentform select.ff-el-form-control,
.fluentform textarea.ff-el-form-control {
  min-height: var(--erc-control-height) !important;
  height: var(--erc-control-height);
  padding: 0 var(--erc-control-padding-x) !important;
  border: 1px solid var(--erc-control-border) !important;
  border-radius: var(--erc-control-radius) !important;
  background: var(--erc-control-bg) !important;
  color: var(--erc-control-text, #111827) !important;
  font: inherit !important;
  font-size: var(--erc-font-size-body) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quote-form textarea,
.fluentform textarea.ff-el-form-control {
  height: auto;
  min-height: 6rem !important;
  padding: 0.75rem !important;
}

.quote-form input:hover:not(:disabled):not(:focus),
.quote-form select:hover:not(:disabled):not(:focus),
.quote-form textarea:hover:not(:disabled):not(:focus),
.fluentform input.ff-el-form-control:hover:not(:disabled):not(:focus),
.fluentform select.ff-el-form-control:hover:not(:disabled):not(:focus),
.fluentform textarea.ff-el-form-control:hover:not(:disabled):not(:focus) {
  border-color: color-mix(in srgb, var(--yellow) 45%, var(--erc-control-border)) !important;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus,
.fluentform input.ff-el-form-control:focus,
.fluentform select.ff-el-form-control:focus,
.fluentform textarea.ff-el-form-control:focus {
  outline: none !important;
  border-color: var(--yellow) !important;
  box-shadow: 0 0 0 3px var(--erc-control-focus-ring) !important;
}

.form-note {
  color: #0d6f72;
  font-weight: 600;
}

.form-note.is-error {
  color: #b42318;
}

.contact-layout .lead-panel {
  padding: clamp(1.25rem, 2.4vw, 1.65rem);
}

.contact-layout .lead-panel h2 {
  margin-top: 1.25rem;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  line-height: 1.08;
}

.contact-layout .lead-panel p,
.contact-layout .lead-panel ul {
  margin-bottom: 1rem;
}

.contact-layout .fluentform fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.contact-layout .fluentform .ff-el-group {
  margin-bottom: 0 !important;
}

.contact-layout .fluentform .ff-el-input--label {
  margin-bottom: 0.35rem !important;
}

.contact-layout .fluentform .ff-el-group:has(textarea),
.contact-layout .fluentform .ff_submit_btn_wrapper {
  grid-column: 1 / -1;
}

.contact-layout .fluentform textarea.ff-el-form-control {
  min-height: 5.5rem !important;
}

.contact-layout .fluentform .ff-btn-submit {
  min-height: 44px;
  padding: 0 1rem !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
}

summary {
  min-height: 52px;
  padding: 0.95rem 1rem;
  color: var(--erc-text-title);
  font-size: 0.9rem;
  font-weight: 600;
}

details p {
  color: var(--erc-text-body);
}

.site-footer {
  background: #111;
}

.site-footer,
.site-footer p,
.footer-links a {
  font-size: 0.82rem;
}

.mobile-cta a {
  min-height: 52px;
  font-size: var(--erc-font-size-body);
  font-weight: 600;
}

.inner-page,
.blog-page,
.single-guide {
  background: var(--paper);
}

.inner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 5vw, 5rem) clamp(3rem, 6vw, 5rem);
  background:
    linear-gradient(135deg, rgba(244, 191, 42, 0.12), rgba(36, 50, 58, 0) 38%),
    var(--soft);
  border-bottom: 1px solid var(--erc-app-border);
}

.inner-hero__content {
  max-width: 860px;
}

.inner-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.98;
  font-weight: 800;
}

.inner-hero__lede {
  max-width: 820px;
  margin: 1rem 0 0;
  color: var(--erc-text-body);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.inner-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.inner-hero__panel,
.quote-card,
.lead-panel,
.post-card {
  border: 1px solid var(--erc-card-border, var(--line));
  border-radius: var(--erc-card-radius);
  background: #fff;
  box-shadow: var(--erc-card-shadow);
}

.inner-hero__panel {
  padding: 1.25rem;
}

.inner-hero__panel strong {
  display: block;
  color: var(--erc-text-title);
  font-size: 0.92rem;
  font-weight: 700;
}

.inner-hero__panel ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--erc-text-body);
}

.inner-hero__panel li + li {
  margin-top: 0.4rem;
}

.button.light {
  background: #fff;
  border-color: var(--erc-control-border);
  color: var(--erc-text-title);
}

.page-section {
  background: #fff;
}

.content-layout,
.contact-layout,
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.lead-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.lead-panel > *:first-child {
  margin-top: 0;
}

.lead-panel h2,
.lead-panel h3,
.guide-article h2,
.guide-article h3 {
  margin-top: 1.6rem;
  color: var(--erc-text-title);
}

.lead-panel p,
.lead-panel li,
.guide-article p,
.guide-article li {
  color: var(--erc-text-body);
  font-size: 0.95rem;
}

.quote-card {
  position: sticky;
  top: 88px;
  padding: clamp(1.25rem, 3vw, 1.6rem);
}

.quote-card h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.quote-card p {
  color: var(--erc-text-body);
}

.quote-card .button {
  margin-top: 0.75rem;
}

.info-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.info-grid article,
.post-card {
  padding: 1.35rem;
  border: 1px solid var(--erc-card-border, var(--line));
  border-radius: var(--erc-card-radius);
  background: #fff;
}

.info-grid span,
.post-card span {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.info-grid h3,
.post-card h2,
.post-card h3 {
  margin: 0 0 0.65rem;
  color: var(--erc-text-title);
}

.post-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.post-card h3 {
  font-size: 1.12rem;
}

.post-card a {
  text-decoration: none;
}

.post-card p,
.info-grid p {
  margin: 0;
  color: var(--erc-text-body);
  font-size: 0.88rem;
}

.page-specs {
  margin-top: 1.5rem;
}

.page-area-grid {
  margin-top: 1.5rem;
}

.page-area-grid a,
.text-link {
  display: inline-flex;
  margin-top: 0.85rem;
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.guide-section {
  background: #fff;
}

.guide-section__link {
  margin-top: 1.25rem;
}

.blog-hero {
  background:
    linear-gradient(135deg, rgba(244, 191, 42, 0.16), rgba(244, 191, 42, 0) 35%),
    #f3f6f5;
}

.post-grid--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.post-card--large {
  min-height: 230px;
  padding: 1.6rem;
}

.single-guide .inner-hero {
  grid-template-columns: minmax(0, 900px);
}

.guide-layout {
  grid-template-columns: minmax(0, 760px) minmax(280px, 380px);
  justify-content: center;
}

.guide-article {
  box-shadow: none;
}

.guide-sidebar {
  top: 88px;
}

@media (max-width: 1100px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .site-nav {
    top: 64px;
  }

  .hero {
    min-height: 620px;
  }

  .inner-hero,
  .content-layout,
  .contact-layout,
  .guide-layout,
  .info-grid,
  .post-grid,
  .post-grid--wide {
    grid-template-columns: 1fr;
  }

  .quote-card {
    position: static;
  }

  .contact-layout .fluentform fieldset {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 620px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }
}

/* CookieYes fit-and-finish for the ERC-styled theme. */
.cky-consent-container {
  left: 16px !important;
  right: auto !important;
  top: auto !important;
  bottom: 16px !important;
  width: min(440px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
}

.cky-consent-container .cky-consent-bar {
  padding: 1rem 1.1rem !important;
  border: 1px solid var(--erc-card-border, #e5e7eb) !important;
  border-radius: var(--erc-card-radius, 12px) !important;
  box-shadow: var(--erc-card-shadow) !important;
}

.cky-notice .cky-title {
  margin-bottom: 0.5rem !important;
  color: var(--erc-text-title, #111827) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.cky-notice-des,
.cky-notice-des *,
.cky-preference-content-wrapper *,
.cky-accordion-header-des * {
  color: var(--erc-text-body, #4b5563) !important;
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
}

.cky-notice-btn-wrapper,
.cky-prefrence-btn-wrapper {
  gap: 0.5rem !important;
  margin-top: 0.85rem !important;
}

.cky-btn {
  flex: 0 0 auto !important;
  min-height: var(--erc-control-height, 2.25rem) !important;
  height: var(--erc-control-height, 2.25rem) !important;
  margin: 0 !important;
  padding: 0 var(--erc-control-padding-x, 0.75rem) !important;
  border-radius: var(--erc-control-radius, 6px) !important;
  font-size: var(--erc-font-size-body, 0.875rem) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.cky-btn-accept {
  background: var(--yellow, #f4bf2a) !important;
  border-color: var(--yellow, #f4bf2a) !important;
  color: #111827 !important;
}

.cky-btn-customize,
.cky-btn-reject,
.cky-btn-preferences {
  background: #fff !important;
  border: 1px solid var(--erc-control-border, #d1d5db) !important;
  color: var(--erc-text-title, #111827) !important;
}

.cky-btn-customize:hover,
.cky-btn-reject:hover,
.cky-btn-preferences:hover {
  background: var(--erc-app-surface-hover, #f3f4f6) !important;
  opacity: 1 !important;
}

.cky-btn-revisit-wrapper {
  background: #24323a !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2) !important;
}

@media (max-width: 520px) {
  .cky-consent-container {
    left: 12px !important;
    bottom: 64px !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  .cky-consent-container .cky-consent-bar {
    padding: 0.9rem !important;
  }

  .cky-notice-btn-wrapper,
  .cky-prefrence-btn-wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: 0 !important;
  }

  .cky-btn {
    width: 100% !important;
  }
}

/* Final CTA, breadcrumb, footer and attachment polish. */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem clamp(1.5rem, 5vw, 5rem);
  border-bottom: 1px solid var(--erc-app-border);
  background: #fff;
  color: var(--erc-text-muted);
  font-size: 0.78rem;
}

.breadcrumbs a {
  color: var(--erc-text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--teal);
}

.breadcrumbs strong {
  color: var(--erc-text-title);
  font-weight: 600;
}

.site-header .nav-cta,
.site-header .button.nav-cta {
  height: var(--erc-control-height);
  min-height: var(--erc-control-height);
  padding: 0 var(--erc-control-padding-x);
  border: 1px solid var(--yellow) !important;
  border-radius: var(--erc-control-radius);
  background: var(--yellow) !important;
  color: #111827 !important;
  font-size: var(--erc-font-size-body);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.button.hero-call {
  background: #fff;
  border-color: #fff;
  color: #111827;
}

.button.light,
.button.hero-call {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.attachment-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.attachment-row span {
  display: grid;
  gap: 0.2rem;
  min-height: 74px;
  padding: 0.85rem;
  border: 1px solid var(--erc-card-border);
  border-radius: var(--erc-card-radius);
  background: #fff;
  color: var(--erc-text-title);
}

.attachment-row span strong {
  color: var(--erc-text-title);
  font-size: 0.9rem;
  font-weight: 700;
}

.attachment-row span small {
  color: var(--erc-text-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: start;
}

.footer-brand p {
  max-width: 620px;
}

.footer-note {
  opacity: 0.72;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-columns div {
  display: grid;
  gap: 0.45rem;
}

.footer-columns strong {
  color: #fff;
  font-size: 0.82rem;
}

.footer-columns a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-columns a:hover {
  color: var(--yellow);
}

.mobile-cta a {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.mobile-cta a:first-child {
  background: #fff;
  color: #111827;
}

.mobile-cta a:last-child {
  background: var(--yellow);
  color: #111827;
}

@media (max-width: 1100px) {
  .attachment-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-footer,
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .attachment-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.brand-mark {
  border-radius: 6px;
  letter-spacing: 0;
}

.media-section {
  background: #fff;
}

.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 1rem;
}

.media-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  margin: 0;
  border: 1px solid var(--erc-card-border, var(--line));
  border-radius: var(--erc-card-radius);
  background: #111;
  box-shadow: var(--erc-card-shadow);
}

.media-card--wide {
  grid-row: span 2;
  min-height: 540px;
}

.media-card img,
.media-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card video {
  display: block;
  background: #111;
}

.media-card figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  max-width: calc(100% - 1.6rem);
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.review-section {
  background: #f4f7f6;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.review-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 230px;
  padding: 1rem;
  border: 1px solid var(--erc-card-border, var(--line));
  border-radius: var(--erc-card-radius);
  background: #fff;
  box-shadow: var(--erc-card-shadow);
}

.review-card strong {
  width: max-content;
  padding: 0.32rem 0.48rem;
  border-radius: 4px;
  background: var(--yellow);
  color: var(--erc-text-title, #111827);
  font-size: 0.82rem;
}

.review-card p {
  margin: 0;
  color: var(--erc-text-body, #4b5563);
  font-size: 0.9rem;
  line-height: 1.55;
}

.review-card span {
  align-self: end;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

  .media-card,
  .media-card--wide {
    min-height: 280px;
  }

  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.72fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: min(720px, calc(100vh - 76px));
  padding: clamp(4rem, 7vw, 6.5rem) clamp(1rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(244, 191, 42, 0.18), rgba(244, 191, 42, 0) 34%),
    #f3f6f5;
}

.guide-hero__content {
  max-width: 860px;
}

.guide-hero h1 {
  max-width: 780px;
  margin: 0.75rem 0 1rem;
  color: var(--erc-text-title, #111827);
  font-size: clamp(3.4rem, 6.4vw, 6.2rem);
  line-height: 0.98;
}

.guide-hero__lede {
  max-width: 680px;
  color: var(--erc-text-body, #4b5563);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.guide-meta span {
  min-height: 34px;
  padding: 0.45rem 0.62rem;
  border: 1px solid var(--erc-card-border, var(--line));
  border-radius: 4px;
  background: #fff;
  color: var(--erc-text-body, #4b5563);
  font-size: 0.82rem;
  font-weight: 700;
}

.guide-hero__media {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  margin: 0;
  border: 1px solid var(--erc-card-border, var(--line));
  border-radius: var(--erc-card-radius);
  background: #111;
  box-shadow: var(--erc-card-shadow);
}

.guide-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.guide-hero__media figcaption {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  background: rgba(17, 24, 39, 0.84);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.guide-layout--article {
  grid-template-columns: minmax(0, 820px) minmax(300px, 390px);
}

.guide-layout--article .guide-article {
  padding: 0;
  border: 0;
  background: transparent;
}

.article-summary {
  margin-bottom: 1.6rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--yellow);
  background: #fff;
  box-shadow: var(--erc-card-shadow);
}

.article-summary strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--erc-text-title, #111827);
}

.article-summary p {
  margin: 0;
}

.guide-article h2 {
  margin-top: 1.2rem;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.05;
}

.guide-article ul {
  padding-left: 1.2rem;
}

.guide-sidebar-stack {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 1rem;
}

.quote-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--erc-text-body, #4b5563);
  font-size: 0.9rem;
}

.guide-mini-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--erc-card-border, var(--line));
  border-radius: var(--erc-card-radius);
  background: #fff;
  box-shadow: var(--erc-card-shadow);
}

.guide-mini-card strong {
  color: var(--erc-text-title, #111827);
}

.guide-mini-card a {
  color: var(--teal);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.guide-mini-card span {
  color: var(--erc-text-body, #4b5563);
  font-size: 0.86rem;
}

.related-guides--single {
  background: #f4f7f6;
}

@media (max-width: 1000px) {
  .guide-hero,
  .guide-layout--article {
    grid-template-columns: 1fr;
  }

  .guide-hero {
    min-height: auto;
  }

  .guide-hero__media,
  .guide-hero__media img {
    min-height: 320px;
  }

  .guide-sidebar-stack {
    position: static;
  }
}

/* Final RTL/mobile safeguards. Keep these at the end so they win over
   earlier visual-system overrides. */
html[dir="rtl"] .cky-consent-container,
html[dir="rtl"] .cky-modal,
html[dir="rtl"] .cky-preference-center {
  direction: ltr !important;
  text-align: left !important;
}

html[dir="rtl"] .cky-consent-container *,
html[dir="rtl"] .cky-modal *,
html[dir="rtl"] .cky-preference-center * {
  direction: ltr !important;
}

html[dir="rtl"] .cky-btn,
html[dir="rtl"] .cky-notice-btn-wrapper {
  text-align: center !important;
}

@media (max-width: 520px) {
  html[dir="rtl"] .hero-content {
    display: grid;
    justify-items: end;
    width: 100%;
    padding-right: 1.75rem;
    padding-left: 1.25rem;
  }

  html[dir="rtl"] .hero .eyebrow,
  html[dir="rtl"] .hero h1,
  html[dir="rtl"] .hero-lede,
  html[dir="rtl"] .hero-actions {
    width: min(100%, 330px);
    max-width: 330px;
    margin-right: 0;
    margin-left: auto;
    text-align: right;
  }

  html[dir="rtl"] .hero h1 {
    padding-right: 0.2rem;
    font-size: clamp(2rem, 9vw, 2.45rem);
    line-height: 1.14;
    overflow: visible;
  }

  html[dir="rtl"] .hero-lede {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  html[dir="rtl"] .hero-actions {
    justify-content: flex-end;
  }
}

/* Mobile navigation: polished off-canvas drawer. */
.nav-backdrop {
  display: none;
}

@media (max-width: 900px) {
  html.nav-open,
  html.nav-open body {
    overflow: hidden;
  }

  .site-header {
    min-height: 64px;
    align-items: center;
    overflow: visible;
    z-index: 1003;
  }

  .brand {
    max-width: calc(100% - 64px);
  }

  .nav-toggle {
    position: relative;
    z-index: 1004;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--erc-app-border, #e5e7eb);
    border-radius: 6px;
    background: #fff;
  }

  .nav-toggle span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 22px;
    height: 2px;
    margin: 0;
    background: var(--erc-text-title, #111827);
    transform-origin: center;
    transition: transform 0.18s ease, opacity 0.14s ease;
  }

  .nav-toggle span:nth-child(1) {
    transform: translate(-50%, -8px);
  }

  .nav-toggle span:nth-child(2) {
    transform: translate(-50%, -50%);
  }

  .nav-toggle span:nth-child(3) {
    transform: translate(-50%, 6px);
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    width: 100vw;
    height: 100vh;
    border: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
  }

  .nav-backdrop.is-open {
    display: block;
  }

  .nav-backdrop[hidden] {
    display: none !important;
  }

  .site-nav {
    position: fixed;
    z-index: 1002;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    display: grid;
    align-content: start !important;
    gap: 0.85rem;
    width: min(78vw, 360px);
    height: 100vh;
    max-height: none;
    overflow-y: auto;
    padding: 5.1rem 1rem 1rem;
    border: 0;
    border-left: 1px solid var(--erc-app-border, var(--line));
    border-radius: 0;
    background: #fff;
    box-shadow: -22px 0 45px rgba(15, 23, 42, 0.22);
    opacity: 0;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.22s ease, opacity 0.18s ease, visibility 0.18s ease;
  }

  .site-nav.is-open {
    display: grid;
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav ul {
    display: grid;
    gap: 0.38rem;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
  }

  .site-nav li + li {
    border-top: 0;
  }

  .site-nav a,
  .site-nav .nav-cta {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.8rem;
    border-radius: 6px;
    color: var(--erc-text-title, #111827);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
  }

  .site-nav a:hover {
    background: var(--erc-app-surface-hover, #f3f4f6);
  }

  .site-nav .nav-cta {
    margin-top: 0.15rem;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--yellow);
    border-radius: 6px;
    background: var(--yellow);
    color: #111827 !important;
  }

  .site-nav .language-switcher {
    justify-self: stretch;
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.25rem;
    border-radius: 8px;
  }

  .site-nav .language-switcher a {
    flex: 1;
    min-height: 38px;
    border-radius: 6px;
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
  }

  html[dir="rtl"] .site-nav {
    right: auto;
    left: 0;
    border-right: 1px solid var(--erc-app-border, var(--line));
    border-left: 0;
    box-shadow: 22px 0 45px rgba(15, 23, 42, 0.22);
    transform: translateX(-100%);
  }

  html[dir="rtl"] .site-nav.is-open {
    transform: translateX(0);
  }

  html[dir="rtl"] .site-nav a,
  html[dir="rtl"] .site-nav .nav-cta {
    justify-content: center;
    text-align: center;
  }

  html[dir="rtl"] .site-nav .nav-cta {
    justify-content: center;
  }

  html[dir="rtl"] .site-nav .language-switcher a {
    justify-content: center;
    text-align: center;
  }

  body.admin-bar .site-nav {
    padding-top: 6.4rem;
  }
}

@media (max-width: 520px) {
  .site-nav {
    width: min(86vw, 340px);
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }
}
