/*
Theme Name: Samira Bouallegue Law Firm
Theme URI: https://example.com/
Author: Local Setup
Description: Multilingual law firm theme (FR/EN/AR) with RTL support.
Version: 3.0.0
Text Domain: samira-law-firm
*/

:root {
  /* Dark palette – header, hero, approche, footer */
  --dark: #15251e;
  --dark-2: #10201a;
  --dark-surface: #1d2f27;
  --dark-text: #e9e3d5;
  --dark-muted: #c2ccc3;
  --dark-line: rgba(233, 227, 213, 0.14);
  /* Light palette – about, domaines, intl, contact, body */
  --cream: #f3efe6;
  --cream-2: #fbf8f2;
  --white: #ffffff;
  --light-text: #232019;
  --light-muted: #5b564c;
  --light-muted-2: #9a948a;
  --light-line: rgb(233, 226, 211);
  --light-line-2: rgb(231, 225, 212);
  /* Shared */
  --gold: #b28c54;
  --gold-dark: #9a7b43;
  --line-strong: rgba(178, 140, 84, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: "Hanken Grotesk", "Noto Naskh Arabic", "Segoe UI", sans-serif;
  color: var(--light-text);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

input,
select,
textarea,
button {
  font-family: inherit;
}

.container {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ─── Skip link ─── */
.skip-link {
  position: absolute;
  top: -120px;
  left: 12px;
  z-index: 999;
  background: var(--gold);
  color: var(--dark);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  border-bottom: 1px solid rgba(178, 140, 84, 0.28);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name-main {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 17px;
  color: var(--dark-text);
  letter-spacing: 0.04em;
  padding-bottom: 5px;
}

.brand-name-sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8fa197;
}

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

.main-nav a {
  color: #cdd6ce;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--dark-text);
  text-decoration: none;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(233, 227, 213, 0.18);
  border-radius: 8px;
}

.lang-switcher a {
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #9da7a0;
  line-height: 1;
}

.lang-switcher a.active {
  color: var(--dark);
  background: var(--gold);
}

.lang-switcher a:hover {
  text-decoration: none;
  color: var(--dark-text);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  opacity: 0.9;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
}

.btn-outline {
  border: 1px solid rgba(233, 227, 213, 0.35);
  color: var(--dark-text);
  background: transparent;
}

.btn-hero {
  padding: 15px 28px;
  border-radius: 9px;
  font-size: 15px;
}

/* ─── Sections ─── */
.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-dark {
  background: var(--dark);
  color: var(--dark-text);
}

.section-light {
  background: var(--cream-2);
  border-top: 1px solid var(--light-line);
  border-bottom: 1px solid var(--light-line);
}

/* ─── Eyebrow row (gold line + label) ─── */
.eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.eyebrow-row .eyebrow-line {
  width: 26px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.eyebrow-row .eyebrow-label {
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* On dark sections the eyebrow label is slightly lighter */
.section-dark .eyebrow-row .eyebrow-label {
  color: rgb(201, 165, 107);
}

/* ─── Hero ─── */
.hero {
  background: var(--dark);
  color: var(--dark-text);
  position: relative;
}

.hero-dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(178, 140, 84, 0.1) 1px,
    transparent 0px
  );
  background-size: 34px 34px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: clamp(64px, 11vw, 128px) 24px clamp(56px, 8vw, 96px);
  max-width: 1180px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--dark-text);
  font-size: clamp(38px, 6.4vw, 78px);
  line-height: 1.04;
  margin: 0 0 26px;
  max-width: 16ch;
}

.hero .lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--dark-muted);
  max-width: 60ch;
  margin: 0 0 38px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Cred row at bottom of hero */
.hero-cred-row {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 32px;
  border-top: 1px solid rgba(233, 227, 213, 0.14);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hero-cred-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hero-cred-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-cred-text {
  font-size: 13.5px;
  color: var(--dark-muted);
  line-height: 1.4;
}

/* ─── About / Cabinet ─── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.about-portrait-wrap {
  position: relative;
}

.about-portrait-frame {
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(178, 140, 84, 0.5);
  border-radius: 16px;
  pointer-events: none;
}

.about-portrait {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--light-line);
  background: var(--dark);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(
      circle at 1px 1px,
      rgba(178, 140, 84, 0.12) 1px,
      transparent 0px
    )
    0% 0% / 26px 26px var(--dark);
}

.about-portrait--photo {
  background: none;
  border: none;
  display: block;
  padding: 0;
}

.about-portrait--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-portrait-sb {
  width: 84px;
  height: 84px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 38px;
  letter-spacing: 0.02em;
}

.about-portrait-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8fa197;
}

.about-content h2 {
  color: var(--light-text);
  font-size: clamp(28px, 3.6vw, 46px);
  margin: 0 0 24px;
  max-width: 20ch;
}

.about-content p {
  font-size: 16px;
  color: var(--light-muted);
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 62ch;
}

.about-content p:last-of-type {
  margin-bottom: 30px;
}

.about-cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}

.about-cred-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.about-cred-item svg {
  margin-top: 2px;
  flex-shrink: 0;
}

.about-cred-item span {
  font-size: 14.5px;
  color: var(--light-text);
  font-weight: 500;
}

/* ─── Practice area cards ─── */
.cards-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--light-line-2);
  border-radius: 14px;
  padding: 26px 22px;
  transition: box-shadow 0.14s ease;
}

.card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(178, 140, 84, 0.12);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.card h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--light-text);
}

.card p {
  font-size: 13.8px;
  color: rgb(107, 102, 91);
  line-height: 1.55;
  margin: 0;
}

/* Section header block */
.section-head {
  max-width: 680px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section-head h2 {
  color: var(--light-text);
  font-size: clamp(28px, 3.6vw, 46px);
  margin: 0 0 16px;
}

.section-dark .section-head h2 {
  color: var(--dark-text);
}

.section-lead {
  font-size: 16.5px;
  color: var(--light-muted);
  line-height: 1.6;
}

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

/* ─── Steps / Approche ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(233, 227, 213, 0.14);
  border: 1px solid rgba(233, 227, 213, 0.14);
  border-radius: 14px;
  overflow: hidden;
}

.step-card {
  background: var(--dark);
  padding: 30px 26px;
  border-radius: 0;
  border: none;
}

.step-number {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 18px;
}

.step-card h3 {
  font-family: "Hanken Grotesk", "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--dark-text);
}

.step-card p {
  font-size: 13.8px;
  color: #9faaa1;
  line-height: 1.55;
  margin: 0;
}

/* ─── International ─── */
.intl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.intl-content h2 {
  color: var(--light-text);
  font-size: clamp(28px, 3.6vw, 46px);
  margin: 0 0 18px;
  max-width: 18ch;
}

.intl-content p {
  font-size: 16.5px;
  color: var(--light-muted);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 54ch;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dark);
  color: var(--dark-text);
  padding: 14px 26px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}

.btn-dark:hover {
  opacity: 0.85;
  text-decoration: none;
}

.intl-box {
  background: var(--cream-2);
  border: 1px solid var(--light-line);
  border-radius: 16px;
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.intl-box-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--light-line);
}

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

.intl-box-item svg {
  margin-top: 2px;
  flex-shrink: 0;
}

.intl-box-item span {
  font-size: 15.5px;
  color: var(--light-text);
  font-weight: 500;
  line-height: 1.4;
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--light-line-2);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-muted-2);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgb(226, 219, 204);
  border-radius: 9px;
  background: var(--white);
  color: var(--light-text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(178, 140, 84, 0.35);
  border-color: var(--gold);
}

.contact-btn {
  background: var(--dark);
  color: var(--dark-text);
  border: none;
  border-radius: 9px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s ease;
}

.contact-btn:hover {
  opacity: 0.85;
}

.contact-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Form feedback notice */
.form-notice {
  padding: 14px 18px;
  border-radius: 9px;
  font-size: 14.5px;
  line-height: 1.5;
}

.form-notice--success {
  background: rgba(31, 168, 85, 0.1);
  border: 1px solid rgba(31, 168, 85, 0.3);
  color: #166534;
}

.form-notice--error {
  background: rgba(220, 38, 38, 0.07);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #991b1b;
}

/* Field-level error highlight */
input.field-error,
select.field-error,
textarea.field-error {
  border-color: #dc2626;
  outline: 2px solid rgba(220, 38, 38, 0.2);
}

.contact-cards {
  display: grid;
  gap: 12px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--light-line-2);
  border-radius: 14px;
  padding: 20px;
}

.contact-card h3 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 16px;
  color: var(--light-text);
  margin: 0 0 6px;
}

.contact-card p {
  font-size: 13.5px;
  color: var(--light-muted);
  margin: 0 0 8px;
}

.contact-card a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark);
}

/* ─── Footer ─── */
/* ─── Contact icon cards ─── */
.contact-icon-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--light-line-2);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  transition: box-shadow 0.14s ease;
}

.contact-icon-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-wa {
  background: rgb(31, 168, 85);
  color: #fff;
}

.contact-icon-phone {
  background: rgba(178, 140, 84, 0.14);
  color: var(--gold-dark);
}

.contact-icon-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-icon-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--light-text);
  font-variant-numeric: tabular-nums;
}

.contact-icon-desc {
  font-size: 13px;
  color: rgb(122, 116, 104);
}

/* ─── Contact map card ─── */
.contact-map-card {
  background: var(--white);
  border: 1px solid var(--light-line-2);
  border-radius: 14px;
  overflow: hidden;
}

.contact-map-preview {
  display: block;
  position: relative;
  height: 150px;
  background:
    linear-gradient(rgba(178, 140, 84, 0.1) 1px, transparent 1px) 0% 0% / 26px
      26px,
    linear-gradient(90deg, rgba(178, 140, 84, 0.1) 1px, transparent 1px)
      rgb(237, 231, 218);
  text-decoration: none;
}

.contact-map-preview:hover {
  text-decoration: none;
}

.map-line {
  position: absolute;
  background: rgb(223, 215, 198);
}

.map-line-h {
  left: 0;
  top: 62%;
  width: 100%;
  height: 9px;
}

.map-line-v {
  left: 38%;
  top: 0;
  width: 11px;
  height: 100%;
}

.map-pin {
  position: absolute;
  left: calc(38% - 8px);
  top: calc(62% - 30px);
  color: var(--dark);
  transform: translateX(-50%);
}

.contact-map-info {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-map-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-map-addr {
  font-size: 14px;
  color: rgb(58, 54, 46);
  line-height: 1.5;
}

.contact-map-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgb(236, 229, 215);
}

.contact-map-hours {
  font-size: 13.5px;
  color: rgb(58, 54, 46);
}

.contact-map-cta {
  font-size: 13px;
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: none;
}

.contact-map-cta:hover {
  text-decoration: underline;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(233, 227, 213, 0.12);
  padding: clamp(48px, 6vw, 72px) 0 36px;
}

.footer-inner {
  /* uses .container for width/padding */
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(233, 227, 213, 0.12);
}

.footer-brand-col {
  max-width: 340px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-brand-name {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 18px;
  color: var(--dark-text);
}

.footer-tagline {
  font-size: 13.5px;
  line-height: 1.6;
  color: #8a958c;
  margin: 0;
}

.footer-nav-cols {
  display: flex;
  gap: clamp(36px, 6vw, 72px);
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col span {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f7a71;
  margin-bottom: 3px;
}

.footer-col a {
  color: rgb(185, 194, 186);
  font-size: 13.5px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--dark-text);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: #6f7a71;
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 60ch;
}

/* ─── Section head spacing ─── */
.section-head h2 {
  margin-bottom: 16px;
}

/* ─── Hamburger button (hidden at desktop) ─── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(233, 227, 213, 0.25);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 9px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark-text);
  border-radius: 1px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Responsive ─── */
@media (max-width: 1000px) {
  .about-grid,
  .intl-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .steps-grid {
    border-radius: 12px;
  }

  .hero-cred-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-cred-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
  }

  /* Cap portrait height so the 4/5 aspect-ratio doesn't make it too tall */
  .about-portrait {
    max-height: 480px;
  }

  .about-portrait-frame {
    inset: 10px -10px -10px 10px;
  }

  /* Show hamburger, hide desktop nav */
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    gap: 0;
    padding: 6px 0 14px;
    border-bottom: 1px solid rgba(178, 140, 84, 0.22);
    z-index: 40;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }

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

  .main-nav a {
    padding: 13px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(233, 227, 213, 0.07);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }
}

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

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

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

  .hero-cred-row {
    grid-template-columns: 1fr 1fr;
  }

  .head-actions {
    gap: 6px;
  }

  /* Stack hero CTAs on small screens */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero {
    text-align: center;
    justify-content: center;
  }

  /* Hide decorative portrait frame to prevent right overflow */
  .about-portrait-frame {
    display: none;
  }

  /* Compact lang switcher */
  .lang-switcher a {
    padding: 5px 7px;
  }

  /* Hide header CTA on very small screens to avoid overflow */
  .btn-cta-header {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-wrap {
    height: 60px;
  }

  .brand-name-main {
    font-size: 15px;
  }

  .brand-name-sub {
    font-size: 9px;
  }

  .hero-inner {
    padding-inline: 18px;
  }

  .container {
    padding-inline: 18px;
  }
}

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