/* ── Google Fonts ─────────────────────────────────────────────── */
/* Google Fonts loaded via <link> in HTML */

/* ── Variables ───────────────────────────────────────────────── */
:root {
  --primary:   #1B3A4B;
  --accent:    #8B9E8B;
  --navy:      #0F1F2E;
  --navy-2:    #162A3A;
  --gold:      #C4A265;
  --white:     #FAFAF8;
  --surface:   #F5F2ED;
  --gray:      #F5F2ED;
  --text:      #1A1A1A;
  --muted:     #6B7B7B;
  --shadow-sm: 0 1px 3px rgba(15,31,46,.06), 0 4px 12px rgba(27,58,75,.04);
  --shadow:    0 8px 32px rgba(15,31,46,.10);
  --shadow-lg: 0 24px 64px rgba(15,31,46,.14);
  --radius:    16px;
  --radius-sm: 10px;
  --border:    rgba(27,58,75,.08);
}

/* ── Reset / Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-behavior handled in JS for better Safari performance */
body {
  font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; }

/* ── Header ──────────────────────────────────────────────────── */
header {
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(27,58,75,.06), var(--shadow-sm);
  border-bottom: 1px solid rgba(27,58,75,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 32px;
  gap: 16px;
}
.header-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0;
}
.header-logo::before {
  display: none;
}
nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
nav a {
  color: var(--text);
  padding: 7px 13px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
}
nav a:hover { background: transparent; color: var(--primary); }
nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width .3s ease, left .3s ease;
}
nav a:hover::after {
  width: 70%;
  left: 15%;
}
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ── Language switcher ───────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}
.lang-btn {
  background: transparent;
  border: 1.5px solid rgba(27,58,75,.12);
  color: var(--muted);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  letter-spacing: .02em;
}
.lang-btn:hover {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}
.lang-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Arabic font ─────────────────────────────────────────────── */
:lang(ar) body,
html[lang="ar"] body {
  font-family: 'Noto Sans Arabic', 'DM Sans', Arial, sans-serif;
}

/* ── Chinese font ────────────────────────────────────────────── */
html[lang="zh"] body {
  font-family: 'Noto Sans SC', 'DM Sans', Arial, sans-serif;
}

/* ── RTL overrides (Arabic) ──────────────────────────────────── */
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] nav { flex-direction: row-reverse; }
[dir="rtl"] .section-label::before { order: 1; margin-left: 8px; margin-right: 0; }
[dir="rtl"] .section-about { direction: rtl; }
[dir="rtl"] .about-image-overlay {
  background: linear-gradient(to left, transparent 60%, var(--white) 100%);
}
[dir="rtl"] .about-content-panel { padding: 72px 40px 72px 48px; }
[dir="rtl"] .card { border-left: none; border-right: none; }
[dir="rtl"] .news-item { flex-direction: row-reverse; }
[dir="rtl"] .news-item-accent { border-radius: 3px; }
[dir="rtl"] .contact-item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .services-list li { flex-direction: row-reverse; }
[dir="rtl"] .hours-note { border-left: none; border-right: 3px solid var(--gold); }
[dir="rtl"] .footer-links { flex-direction: row-reverse; }
[dir="rtl"] .lang-switcher { flex-direction: row-reverse; }
[dir="rtl"] #chat-fab { right: auto; left: 28px; }
[dir="rtl"] #chat-window { right: auto; left: 28px; transform-origin: bottom left; }
[dir="rtl"] .msg.bot { align-self: flex-end; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
[dir="rtl"] .msg.user { align-self: flex-start; border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
[dir="rtl"] #chat-header { flex-direction: row-reverse; }
[dir="rtl"] #chat-close { margin-left: 0; margin-right: auto; }
[dir="rtl"] .hero { text-align: right; }
[dir="rtl"] .hero-content { align-items: flex-end; }
[dir="rtl"] .trust-strip-inner { direction: rtl; }
[dir="rtl"] .policy-list li { border-left: none; border-right: 2px solid var(--accent); }
@media (max-width: 768px) {
  [dir="rtl"] #chat-fab { left: 16px; right: auto; }
  [dir="rtl"] #chat-window { left: 12px; right: auto; }
}
@media (max-width: 900px) {
  [dir="rtl"] .about-image-overlay { background: linear-gradient(to top, transparent 60%, var(--white) 100%); }
  [dir="rtl"] .about-content-panel { padding: 40px 20px; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 100px max(40px, 8vw);
  overflow: hidden;
  background: var(--navy);
}
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 45%;
  height: 140%;
  background: linear-gradient(135deg, transparent 40%, rgba(196,162,101,.05) 50%, rgba(196,162,101,.08) 70%, transparent 85%);
  transform: skewX(-8deg);
  z-index: 1;
  pointer-events: none;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
  z-index: 0;
  will-change: transform;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1551076805-e1869033e561?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.18;
  z-index: 0;
  animation: kenBurns 25s ease-in-out infinite alternate;
  will-change: transform;
  backface-visibility: hidden;
}
@keyframes kenBurns {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.05) translate3d(-1%, -0.5%, 0); }
}
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(15,31,46,0.97) 0%, rgba(15,31,46,0.80) 50%, rgba(27,58,75,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-left: 2px solid var(--gold);
  color: rgba(255,255,255,.88);
  padding: 9px 22px;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin: 0 0 36px;
  line-height: 1.7;
}
.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 500;
  transition: background .2s;
}
.badge:hover { background: rgba(255,255,255,.14); }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 4px;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 8px 28px rgba(196,162,101,.35);
  position: relative;
  overflow: hidden;
}
.hero-cta::after { display: none; }
.hero-cta:hover { background: #D4B275; transform: translateY(-2px); box-shadow: 0 12px 36px rgba(196,162,101,.45); color: var(--navy); }
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: max(40px, 8vw);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.45);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.28);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{opacity:.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.3)} }

/* ── Trust Strip ─────────────────────────────────────────────── */
.trust-strip {
  background: var(--navy-2);
  padding: 0;
  border-top: 1px solid rgba(196,162,101,.15);
  border-bottom: 1px solid rgba(196,162,101,.08);
}
.trust-strip-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.trust-item {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.trust-item:last-child { border-right: none; }
.trust-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.trust-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}
@media (max-width: 640px) {
  .trust-strip-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 20px 16px; }
}

/* ── About split layout ──────────────────────────────────────── */
.section-about {
  display: grid;
  grid-template-columns: 55% 1fr;
  min-height: 600px;
}
.about-image-panel {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.about-image-panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease-out;
  filter: saturate(0.9);
  will-change: transform;
  backface-visibility: hidden;
}
.about-image-panel:hover img { transform: scale(1.03); }
.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--white) 100%);
}
.about-content-panel {
  padding: 80px 52px 80px 44px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px) {
  .section-about { grid-template-columns: 1fr; }
  .about-image-panel { min-height: 280px; }
  .about-image-overlay { background: linear-gradient(to bottom, transparent 60%, var(--white) 100%); }
  .about-content-panel { padding: 48px 24px; }
}

/* ── Photo strip ─────────────────────────────────────────────── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 300px;
}
.photo-strip-item {
  position: relative;
  overflow: hidden;
}
.photo-strip-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease-out, filter .5s ease-out;
  filter: brightness(0.68) saturate(0.9);
  will-change: transform;
  backface-visibility: hidden;
}
.photo-strip-item:hover img { transform: scale(1.05); filter: brightness(0.85) saturate(1); }
.photo-strip-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  background: rgba(0,0,0,.5);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}
@media (max-width: 640px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); height: 200px; }
}
@media (max-width: 400px) {
  .photo-strip { height: 160px; }
}

/* ── Section with background image ──────────────────────────── */
.section-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
  transition: none;
}
.section-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250,250,248,0.95);
  z-index: 0;
}
.section-staff { position: relative; padding: 120px 24px; background: var(--white); }
.section-staff .section-label { color: var(--accent); }

/* ── Services with image + overlay ───────────────────────────── */
.section-services { position: relative; padding: 120px 24px; color: var(--white); }
.section-teal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,31,46,0.97) 0%, rgba(27,58,75,0.93) 100%);
  z-index: 0;
}
.section-services .section-label { color: var(--gold); }
.section-services h2.section-title { color: var(--white); }
.section-services .services-list li {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
  color: var(--white);
}
.section-services .services-list li:hover { background: rgba(255,255,255,.10); box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.section-services .services-list li::before {
  background: rgba(255,255,255,.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C4A265'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Contact with background image ──────────────────────────── */
.section-contact { position: relative; padding: 120px 24px; }
.section-contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,31,46,0.94);
  z-index: 0;
}
.section-contact .contact-item { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.10); }
.section-contact .contact-item strong { color: rgba(255,255,255,.55); }
.section-contact .contact-item span,
.section-contact .contact-item a { color: var(--white); }

/* ── Wave separator (hidden for luxury feel) ─────────────────── */
.section-divider {
  display: none;
}

/* ── Sections ────────────────────────────────────────────────── */
section { padding: 120px 24px; position: relative; scroll-margin-top: 72px; }
@media (max-width: 768px) {
  section { scroll-margin-top: 130px; }
}
.section-light { background: var(--white); }
.section-gray  { background: var(--surface); }
.section-teal  {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
  color: var(--white);
}
.section-inner { max-width: 1140px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
h2.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 56px;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.section-teal h2.section-title { color: var(--white); }
.section-teal .section-label { color: var(--gold); }

/* ── Cards grid ──────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: transform .35s ease-out, box-shadow .35s ease-out, border-color .25s ease-out;
  position: relative;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
}
.card:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(27,58,75,.08), rgba(139,158,139,.12));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.05rem; font-weight: 600; }
.card p { color: var(--muted); font-size: .93rem; }

/* ── Hours ───────────────────────────────────────────────────── */
.hours-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 640px) { .hours-wrap { grid-template-columns: 1fr; } }
.hours-wrap h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
table { width: 100%; border-collapse: collapse; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: .83rem;
  text-align: left;
  padding: 14px 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: .9rem; }
tr:nth-child(odd) td { background: var(--white); }
tr:nth-child(even) td { background: var(--surface); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(139,158,139,.07); }
.hours-note {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(196,162,101,.06);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text);
  line-height: 1.6;
}

/* ── Services ────────────────────────────────────────────────── */
.services-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(min(320px,100%), 1fr));
  gap: 14px;
}
.services-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  font-size: .95rem;
  font-weight: 500;
  border: 1px solid rgba(27,58,75,.06);
  transition: box-shadow .3s ease, transform .3s ease;
}
.services-list li:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.services-list li::before {
  content: '';
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(27,58,75,.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231B3A4B'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* ── Staff ────────────────────────────────────────────────────── */
.staff-cards { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.staff-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: none;
  border: none;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 32px;
  transition: transform .35s ease-out, box-shadow .35s ease-out;
  backface-visibility: hidden;
}
.staff-card:hover { transform: translate3d(0, -4px, 0); box-shadow: var(--shadow); }
.staff-avatar {
  width: 180px; height: 180px;
  border-radius: 12px;
  background: var(--surface);
  border: none;
  outline: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  overflow: hidden;
  flex-shrink: 0;
}
.staff-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(15%) brightness(0.97);
  object-position: center 20%;
  transition: filter .8s ease-out, transform .8s ease-out;
  will-change: transform;
  backface-visibility: hidden;
}
.staff-card:hover .staff-avatar img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.06);
}
.staff-info { text-align: left; flex: 1; }
.staff-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 4px;
  font-weight: 600;
}
.staff-card .title {
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  margin: 4px 0 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.staff-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; text-align: justify; }

/* ── News ────────────────────────────────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  gap: 22px;
  align-items: center;
  transition: box-shadow .3s ease-out, transform .3s ease-out;
  will-change: transform;
  backface-visibility: hidden;
}
.news-item:hover { box-shadow: var(--shadow); transform: translate3d(0, -2px, 0); }
.news-item-accent {
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), var(--accent));
  flex-shrink: 0;
  align-self: stretch;
  min-height: 60px;
}
.news-item .date {
  font-size: .77rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
  display: block;
}
.news-item h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.05rem; font-weight: 600; }
.news-item p { color: var(--muted); font-size: .9rem; }

/* ── Policies ────────────────────────────────────────────────── */
.policy-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.policy-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: .92rem;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
}
.policy-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(27,58,75,.06), rgba(139,158,139,.10));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,.10);
  transition: background .2s, box-shadow .2s;
}
.contact-item:hover { background: rgba(255,255,255,.14); box-shadow: var(--shadow); }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(196,162,101,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--gold);
}
.contact-item strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: 3px; }
.contact-item span, .contact-item a { color: var(--white); font-weight: 500; }
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  padding: 13px 0;
  border-radius: 0;
  font-weight: 600;
  font-size: .9rem;
  transition: opacity .2s;
  box-shadow: none;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.map-link:hover { border-bottom-color: var(--gold); color: var(--gold); opacity: .85; }

/* ── Emergency card ──────────────────────────────────────────── */
.emergency-card {
  background: linear-gradient(135deg, #B91C1C 0%, #DC2626 50%, #E04040 100%);
  border: none;
  border-radius: var(--radius);
  padding: 44px 36px;
  color: white;
  box-shadow: 0 8px 32px rgba(185,28,28,.30), 0 2px 8px rgba(185,28,28,.15);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow .4s ease-out;
}
.emergency-card:hover {
  box-shadow: 0 12px 40px rgba(185,28,28,.40), 0 4px 12px rgba(185,28,28,.20);
}
.emergency-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.15);
  pointer-events: none;
}
.emergency-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.08) 0%, transparent 50%);
  pointer-events: none;
}
.emergency-card h3 { font-size: 1.15rem; margin-bottom: 14px; color: rgba(255,255,255,.92); font-weight: 600; position: relative; z-index: 1; }
.emergency-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 8px 0;
  display: block;
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.emergency-card p { font-size: .88rem; color: rgba(255,255,255,.88); line-height: 1.6; margin-top: 10px; position: relative; z-index: 1; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 56px 24px 36px;
  font-size: .88rem;
  border-top: 1px solid rgba(196,162,101,.12);
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px 48px;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.2;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-divider { width: 100%; height: 1px; background: rgba(255,255,255,.07); margin: 8px 0; }
.footer-col-title {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-bottom {
  max-width: 1140px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  text-align: center;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 12px 20px; }
}

/* ── Chatbot ─────────────────────────────────────────────────── */
#chat-fab {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--primary);
  color: #fff;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; cursor: pointer;
  box-shadow: 0 6px 24px rgba(27,58,75,.35);
  border: none; z-index: 999;
  transition: transform .25s, box-shadow .25s;
}
#chat-fab:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(27,58,75,.45); }
#chat-window {
  position: fixed; bottom: 104px; right: 28px;
  width: 360px; max-height: 520px;
  background: var(--white); border-radius: 22px;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
  z-index: 998; overflow: hidden;
  transform: scale(0) translateY(20px);
  transform-origin: bottom right;
  transition: transform .3s cubic-bezier(.175,.885,.32,1.275), opacity .3s;
  opacity: 0;
}
#chat-window.open { transform: scale(1) translateY(0); opacity: 1; }
#chat-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
#chat-header .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
#chat-header .info .name { font-weight: 700; font-size: .95rem; }
#chat-header .info .sub { font-size: .75rem; opacity: .82; display: flex; align-items: center; gap: 5px; }
#chat-header .info .sub::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #7dffb3;
}
#chat-close { margin-left: auto; background: rgba(255,255,255,.12); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
#chat-close:hover { background: rgba(255,255,255,.25); }
#chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: .9rem; line-height: 1.5; }
.msg.bot { background: var(--white); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.typing { display: flex; gap: 4px; align-items: center; padding: 12px 16px; background: var(--white); border-radius: 16px; width: fit-content; box-shadow: var(--shadow-sm); }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: bounce .9s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-7px)} }
#chat-input-wrap { padding: 12px 14px; border-top: 1px solid rgba(27,58,75,.08); display: flex; gap: 8px; background: var(--white); }
#chat-input { flex: 1; border: 1.5px solid rgba(27,58,75,.12); border-radius: 10px; padding: 10px 13px; font-size: .9rem; outline: none; transition: border-color .2s; background: var(--surface); }
#chat-input:focus { border-color: var(--gold); background: var(--white); }
#chat-send { background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: 10px 15px; cursor: pointer; font-size: 1rem; transition: opacity .2s, transform .2s; }
#chat-send:hover { opacity: .88; transform: scale(1.05); }
#chat-mic {
  background: var(--surface);
  color: var(--muted);
  border: 1.5px solid rgba(27,58,75,.12);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background .2s, color .2s, border-color .2s;
}
#chat-mic:hover { background: rgba(27,58,75,.08); color: var(--primary); border-color: var(--primary); }
#chat-mic.listening {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  animation: micPulse 1s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.35); }
  50%       { box-shadow: 0 0 0 7px rgba(220,38,38,0); }
}

/* ── Chatbot greeting tooltip ────────────────────────────────── */
#chat-tooltip {
  position: fixed;
  bottom: 96px;
  right: 22px;
  background: var(--white);
  color: var(--text);
  padding: 12px 36px 12px 16px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  font-size: .9rem;
  font-weight: 500;
  z-index: 999;
  opacity: 0;
  transform: translateY(10px) scale(.92);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  max-width: 240px;
  line-height: 1.45;
}
#chat-tooltip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#chat-tooltip .tooltip-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: .85rem;
  cursor: pointer;
  color: var(--muted);
  padding: 2px 6px;
  line-height: 1;
}
#chat-tooltip .tooltip-close:hover { color: var(--text); }
#chat-tooltip::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 26px;
  width: 14px;
  height: 14px;
  background: var(--white);
  transform: rotate(45deg);
  box-shadow: 4px 4px 8px rgba(0,0,0,.05);
}
[dir="rtl"] #chat-tooltip { right: auto; left: 22px; }
[dir="rtl"] #chat-tooltip::after { right: auto; left: 26px; }

/* ── Responsive nav ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: block; min-width: 44px; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  nav { display: none; flex-direction: column; width: 100%; padding: 8px 0 12px; gap: 0; }
  nav.open { display: flex; }
  nav a { border-radius: 8px; padding: 12px 14px; min-height: 44px; display: flex; align-items: center; text-transform: none; letter-spacing: 0; font-size: .875rem; }
  .header-inner { flex-wrap: wrap; padding: 12px 16px; }
  .header-logo { font-size: 1.1rem; }

  /* Hero */
  .hero { min-height: 88vh; padding: 60px 24px 80px; text-align: left; justify-content: flex-start; }
  .hero-content { align-items: center; }
  .hero-eyebrow { font-size: .72rem; padding: 5px 14px; }
  .hero-badges { gap: 8px; }
  .badge { padding: 8px 14px; font-size: .8rem; }
  .hero-cta { padding: 14px 28px; font-size: .92rem; }
  .hero-scroll { left: 24px; }

  /* Staff / Services / Contact bg sections */
  .section-staff, .section-services, .section-contact { padding: 64px 16px; }

  /* Sections */
  section { padding: 64px 16px; }
  h2.section-title { margin-bottom: 32px; }

  /* Cards */
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 22px 20px; }

  /* Hours tables */
  th { padding: 10px 10px; font-size: .8rem; }
  td { padding: 9px 10px; font-size: .85rem; }

  /* News */
  .news-item { padding: 18px 20px; gap: 16px; }

  /* Staff - stack to column on mobile */
  .staff-cards { gap: 16px; }
  .staff-card {
    padding: 24px 20px;
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .staff-info { text-align: center; }
  .staff-avatar { width: 150px; height: 150px; }

  /* Services */
  .services-list { grid-template-columns: 1fr; gap: 10px; }
  .services-list li { padding: 14px 16px; font-size: .9rem; }

  /* Policies */
  .policy-list li { padding: 14px 16px; font-size: .88rem; }

  /* Contact */
  .contact-item { padding: 14px 16px; gap: 12px; }
  .contact-icon { width: 38px; height: 38px; font-size: 1rem; }

  /* Emergency */
  .emergency-card { padding: 32px 24px; }
  .emergency-number { font-size: 3.4rem; }

  /* Chatbot */
  #chat-fab { bottom: 20px; right: 16px; width: 54px; height: 54px; }
  #chat-window { width: calc(100vw - 24px); right: 12px; bottom: 88px; max-height: 70vh; }
  #chat-tooltip { bottom: 82px; right: 10px; font-size: .85rem; max-width: 210px; }

  /* Language switcher */
  .lang-switcher {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(27,58,75,.06);
  }
  .lang-btn { padding: 4px 8px; font-size: .68rem; }
}

/* ── Extra-small phones (375px) ──────────────────────────────── */
@media (max-width: 375px) {
  .header-logo { font-size: .95rem; }
  .hero h1 { font-size: 2.4rem; }
  .badge { font-size: .75rem; padding: 7px 12px; }
  .emergency-number { font-size: 2.8rem; }
  th { padding: 8px; font-size: .78rem; }
  td { padding: 8px; font-size: .82rem; }
}

/* ── Prevent iOS zoom on input focus ─────────────────────────── */
@media (max-width: 768px) {
  #chat-input { font-size: 16px; }
}

/* ── Scroll-triggered reveal animations ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.23,1,.32,1), transform .7s cubic-bezier(.23,1,.32,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > .card,
.reveal-stagger > .staff-card,
.reveal-stagger > .news-item,
.reveal-stagger > li {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s cubic-bezier(.23,1,.32,1), transform .6s cubic-bezier(.23,1,.32,1);
}
.reveal-stagger.visible > .card,
.reveal-stagger.visible > .staff-card,
.reveal-stagger.visible > .news-item,
.reveal-stagger.visible > li {
  opacity: 1;
  transform: translateY(0);
}

/* ── Parallax layers ─────────────────────────────────────────── */
.section-bg-img {
  will-change: transform;
  transition: none;
}

/* ── Legacy fade-up (keep for compat) ────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up:nth-child(2) { animation-delay: .1s; }
.fade-up:nth-child(3) { animation-delay: .2s; }
.fade-up:nth-child(4) { animation-delay: .3s; }
