/* =========================================================
   CELIA MEDICAL HUB
   CLIENT WEBSITE
   PROFESSIONAL VERSION
   NO CAROUSELS
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

  --green: #04785c;
  --green-dark: #035c47;
  --green-light: #eaf5f1;

  --gold: #c7a43b;
  --gold-light: #f7f0d9;

  --text: #1d3831;
  --text-light: #536861;
  --muted: #7d8d88;

  --background: #f8faf9;
  --white: #ffffff;

  --border: #e2e9e6;

  --shadow-sm:
    0 5px 18px rgba(25, 63, 53, 0.06);

  --shadow:
    0 14px 40px rgba(25, 63, 53, 0.08);

  --shadow-lg:
    0 24px 60px rgba(25, 63, 53, 0.13);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --max-width: 1240px;
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Arial,
    Helvetica,
    sans-serif;

  background: var(--background);
  color: var(--text);

  line-height: 1.6;

  overflow-x: hidden;
}

body[dir="rtl"] {
  text-align: right;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

button {
  cursor: pointer;
}


/* =========================================================
   PAGE SYSTEM
========================================================= */

.page {
  display: none;
  min-height: calc(100vh - 84px);
}

.page.active {
  display: block;
}

main {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}


/* =========================================================
   NAVIGATION
========================================================= */

.navbar {
  position: sticky;
  top: 0;

  width: 100%;

  background: rgba(255, 255, 255, 0.97);

  border-bottom: 1px solid var(--border);

  z-index: 1000;

  backdrop-filter: blur(14px);
}

.nav-container {
  width: min(1380px, calc(100% - 48px));

  height: 84px;

  margin: 0 auto;

  display: flex;
  align-items: center;

  gap: 32px;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: 145px;
  height: auto;
}

.nav-links {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 30px;

  flex: 1;
}

.nav-links a {
  position: relative;

  padding: 7px 0;

  color: var(--text-light);

  font-size: 13px;

  font-weight: 600;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-links a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;

  bottom: 0;

  height: 2px;

  background: var(--green);

  transform: scaleX(0);

  transform-origin: center;

  transition: transform 0.2s ease;
}

.nav-links a.active {
  color: var(--green);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links .nav-book {
  padding:
    10px
    18px;

  background: var(--green);

  color: white;

  border-radius: 9px;
}

.nav-links .nav-book::after {
  display: none;
}

.nav-links .nav-book:hover {
  color: white;

  background: var(--green-dark);

  transform: translateY(-1px);
}


/* BOOK NOW: keep the navigation item visible and highlighted on its own page */
.nav-links .nav-book,
.nav-links .nav-book.active {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.nav-links .nav-book.active {
  background: var(--green);
  color: #fff;
}

.nav-links .nav-book.active:hover {
  background: var(--green-dark);
  color: #fff;
}

@media (max-width: 900px) {
  .nav-links .nav-book,
  .nav-links .nav-book.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}


.lang-switch {
  display: flex;

  align-items: center;

  gap: 7px;

  font-size: 11px;

  font-weight: 700;
}

.lang-switch a {
  color: var(--muted);

  transition: color 0.2s ease;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--green);
}

.lang-switch span {
  color: var(--border);
}

.mobile-menu-button {
  display: none;

  border: 0;

  background: transparent;

  color: var(--green);

  font-size: 25px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 46px;

  padding:
    0
    22px;

  border-radius: 9px;

  font-size: 12px;

  font-weight: 700;

  border: 1px solid transparent;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);

  color: white;

  box-shadow:
    0 7px 18px rgba(4, 120, 92, 0.18);
}

.btn-primary:hover {
  background: var(--green-dark);

  box-shadow:
    0 10px 24px rgba(4, 120, 92, 0.25);
}

.btn-outline {
  border-color: var(--green);

  background: transparent;

  color: var(--green);
}

.btn-outline:hover {
  background: var(--green-light);
}

.btn-light {
  background: white;

  color: var(--green);

  border-color: rgba(255, 255, 255, 0.7);
}

.btn-light:hover {
  background: #f4faf8;
}

.btn-whatsapp {
  background: #128c52;

  color: white;
}

.btn-whatsapp:hover {
  background: #0c713f;
}

.btn-footer-outline {
  color: white;

  border-color: rgba(255, 255, 255, 0.4);
}

.btn-footer-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.full-btn {
  width: 100%;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

.eyebrow {
  display: inline-block;

  color: var(--green);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 3px;

  margin-bottom: 12px;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

p {
  color: var(--text-light);
}


/* =========================================================
   HERO
========================================================= */

.hero-section {
  min-height: 660px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.3fr)
    minmax(320px, 0.7fr);

  align-items: center;

  gap: 70px;

  padding:
    75px
    0
    70px;
}

.hero-content {
  max-width: 760px;
}

.hero-content h1 {
  max-width: 780px;

  font-size:
    clamp(
      42px,
      5.2vw,
      70px
    );

  font-weight: 700;

  letter-spacing: -2px;

  margin-bottom: 25px;
}

.hero-content > p {
  max-width: 720px;

  font-size: 17px;

  line-height: 1.85;

  margin-bottom: 32px;
}

.hero-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;
}

.hero-card {
  position: relative;

  min-height: 430px;

  border-radius: var(--radius-lg);

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      var(--green),
      #0a604c
    );

  box-shadow: var(--shadow-lg);

  display: flex;

  align-items: flex-end;
}

.hero-card::before {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.06);

  top: -90px;
  right: -80px;
}

.hero-card::after {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.12);

  top: 110px;
  left: -90px;
}

.hero-card-inner {
  position: relative;

  z-index: 2;

  padding: 42px;

  color: white;
}

.hero-card-label {
  display: block;

  color: #dcefe9;

  font-size: 10px;

  letter-spacing: 3px;

  font-weight: 800;

  margin-bottom: 18px;
}

.hero-card h3 {
  color: white;

  font-size: 31px;

  max-width: 350px;

  margin-bottom: 18px;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.78);

  font-size: 13px;

  margin-bottom: 25px;
}

.text-link {
  color: white;

  font-size: 12px;

  font-weight: 700;
}


/* =========================================================
   QUICK CTA
========================================================= */

.quick-cta {
  background: var(--green);

  border-radius: var(--radius);

  padding:
    30px
    36px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 30px;

  margin:
    0
    0
    75px;
}

.quick-cta .eyebrow {
  color: #b9ddd2;

  margin-bottom: 7px;
}

.quick-cta h2 {
  color: white;

  font-size: 25px;
}

.quick-cta-actions {
  display: flex;

  gap: 10px;

  flex-shrink: 0;
}


/* =========================================================
   CONTENT SECTIONS
========================================================= */

.content-section {
  padding:
    50px
    0
    90px;
}

.section-heading {
  max-width: 700px;

  margin-bottom: 38px;
}

.section-heading h2 {
  font-size: 36px;

  margin-bottom: 10px;
}

.section-heading p {
  font-size: 14px;
}


/* =========================================================
   SERVICES
========================================================= */

.service-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 17px;
}

.service-card {
  background: white;

  border:
    1px solid
    var(--border);

  border-radius: var(--radius);

  padding: 28px 24px;

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);

  box-shadow: var(--shadow);
}

.service-number {
  color: var(--gold);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 2px;

  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 21px;

  margin-bottom: 12px;
}

.service-card > p {
  font-size: 12px;

  line-height: 1.7;

  margin-bottom: 19px;
}

.service-card ul {
  list-style: none;

  margin-bottom: 23px;
}

.service-card li {
  position: relative;

  padding-left: 17px;

  margin-bottom: 8px;

  color: var(--text-light);

  font-size: 11px;

  line-height: 1.5;
}

.service-card li::before {
  content: "•";

  position: absolute;

  left: 0;

  color: var(--green);

  font-weight: 800;
}

.service-link {
  color: var(--green);

  font-size: 11px;

  font-weight: 800;
}


/* =========================================================
   SOCIAL
========================================================= */

.social-section {
  border: 1px solid rgba(4,120,92,.18);
  border-radius: 24px;
  padding: 42px 38px;
  background: linear-gradient(135deg, #f3faf7 0%, #ffffff 55%, #eef8f4 100%);
  box-shadow: 0 18px 45px rgba(25,63,53,.08);
  overflow: hidden;
  position: relative;
}

.social-section::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(4,120,92,.08);
  top: -90px;
  right: -55px;
}

.social-section .section-heading {
  position: relative;
  z-index: 1;
}

.social-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 18px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(4,120,92,.18);
  border-radius: 16px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(25,63,53,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}

.social-button:hover {
  transform: translateY(-5px);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 14px 28px rgba(25,63,53,.11);
}


/* =========================================================
   VIDEOS
========================================================= */

.video-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 18px;
}

.video-card {
  display: block;
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 10;

  padding: 0;

  border: 0;

  border-radius: var(--radius);

  overflow: hidden;

  background: #153f34;

  box-shadow: var(--shadow-sm);
}

.video-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.35s ease;
}

.video-card:hover img {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.05)
    );

  display: grid;

  place-items: center;
}

.play-button {
  width: 58px;
  height: 58px;

  border-radius: 50%;

  background: white;

  color: var(--green);

  display: grid;

  place-items: center;

  padding-left: 3px;

  font-size: 17px;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2);

  transition:
    transform 0.2s ease;
}

.video-card:hover .play-button {
  transform: scale(1.08);
}


/* =========================================================
   PHILOSOPHY
========================================================= */

.philosophy-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 18px;
}

.philosophy-card {
  background: white;

  border:
    1px solid
    var(--border);

  border-radius: var(--radius);

  padding: 30px;

  box-shadow: var(--shadow-sm);
}

.philosophy-card > span {
  color: var(--gold);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 2px;
}

.philosophy-card h3 {
  font-size: 21px;

  margin:
    18px
    0
    12px;
}

.philosophy-card p {
  font-size: 12px;

  line-height: 1.8;
}


/* =========================================================
   PAGE HERO
========================================================= */

.page-hero {
  padding:
    95px
    0
    65px;

  max-width: 820px;
}

.page-hero h1 {
  font-size:
    clamp(
      42px,
      5vw,
      62px
    );

  letter-spacing: -1.5px;

  margin-bottom: 18px;
}

.page-hero > p {
  font-size: 16px;

  max-width: 680px;

  line-height: 1.8;

  margin-bottom: 27px;
}

.page-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}


/* =========================================================
   DOCTORS
========================================================= */

.doctor-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 20px;

  padding-bottom: 80px;
}

.doctor-profile-card {
  background: white;

  border:
    1px solid
    var(--border);

  border-radius: var(--radius-lg);

  overflow: hidden;

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.doctor-profile-card:hover {
  transform: translateY(-6px);

  box-shadow: var(--shadow);
}

.doctor-image-wrapper {
  width: min(78%, 270px);
  aspect-ratio: 1 / 1;
  margin: 26px auto 0;
  background: var(--green-light);
  overflow: hidden;
  border-radius: 50% / 46%;
  border: 5px solid #fff;
  box-shadow: 0 10px 28px rgba(25,63,53,.10);
}

.doctor-image {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.doctor-profile-content {
  padding: 27px;
}

.doctor-specialty {
  display: block;

  color: var(--green);

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 1.5px;

  text-transform: uppercase;

  margin-bottom: 9px;
}

.doctor-profile-content h2 {
  font-size: 22px;

  margin-bottom: 11px;
}

.doctor-profile-content > p {
  font-size: 12px;

  line-height: 1.7;

  margin-bottom: 22px;
}

.doctor-details {
  border-top:
    1px solid
    var(--border);

  padding-top: 17px;

  margin-bottom: 21px;

  display: grid;

  gap: 14px;
}

.doctor-details strong,
.doctor-details span {
  display: block;
}

.doctor-details strong {
  color: var(--text);

  font-size: 10px;

  margin-bottom: 3px;
}

.doctor-details span {
  color: var(--muted);

  font-size: 10px;

  line-height: 1.5;
}


/* =========================================================
   LARGE CTA
========================================================= */

.large-cta {
  margin:
    0
    0
    90px;

  padding:
    38px
    42px;

  border-radius: var(--radius);

  background:
    linear-gradient(
      135deg,
      var(--green),
      var(--green-dark)
    );

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;
}

.large-cta .eyebrow {
  color: #b9ddd2;

  margin-bottom: 8px;
}

.large-cta h2 {
  color: white;

  font-size: 27px;

  max-width: 690px;
}

.large-cta-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  flex-shrink: 0;
}


/* =========================================================
   OFFERS
========================================================= */

.offers-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 20px;

  padding-bottom: 70px;
}

.offer-card {
  position: relative;

  background: white;

  border:
    1px solid
    var(--border);

  border-radius: var(--radius-lg);

  padding: 34px;

  box-shadow: var(--shadow-sm);

  overflow: hidden;
}

.offer-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 4px;

  background: var(--green);
}

.offer-tag {
  display: inline-block;

  padding:
    5px
    9px;

  background: var(--gold-light);

  color:
    #8c6d12;

  border-radius: 30px;

  font-size: 9px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 1px;

  margin-bottom: 22px;
}

.offer-card h2 {
  font-size: 25px;

  margin-bottom: 12px;
}

.offer-card > p {
  font-size: 12px;

  line-height: 1.7;

  margin-bottom: 22px;
}

.offer-card ul {
  list-style: none;

  border-top:
    1px solid
    var(--border);

  border-bottom:
    1px solid
    var(--border);

  padding:
    15px
    0;

  margin-bottom: 23px;
}

.offer-card li {
  color: var(--text-light);

  font-size: 11px;

  padding: 6px 0;
}

.offer-card li strong {
  color: var(--green);
}

.offer-highlight {
  color: var(--green);

  font-size: 28px;

  font-weight: 800;

  margin:
    12px
    0
    24px;
}


/* =========================================================
   LOCATION
========================================================= */

.location-grid {
  display: grid;

  grid-template-columns:
    0.7fr
    1.3fr;

  gap: 20px;

  padding-bottom: 90px;
}

.location-info {
  background: white;

  border:
    1px solid
    var(--border);

  border-radius: var(--radius-lg);

  padding: 30px;

  box-shadow: var(--shadow-sm);

  display: flex;

  flex-direction: column;

  gap: 25px;
}

.location-item {
  display: grid;

  grid-template-columns: 42px 1fr;

  gap: 13px;

  align-items: start;
}

.location-icon {
  width: 42px;
  height: 42px;

  border-radius: 11px;

  background: var(--green-light);

  color: var(--green);

  display: grid;

  place-items: center;

  font-size: 17px;

  font-weight: 700;
}

.location-item strong {
  display: block;

  font-size: 11px;

  margin-bottom: 4px;
}

.location-item p,
.location-item a {
  color: var(--text-light);

  font-size: 11px;

  line-height: 1.7;
}

.location-item a {
  color: var(--green);

  font-weight: 700;
}

.map-container {
  min-height: 500px;

  border-radius: var(--radius-lg);

  overflow: hidden;

  box-shadow: var(--shadow);
}

.map-container iframe {
  display: block;

  width: 100%;
  height: 100%;

  min-height: 500px;
}


/* =========================================================
   BOOKING
========================================================= */

.booking-hero {
  padding-bottom: 45px;
}

.booking-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 18px;

  padding-bottom: 85px;
}

.booking-card {
  background: white;

  border:
    1px solid
    var(--border);

  border-radius: var(--radius-lg);

  padding: 31px;

  box-shadow: var(--shadow-sm);
}

.booking-main {
  border-top:
    4px solid
    var(--green);
}

.booking-icon {
  width: 50px;
  height: 50px;

  display: grid;

  place-items: center;

  background: var(--green-light);

  color: var(--green);

  border-radius: 13px;

  font-size: 20px;

  margin-bottom: 25px;
}

.booking-card .eyebrow {
  margin-bottom: 8px;
}

.booking-card h2 {
  font-size: 24px;

  margin-bottom: 11px;
}

.booking-card p {
  font-size: 12px;

  line-height: 1.75;

  margin-bottom: 25px;
}


/* =========================================================
   FAQ
========================================================= */

.faq-section {
  max-width: 850px;

  padding-bottom: 85px;
}

.faq-list {
  border-top:
    1px solid
    var(--border);
}

.faq-item {
  border-bottom:
    1px solid
    var(--border);
}

.faq-question {
  width: 100%;

  border: 0;

  background: transparent;

  padding:
    21px
    0;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  color: var(--text);

  font-size: 13px;

  font-weight: 700;

  text-align: left;
}

body[dir="rtl"] .faq-question {
  text-align: right;
}

.faq-icon {
  flex-shrink: 0;

  width: 27px;
  height: 27px;

  border-radius: 50%;

  background: var(--green-light);

  color: var(--green);

  display: grid;

  place-items: center;

  font-size: 18px;

  transition:
    transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;

  overflow: hidden;

  transition:
    max-height 0.3s ease;
}

.faq-answer p {
  padding:
    0
    0
    22px;

  font-size: 12px;

  line-height: 1.8;
}


/* =========================================================
   FINAL CTA
========================================================= */

.final-cta {
  margin-bottom: 80px;

  padding:
    55px
    45px;

  background:
    linear-gradient(
      135deg,
      var(--green),
      var(--green-dark)
    );

  border-radius: var(--radius-lg);

  text-align: center;
}

.final-cta .eyebrow {
  color: #b9ddd2;
}

.final-cta h2 {
  color: white;

  font-size: 39px;

  margin-bottom: 12px;
}

.final-cta p {
  color:
    rgba(
      255,
      255,
      255,
      0.75
    );

  font-size: 13px;

  margin-bottom: 27px;
}

.final-cta-actions {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;
}


/* =========================================================
   VIDEO MODAL
========================================================= */

.video-modal {
  position: fixed;

  inset: 0;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 25px;

  background:
    rgba(
      8,
      29,
      24,
      0.82
    );

  z-index: 2000;
}

.video-modal.open {
  display: flex;
}

.video-modal-content {
  position: relative;

  width: min(
    1000px,
    100%
  );

  aspect-ratio: 16 / 9;

  background: #000;

  border-radius: 14px;

  overflow: hidden;

  box-shadow: var(--shadow-lg);
}

.video-modal iframe {
  width: 100%;
  height: 100%;

  border: 0;
}

.video-close {
  position: absolute;

  top: 10px;
  right: 10px;

  width: 36px;
  height: 36px;

  border: 0;

  border-radius: 50%;

  background:
    rgba(
      0,
      0,
      0,
      0.65
    );

  color: white;

  font-size: 25px;

  line-height: 1;

  z-index: 3;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  background:
    #173b32;

  color: white;

  padding:
    55px
    0
    20px;
}

.footer-inner {
  width:
    min(
      var(--max-width),
      calc(100% - 48px)
    );

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    1.2fr
    1fr
    auto;

  gap: 50px;

  align-items: start;
}

.footer-brand img {
  width: 140px;

  filter:
    brightness(0)
    invert(1);

  margin-bottom: 17px;
}

.footer-brand p {
  max-width: 300px;

  color:
    rgba(
      255,
      255,
      255,
      0.65
    );

  font-size: 11px;
}

.footer-contact strong {
  display: block;

  font-size: 12px;

  margin-bottom: 10px;
}

.footer-contact p {
  color:
    rgba(
      255,
      255,
      255,
      0.65
    );

  font-size: 11px;

  line-height: 1.7;

  margin-bottom: 9px;
}

.footer-contact a {
  color: white;

  font-size: 11px;

  font-weight: 700;
}

.footer-actions {
  display: flex;

  flex-direction: column;

  gap: 9px;

  min-width: 150px;
}

.footer-bottom {
  width:
    min(
      var(--max-width),
      calc(100% - 48px)
    );

  margin:
    45px
    auto
    0;

  padding-top: 18px;

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.12
    );

  display: flex;

  justify-content: space-between;

  gap: 20px;

  color:
    rgba(
      255,
      255,
      255,
      0.45
    );

  font-size: 9px;
}


/* =========================================================
   RTL
========================================================= */

body[dir="rtl"] .nav-links {
  direction: rtl;
}

body[dir="rtl"] .hero-content,
body[dir="rtl"] .page-hero,
body[dir="rtl"] .section-heading,
body[dir="rtl"] .service-card,
body[dir="rtl"] .doctor-profile-content,
body[dir="rtl"] .offer-card,
body[dir="rtl"] .booking-card,
body[dir="rtl"] .location-info,
body[dir="rtl"] .philosophy-card {
  text-align: right;
}

body[dir="rtl"] .service-card li {
  padding-left: 0;
  padding-right: 17px;
}

body[dir="rtl"] .service-card li::before {
  left: auto;
  right: 0;
}

body[dir="rtl"] .hero-card {
  text-align: right;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

  .nav-container {
    gap: 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .hero-section {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .hero-card {
    min-height: 330px;
  }

  .service-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .video-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .doctor-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .booking-grid {
    grid-template-columns:
      1fr
      1fr;
  }

  .booking-main {
    grid-column:
      1 / -1;
  }

  .location-grid {
    grid-template-columns:
      1fr;
  }

  .footer-inner {
    grid-template-columns:
      1fr
      1fr;
  }

  .footer-actions {
    flex-direction: row;
  }

}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 800px) {

  main {
    width:
      calc(
        100% - 32px
      );
  }

  .nav-container {
    width:
      calc(
        100% - 32px
      );

    height: 72px;
  }

  .logo img {
    width: 125px;
  }

  .mobile-menu-button {
    display: block;

    margin-left: auto;
  }

  .nav-links {
    position: absolute;

    left: 16px;
    right: 16px;

    top: 70px;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding: 12px;

    background: white;

    border:
      1px solid
      var(--border);

    border-radius: 14px;

    box-shadow: var(--shadow);

    flex: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding:
      13px
      12px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links .nav-book {
    text-align: center;

    margin-top: 6px;
  }

  .lang-switch {
    flex-shrink: 0;
  }

  .hero-section {
    padding:
      55px
      0
      50px;
  }

  .hero-content h1 {
    font-size:
      clamp(
        38px,
        10vw,
        58px
      );

    letter-spacing: -1px;
  }

  .hero-content > p {
    font-size: 14px;
  }

  .quick-cta {
    flex-direction: column;

    align-items: flex-start;

    padding: 28px;
  }

  .quick-cta-actions {
    width: 100%;
  }

  .quick-cta-actions .btn {
    flex: 1;
  }

  .content-section {
    padding:
      40px
      0
      60px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .large-cta {
    flex-direction: column;

    align-items: flex-start;
  }

  .doctor-grid {
    grid-template-columns: 1fr;

    padding-bottom: 60px;
  }

  .offers-grid {
    grid-template-columns: 1fr;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .booking-main {
    grid-column: auto;
  }

  .final-cta {
    padding:
      40px
      25px;
  }

  .final-cta h2 {
    font-size: 31px;
  }

  .footer-inner {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .footer-actions {
    width: 100%;
  }

  .footer-actions .btn {
    flex: 1;
  }

  .footer-bottom {
    flex-direction: column;

    gap: 5px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

  main {
    width:
      calc(
        100% - 24px
      );
  }

  .nav-container {
    width:
      calc(
        100% - 24px
      );
  }

  .lang-switch {
    font-size: 10px;
  }

  .hero-section {
    min-height: auto;

    padding-top: 45px;
  }

  .hero-content h1 {
    font-size: 39px;
  }

  .hero-actions,
  .page-actions,
  .large-cta-actions,
  .final-cta-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .page-actions .btn,
  .large-cta-actions .btn,
  .final-cta-actions .btn {
    flex: 1;
  }

  .hero-card {
    min-height: 280px;
  }

  .hero-card-inner {
    padding: 28px;
  }

  .hero-card h3 {
    font-size: 25px;
  }

  .service-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .social-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .social-button {
    width: 100%;
    min-width: 0;
  }

  .page-hero {
    padding:
      60px
      0
      40px;
  }

  .page-hero h1 {
    font-size: 40px;
  }

  .large-cta {
    padding: 28px;
  }

  .large-cta h2 {
    font-size: 23px;
  }

  .offer-card,
  .booking-card,
  .doctor-profile-content {
    padding: 25px;
  }

  .location-info {
    padding: 23px;
  }

  .map-container,
  .map-container iframe {
    min-height: 360px;
  }

  .video-modal {
    padding: 10px;
  }

  .video-modal-content {
    width: 100%;
  }

  footer {
    padding-top: 40px;
  }

  .footer-inner,
  .footer-bottom {
    width:
      calc(
        100% - 24px
      );
  }

}

/* Direct YouTube fallback shown inside the video modal */
.video-youtube-fallback {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.25);
}

.video-youtube-fallback:hover {
  background: rgba(0, 0, 0, 0.9);
}


.offer-old-price{color:var(--muted);text-decoration:line-through;font-size:12px;margin-bottom:5px}

/* Supabase offer photos */
.offer-image-wrapper {
  width: min(100%, 300px);
  aspect-ratio: 16 / 9;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--green-light);
}

.offer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .social-section { padding: 32px 22px; }
  .social-buttons { grid-template-columns: 1fr 1fr; }
}


/* =========================================================
   SPECIALTY VISUAL CARDS
========================================================= */
.specialty-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.specialty-card {
  overflow: hidden;
  padding: 0 0 28px;
}
.specialty-card .service-number,
.specialty-card h3,
.specialty-card > p,
.specialty-card .service-link {
  margin-left: 24px;
  margin-right: 24px;
}
.specialty-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf5f1, #f8faf9);
}
.specialty-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.specialty-card:hover .specialty-image {
  transform: scale(1.035);
}
.specialty-card .service-number { margin-top: 22px; }
.specialty-card > p { font-size: 13px; line-height: 1.8; min-height: 105px; }

/* =========================================================
   CALL MODAL
========================================================= */
.call-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}
.call-modal.open { display: flex; }
.call-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 40, 33, .52);
  backdrop-filter: blur(5px);
}
.call-modal-card {
  position: relative;
  width: min(460px, 100%);
  padding: 34px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(20, 50, 43, .24);
  text-align: center;
  z-index: 1;
}
.call-modal-card h2 { margin: 10px 0 10px; font-size: 28px; }
.call-modal-card p { margin-bottom: 22px; }
.call-modal-close {
  position: absolute; top: 12px; right: 14px;
  border: 0; background: transparent; font-size: 28px; color: var(--muted);
}
.call-modal-action, .call-modal-cancel { width: 100%; margin-top: 8px; }
body.call-modal-open { overflow: hidden; }

@media (max-width: 980px) {
  .specialty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .specialty-grid { grid-template-columns: 1fr; }
  .specialty-card > p { min-height: auto; }
}

.specialty-image-wrap.specialty-image-unavailable {
  display: flex; align-items: center; justify-content: center;
  min-height: 180px; color: var(--green); font-weight: 800;
  background: linear-gradient(135deg, #eaf5f1, #f7f0d9);
}
.specialty-image-note { opacity: .65; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }


/* =========================================================
   INTERFACE-ONLY SPECIALISTS & TECHNICIANS
   Stored in browser localStorage only; no Supabase table.
========================================================= */
.interface-team-section { padding: 30px 0 90px; }
.interface-team-heading { max-width: 760px; margin-bottom: 30px; }
.interface-team-heading h2 { margin: 8px 0 10px; font-size: clamp(2rem, 4vw, 3rem); }
.interface-team-heading p { margin: 0; color: var(--text-muted, #536861); line-height: 1.7; }
.interface-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.interface-team-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:28px; box-shadow:var(--shadow-sm); text-align:center; }
.interface-team-photo { width:150px; height:150px; border-radius:50%; object-fit:cover; border:5px solid #fff; box-shadow:0 10px 28px rgba(25,63,53,.10); margin:0 auto 20px; background:var(--green-light); }
.interface-team-card h3 { margin:0 0 7px; }
.interface-team-role { display:block; margin-bottom:12px; color:var(--green, #04785c); font-size:.78rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.interface-team-card p { margin:0; color:var(--text-muted, #536861); line-height:1.65; }
@media(max-width:900px){ .interface-team-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:600px){ .interface-team-grid{grid-template-columns:1fr;} }


/* =========================================================
   SPECIALTIES & SERVICES PAGE — editorial / elegant layout
========================================================= */

.specialties-page-hero {
  padding: 118px 24px 78px;
  background:
    radial-gradient(circle at 12% 18%, rgba(11,128,104,.10), transparent 30%),
    radial-gradient(circle at 88% 75%, rgba(214,187,105,.10), transparent 28%),
    linear-gradient(135deg, #f5faf8 0%, #ffffff 52%, #f1f8f5 100%);
  border-bottom: 1px solid rgba(11, 122, 99, 0.10);
}

.page-hero-inner { max-width: 940px; margin: 0 auto; text-align: center; }
.page-hero-inner h1 { max-width: 850px; margin: 16px auto 18px; }
.page-hero-inner p { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.8; }

.specialties-detail-section { padding-top: 70px; padding-bottom: 20px; }

.specialties-service-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.specialty-service-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 30px 28px 28px;
  border: 1px solid rgba(27,67,58,.10);
  border-radius: 34px 16px 34px 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 45px rgba(27,67,58,.055);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.specialty-service-card::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -55px;
  top: -55px;
  border-radius: 50%;
  background: rgba(11,128,104,.055);
  pointer-events: none;
}

.specialty-service-card::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 0;
  width: 72px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #087e66, rgba(8,126,102,0));
}

.specialty-service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11,128,104,.18);
  box-shadow: 0 24px 55px rgba(27,67,58,.10);
}

.specialty-service-card-featured {
  background: linear-gradient(150deg, #f2faf7 0%, #ffffff 68%);
  border-color: rgba(8,126,102,.17);
}

.specialty-service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.specialty-service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #edf7f3;
  color: #087d65;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.specialty-service-kicker {
  color: #087d65;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: right;
}

.specialty-service-card h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 2.1vw, 29px);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.specialty-service-card > p {
  margin: 0 0 22px;
  color: #5b706a;
  line-height: 1.7;
  font-size: 15px;
}

.service-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(8,126,102,.11);
  border-radius: 999px;
  background: #f7fbf9;
  color: #49645d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

html[dir="rtl"] .specialty-service-kicker { text-align: left; }
html[dir="rtl"] .specialty-service-card::after { left: auto; right: 28px; }

.specialties-cta-section { padding-top: 46px; padding-bottom: 90px; }

.specialties-cta-card {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 32px 18px 32px 18px;
  background: linear-gradient(135deg, #123f35 0%, #087e66 100%);
  color: #fff;
  box-shadow: 0 24px 50px rgba(8,126,102,.18);
}

.specialties-cta-card .eyebrow { color: #bce9dc; }
.specialties-cta-card h2 { margin: 8px 0; color: #fff; }
.specialties-cta-card p { margin: 0; max-width: 650px; color: rgba(255,255,255,.82); line-height: 1.7; }
.specialties-cta-card .btn { flex: 0 0 auto; background: #fff; color: #087e66; border-color: #fff; }

@media (max-width: 980px) {
  .specialties-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .specialties-service-grid { grid-template-columns: 1fr; }
  .specialties-cta-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .specialties-page-hero { padding: 90px 18px 55px; }
  .page-hero-inner p { font-size: 16px; }
  .specialty-service-card { padding: 27px 23px 25px; border-radius: 28px 14px 28px 14px; }
  .specialty-service-card h2 { font-size: 24px; }
  .specialties-cta-card { padding: 30px 24px; border-radius: 28px 14px 28px 14px; }
}

/* =========================================================
   SPECIALTIES PAGE — refined hero + lighter editorial cards
========================================================= */
.specialties-page-hero {
  max-width: none;
  width: 100%;
  padding: 74px 0 62px;
  background:
    radial-gradient(circle at 8% 35%, rgba(11,128,104,.12), transparent 25%),
    radial-gradient(circle at 53% 80%, rgba(214,187,105,.11), transparent 24%),
    linear-gradient(135deg, #f4faf7 0%, #ffffff 58%, #f7faf8 100%);
  border-bottom: 1px solid rgba(11,122,99,.10);
  overflow: hidden;
}
.specialties-hero-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  align-items: center;
  gap: 50px;
}
.specialties-hero-copy { position: relative; z-index: 2; }
.specialties-hero-copy h1 {
  max-width: 780px;
  margin: 14px 0 18px;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.specialties-hero-copy p {
  max-width: 700px;
  margin: 0;
  color: #566d66;
  font-size: 18px;
  line-height: 1.75;
}
.specialties-hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.specialties-hero-art { position:relative; min-height:320px; display:flex; align-items:center; justify-content:center; }
.hero-art-card {
  position:relative; z-index:3; width:235px; height:270px; padding:34px 30px;
  border-radius: 46% 54% 50% 50% / 44% 42% 58% 56%;
  background: rgba(255,255,255,.86);
  border:1px solid rgba(8,126,102,.14);
  box-shadow: 0 28px 70px rgba(26,73,61,.12);
  display:flex; flex-direction:column; justify-content:center;
  transform:rotate(4deg);
}
.hero-art-card span { color:#087e66; font-size:12px; font-weight:900; letter-spacing:.24em; }
.hero-art-card strong { margin:13px 0; font-size:27px; line-height:1.12; letter-spacing:-.03em; color:#183f35; }
.hero-art-card small { color:#6a7d77; font-size:12px; letter-spacing:.08em; }
.hero-art-orbit { position:absolute; border:1px solid rgba(8,126,102,.13); border-radius:50%; }
.orbit-one { width:350px; height:350px; transform:rotate(-18deg); }
.orbit-two { width:250px; height:390px; transform:rotate(35deg); border-color:rgba(214,187,105,.20); }
.specialties-detail-section { padding-top:58px; padding-bottom:26px; }
.specialties-service-intro { max-width:1180px; margin:0 auto 28px; }
.specialties-service-intro h2 { max-width:760px; margin:8px 0 0; font-size:clamp(26px,3vw,40px); line-height:1.16; letter-spacing:-.03em; }
.specialties-service-grid { gap:18px; }
.specialty-service-card {
  padding:27px 26px 25px;
  border-radius: 30px 18px 30px 18px;
  box-shadow: 0 12px 36px rgba(27,67,58,.045);
}
.specialty-service-card:hover { transform:translateY(-3px); box-shadow:0 18px 42px rgba(27,67,58,.08); }
.specialty-service-card-plastic { background:linear-gradient(150deg,#fffdf8 0%,#fff 72%); }
.specialty-service-card h2 { font-size:clamp(22px,2vw,27px); }
.service-pill-list span { background:#fbfdfc; }
.specialties-cta-section { padding-top:38px; padding-bottom:82px; }
.specialties-cta-card { border-radius:30px 16px 30px 16px; }
.specialties-cta-actions { display:flex; flex-wrap:wrap; gap:10px; flex:0 0 auto; }
.specialties-cta-card .specialties-text-btn { color:#087e66; }

html[dir="rtl"] .specialties-hero-copy { text-align:right; }
html[dir="rtl"] .specialties-hero-actions { justify-content:flex-start; }

@media (max-width: 900px) {
  .specialties-hero-inner { grid-template-columns:1fr; min-height:0; gap:15px; }
  .specialties-hero-copy { text-align:center; }
  .specialties-hero-copy p { margin:0 auto; }
  .specialties-hero-actions { justify-content:center; }
  .specialties-hero-art { min-height:250px; }
  .hero-art-card { width:190px; height:220px; }
  .orbit-one { width:280px; height:280px; }
  .orbit-two { width:205px; height:300px; }
}
@media (max-width:600px) {
  .specialties-page-hero { padding:62px 0 44px; }
  .specialties-hero-inner { width:min(100% - 34px,1180px); }
  .specialties-hero-copy h1 { font-size:42px; }
  .specialties-hero-copy p { font-size:16px; }
  .specialties-hero-art { min-height:210px; }
  .hero-art-card { width:165px; height:190px; padding:25px; }
  .hero-art-card strong { font-size:22px; }
  .specialties-service-intro { margin-bottom:22px; }
  .specialties-cta-actions { width:100%; }
  .specialties-cta-actions .btn { flex:1; }
}

/* Google Maps listing link */
.map-container { position: relative; }
.map-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
}
.map-open-link:hover { transform: translateY(-1px); }
