/* =====================================================================
   THE SMILE FACTORY — Design System
   Premium dental aesthetic · 100% local · LTR + RTL aware
   ===================================================================== */

/* ---------------------------------------------------------------------
   Cairo (variable 400–800) — bundled locally for the Arabic site, offline.
   --------------------------------------------------------------------- */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo/cairo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo/cairo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------
   Manrope (variable 200–800) — bundled locally, offline.
   Primary English body/UI font: premium, elegant, modern.
   --------------------------------------------------------------------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope/manrope-200-800-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope/manrope-200-800-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------
   Montserrat (variable 100–900) — bundled locally, offline.
   Selected headings + prominent brand elements (stats, badges, watermark).
   --------------------------------------------------------------------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat/montserrat-100-900-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat/montserrat-100-900-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------
   Alternate body/heading options — bundled locally for offline use;
   selectable in Admin → Settings → Appearance (Poppins / Playfair).
   --------------------------------------------------------------------- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins/poppins-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins/poppins-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins/poppins-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins/poppins-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins/poppins-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins/poppins-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair/playfair-400-900-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair/playfair-400-900-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy:        #0E2A47;
  --navy-900:    #081729;
  --navy-800:    #0A1F36;
  --navy-700:    #12365A;
  --teal:        #14707A;
  --teal-700:    #0F5A63;
  --teal-300:    #7FB3BC;
  --teal-50:     #EDF5F6;
  --gold:        #C9A24B;
  --gold-200:    #E3C57E;
  --gold-50:     #F8F2E4;
  --cream:       #F7F4EE;
  --paper:       #FBFAF7;
  --ink:         #10243B;
  --body:        #4E5F72;
  --muted:       #7C8B9C;
  --line:        #E8E4DC;
  --white:       #FFFFFF;

  --font-sans: "Manrope", "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Montserrat", "Manrope", "Segoe UI", Tahoma, sans-serif;

  --shadow-sm: 0 4px 14px -6px rgba(14, 42, 71, .16);
  --shadow-md: 0 18px 44px -26px rgba(14, 42, 71, .35);
  --shadow-lg: 0 34px 70px -34px rgba(14, 42, 71, .45);

  --radius:    18px;
  --radius-lg: 26px;
  --nav-h:     78px;
  --ease:      cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.25; }

p { margin-bottom: 1rem; }

a { color: var(--teal); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--teal-700); }

img { max-width: 100%; height: auto; }

::selection { background: var(--gold-200); color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -60px; inset-inline-start: 16px; z-index: 2000;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 10px; transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* Arabic: Cairo everywhere (bundled locally — works offline) */
html[lang="ar"] {
  --font-sans: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-display: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --bs-font-sans-serif: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --bs-body-font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}
html[lang="ar"] body { font-family: var(--font-sans); line-height: 1.9; }
html[lang="ar"] .sf-display { font-family: var(--font-display); font-weight: 800; letter-spacing: 0; }

/* ---------------------------------------------------------------------
   Typography helpers
   --------------------------------------------------------------------- */
.sf-display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.015em;
}

.sf-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 18px;
}
.sf-eyebrow::before {
  content: ""; width: 42px; height: 2px; background: var(--gold); border-radius: 2px;
}
[dir="rtl"] .sf-eyebrow { letter-spacing: 0; }

.sf-section { padding: 96px 0; position: relative; }
.sf-section--cream { background: var(--cream); }
.sf-section--paper { background: var(--paper); }
.sf-section--navy {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(20, 112, 122, .38), transparent 60%),
    radial-gradient(760px 420px at -5% 110%, rgba(201, 162, 75, .16), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: rgba(255, 255, 255, .82);
}
.sf-section--navy h2,
.sf-section--navy h3,
.sf-section--navy .sf-display { color: #fff; }
.sf-section--navy .sf-eyebrow { color: var(--gold-200); }

.sf-head { max-width: 720px; margin-bottom: 54px; }
.sf-head--center { margin-inline: auto; text-align: center; }
.sf-head--center .sf-eyebrow { justify-content: center; }
.sf-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-bottom: 14px; }
.sf-head p { font-size: 1.06rem; color: var(--muted); margin-bottom: 0; }
.sf-section--navy .sf-head p { color: rgba(255, 255, 255, .75); }

.sf-lead { font-size: 1.12rem; color: var(--body); }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn { --bs-btn-padding-y: .82rem; font-weight: 600; letter-spacing: .02em; }

.sf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: .92rem 1.9rem; border-radius: 999px; border: 1.5px solid transparent;
  font-size: .97rem; font-weight: 600; letter-spacing: .04em;
  transition: all .3s var(--ease); white-space: nowrap;
}
.sf-btn i { font-size: 1.05rem; }

.sf-btn-navy { background: var(--navy); color: #fff; }
.sf-btn-navy:hover { background: var(--teal-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.sf-btn-gold {
  background: linear-gradient(135deg, var(--gold-200), var(--gold));
  color: var(--navy-900); font-weight: 700;
}
.sf-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(201, 162, 75, .65); color: var(--navy-900); }

.sf-btn-outline { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.sf-btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; transform: translateY(-2px); }

.sf-btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.sf-btn-ghost:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.sf-link-arrow {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 600;
  color: var(--teal); font-size: .95rem; letter-spacing: .03em;
}
.sf-link-arrow i { transition: transform .3s var(--ease); }
.sf-link-arrow:hover i { transform: translateX(6px); }
[dir="rtl"] .sf-link-arrow:hover i { transform: translateX(-6px) scaleX(-1); }
[dir="rtl"] .sf-link-arrow i { transform: scaleX(-1); }

/* ---------------------------------------------------------------------
   Topbar
   --------------------------------------------------------------------- */
.sf-topbar {
  background: linear-gradient(90deg, var(--navy-900), var(--navy-800));
  color: rgba(255, 255, 255, .82);
  font-size: .84rem; letter-spacing: .02em;
  padding: 9px 0;
}
.sf-topbar a { color: rgba(255, 255, 255, .85); display: inline-flex; align-items: center; gap: 7px; }
.sf-topbar a:hover { color: var(--gold-200); }
.sf-topbar-info { display: flex; gap: 26px; align-items: center; }
.sf-topbar-item { display: inline-flex; align-items: center; gap: 7px; opacity: .8; }
.sf-topbar-right { display: flex; align-items: center; gap: 22px; }
.sf-topbar-wa i { color: #6ede8f; font-size: .95rem; }
.sf-lang { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .12em; font-size: .8rem; }
.sf-lang a { opacity: .55; padding: 2px 4px; border-radius: 6px; }
.sf-lang a.is-active { opacity: 1; color: var(--gold-200); }
.sf-lang-sep { opacity: .3; }

/* ---------------------------------------------------------------------
   Navbar
   --------------------------------------------------------------------- */
.sf-nav {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 228, 220, .8);
  padding: 0;
  min-height: var(--nav-h);
  transition: box-shadow .3s var(--ease), min-height .3s var(--ease);
  z-index: 1030;
}
.sf-nav.is-stuck { box-shadow: 0 14px 34px -22px rgba(14, 42, 71, .5); min-height: 66px; }

.sf-brand { display: flex; align-items: center; margin: 0; padding: 8px 0; }
.sf-brand-img { width: auto; height: var(--brand-h, 64px); object-fit: contain; transition: height .3s var(--ease); }
.sf-nav.is-stuck .sf-brand-img { height: calc(var(--brand-h, 64px) * .8125); }

.sf-nav-link {
  position: relative; color: var(--ink) !important; font-weight: 600;
  font-size: .84rem; padding: 10px 7px !important; letter-spacing: .01em;
  white-space: nowrap;
}
.sf-nav-link::after {
  content: ""; position: absolute; left: 7px; right: 7px; bottom: 4px;
  height: 2px; background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease);
}
.sf-nav-link:hover::after, .sf-nav-link.active::after { transform: scaleX(1); }
.sf-nav-link.active { color: var(--teal) !important; }
.sf-nav-cta { padding: .6rem 1.05rem !important; font-size: .85rem !important; white-space: nowrap; }

.sf-toggler { border: none; padding: 10px 8px; display: flex; flex-direction: column; gap: 5px; }
.sf-toggler-bar { width: 26px; height: 2.5px; background: var(--navy); border-radius: 3px; display: block; transition: .3s; }
.sf-toggler:focus { box-shadow: none; }

/* Mobile offcanvas */
.sf-mobile-menu {
  background: linear-gradient(170deg, var(--navy-800), var(--navy-900));
  border-inline-start: none !important;
  width: min(84vw, 360px) !important;
}
.sf-mobile-menu .offcanvas-header { padding: 22px 24px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sf-mobile-logo { height: calc(var(--brand-h, 64px) * .90625); width: auto; filter: brightness(0) invert(1); }
.sf-mobile-list { list-style: none; padding: 0; margin: 0; }
.sf-mobile-list a {
  display: flex; align-items: center; justify-content: space-between;
  color: rgba(255, 255, 255, .85); font-weight: 600; font-size: 1.04rem;
  padding: 15px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sf-mobile-list a i { color: var(--gold-200); font-size: .9rem; opacity: .7; }
.sf-mobile-list a:hover, .sf-mobile-list a.active { color: var(--gold-200); }
.sf-mobile-contact { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; color: rgba(255, 255, 255, .7); }
.sf-mobile-contact a { color: rgba(255, 255, 255, .8); display: flex; gap: 9px; align-items: center; }
.sf-mobile-menu .sf-lang a { color: #fff; }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.sf-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 560px at 78% 8%, rgba(20, 112, 122, .5), transparent 62%),
    radial-gradient(700px 460px at 8% 95%, rgba(201, 162, 75, .18), transparent 65%),
    linear-gradient(155deg, var(--navy-800) 0%, var(--navy-900) 78%);
  color: rgba(255, 255, 255, .85);
  padding: 48px 0 84px;
}
.sf-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(900px 600px at 70% 40%, #000 30%, transparent 75%);
}
.sf-hero-tooth {
  position: absolute; inset-inline-end: -140px; top: -60px;
  width: 620px; opacity: .06; pointer-events: none;
}
[dir="rtl"] .sf-hero-tooth { transform: scaleX(-1); inset-inline-end: auto; inset-inline-start: -140px; }

.sf-hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 64px; align-items: center;
}
.sf-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-200); margin-bottom: 26px;
}
.sf-hero-eyebrow::before { content: ""; width: 46px; height: 2px; background: var(--gold); }
[dir="rtl"] .sf-hero-eyebrow { letter-spacing: 0; }

.sf-hero-title {
  font-family: var(--font-display);
  color: #fff; font-size: clamp(2.1rem, 3.9vw, 3.2rem);
  line-height: 1.06; letter-spacing: -.01em; margin-bottom: 18px; font-weight: 700;
}
.sf-hero-title .accent {
  display: block; font-style: italic;
  background: linear-gradient(120deg, var(--gold-200), var(--gold) 55%, #f0d9a5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sf-hero-doctor {
  display: flex; align-items: center; gap: 14px;
  font-size: 1.14rem; font-weight: 600; color: #fff; letter-spacing: .06em;
  margin-bottom: 10px;
}
.sf-hero-doctor::before { content: ""; width: 40px; height: 1.5px; background: var(--gold); }
.sf-hero-tags { font-size: .95rem; color: rgba(255, 255, 255, .65); letter-spacing: .06em; margin-bottom: 36px; }
.sf-hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.sf-hero-trust { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.sf-hero-trust-item { display: flex; align-items: center; gap: 12px; }
.sf-hero-trust-item i {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  color: var(--gold-200); font-size: 1.1rem;
}
.sf-hero-trust-item span { font-size: .86rem; color: rgba(255, 255, 255, .75); line-height: 1.4; }

/* hero visual */
.sf-hero-visual { position: relative; }
.sf-hero-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .14);
  aspect-ratio: 1 / 1;
}
.sf-hero-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 45%, rgba(8, 23, 41, .55));
}
.sf-hero-badge {
  position: absolute; inset-inline-start: -34px; bottom: 46px;
  background: #fff; border-radius: 20px; padding: 20px 26px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 16px;
  min-width: 230px;
}
[dir="rtl"] .sf-hero-badge { inset-inline-start: auto; inset-inline-end: -34px; }
.sf-hero-badge-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--gold-50); color: var(--gold); font-size: 1.5rem;
}
.sf-hero-badge strong { display: block; color: var(--ink); font-size: 1.5rem; line-height: 1.1; font-family: var(--font-display); }
.sf-hero-badge span { font-size: .8rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.sf-hero-ring {
  position: absolute; inset-inline-end: -26px; top: -26px; width: 140px; height: 140px;
  border: 1.5px dashed rgba(201, 162, 75, .55); border-radius: 50%;
  animation: sf-spin 34s linear infinite;
}
[dir="rtl"] .sf-hero-ring { inset-inline-end: auto; inset-inline-start: -26px; }
@keyframes sf-spin { to { transform: rotate(360deg); } }

.sf-hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; z-index: 3; }
.sf-hero-wave svg { width: 100%; height: 74px; display: block; }

/* ---------------------------------------------------------------------
   Stats
   --------------------------------------------------------------------- */
.sf-stats {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 54px 0;
}
.sf-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.sf-stat { text-align: center; padding: 12px 22px; position: relative; }
.sf-stat + .sf-stat::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 18%;
  height: 64%; width: 1px; background: var(--line);
}
.sf-stat-value {
  font-family: var(--font-display); font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  color: var(--navy); font-weight: 700; line-height: 1;
}
.sf-stat-value sup { color: var(--gold); font-size: .55em; top: -.55em; }
.sf-stat-label {
  margin-top: 10px; font-size: .82rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.sf-stat i { color: var(--teal); font-size: 1.1rem; margin-bottom: 8px; display: block; }

/* ---------------------------------------------------------------------
   About
   --------------------------------------------------------------------- */
.sf-about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.sf-about-visual { position: relative; }
.sf-about-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative; z-index: 2;
  background: var(--cream);
}
.sf-about-photo img { width: 100%; display: block; }
.sf-about-frame {
  position: absolute; inset: 26px -26px -26px 26px;
  border: 1.5px solid var(--gold); border-radius: var(--radius-lg);
  z-index: 1;
}
[dir="rtl"] .sf-about-frame { inset: 26px 26px -26px -26px; }
.sf-about-chip {
  position: absolute; z-index: 3; top: 30px; inset-inline-end: -30px;
  background: var(--navy); color: #fff; border-radius: 18px;
  padding: 18px 24px; box-shadow: var(--shadow-lg);
}
[dir="rtl"] .sf-about-chip { inset-inline-end: auto; inset-inline-start: -30px; }
.sf-about-chip strong { display: block; font-size: 1.7rem; font-family: var(--font-display); color: var(--gold-200); }
.sf-about-chip span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }

.sf-about-body h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 18px; }
.sf-about-quote {
  border-inline-start: 3px solid var(--gold); padding: 6px 0 6px 22px;
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem;
  color: var(--navy); margin: 26px 0;
}
[dir="rtl"] .sf-about-quote { padding: 6px 22px 6px 0; }
.sf-chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.sf-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-50); color: var(--teal-700);
  border: 1px solid rgba(20, 112, 122, .18);
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600;
}
.sf-chip i { color: var(--gold); }

/* ---------------------------------------------------------------------
   Service cards
   --------------------------------------------------------------------- */
.sf-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.sf-service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.sf-service-card::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0;
  width: 100%; height: 4px; background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
[dir="rtl"] .sf-service-card::before { transform-origin: right; }
.sf-service-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent;
}
.sf-service-card:hover::before { transform: scaleX(1); }
.sf-service-icon {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal); font-size: 1.6rem; margin-bottom: 22px;
  transition: .35s var(--ease);
}
.sf-service-card:hover .sf-service-icon { background: var(--navy); color: var(--gold-200); transform: rotate(-6deg); }
.sf-service-card.has-image .sf-service-img { border-radius: 14px; overflow: hidden; margin-bottom: 20px; aspect-ratio: 16/10; }
.sf-service-card.has-image .sf-service-img img { width: 100%; height: 100%; object-fit: cover; }
.sf-service-card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.sf-service-card p { font-size: .94rem; color: var(--muted); margin-bottom: 18px; line-height: 1.7; }

/* ---------------------------------------------------------------------
   Case / gallery cards
   --------------------------------------------------------------------- */
.sf-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.sf-case-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease);
  display: flex; flex-direction: column;
}
.sf-case-card:hover { transform: translateY(-9px); box-shadow: var(--shadow-md); }
.sf-case-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.sf-case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.sf-case-card:hover .sf-case-media img { transform: scale(1.07); }
.sf-case-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 23, 41, .55), transparent 46%);
  opacity: 0; transition: opacity .4s;
}
.sf-case-card:hover .sf-case-media::after { opacity: 1; }
.sf-case-tag {
  position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2;
  background: rgba(255, 255, 255, .94); color: var(--navy);
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(6px);
}
.sf-case-tag--gold { background: var(--gold); color: var(--navy-900); }
.sf-case-hover-link {
  position: absolute; inset-inline-end: 16px; bottom: 16px; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--navy-900); font-size: 1.15rem;
  transform: translateY(14px); opacity: 0; transition: .4s var(--ease);
}
.sf-case-card:hover .sf-case-hover-link { transform: translateY(0); opacity: 1; }
.sf-case-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.sf-case-meta {
  display: flex; gap: 16px; font-size: .8rem; color: var(--teal);
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px;
}
.sf-case-body h3 { font-size: 1.22rem; margin-bottom: 10px; }
.sf-case-body p { font-size: .94rem; color: var(--muted); line-height: 1.7; flex: 1; margin-bottom: 18px; }

/* Filter pills */
.sf-filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 46px; }
.sf-filter-btn {
  background: #fff; border: 1.5px solid var(--line); color: var(--body);
  padding: 10px 24px; border-radius: 999px; font-size: .92rem; font-weight: 600;
  transition: .3s var(--ease); cursor: pointer;
}
.sf-filter-btn:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.sf-filter-btn.is-active {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: var(--shadow-sm);
}
.sf-empty {
  text-align: center; padding: 70px 20px; color: var(--muted);
  border: 1.5px dashed var(--line); border-radius: var(--radius-lg);
  grid-column: 1 / -1; background: #fff;
}
.sf-empty i { font-size: 2.4rem; color: var(--teal-300); display: block; margin-bottom: 14px; }

/* ---------------------------------------------------------------------
   Before / After compare slider
   --------------------------------------------------------------------- */
.sf-compare {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--navy-900);
  aspect-ratio: 4 / 3; user-select: none; touch-action: pan-y;
  cursor: ew-resize; direction: ltr;
}
.sf-compare img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.sf-compare-after { position: absolute; inset: 0; overflow: hidden; }
.sf-compare-after img { width: 100%; }
.sf-compare-divider {
  position: absolute; top: 0; bottom: 0; width: 3px;
  background: #fff; box-shadow: 0 0 18px rgba(0, 0, 0, .45);
  z-index: 5; transform: translateX(-50%);
}
.sf-compare-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: #fff; color: var(--navy);
  display: grid; place-items: center; font-size: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  border: 3px solid var(--gold);
}
.sf-compare-handle::before { content: "⇔"; font-size: 1.35rem; font-weight: 700; }
.sf-compare-label {
  position: absolute; top: 18px; z-index: 6;
  background: rgba(8, 23, 41, .78); color: #fff;
  font-size: .76rem; font-weight: 700; letter-spacing: .18em;
  padding: 8px 16px; border-radius: 999px; backdrop-filter: blur(4px);
}
.sf-compare-label--before { inset-inline-start: 18px; }
.sf-compare-label--after { inset-inline-end: 18px; background: rgba(201, 162, 75, .92); color: var(--navy-900); }
.sf-compare-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 6; color: rgba(255, 255, 255, .85); font-size: .8rem;
  background: rgba(8, 23, 41, .6); padding: 6px 16px; border-radius: 999px;
  pointer-events: none; white-space: nowrap;
}
.sf-compare:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

/* before/after list layout */
.sf-ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.sf-ba-item .sf-ba-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.sf-ba-item h3 { font-size: 1.3rem; margin-bottom: 6px; }
.sf-ba-item .sf-case-meta { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   Why band
   --------------------------------------------------------------------- */
.sf-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.sf-why-item { position: relative; padding-top: 26px; }
.sf-why-item::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0;
  width: 52px; height: 3px; background: var(--gold); border-radius: 3px;
}
.sf-why-num {
  font-family: var(--font-display); font-size: .95rem; color: var(--gold-200);
  letter-spacing: .2em; margin-bottom: 14px; display: block;
}
.sf-why-item i.sf-why-icon { font-size: 2rem; color: var(--teal-300); display: block; margin-bottom: 16px; }
.sf-why-item h3 { font-size: 1.18rem; color: #fff; margin-bottom: 10px; }
.sf-why-item p { font-size: .93rem; color: rgba(255, 255, 255, .68); margin: 0; }

/* light (cream) section variant */
.sf-why-item--light {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: .35s var(--ease);
}
.sf-why-item--light::before { display: none; }
.sf-why-item--light:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: transparent; }
.sf-why-item--light .sf-why-num { color: var(--gold); margin-bottom: 10px; }
.sf-why-item--light .sf-why-icon { color: var(--teal); font-size: 2.1rem; display: block; margin-bottom: 16px; }
.sf-why-item--light h3 { color: var(--ink); font-size: 1.16rem; margin-bottom: 10px; }
.sf-why-item--light p { color: var(--muted); font-size: .94rem; margin: 0; line-height: 1.75; }

/* ---------------------------------------------------------------------
   Testimonials
   --------------------------------------------------------------------- */
.sf-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sf-testi-card {
  background: #fff; border-radius: var(--radius); padding: 34px 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  position: relative; transition: transform .35s var(--ease), box-shadow .35s;
  display: flex; flex-direction: column;
}
.sf-testi-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.sf-testi-card::before {
  content: "\201C"; position: absolute; top: 8px; inset-inline-end: 24px;
  font-family: var(--font-display); font-size: 5rem; color: var(--teal-50);
  line-height: 1; pointer-events: none;
}
.sf-testi-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.sf-testi-avatar { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold-50); flex-shrink: 0; }
.sf-testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sf-testi-name { font-weight: 700; color: var(--ink); font-size: 1.02rem; margin: 0; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }
.stars i { margin-inline-end: 1px; }
.sf-testi-text { color: var(--body); font-size: .97rem; line-height: 1.8; flex: 1; margin-bottom: 0; position: relative; z-index: 1; }
.sf-testi-mark { margin-top: 18px; color: var(--teal-300); font-size: 1.1rem; }

/* ---------------------------------------------------------------------
   Clinic masonry gallery
   --------------------------------------------------------------------- */
.sf-clinic-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px; gap: 18px;
}
.sf-clinic-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.sf-clinic-item--tall { grid-row: span 2; }
.sf-clinic-item--wide { grid-column: span 2; }
.sf-clinic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.sf-clinic-item:hover img { transform: scale(1.08); }
.sf-clinic-cap {
  position: absolute; inset-inline: 14px; bottom: 14px;
  background: rgba(8, 23, 41, .78); color: #fff; backdrop-filter: blur(6px);
  font-size: .84rem; font-weight: 600; letter-spacing: .05em;
  padding: 9px 15px; border-radius: 12px;
  transform: translateY(12px); opacity: 0; transition: .4s var(--ease);
}
.sf-clinic-item:hover .sf-clinic-cap { transform: translateY(0); opacity: 1; }

/* ---------------------------------------------------------------------
   CTA band
   --------------------------------------------------------------------- */
.sf-cta {
  position: relative; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(8, 23, 41, .94), rgba(14, 42, 71, .88)),
    var(--navy-900);
  padding: 88px 0; text-align: center; color: rgba(255, 255, 255, .85);
}
.sf-cta-bg {
  position: absolute; inset: 0; opacity: .22;
  background-size: cover; background-position: center;
}
.sf-cta-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.sf-cta h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 18px; }
.sf-cta p { font-size: 1.06rem; color: rgba(255, 255, 255, .75); margin-bottom: 34px; }
.sf-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   Contact info cards / page
   --------------------------------------------------------------------- */
.sf-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sf-contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; gap: 20px; align-items: flex-start;
  transition: .35s var(--ease);
}
.sf-contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.sf-contact-card i {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--teal-50); color: var(--teal);
}
.sf-contact-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.sf-contact-card p, .sf-contact-card a { color: var(--muted); font-size: .95rem; margin: 0; word-break: break-word; }
.sf-contact-card a:hover { color: var(--teal); }

.sf-map-card {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--teal-50), var(--cream));
  padding: 54px 40px; text-align: center; position: relative;
}
.sf-map-card i { font-size: 2.6rem; color: var(--teal); }
.sf-map-card h3 { margin: 18px 0 8px; }
.sf-map-note { font-size: .88rem; color: var(--muted); margin-top: 16px; }

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.sf-form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 44px 42px; box-shadow: var(--shadow-sm);
}
.sf-form-card h2, .sf-form-card h3 { margin-bottom: 8px; }
.sf-form-card .form-hint { color: var(--muted); font-size: .95rem; margin-bottom: 26px; }

.form-label { font-weight: 600; color: var(--ink); font-size: .93rem; margin-bottom: 8px; }
.form-label .req { color: #C0392B; }
.form-control, .form-select {
  border-color: var(--line); border-radius: 12px; padding: .8rem 1.05rem;
  font-size: .98rem; color: var(--ink); background-color: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 .22rem rgba(20, 112, 122, .14);
}
.form-control::placeholder { color: #A5B1BE; }
textarea.form-control { min-height: 130px; resize: vertical; }
.input-group-text { border-color: var(--line); background: var(--paper); color: var(--teal); border-radius: 12px; }

.sf-form-note {
  background: var(--gold-50); border: 1px solid rgba(201, 162, 75, .35);
  border-radius: 12px; padding: 14px 18px; font-size: .9rem; color: #7A6224;
  display: flex; gap: 10px; align-items: flex-start; margin-top: 20px;
}
.is-invalid { border-color: #C0392B !important; }
.invalid-feedback { font-size: .85rem; }

/* Flash messages */
.sf-flash-wrap { position: relative; z-index: 1080; margin-top: 18px; }
.sf-flash {
  display: flex; align-items: center; gap: 12px; border-radius: 14px;
  padding: 16px 22px; font-weight: 600; box-shadow: var(--shadow-md);
  animation: sf-flash-in .45s var(--ease);
}
.sf-flash--success { background: #EAF7EF; color: #186A3B; border: 1px solid #BFE6CD; }
.sf-flash--error { background: #FDEDEC; color: #96281B; border: 1px solid #F5C6C0; }
.sf-flash--info { background: var(--teal-50); color: var(--teal-700); border: 1px solid #C6E2E6; }
.sf-flash-close { margin-inline-start: auto; background: none; border: none; font-size: 1.3rem; opacity: .5; cursor: pointer; color: inherit; }
@keyframes sf-flash-in { from { opacity: 0; transform: translateY(-14px); } }

/* ---------------------------------------------------------------------
   Case detail page
   --------------------------------------------------------------------- */
.sf-case-hero { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); padding: 64px 0 72px; color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.sf-case-hero .sf-eyebrow { color: var(--gold-200); }
.sf-case-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 16px; }
.sf-case-facts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.sf-case-fact {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px; padding: 14px 22px; min-width: 170px;
}
.sf-case-fact span { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-200); margin-bottom: 4px; }
.sf-case-fact strong { color: #fff; font-weight: 600; font-size: .98rem; }

.sf-case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sf-case-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--cream); }
.sf-case-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease); display: block; }
.sf-case-gallery figure:hover img { transform: scale(1.05); }
.sf-case-gallery figcaption { padding: 12px 16px; font-size: .86rem; color: var(--muted); background: #fff; }

.sf-ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sf-ba-pair figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.sf-ba-pair img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.sf-ba-pair figcaption {
  position: absolute; top: 16px; inset-inline-start: 16px;
  background: rgba(8, 23, 41, .8); color: #fff; font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; padding: 8px 16px; border-radius: 999px;
}
.sf-ba-pair .is-after figcaption { background: var(--gold); color: var(--navy-900); }

/* ---------------------------------------------------------------------
   Page hero (inner pages)
   --------------------------------------------------------------------- */
.sf-page-hero {
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(20, 112, 122, .45), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: rgba(255, 255, 255, .78); padding: 72px 0 78px;
  position: relative; overflow: hidden;
}
.sf-page-hero::after {
  content: ""; position: absolute; inset-inline-end: -60px; bottom: -110px;
  width: 340px; height: 340px; border: 1.5px dashed rgba(201, 162, 75, .35); border-radius: 50%;
}
.sf-page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: 14px; }
.sf-page-hero p { max-width: 640px; font-size: 1.06rem; color: rgba(255, 255, 255, .72); margin-bottom: 0; }
.sf-breadcrumb { font-size: .86rem; letter-spacing: .08em; margin-bottom: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.sf-breadcrumb a { color: var(--gold-200); }
.sf-breadcrumb span { color: rgba(255, 255, 255, .5); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.sf-footer {
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--navy-800), var(--navy-900));
  color: rgba(255, 255, 255, .72); padding-top: 76px;
}
.sf-footer-glow {
  position: absolute; top: -180px; inset-inline-end: -140px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 112, 122, .35), transparent 65%);
}
.sf-footer-top { position: relative; z-index: 2; padding-bottom: 56px; }
.sf-footer-logo { height: var(--footer-brand-h, calc(var(--brand-h, 64px) * 2)); max-width: 100%; width: auto; margin-bottom: 20px; }
.sf-footer-tagline { font-size: .97rem; color: rgba(255, 255, 255, .62); max-width: 420px; overflow-wrap: break-word; }
.sf-footer-social { display: flex; gap: 12px; margin-top: 20px; }
.sf-footer-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .8); font-size: 1rem; transition: .3s var(--ease);
}
.sf-footer-social a:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-4px); border-color: var(--gold); }
.sf-footer-social-note { font-size: .85rem; opacity: .55; }
.sf-footer-title {
  color: #fff; font-size: .95rem; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 22px; position: relative; padding-bottom: 12px;
}
.sf-footer-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 2px; background: var(--gold); }
.sf-footer-links, .sf-footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.sf-footer-links a { color: rgba(255, 255, 255, .7); font-size: .95rem; position: relative; }
.sf-footer-links a::before { content: ""; position: absolute; inset-inline-start: -16px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: 0; transform: translateY(-50%); transition: .3s; }
.sf-footer-links a:hover { color: var(--gold-200); padding-inline-start: 12px; }
.sf-footer-links a:hover::before { opacity: 1; inset-inline-start: -4px; }
.sf-footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.sf-footer-contact i { color: var(--gold-200); margin-top: 5px; }
.sf-footer-contact a { color: rgba(255, 255, 255, .75); overflow-wrap: break-word; }
.sf-footer-contact a:hover { color: var(--gold-200); }
.sf-footer-hours { font-size: .93rem; display: flex; gap: 10px; align-items: flex-start; }
.sf-footer .sf-btn { padding: 1.2rem 2.1rem; font-size: 1.1rem; }
.sf-footer .sf-btn i { font-size: 1.25rem; }
.sf-footer-hours i { color: var(--gold-200); margin-top: 4px; }
.sf-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 26px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .88rem; color: rgba(255, 255, 255, .5); position: relative; z-index: 2;
}
.sf-footer-bottom p { margin: 0; }
.sf-footer-craft { letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; }
.sf-footer-dev {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-bottom: 26px; font-size: .88rem; color: rgba(255, 255, 255, .55);
}
.sf-footer-dev img { height: var(--dev-logo-h, 42px); width: auto; max-width: 220px; object-fit: contain; }
.sf-footer-dev a { color: rgba(255, 255, 255, .72); text-decoration: underline; text-underline-offset: 3px; }
.sf-footer-dev a:hover { color: var(--gold-200); }

/* Back to top */
.sf-to-top {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 1040;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--gold-200); font-size: 1.1rem;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: .35s var(--ease);
}
.sf-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.sf-to-top:hover { background: var(--gold); color: var(--navy-900); }

/* ---------------------------------------------------------------------
   Error pages
   --------------------------------------------------------------------- */
.error-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(800px 400px at 70% 10%, rgba(20, 112, 122, .4), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: rgba(255, 255, 255, .8); text-align: center; padding: 40px 20px;
}
.error-card { max-width: 560px; }
.error-card .error-code {
  font-family: var(--font-display); font-size: clamp(5rem, 14vw, 8.5rem);
  line-height: 1; color: transparent;
  background: linear-gradient(120deg, var(--gold-200), var(--gold));
  -webkit-background-clip: text; background-clip: text;
}
.error-card h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 12px 0 14px; }
.error-card p { color: rgba(255, 255, 255, .7); font-size: 1.04rem; }
.error-card .btn { margin-top: 22px; }
.error-logo { height: 76px; margin-bottom: 26px; filter: brightness(0) invert(1); opacity: .95; }

/* ---------------------------------------------------------------------
   Reveal animations (JS adds .is-visible)
   --------------------------------------------------------------------- */
.js .sf-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .sf-reveal.is-visible { opacity: 1; transform: none; }
.js .sf-reveal--fade { transform: none; }
.js .sf-reveal--left { transform: translateX(-44px); }
.js .sf-reveal--right { transform: translateX(44px); }
[dir="rtl"] .js .sf-reveal--left, [dir="rtl"] .js .sf-reveal--right { transform: none; transform: translateY(30px); }

/* ---------------------------------------------------------------------
   Utilities
   --------------------------------------------------------------------- */
.sf-text-navy { color: var(--navy) !important; }
.sf-text-teal { color: var(--teal) !important; }
.sf-text-gold { color: var(--gold) !important; }
.sf-bg-cream { background: var(--cream); }
.sf-mt-4 { margin-top: 28px; }
.sf-mt-5 { margin-top: 44px; }
.sf-center { text-align: center; }
.sf-nowrap { white-space: nowrap; }
.sf-sec-gap { margin-top: 80px; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .sf-services-grid { grid-template-columns: repeat(3, 1fr); }
  .sf-clinic-grid { grid-template-columns: repeat(3, 1fr); }
  .sf-why-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}

@media (max-width: 991.98px) {
  .sf-section { padding: 72px 0; }
  .sf-hero { padding: 40px 0 72px; }
  .sf-hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .sf-hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .sf-hero-badge { inset-inline-start: 14px !important; inset-inline-end: auto !important; }
  [dir="rtl"] .sf-hero-badge { inset-inline-end: auto !important; inset-inline-start: 14px !important; }
  .sf-about-grid { grid-template-columns: 1fr; gap: 60px; }
  .sf-about-visual { max-width: 480px; margin: 0 auto; }
  .sf-services-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-ba-grid { grid-template-columns: 1fr; }
  .sf-testi-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-contact-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-case-gallery { grid-template-columns: repeat(2, 1fr); }
  .sf-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .sf-stat + .sf-stat::before { display: none; }
  .sf-stat:nth-child(odd)::before { display: none; }
}

@media (max-width: 767.98px) {
  body { font-size: 16px; }
  .sf-section { padding: 60px 0; }
  .sf-topbar-info .sf-topbar-item { display: none; }
  .sf-clinic-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .sf-clinic-item--wide { grid-column: span 2; }
  .sf-clinic-item--tall { grid-row: span 1; }
  .sf-form-card { padding: 30px 24px; }
  .sf-case-gallery { grid-template-columns: 1fr; }
  .sf-ba-pair { grid-template-columns: 1fr; }
  .sf-hero-trust { gap: 20px; }
  .sf-hero-badge { min-width: 200px; padding: 16px 20px; }
}

@media (max-width: 575.98px) {
  .sf-services-grid { grid-template-columns: 1fr; }
  .sf-cases-grid { grid-template-columns: 1fr; }
  .sf-testi-grid { grid-template-columns: 1fr; }
  .sf-contact-grid { grid-template-columns: 1fr; }
  .sf-why-grid { grid-template-columns: 1fr; }
  .sf-brand-img { height: calc(var(--brand-h, 64px) * .84375); }
  .sf-hero-title { font-size: 1.95rem; }
  .sf-hero-cta .sf-btn { width: 100%; }
  .sf-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-footer-bottom { flex-direction: column; text-align: center; }
  .sf-footer-dev { justify-content: center; }
  .sf-compare-handle { width: 46px; height: 46px; }
}

@media (max-width: 380px) {
  .sf-stats-grid { grid-template-columns: 1fr; }
  .sf-hero-trust { flex-direction: column; gap: 14px; }
}

/* ---------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------- */
@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 .sf-reveal { opacity: 1 !important; transform: none !important; }
}


/* ---------------------------------------------------------------------
   Content modules - Dental Health Tips + Clinic News
   --------------------------------------------------------------------- */
.sf-article-tools {
  display: flex; flex-wrap: wrap; gap: 18px;
  justify-content: space-between; align-items: center; margin-bottom: 38px;
}
.sf-article-tools .sf-filters { margin-bottom: 0; justify-content: flex-start; }
.sf-search-form { display: flex; gap: 8px; align-items: center; }
.sf-search-form .form-control {
  min-width: 230px; border-radius: 999px;
  padding-inline-start: 18px; border-color: var(--line);
}
.sf-search-form .form-control:focus { border-color: var(--teal); box-shadow: none; }
.sf-search-form .sf-btn { border-radius: 999px; padding: .6rem 1.05rem; }

.sf-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sf-article-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.sf-article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.sf-article-media {
  position: relative; display: block; aspect-ratio: 16 / 10;
  overflow: hidden; background: var(--cream);
}
.sf-article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.sf-article-card:hover .sf-article-media img { transform: scale(1.06); }
.sf-article-cat {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: var(--gold); color: var(--navy-900);
  font-size: .76rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 13px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.sf-article-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.sf-article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .85rem; }
.sf-article-meta i { color: var(--teal); }
.sf-article-meta--light { color: rgba(255, 255, 255, .72); justify-content: center; margin-top: 18px; }
.sf-article-meta--light i { color: var(--gold-200); }
.sf-article-body h3 { font-size: 1.16rem; margin: 12px 0 8px; line-height: 1.4; }
.sf-article-body h3 a { color: var(--ink); }
.sf-article-body h3 a:hover { color: var(--teal); }
.sf-article-body p { font-size: .94rem; color: var(--muted); line-height: 1.7; flex: 1; margin-bottom: 16px; }
.sf-article-body .sf-link-arrow { font-size: .9rem; font-weight: 700; }

/* Public pagination */
.sf-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.sf-page-link {
  min-width: 42px; height: 42px; padding: 0 13px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--ink); font-size: .92rem; font-weight: 600;
  transition: .25s var(--ease);
}
.sf-page-link:hover { border-color: var(--teal); color: var(--teal); }
.sf-page-link.is-current { background: var(--navy); border-color: var(--navy); color: #fff; pointer-events: none; }
.sf-page-link.is-disabled { opacity: .45; pointer-events: none; }

/* Article detail */
.sf-article-detail { max-width: 840px; margin: 0 auto; }
.sf-article-figure { border-radius: var(--radius); overflow: hidden; margin: 0 0 34px; border: 1px solid var(--line); }
.sf-article-figure img { width: 100%; display: block; }
.sf-prose { font-size: 1.05rem; }
.sf-prose p { margin-bottom: 1.15rem; }
.sf-prose h2 { font-size: 1.5rem; margin: 2rem 0 .9rem; }
.sf-prose h3 { font-size: 1.24rem; margin: 1.6rem 0 .7rem; }
.sf-prose h4 { font-size: 1.08rem; margin: 1.4rem 0 .6rem; }
.sf-prose ul, .sf-prose ol { margin: 0 0 1.25rem; padding-inline-start: 1.5rem; }
.sf-prose li { margin-bottom: .5rem; }
.sf-prose a { text-decoration: underline; text-underline-offset: 3px; }
.sf-prose blockquote {
  border-inline-start: 4px solid var(--gold); background: var(--gold-50);
  padding: 14px 20px; border-radius: 12px; margin: 1.5rem 0;
}
.sf-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.sf-disclaimer {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--gold-50); border: 1px solid #E9DCBB;
  border-radius: var(--radius); padding: 18px 22px; margin: 36px 0;
}
.sf-disclaimer i { color: var(--gold); font-size: 1.35rem; line-height: 1.5; }
.sf-disclaimer p { margin: 0; font-size: .93rem; color: #6B5B2E; }

.sf-article-bottom {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  margin: 34px 0; padding: 22px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sf-feedback { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.sf-feedback form { display: inline; }
.sf-feedback-q { font-weight: 700; color: var(--ink); font-size: 1rem; }
.sf-vote-btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 12px 26px; font-size: .95rem; font-weight: 700;
  letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 2px 6px rgba(8, 23, 41, .06);
  transition: .25s var(--ease);
}
.sf-vote-btn i { font-size: 1.15rem; line-height: 1; }
.sf-vote-btn:hover {
  border-color: var(--teal); color: var(--teal);
  transform: translateY(-2px); box-shadow: 0 10px 22px rgba(14, 119, 126, .16);
}
.sf-vote-btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(8, 23, 41, .06); }
.sf-vote-btn.is-active {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 10px 22px rgba(16, 42, 74, .28);
}
.sf-vote-btn.is-active:hover { border-color: var(--navy); color: #fff; }
.sf-vote-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (max-width: 560px) {
  .sf-feedback { width: 100%; gap: 10px; }
  .sf-feedback-q { flex: 1 0 100%; }
  .sf-feedback form { flex: 1; }
  .sf-vote-btn { width: 100%; justify-content: center; }
}

.sf-share { display: flex; align-items: center; gap: 10px; }
.sf-share-label { font-size: .9rem; color: var(--muted); }
.sf-share-link {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ink);
  transition: .25s var(--ease);
}
.sf-share-link:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Comments */
.sf-comments { margin-top: 46px; }
.sf-comments-title { font-size: 1.4rem; margin-bottom: 18px; }
.sf-comments-empty { color: var(--muted); font-style: italic; margin-bottom: 20px; }
.sf-comment {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 20px; margin-bottom: 14px;
}
.sf-comment-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sf-comment-head strong { color: var(--ink); }
.sf-comment-head span { color: var(--muted); font-size: .85rem; }
.sf-comment p { margin: 0; }
.sf-comment-form { margin-top: 26px; }
.sf-comment-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 991.98px) {
  .sf-article-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-article-tools { flex-direction: column; align-items: stretch; }
  .sf-search-form .form-control { min-width: 0; flex: 1; }
}

@media (max-width: 575.98px) {
  .sf-article-grid { grid-template-columns: 1fr; }
  .sf-article-bottom { flex-direction: column; align-items: flex-start; }
  .sf-filters { justify-content: flex-start; }
}

/* Uploaded MP4 media renders as <video> � mirror the <img> rules above */
.sf-service-card.has-image .sf-service-img video,
.sf-case-media video,
.sf-clinic-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
.sf-case-card:hover .sf-case-media video { transform: scale(1.07); }
.sf-clinic-item:hover video { transform: scale(1.08); }
.sf-compare video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.sf-compare-after video { width: 100%; }
.sf-case-gallery video,
.sf-ba-pair video { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.sf-case-gallery figure:hover video { transform: scale(1.05); }
