/* ==========================================================================
   Dr. Wael Gebril Clinic — design system
   One stylesheet for Arabic (RTL) and English (LTR) using logical properties.
   ========================================================================== */

:root {
  --navy-950: #07162b;
  --navy-900: #0b2545;
  --navy-800: #13315c;
  --teal-700: #0b7285;
  --teal-600: #0e8a9f;
  --teal-400: #35c2d3;
  --teal-100: #dff4f7;
  --teal-50: #f0fafb;
  --green-700: #0f7a4a;
  --green-800: #0c6540;
  --gold: #d9b36c;
  --ink: #14213d;
  --muted: #4a5a70;
  --bg: #f5f8fb;
  --surface: #ffffff;
  --line: #e1e8ef;
  --danger: #b42318;

  --font: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 2px 8px rgba(11, 37, 69, 0.05);
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.1);
  --shadow-lg: 0 24px 60px rgba(7, 22, 43, 0.28);
  --header-h: 72px;
  --bar-h: 64px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="en"] body {
  line-height: 1.65;
}

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

img {
  height: auto;
}

a {
  color: var(--teal-700);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-800);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.3;
  color: var(--navy-900);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
}
h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.35rem);
}
h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--teal-700);
  --btn-fg: #fff;
  --btn-bd: var(--teal-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.65rem 1.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bd);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s;
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 114, 133, 0.28);
  background: var(--navy-800);
  border-color: var(--navy-800);
}
.btn:active {
  transform: none;
}
.btn-wa {
  --btn-bg: var(--green-700);
  --btn-bd: var(--green-700);
}
.btn-wa:hover {
  background: var(--green-800);
  border-color: var(--green-800);
  box-shadow: 0 10px 24px rgba(15, 122, 74, 0.32);
}
.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy-900);
  --btn-bd: var(--navy-900);
}
.btn-outline:hover {
  --btn-fg: #fff;
  background: var(--navy-900);
}
.btn-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.55);
}
.btn-light:hover {
  background: #fff;
  color: var(--navy-900);
  border-color: #fff;
  box-shadow: none;
}
.btn-sm {
  min-height: 42px;
  padding: 0.4rem 1.1rem;
  font-size: 0.95rem;
}
.btn-block {
  width: 100%;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
}
.link-arrow .icon {
  transition: transform 0.2s var(--ease);
}
.link-arrow:hover .icon {
  transform: translateX(4px);
}
[dir="rtl"] .link-arrow .icon,
[dir="rtl"] .flip-rtl {
  transform: scaleX(-1);
}
[dir="rtl"] .link-arrow:hover .icon {
  transform: scaleX(-1) translateX(4px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-block-end: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy-900);
  text-decoration: none;
}
.brand:hover {
  color: var(--navy-900);
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
}
.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.main-nav {
  display: none;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a[aria-current="true"],
.main-nav a[aria-current="page"] {
  background: var(--teal-50);
  color: var(--teal-700);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.3rem 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-900);
  text-decoration: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.lang-switch:hover {
  border-color: var(--teal-700);
  color: var(--teal-700);
}
.header-cta {
  display: none;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--navy-900);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle .icon {
  width: 24px;
  height: 24px;
}
.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  display: none;
  padding: 1rem;
  background: rgba(7, 22, 43, 0.55);
}
.drawer.is-open {
  display: block;
}
.drawer-panel {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: drawer-in 0.22s var(--ease);
}
.drawer-panel a:not(.btn) {
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-radius: 12px;
}
.drawer-panel a:not(.btn):hover,
.drawer-panel a[aria-current] {
  background: var(--teal-50);
  color: var(--teal-700);
}
.drawer-panel .btn {
  margin-block-start: 0.5rem;
}
@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
body.nav-open {
  overflow: hidden;
}

@media (min-width: 980px) {
  .main-nav {
    display: block;
  }
  .nav-toggle,
  .drawer {
    display: none !important;
  }
  .header-cta {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(900px 500px at 85% 10%, rgba(53, 194, 211, 0.18), transparent 60%),
    linear-gradient(135deg, #15161f 0%, #232638 55%, #16304b 100%);
}
[dir="rtl"] .hero {
  background: radial-gradient(900px 500px at 15% 10%, rgba(53, 194, 211, 0.18), transparent 60%),
    linear-gradient(225deg, #15161f 0%, #232638 55%, #16304b 100%);
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: 2.5rem 0;
}
.hero-copy {
  padding-block-end: 1rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: 1rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(217, 179, 108, 0.12);
  border: 1px solid rgba(217, 179, 108, 0.35);
  border-radius: 999px;
}
.hero h1 {
  color: #fff;
  margin-block-end: 0.4em;
}
.hero h1 span {
  display: block;
  color: var(--teal-400);
  font-size: 0.62em;
  font-weight: 600;
  margin-block-start: 0.35em;
}
.hero-lead {
  max-width: 34rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.84);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.75rem 1.5rem;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  list-style: none;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-chips .icon {
  color: var(--teal-400);
}
.hero-photo {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(100%, 420px);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 8% 4% 0;
  border-radius: 40% 40% 0 0;
  background: linear-gradient(180deg, rgba(53, 194, 211, 0.35), rgba(53, 194, 211, 0));
  filter: blur(2px);
}
.hero-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    padding-block-start: 4rem;
  }
  .hero-copy {
    padding-block-end: 4rem;
  }
}

/* ---------- Trust strip ---------- */
.trust {
  position: relative;
  z-index: 2;
  margin-block-start: -1px;
  background: var(--surface);
  border-block-end: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 0.75rem;
}
.trust-item .icon {
  width: 2rem;
  height: 2rem;
  padding: 0.45rem;
  box-sizing: content-box;
  color: var(--teal-700);
  background: var(--teal-50);
  border-radius: 12px;
}
.trust-item strong {
  display: block;
  line-height: 1.25;
  color: var(--navy-900);
}
.trust-item span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
  display: block;
}
@media (min-width: 880px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .trust-item {
    padding: 1.4rem 1rem;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}
.section-alt {
  background: var(--surface);
}
.section-dark {
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
}
.section-dark h2,
.section-dark h3 {
  color: #fff;
}
.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2rem, 4vw, 3.25rem);
  text-align: center;
}
.section-head .kicker {
  display: inline-block;
  margin-block-end: 0.6rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--teal-700);
}
html[lang="en"] .section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.section-dark .kicker {
  color: var(--teal-400);
}
.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}
.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.about-photo {
  position: relative;
  max-width: 440px;
  justify-self: center;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-badge {
  position: absolute;
  inset-block-end: -1.25rem;
  inset-inline-end: -0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  color: #fff;
  background: var(--navy-900);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.about-badge .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--teal-400);
}
.about-badge strong {
  display: block;
  line-height: 1.2;
}
.about-badge span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}
.about-copy .kicker {
  display: block;
  margin-block-end: 0.5rem;
  font-weight: 800;
  color: var(--teal-700);
}
.check-list {
  display: grid;
  gap: 0.7rem;
  margin-block: 1.25rem 1.75rem;
  list-style: none;
}
.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.check-list .icon {
  margin-block-start: 0.3em;
  color: var(--teal-700);
}
@media (min-width: 880px) {
  .about-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
  }
}

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--teal-400);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-block-end: 1.1rem;
  color: var(--teal-700);
  background: var(--teal-50);
  border-radius: 16px;
}
.card-icon .icon {
  width: 28px;
  height: 28px;
}
.card h3 {
  margin-block-end: 0.5rem;
}
.card p {
  flex: 1;
  color: var(--muted);
}
.card .link-arrow {
  margin-block-start: 0.25rem;
}
a.card-link {
  position: relative;
}
.card .link-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-block-end: 1rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-950);
  background: var(--teal-400);
  border-radius: 50%;
}
.step h3 {
  margin-block-end: 0.35rem;
}
.step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}
@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.feature {
  padding: 0.5rem 0;
}
.feature .card-icon {
  border-radius: 50%;
}
.feature p {
  color: var(--muted);
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
  margin-inline: auto;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] {
  border-color: var(--teal-400);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background: currentColor;
  color: var(--teal-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(180deg);
}
.faq .answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
}
.faq .answer p:last-child {
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
.branch-list {
  display: grid;
  gap: 1rem;
}
.branch {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.branch h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-block-end: 0.4rem;
  font-size: 1.15rem;
}
.branch h3 .icon {
  color: var(--teal-700);
}
.branch address {
  margin-block-end: 0.75rem;
  font-style: normal;
  color: var(--muted);
}
.contact-quick {
  display: grid;
  gap: 0.6rem;
  margin-block-start: 0.25rem;
}
.hours {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.1rem 1.4rem;
  color: var(--navy-900);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius);
}
.hours .icon {
  margin-block-start: 0.35em;
  color: var(--teal-700);
}
.hours strong {
  display: block;
}
.hours span {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-card {
  padding: clamp(1.4rem, 1rem + 2vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.form-card > h3 {
  margin-block-end: 0.35rem;
}
.form-card > p {
  color: var(--muted);
}
.form-grid {
  display: grid;
  gap: 1rem;
}
.field label {
  display: block;
  margin-block-end: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-900);
}
.field label .opt {
  font-weight: 500;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field select {
  appearance: none;
  padding-inline-end: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5a70' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: right 0.9rem center;
}
[dir="rtl"] .field select {
  background-position: left 0.9rem center;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--teal-600);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 4px rgba(14, 138, 159, 0.2);
}
.field [aria-invalid="true"] {
  border-color: var(--danger);
}
.field-error {
  display: none;
  margin-block-start: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--danger);
}
.field.has-error .field-error {
  display: block;
}
.form-note {
  margin-block: 0.25rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.form-status {
  margin-block-start: 1rem;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--green-800);
  background: #e8f6ef;
  border-radius: 12px;
}
.form-status[hidden] {
  display: none;
}
@media (min-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .field-wide {
    grid-column: 1 / -1;
  }
}
@media (min-width: 940px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(105deg, rgba(7, 22, 43, 0.96) 35%, rgba(7, 22, 43, 0.78)), var(--navy-900);
}
.cta-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem);
}
.cta-band h2 {
  color: #fff;
  margin-block-end: 0.3em;
}
.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (min-width: 880px) {
  .cta-inner {
    grid-template-columns: 1.4fr 1fr;
  }
  .cta-actions {
    justify-content: flex-end;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--navy-950);
  font-size: 0.97rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: 3.5rem 2.5rem;
}
.site-footer h2,
.site-footer h3 {
  margin-block-end: 0.9rem;
  font-size: 1.05rem;
  color: #fff;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--teal-400);
  text-decoration: underline;
}
.footer-brand .brand {
  margin-block-end: 1rem;
  color: #fff;
}
.footer-brand .brand-sub {
  color: rgba(255, 255, 255, 0.65);
}
.footer-links {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}
.footer-contact {
  display: grid;
  gap: 0.6rem;
  list-style: none;
}
.footer-contact li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.footer-contact .icon {
  margin-block-start: 0.3em;
  color: var(--teal-400);
}
.footer-bottom {
  padding-block: 1.5rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
  border-block-start: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom p {
  margin: 0 0 0.5rem;
}
.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  }
}

/* ---------- Service / inner pages ---------- */
.page-hero {
  color: #fff;
  background: radial-gradient(700px 360px at 90% 0%, rgba(53, 194, 211, 0.2), transparent 60%),
    linear-gradient(135deg, #15161f, #1c3350);
}
[dir="rtl"] .page-hero {
  background: radial-gradient(700px 360px at 10% 0%, rgba(53, 194, 211, 0.2), transparent 60%),
    linear-gradient(225deg, #15161f, #1c3350);
}
.page-hero-inner {
  padding-block: 2rem clamp(2.5rem, 2rem + 3vw, 4rem);
}
.page-hero h1 {
  max-width: 22ch;
  color: #fff;
  margin-block-end: 0.4em;
}
.page-hero .lead {
  max-width: 42rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.84);
}
.page-hero .hero-actions {
  margin-block-end: 0;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-block-end: 1.5rem;
  list-style: none;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 0.4rem;
  opacity: 0.5;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}
.breadcrumb a:hover {
  color: var(--teal-400);
}

.page-layout {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.prose {
  min-width: 0;
}
.prose h2 {
  margin-block: 2.25rem 0.75rem;
  padding-block-end: 0.5rem;
  border-block-end: 2px solid var(--teal-100);
}
.prose h2:first-child {
  margin-block-start: 0;
}
.prose h3 {
  margin-block: 1.5rem 0.4rem;
}
.prose p,
.prose li {
  color: #2a3950;
}
.prose ul {
  display: grid;
  gap: 0.45rem;
  margin-block-end: 1.25rem;
  padding-inline-start: 1.4rem;
}
.prose li::marker {
  color: var(--teal-700);
}
.proc-grid {
  display: grid;
  gap: 1rem;
  margin-block: 1rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.proc {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.proc h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}
.proc p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
}
.callout {
  display: flex;
  gap: 0.9rem;
  margin-block: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-inline-start: 5px solid var(--teal-700);
  border-radius: 12px;
}
.callout .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-block-start: 0.2em;
  color: var(--teal-700);
}
.callout p {
  margin: 0;
}
.callout.is-warning {
  background: #fff6ed;
  border-color: #fde2c8;
  border-inline-start-color: #c2410c;
}
.callout.is-warning .icon {
  color: #c2410c;
}
.sidebar {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}
.widget {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.widget h2 {
  margin-block-end: 0.75rem;
  font-size: 1.1rem;
}
.widget-links {
  display: grid;
  gap: 0.15rem;
  list-style: none;
}
.widget-links a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
}
.widget-links a:hover,
.widget-links a[aria-current="page"] {
  color: var(--teal-700);
  background: var(--teal-50);
}
.widget-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  border: 0;
}
.widget-cta h2 {
  color: #fff;
}
.widget-cta p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.97rem;
}
.widget-cta .btn + .btn {
  margin-block-start: 0.6rem;
}
@media (min-width: 960px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
  }
  .sidebar {
    position: sticky;
    inset-block-start: calc(var(--header-h) + 20px);
  }
}

/* Plain legal page */
.legal {
  max-width: 48rem;
  padding-block: 3rem 4.5rem;
}
.legal h1 {
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem);
}
.legal h2 {
  margin-block-start: 2rem;
  font-size: 1.35rem;
}

/* 404 */
.notfound {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 3rem 1rem;
  text-align: center;
}
.notfound .code {
  font-size: clamp(5rem, 4rem + 8vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--teal-100);
  -webkit-text-stroke: 2px var(--teal-700);
}

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-block-start: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(11, 37, 69, 0.1);
}
.action-bar .btn {
  min-height: 46px;
  padding-inline: 0.75rem;
}
body {
  padding-block-end: var(--bar-h);
}
@media (min-width: 980px) {
  .action-bar {
    display: none;
  }
  body {
    padding-block-end: 0;
  }
}

/* ---------- Reveal on scroll ---------- */
/* Animate with keyframes (not transition) so hover transitions on .card etc. keep working.
   Uses the individual `translate` property, so card hover `transform` still composes. */
@keyframes reveal-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: none;
  }
}
.js .reveal:not(.is-in) {
  opacity: 0;
}
.js .reveal.is-in {
  animation: reveal-in 0.6s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal,
  .js .reveal:not(.is-in) {
    opacity: 1;
    translate: none;
  }
}

/* ---------- Phone refinements (<= 559px) ---------- */
@media (max-width: 559px) {
  .header-inner {
    min-height: 64px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
  }
  .brand-sub {
    display: none;
  }
  .brand-name {
    font-size: 1rem;
    line-height: 1.25;
  }
  .lang-switch {
    padding-inline: 0.7rem;
    min-height: 40px;
    font-size: 0.9rem;
  }
  .hero-grid {
    gap: 1.5rem;
    padding-block-start: 1.5rem;
  }
  .hero-photo {
    width: 100%;
    max-width: 340px;
  }
  .hero-photo img {
    aspect-ratio: 4 / 4.6;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-lead {
    font-size: 1.02rem;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .section {
    padding-block: 3rem;
  }
  .about-badge {
    inset-inline-end: 0.5rem;
    inset-block-end: -1rem;
  }
  .trust-item {
    padding: 0.9rem 0.5rem;
    gap: 0.6rem;
  }
  .trust-item span {
    font-size: 0.82rem;
  }
  .card {
    padding: 1.35rem;
  }
  .form-card {
    padding: 1.25rem;
  }
  .footer-grid {
    padding-block: 2.5rem 1.5rem;
  }
  .page-hero-inner {
    padding-block: 1.25rem 2.25rem;
  }
  .page-hero h1 {
    font-size: 1.9rem;
  }
  .prose h2 {
    font-size: 1.4rem;
  }
  .prose ul {
    padding-inline-start: 1.15rem;
  }
  .callout {
    padding: 0.9rem 1rem;
  }
}

@media print {
  .site-header,
  .action-bar,
  .drawer,
  .cta-band,
  .form-card {
    display: none !important;
  }
  body {
    padding: 0;
    background: #fff;
  }
}
