/* ==========================================================================
   Shifa Medical — main stylesheet (inspired by the Floria theme)
   RTL-first: uses logical properties so the same CSS serves Arabic & English.
   ========================================================================== */

:root {
  --primary: #3f7a1f;
  --accent: #71b347;
  --dark: #261a0c;
  --footer-bg: #17231a;
  --cream: #f7f6f1;
  --text: #635f59;
  --muted: #8d8982;
  --line: #e4e0d7;
  --white: #fff;
  --orange: #f08a24;
  --accent-soft: #eef5e8;
  --accent-soft: color-mix(in srgb, var(--accent) 13%, #fff);
  --primary-dark: #2f5c17;
  --primary-dark: color-mix(in srgb, var(--primary) 80%, #000);
  --radius: 16px;
  --radius-sm: 10px;
  --btn-radius: 8px;
  --shadow: 0 24px 50px -28px rgba(38, 26, 12, .35);
  --shadow-sm: 0 10px 30px -18px rgba(38, 26, 12, .3);
  --container: 1240px;
  --gutter: 24px;
  --sec-pad: clamp(68px, 9vw, 120px);
  --font-head: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hs: 1;            /* heading scale */
  --head-lh: 1.14;
  --body-lh: 1.7;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[lang="ar"] {
  --font-head: "Markazi Text", "Noto Naskh Arabic", "Times New Roman", serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --hs: 1.16;
  --head-lh: 1.32;
  --body-lh: 1.85;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--body-lh);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; color: var(--dark); line-height: var(--head-lh); margin: 0 0 .5em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
main:focus { outline: none; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .flip-rtl, [dir="rtl"] .btn-ic { transform: scaleX(-1); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 2000;
  background: var(--dark); color: #fff; padding: 10px 18px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btns.is-center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.75em; border-radius: var(--btn-radius); border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1.25;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
  white-space: nowrap;
}
html[lang="en"] .btn { text-transform: uppercase; letter-spacing: .07em; font-size: .8rem; }
.btn .btn-ic { width: 1.1em; height: 1.1em; transition: translate .3s var(--ease); }
.btn:hover .btn-ic { translate: 4px 0; }
[dir="rtl"] .btn:hover .btn-ic { translate: -4px 0; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 14px 28px -14px var(--primary); }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--cream); color: var(--dark); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost-light:hover { background: #fff; border-color: #fff; color: var(--dark); }
.btn-sm { padding: .72em 1.3em; font-size: .88rem; }
html[lang="en"] .btn-sm { font-size: .74rem; }

/* ---------- eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em; margin-bottom: 16px;
  color: var(--primary); font-family: var(--font-body); font-weight: 600; font-size: .95rem;
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; }
.eyebrow .eyebrow-ic { width: 1.15em; height: 1.15em; color: var(--accent); }
.eyebrow.is-light { color: #fff; }
.eyebrow.is-light .eyebrow-ic { color: var(--accent); }

.sec { padding-block: var(--sec-pad); position: relative; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-dark { background: var(--footer-bg); color: rgba(255, 255, 255, .74); }
.bg-dark .sec-title, .bg-dark .feature-title, .bg-dark .hours-card h2 { color: #fff; }
.bg-dark .sec-text { color: rgba(255, 255, 255, .7); }
.bg-dark .eyebrow { color: var(--accent); }

.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.sec-head.is-center { margin-inline: auto; text-align: center; }
.sec-head.is-start { margin-bottom: 28px; }
.sec-title { font-size: calc(clamp(2rem, 3.4vw, 3rem) * var(--hs)); margin-bottom: .35em; }
.sec-text { font-size: 1.08rem; color: var(--text); margin: 0; }
.sec-foot { text-align: center; margin-top: 48px; }
.card-title { font-size: calc(1.45rem * var(--hs)); margin-bottom: .45em; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--primary); }

/* ---------- topbar ---------- */
.topbar { background: var(--footer-bg); color: rgba(255, 255, 255, .78); font-size: .86rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; }
.topbar-info li { display: inline-flex; align-items: center; gap: 8px; }
.topbar-info .ic { color: var(--accent); width: 1.05em; height: 1.05em; }
.topbar a { color: inherit; }
.topbar a:hover { color: #fff; }
.topbar-side { display: flex; align-items: center; gap: 18px; }
.topbar-text { opacity: .85; }

/* ---------- header ---------- */
/* note: no backdrop-filter here — it would trap the fixed mobile drawer inside the header */
.site-header { position: sticky; top: 0; z-index: 900; background: #fff; transition: box-shadow .3s; border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { box-shadow: 0 12px 30px -20px rgba(38, 26, 12, .35); border-bottom-color: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--dark); flex: none; }
.logo:hover { color: var(--dark); }
.logo-mark { width: 44px; height: 44px; color: var(--accent); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-head); font-size: calc(1.7rem * var(--hs)); color: var(--dark); }
html[lang="ar"] .logo-name { font-weight: 700; }
.logo-sub { font-size: .74rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
html[lang="en"] .logo-sub { text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; }
.logo-img { max-height: 58px; width: auto; }
.logo-light .logo-name { color: #fff; }
.logo-light .logo-sub { color: rgba(255, 255, 255, .6); }

.main-nav { display: flex; align-items: center; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.menu-item { position: relative; }
.menu > .menu-item > a {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; color: var(--dark); font-weight: 500; font-size: .98rem;
}
html[lang="en"] .menu > .menu-item > a { font-size: .93rem; }
.menu > .menu-item > a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease);
}
.menu > .menu-item:hover > a::after, .menu > .menu-item.is-current > a::after { transform: scaleX(1); }
.menu > .menu-item.is-current > a, .menu > .menu-item > a:hover { color: var(--primary); }
.menu-caret { width: 14px; height: 14px; transition: transform .3s; }
.menu-item:hover .menu-caret { transform: rotate(180deg); }
.sub-toggle { display: none; }
.sub-menu {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 230px; list-style: none;
  background: #fff; border-radius: 12px; padding: 10px; box-shadow: var(--shadow); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); z-index: 20;
}
.menu-item:hover > .sub-menu, .menu-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--dark); font-size: .94rem; }
.sub-menu a:hover, .sub-menu .is-current > a { background: var(--cream); color: var(--primary); }
.nav-head, .nav-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--btn-radius);
  color: var(--dark); font-weight: 600; font-size: .9rem; border: 1px solid var(--line);
}
.lang-switch:hover { border-color: var(--accent); color: var(--primary); }
.lang-switch .ic { width: 1.05em; height: 1.05em; color: var(--accent); }
html[lang="en"] .lang-switch span { font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; color: var(--dark); }
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-overlay { position: fixed; inset: 0; background: rgba(15, 20, 12, .5); z-index: 950; opacity: 0; transition: opacity .3s; }
.nav-open .nav-overlay { opacity: 1; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .header-actions > .lang-switch, .header-actions > .btn { display: none; }
  .main-nav {
    position: fixed; top: 0; inset-inline-end: 0; z-index: 1000; height: 100vh; height: 100dvh;
    width: min(360px, 88vw); background: #fff; flex-direction: column; align-items: stretch;
    padding: 18px 22px 30px; overflow-y: auto; transform: translateX(105%); transition: transform .4s var(--ease);
    box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .3); visibility: hidden;
  }
  [dir="rtl"] .main-nav { transform: translateX(-105%); }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
  .nav-head-title { font-family: var(--font-head); font-size: calc(1.4rem * var(--hs)); color: var(--dark); }
  .nav-close { width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--dark); }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu-item { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .menu > .menu-item > a { flex: 1; padding: 14px 4px; font-size: 1.02rem; }
  .menu > .menu-item > a::after, .menu-caret { display: none; }
  .sub-toggle { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; color: var(--dark); }
  .sub-toggle .ic { transition: transform .3s; }
  .menu-item.is-open > .sub-toggle .ic { transform: rotate(180deg); }
  .sub-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px; display: none; background: transparent; }
  .menu-item.is-open > .sub-menu { display: block; }
  .sub-menu a { padding: 10px 14px; background: var(--cream); margin-bottom: 4px; }
  .nav-extra { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
  .nav-extra .btn, .nav-extra .lang-switch { justify-content: center; }
}
body.nav-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--footer-bg); overflow: hidden; }
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1; position: relative; display: flex; align-items: center;
  min-height: clamp(560px, 86vh, 840px); opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-bg img { transform: scale(1); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(14, 22, 11, .86) 0%, rgba(14, 22, 11, .55) 48%, rgba(14, 22, 11, .18) 100%); }
[dir="rtl"] .hero-bg::after { background: linear-gradient(to left, rgba(14, 22, 11, .86) 0%, rgba(14, 22, 11, .55) 48%, rgba(14, 22, 11, .18) 100%); }
.hero-inner { position: relative; z-index: 2; padding-block: 120px 150px; }
.hero-content { max-width: 680px; }
.hero-title { color: #fff; font-size: calc(clamp(2.5rem, 5.4vw, 4.6rem) * var(--hs)); line-height: var(--head-lh); margin-bottom: .35em; }
.hero-text { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .86); max-width: 560px; }
.hero-slide.is-active .hero-content > * { animation: heroUp 1s var(--ease) both; }
.hero-slide.is-active .hero-content > *:nth-child(2) { animation-delay: .12s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { animation-delay: .24s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { animation-delay: .36s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-controls { position: absolute; inset-inline: 0; bottom: 44px; z-index: 5; }
.hero-controls-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-dots { display: flex; gap: 10px; }
.hero-dot { width: 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); transition: all .4s var(--ease); }
.hero-dot.is-active { width: 58px; background: var(--accent); }
.hero-dot:hover { background: rgba(255, 255, 255, .7); }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: all .3s; }
.hero-arrow:hover { background: #fff; color: var(--dark); border-color: #fff; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--footer-bg); color: #fff; text-align: center; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 22, 11, .55), rgba(14, 22, 11, .82)); }
.page-hero-inner { position: relative; z-index: 2; padding-block: clamp(90px, 12vw, 150px) clamp(70px, 9vw, 110px); }
.page-hero-title { color: #fff; font-size: calc(clamp(2.4rem, 5vw, 4rem) * var(--hs)); margin-bottom: .25em; }
.page-hero-text { max-width: 640px; margin: 0 auto; font-size: 1.1rem; color: rgba(255, 255, 255, .85); }
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; font-size: .9rem; margin-bottom: 18px; }
.crumbs li { color: rgba(255, 255, 255, .75); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--accent); }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--accent); }

/* ---------- features ---------- */
.feature-grid { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card { display: block; color: inherit; position: relative; }
a.feature-card:hover { color: inherit; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 50%; background: var(--accent-soft); color: var(--primary); margin-bottom: 22px; transition: all .4s var(--ease); }
.feature-icon .ic { width: 30px; height: 30px; stroke-width: 1.6; }
.feature-title { font-size: calc(1.4rem * var(--hs)); margin-bottom: .4em; }
.feature-body p { margin: 0; }
.is-cards .feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 32px; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.bg-white .is-cards .feature-card { background: var(--cream); border-color: transparent; }
.is-cards .feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.is-cards .feature-card:hover .feature-icon { background: var(--primary); color: #fff; }
.is-plain .feature-card { text-align: center; padding: 10px 14px; }
.bg-dark .is-cards .feature-card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.bg-dark .feature-icon { background: rgba(255, 255, 255, .08); color: var(--accent); }
/* strip (directly under the hero, like Floria's info bar) */
.sec-features.style-strip { padding-block: 34px; }
.is-strip { gap: 0; }
.is-strip .feature-card { display: flex; align-items: center; gap: 16px; padding: 8px 26px; }
.is-strip .feature-card + .feature-card { border-inline-start: 1px solid var(--line); }
.is-strip .feature-icon { width: 54px; height: 54px; margin: 0; background: #fff; }
.bg-white .is-strip .feature-icon { background: var(--cream); }
.is-strip .feature-icon .ic { width: 24px; height: 24px; }
.is-strip .feature-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.is-strip p { font-size: .88rem; line-height: 1.5; color: var(--muted); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-grid.no-media { grid-template-columns: 1fr; max-width: 860px; margin-inline: auto; }
.about-grid.is-reverse .about-media { order: 2; }
.about-media { position: relative; padding-bottom: 56px; padding-inline-end: 56px; }
.about-img-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; }
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-sub { position: absolute; bottom: 0; inset-inline-end: 0; width: 46%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow); }
.bg-cream .about-img-sub { border-color: var(--cream); }
.about-img-sub img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; top: 34px; inset-inline-start: -22px; z-index: 2;
  width: 150px; height: 150px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px;
  box-shadow: 0 20px 40px -18px var(--primary); border: 6px solid #fff;
}
.about-badge strong { font-family: var(--font-head); font-size: calc(2.3rem * var(--hs)); line-height: 1; font-weight: 400; direction: ltr; }
.about-badge span { font-size: .78rem; line-height: 1.35; margin-top: 6px; opacity: .92; }
.prose { font-size: 1.04rem; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.5em; }
.prose h3 { font-size: calc(1.6rem * var(--hs)); }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose ul li::marker { color: var(--accent); }
.prose ol li::marker { color: var(--primary); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--dark); }
.prose blockquote { margin: 1.5em 0; padding: 18px 24px; border-inline-start: 4px solid var(--accent); background: var(--cream); border-radius: 8px; }
.prose-lg { font-size: 1.1rem; }
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 26px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--dark); font-weight: 500; line-height: 1.5; }
.check-list .ic { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--primary); color: #fff; stroke-width: 3; margin-top: 1px; }

/* ---------- cards: services / posts / team ---------- */
.card-grid { display: grid; gap: 30px; }
.service-card, .post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.service-card:hover, .post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-media, .post-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.service-media img, .post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.service-card:hover .service-media img, .post-card:hover .post-media img { transform: scale(1.06); }
.service-body, .post-body { padding: 30px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.service-body p, .post-body p { margin-bottom: 18px; }
.service-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-top: -62px; margin-bottom: 18px; border: 5px solid #fff; position: relative; transition: background .4s; }
.service-icon .ic { width: 26px; height: 26px; }
.service-card.no-media .service-icon { margin-top: 0; background: var(--accent-soft); color: var(--primary); border: 0; }
.service-card:hover .service-icon { background: var(--accent); }
.link-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--primary); }
html[lang="en"] .link-more { text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; }
.link-more .ic { width: 1.1em; height: 1.1em; transition: translate .3s var(--ease); }
.link-more:hover .ic { translate: 4px 0; }
[dir="rtl"] .link-more:hover .ic { translate: -4px 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: .86rem; color: var(--muted); margin-bottom: 12px; }
.post-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .ic { width: 1em; height: 1em; color: var(--accent); }
.post-cat { background: var(--accent-soft); color: var(--primary); padding: 3px 12px; border-radius: 30px; font-weight: 600; font-size: .78rem; }

.team-card { text-align: center; }
.team-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.team-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.team-media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(0deg, rgba(14, 22, 11, .45), transparent); opacity: 0; transition: opacity .5s; }
.team-card:hover .team-media img { transform: scale(1.05); }
.team-card:hover .team-media::after { opacity: 1; }
.team-ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--line); }
.team-ph .ic { width: 70px; height: 70px; }
.team-body { padding: 22px 8px 0; }
.team-body .card-title { margin-bottom: .2em; }
.team-role { color: var(--primary); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.team-text { font-size: .94rem; margin: 0; }
.bg-dark .team-body .card-title { color: #fff; }

/* ---------- stats ---------- */
.sec-stats { color: #fff; overflow: hidden; }
.sec-stats.has-bg { background: var(--footer-bg); }
.sec-bg { position: absolute; inset: 0; }
.sec-bg img { width: 100%; height: 100%; object-fit: cover; }
.sec-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20, 33, 16, .92), rgba(31, 52, 22, .8)); }
.sec-stats .container { position: relative; z-index: 1; }
.sec-stats .sec-title { color: #fff; }
.sec-stats .sec-text { color: rgba(255, 255, 255, .75); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { text-align: center; padding: 10px 20px; }
.stat + .stat { border-inline-start: 1px solid rgba(255, 255, 255, .14); }
.stat-value { display: flex; justify-content: center; align-items: baseline; gap: 2px; direction: ltr; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1; color: #fff; }
.stat-suffix { color: var(--accent); }
.stat-label { margin: 12px 0 0; color: rgba(255, 255, 255, .78); font-size: 1.02rem; }

/* ---------- steps ---------- */
.steps-grid { display: grid; gap: 30px; list-style: none; counter-reset: none; }
.step { position: relative; padding: 34px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.bg-white .step { background: var(--cream); border-color: transparent; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.step-icon { width: 62px; height: 62px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; }
.step-icon .ic { width: 26px; height: 26px; }
.step-num { font-family: "DM Serif Display", Georgia, serif; font-size: 3.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--accent); opacity: .8; }
.step p { margin: 0; }

/* ---------- testimonials ---------- */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 3); gap: 30px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 20px; scroll-behavior: smooth;
}
.carousel-track::-webkit-scrollbar { display: none; }
.tcard { scroll-snap-align: start; margin: 0; background: var(--cream); border-radius: var(--radius); padding: 38px 34px 32px; position: relative; display: flex; flex-direction: column; }
.bg-cream .tcard { background: #fff; }
.tcard-quote { position: absolute; top: 30px; inset-inline-end: 30px; width: 46px; height: 46px; color: var(--accent); opacity: .28; }
.stars { display: flex; gap: 3px; color: var(--orange); margin-bottom: 18px; }
.stars .ic { width: 17px; height: 17px; }
.tcard blockquote { margin: 0 0 26px; font-size: 1.06rem; color: var(--dark); flex: 1; }
.tcard blockquote p { margin: 0; }
.tcard-author { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.tcard-author strong { display: block; color: var(--dark); font-weight: 600; }
.tcard-author small { display: block; color: var(--muted); font-size: .86rem; }
.avatar { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 1.3rem; }
.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.carousel-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--dark); background: #fff; transition: all .3s; }
.carousel-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.carousel-btn:disabled { opacity: .4; pointer-events: none; }

/* ---------- CTA ---------- */
.sec-cta { padding-block: calc(var(--sec-pad) * .7); }
.cta-box {
  position: relative; overflow: hidden; border-radius: 22px; background: var(--primary);
  padding: clamp(44px, 6vw, 76px) clamp(28px, 6vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 30px 60px; flex-wrap: wrap;
}
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-box.has-bg .cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(23, 45, 14, .95), rgba(47, 92, 23, .82) 55%, rgba(47, 92, 23, .55)); }
[dir="rtl"] .cta-box.has-bg .cta-bg::after { background: linear-gradient(250deg, rgba(23, 45, 14, .95), rgba(47, 92, 23, .82) 55%, rgba(47, 92, 23, .55)); }
.cta-content, .cta-btns { position: relative; z-index: 1; }
.cta-content { max-width: 640px; }
.cta-title { color: #fff; font-size: calc(clamp(1.9rem, 3.2vw, 2.7rem) * var(--hs)); margin-bottom: .3em; }
.cta-text { color: rgba(255, 255, 255, .85); margin: 0; font-size: 1.06rem; }
.cta-btns { margin-top: 0; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.faq-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; position: sticky; top: 120px; }
.faq-media img { width: 100%; height: 100%; object-fit: cover; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .3s, box-shadow .3s; }
.bg-white .faq-item { background: var(--cream); border-color: transparent; }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--accent); }
.bg-white .faq-item[open] { background: #fff; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; font-weight: 600; color: var(--dark); font-size: 1.06rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent-soft); transition: background .3s, transform .4s var(--ease); }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: var(--primary); translate: -50% -50%; border-radius: 2px; transition: transform .3s; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle { background: var(--primary); transform: rotate(180deg); }
.faq-item[open] .faq-toggle::before, .faq-item[open] .faq-toggle::after { background: #fff; }
.faq-item[open] .faq-toggle::after { transform: rotate(0); }
.faq-a { padding: 0 24px 22px; }
.faq-a p:last-child { margin: 0; }

/* ---------- gallery & lightbox ---------- */
.gallery-grid { display: grid; gap: 18px; }
.gallery-item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; background: rgba(20, 33, 16, .55); opacity: 0; transition: opacity .4s; font-weight: 600; }
.gallery-over .ic { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--accent); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.07); }
.gallery-item:hover .gallery-over, .gallery-item:focus-visible .gallery-over { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 12, 7, .94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: rgba(255, 255, 255, .85); margin-top: 14px; }
.lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255, 255, 255, .1); transition: background .3s; }
.lightbox button:hover { background: var(--primary); }
.lb-close { top: 18px; inset-inline-end: 18px; }
.lb-prev { inset-inline-start: 14px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 14px; top: 50%; translate: 0 -50%; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 70px); align-items: start; }
.info-cards { list-style: none; display: grid; gap: 14px; }
.info-card { display: flex; align-items: center; gap: 18px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.bg-white .info-card { background: var(--cream); border-color: transparent; }
.info-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.info-icon .ic { width: 22px; height: 22px; }
.info-card strong { display: block; font-size: .84rem; color: var(--muted); font-weight: 500; }
.info-val { display: block; color: var(--dark); font-weight: 600; line-height: 1.6; }
.info-val a { color: inherit; }
.info-val a:hover { color: var(--primary); }
[dir="rtl"] .info-val a[dir="ltr"] { display: inline-block; }
.contact-form-wrap { background: var(--cream); border-radius: 20px; padding: clamp(26px, 4vw, 44px); }
.bg-cream .contact-form-wrap { background: #fff; }
.form-title { font-size: calc(1.7rem * var(--hs)); margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--dark); }
.req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .25s, box-shadow .25s; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form-status { margin: 16px 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.is-ok { color: var(--primary); }
.form-status.is-err { color: #b3261e; }
.map-wrap { margin-top: clamp(50px, 7vw, 80px); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 430px; border: 0; filter: grayscale(.3) contrast(1.05); }

/* ---------- rich text ---------- */
.prose-figure { margin: 0 0 34px; }
.prose-figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; }
.prose-figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------- hours ---------- */
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.hours-grid.no-media { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.hours-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4.4; }
.hours-media img { width: 100%; height: 100%; object-fit: cover; }
.hours-card { background: #fff; border-radius: 20px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-sm); }
.bg-white .hours-card { background: var(--cream); box-shadow: none; }
.hours-list { list-style: none; margin-top: 8px; }
.hours-list li { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours-day { font-weight: 600; color: var(--dark); }
.hours-dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.hours-time { color: var(--primary); font-weight: 600; }
.hours-note { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-weight: 600; color: var(--dark); }
.hours-note .ic { color: var(--accent); }

/* ---------- 404 ---------- */
.sec-404 { text-align: center; }
.big-404 { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--accent); opacity: .3; margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, .7); padding-top: clamp(64px, 8vw, 96px); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.25fr; gap: 44px; padding-bottom: 60px; }
.footer-about p { margin: 20px 0 24px; max-width: 360px; }
.footer-title { color: #fff; font-size: calc(1.35rem * var(--hs)); margin-bottom: 24px; padding-bottom: 14px; position: relative; }
.footer-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 36px; height: 2px; background: var(--accent); }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: rgba(255, 255, 255, .7); display: inline-flex; align-items: center; gap: 6px; }
.footer-links a .ic { width: 14px; height: 14px; color: var(--accent); transition: translate .3s; }
.footer-links a:hover { color: #fff; }
.footer-links a:hover .ic { translate: 3px 0; }
[dir="rtl"] .footer-links a:hover .ic { translate: -3px 0; }
.footer-contact-list { list-style: none; display: grid; gap: 16px; }
.footer-contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact-list .ic { color: var(--accent); margin-top: 3px; }
.footer-contact-list a { color: rgba(255, 255, 255, .78); }
.footer-contact-list a:hover { color: #fff; }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .18); color: #fff; transition: all .3s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.socials .ic { width: 17px; height: 17px; }
.socials-sm { gap: 4px; }
.socials-sm a { width: 30px; height: 30px; border: 0; color: rgba(255, 255, 255, .75); }
.socials-sm .ic { width: 15px; height: 15px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 22px; font-size: .9rem; }
.footer-bottom-inner p { margin: 0; }
.footer-bottom-links { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom-links a { color: rgba(255, 255, 255, .7); }
.footer-bottom-links a:hover { color: #fff; }

/* ---------- floating buttons ---------- */
.wa-float, .to-top { position: fixed; bottom: 22px; z-index: 800; width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .45); transition: transform .3s var(--ease), opacity .3s, visibility .3s; }
.wa-float { inset-inline-start: 22px; background: #25d366; color: #fff; }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.wa-float .ic { width: 28px; height: 28px; }
.to-top { inset-inline-end: 22px; background: var(--primary); color: #fff; opacity: 0; visibility: hidden; transform: translateY(12px); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-dark); }

/* ---------- reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .is-strip.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .is-strip .feature-card:nth-child(odd) { border-inline-start: 0; }
  .carousel-track { grid-auto-columns: calc((100% - 30px) / 2); }
}
@media (max-width: 1023px) {
  .hide-md { display: none !important; }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .faq-grid, .contact-grid, .hours-grid { grid-template-columns: 1fr; }
  .about-grid.is-reverse .about-media { order: 0; }
  .about-media { max-width: 620px; }
  .faq-media { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 0; }
  .stat:nth-child(odd) { border-inline-start: 0; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .hide-sm { display: none !important; }
  .topbar-side { display: none; }
  .topbar-inner { justify-content: center; }
  .header-inner { min-height: 72px; }
  .logo-mark { width: 38px; height: 38px; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .card-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .feature-grid.cols-4:not(.is-strip) { grid-template-columns: 1fr; }
  .is-strip.cols-4 { grid-template-columns: 1fr; }
  .is-strip .feature-card { border-inline-start: 0 !important; padding: 6px 0; }
  .check-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .carousel-track { grid-auto-columns: 88%; gap: 16px; }
  .hero-inner { padding-block: 90px 130px; }
  .hero-arrows { display: none; }
  .about-media { padding-bottom: 40px; padding-inline-end: 30px; }
  .about-badge { width: 118px; height: 118px; inset-inline-start: -6px; top: 18px; border-width: 4px; }
  .about-badge strong { font-size: calc(1.8rem * var(--hs)); }
  .about-badge span { font-size: .7rem; }
  .gallery-grid.cols-3, .gallery-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .service-body, .post-body { padding: 26px 22px 28px; }
  .map-wrap iframe { height: 320px; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; translate: none; }
  .wa-float, .to-top { width: 48px; height: 48px; bottom: 16px; }
  .wa-float { inset-inline-start: 16px; }
  .to-top { inset-inline-end: 16px; }
}
@media (max-width: 479px) {
  .card-grid.cols-4 { grid-template-columns: 1fr; }
  .team-card { max-width: 340px; margin-inline: auto; width: 100%; }
  .btns .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-bg img { transform: none !important; }
}

@media print {
  .topbar, .site-header, .hero-controls, .wa-float, .to-top, .contact-form-wrap, .map-wrap, .site-footer { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  body { color: #000; }
}
