/* Oris Dent — site styles. Uses logical properties (inline-start/end) so Arabic (RTL) mirrors correctly. */
:root {
  --blue-900: #0f2566;
  --blue-700: #1b3fa0;
  --blue-500: #2f66e0;
  --blue-100: #e7eefc;
  --blue-50: #f4f7fd;
  --ink: #16213a;
  --muted: #5a6680;
  --line: #e1e6f0;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 37, 102, .08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
:lang(ar) { --font: "Segoe UI", "Noto Sans Arabic", Tahoma, "Geeza Pro", sans-serif; }
:lang(zh-hans) { --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--blue-900); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s; text-align: center; max-width: 100%; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover { background: var(--blue-900); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-light { background: var(--white); color: var(--blue-700); }
.btn-sm { padding: .55em 1.1em; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue-900); }
.brand-text { font-size: 1.35rem; letter-spacing: .06em; font-family: "Segoe UI", system-ui, sans-serif; }
.brand-text strong { color: var(--blue-700); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav > a:not(.btn):hover { color: var(--blue-700); }
.nav-toggle, .nav-button { display: none; }

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .92rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 160px; }
.lang li a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.lang li a:hover, .lang li a[aria-current] { background: var(--blue-50); color: var(--blue-700); }

@media (max-width: 960px) {
  .nav-button { display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
  .nav-button span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .site-nav > a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; }
  .lang { padding: 12px 0; }
  .lang ul { position: static; box-shadow: none; margin-top: 8px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* Hero */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero picture, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,37,102,.92) 0%, rgba(27,63,160,.75) 45%, rgba(27,63,160,.15) 100%); }
[dir="rtl"] .hero-overlay { background: linear-gradient(260deg, rgba(15,37,102,.92) 0%, rgba(27,63,160,.75) 45%, rgba(27,63,160,.15) 100%); }
.hero-content { position: relative; padding-block: 80px; max-width: 1180px; }
.hero-content > * { max-width: 620px; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.hero .lead { font-size: 1.15rem; opacity: .92; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--blue-500); margin-bottom: .6em; }
:lang(ar) .eyebrow, :lang(zh-hans) .eyebrow { letter-spacing: 0; }
.hero .eyebrow { color: #bcd0ff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Features */
.features { margin-top: -56px; position: relative; z-index: 2; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 1px solid var(--line); }
.feature svg { width: 34px; height: 34px; fill: none; stroke: var(--blue-700); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } .features { margin-top: -32px; } }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section-tint { background: var(--blue-50); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-100); margin-bottom: 14px; }
.icon svg { fill: none; stroke: var(--blue-700); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Dentists */
.dentists { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); gap: 28px; }
.dentist { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.dentist img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.dentist h3 { margin: 18px 22px 4px; }
.dentist p { margin: 0 22px 22px; color: var(--muted); }

/* Tourism */
.tourism { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: var(--white); }
.tourism h2, .tourism h3 { color: var(--white); }
.tourism .eyebrow { color: #bcd0ff; }
.tourism-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.tourism-grid > *, .contact-grid > * { min-width: 0; }
.tourism-grid > div > p { opacity: .9; font-size: 1.08rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 18px 20px; }
.steps p { margin: 0; opacity: .85; font-size: .95rem; }
.step-no { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--white); color: var(--blue-700); font-weight: 800; }
@media (max-width: 900px) { .tourism-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery picture, .gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 28px 16px 12px; color: var(--white); font-weight: 600; font-size: .95rem;
  background: linear-gradient(transparent, rgba(15,37,102,.75)); }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } .g-wide { grid-column: span 2; grid-row: span 1; } .g-tall { grid-row: span 2; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; font-size: 1.05rem; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { flex: none; width: 22px; height: 22px; margin-top: 3px; fill: none; stroke: var(--blue-700); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-outline { border-color: var(--blue-700); color: var(--blue-700); }
.btn-outline:hover { background: var(--blue-100); }

/* Videos */
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-head-row > div { max-width: 680px; }
.section-head-row p:last-child { color: var(--muted); margin: 0; }
.btn-youtube { background: #ff0033; color: var(--white); }
.btn-youtube:hover { background: #d4002b; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video h3 { font-size: 1rem; margin: 12px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video time { color: var(--muted); font-size: .88rem; }
.video-play, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: #000; }
.video-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video-play:hover img { transform: scale(1.04); }
.play-icon { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,0,51,.92); color: var(--white); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.note { color: var(--muted); font-size: .85rem; margin-top: 18px; }
@media (max-width: 900px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .videos { grid-template-columns: 1fr; } }
.contact-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--blue-900); color: #c9d5f5; padding-top: 56px; }
.site-footer a { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.brand-light { color: var(--white); margin-bottom: 12px; }
.logo-tile { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--white); }
.brand-light .brand-text strong { color: #9db7ff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.plain span + span { opacity: .8; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.whatsapp-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
