/* IAMC - Main stylesheet. All pages. */
:root {
  --bg: #f6f2eb;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.86);
  --text: #201b16;
  --muted: #6f675e;
  --gold: #c79f5b;
  --gold-deep: #a57930;
  --dark: #241d17;
  --line: rgba(32, 27, 22, 0.08);
  --shadow: 0 18px 60px rgba(56, 40, 18, 0.1);
  --radius: 28px;
  --container: min(1200px, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(199, 159, 91, 0.16), transparent 28%),
    radial-gradient(circle at 10% 12%, rgba(199, 159, 91, 0.08), transparent 22%),
    linear-gradient(180deg, #fbfaf7 0%, #f3ede5 100%);
  line-height: 1.8;
}

body.lang-en {
  direction: ltr;
  font-family: "Inter", system-ui, sans-serif;
}

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

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

p {
  margin: 0 0 1rem;
}

h1, h2, h3, h4 {
  margin: 0 0 1rem;
  line-height: 1.1;
}

body:not(.lang-en) h1,
body:not(.lang-en) h2,
body:not(.lang-en) h3,
body:not(.lang-en) h4 {
  font-family: "Cairo", sans-serif;
}

body.lang-en h1,
body.lang-en h2,
body.lang-en h3,
body.lang-en h4 {
  font-family: "Cormorant Garamond", serif;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.container {
  width: var(--container);
  margin: auto;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 800;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid rgba(32, 27, 22, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand img {
  height: 100px;
  width: auto;
  /* max-width: 180px; */
  object-fit: contain;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  font-size: 0.88rem;
  color: var(--muted);
}

.menu {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--text);
  font-weight: 600;
}

.menu a:hover,
.menu a.active {
  color: var(--muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Burger button - hidden on desktop */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.burger:hover {
  background: rgba(32, 27, 22, 0.06);
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn,
.ghost,
.lang-toggle,
.wa-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.92rem 1.2rem;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn {
  background: linear-gradient(135deg, var(--gold), #e9cb8f);
  color: #261d11;
  box-shadow: 0 14px 30px rgba(165, 121, 48, 0.24);
}

.btn:hover,
.ghost:hover,
.lang-toggle:hover {
  transform: translateY(-1px);
}

.ghost,
.lang-toggle {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

/* Hero & page hero */
.hero {
  padding: 4rem 0 3rem;
}

.page-hero {
  padding: 3rem 0 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: center;
}

.glass-card,
.card {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  border-radius: 36px;
  position: relative;
  overflow: hidden;
  
}

.glass-card {
  padding: 3rem;
}
.glass-card h1 {
  font-size: 3.2rem;
}
.glass-card:before,
.card:before {
  content: "";
  position: absolute;
  inset: auto auto -90px -50px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(199, 159, 91, 0.16), transparent 68%);
  pointer-events: none;
}
div#contact {
  margin-top: 60px;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.metric {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.78);
  padding: 1rem;
  border-radius: 22px;
}

.metric strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
}

/* Visual / hero image - single or slider */
.visual {
  min-height: 620px;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

/* Hero slider: 3 images */
.hero-slider {
  background: linear-gradient(135deg, rgba(26, 21, 18, 0.25), rgba(26, 21, 18, 0.1));
}

.hero-slides {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.visual-badge,
.visual-note {
  position: absolute;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 1rem 1.1rem;
  max-width: 260px;
}

.visual-badge {
  top: 1.3rem;
  left: 1.3rem;
  z-index: 2;
}

.visual-note {
  bottom: 1.3rem;
  right: 1.3rem;
}

body.lang-en .visual-badge {
  left: auto;
  right: 1.3rem;
}

body.lang-en .visual-note {
  right: auto;
  left: 1.3rem;
}

.section {
  padding: 4rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head p {
  max-width: 44rem;
  color: var(--muted);
}

/* Grids */
.grid-4,
.grid-3,
.treat-grid,
.doctor-grid,
.gallery-grid,
.footer-grid,
.detail-grid,
.blog-grid,
.wa-booking-grid,
.stats-grid {
  display: grid;
  gap: 1.2rem;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3,
.treat-grid,
.doctor-grid,
.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.detail-grid,
.wa-booking-grid,
.split {
  grid-template-columns: repeat(2, 1fr);
}

/* Services page: each service card full width */
.services-detail-grid {
  grid-template-columns: 1fr;
}

.gallery-grid {
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-auto-rows: 220px;
}

.gallery-grid .gallery-card:first-child {
  grid-row: span 2;
}

.footer-grid {
  grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr;
}

.stats-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 1.4rem;
  border-radius: 28px;
}

.card p {
  color: var(--muted);
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(199, 159, 91, 0.18), rgba(199, 159, 91, 0.05));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

/* Photos - images/hero/photo1.jpg, photo2.jpg, photo-about.jpg */
.photo {
  min-height: 390px;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
}

.photo.one {
  background-image: url('../images/banner.jpg');
  margin-bottom: 60px;
}

.photo.two {
  background-image: url('../images/hero/photo2.jpg');
}

.photo.photo-about {
  background-image: url('../images/hero/photo-about.jpg');
}

/* Map - Google Maps embed or fallback image */
.map {
  min-height: 420px;
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 21, 18, 0.12), rgba(26, 21, 18, 0.06));
margin-top: 60px;
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.doctor img,
.gallery-card img {
  border-radius: 22px;
  width: 100%;
  object-fit: cover;
}

/* Doctor profile: col-6 col-6 (50% / 50%) */
.doctor-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.doctor-profile-content h2 {
  margin-bottom: 0.25rem;
}

.doctor-profile-content .lead {
  margin-bottom: 1.25rem;
}

.doctor-profile-content h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.list-bullet {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
}

.list-bullet li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.list-bullet li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold-deep);
  font-weight: 700;
}

.doctor-profile-image {
  position: sticky;
  top: 100px;
}

.doctor-profile-image img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* Home page: shorter image, section aligned */
.doctor-profile-home {
  grid-template-columns: 1fr 2fr;
  margin-bottom: 2rem;
  align-items: center;
}

.doctor-profile-home .doctor-profile-image {
  position: static;
}

.doctor-profile-home .doctor-profile-image img {
  aspect-ratio: 1/1;
  max-height: 400px;
  width: 100%;
  object-fit: cover;
}

html[dir="rtl"] .doctor-profile-home .doctor-profile-image img {
  margin-left: unset;
  margin-right: unset;
}

body[dir="rtl"] .doctor-profile-image,
html[dir="rtl"] .doctor-profile-image {
  order: -1;
}

.services-detail-grid .card[id^="detail-"] {
  scroll-margin-top: 120px;
}

@media (max-width: 980px) {
  .services-detail-grid .card[id^="detail-"] {
    scroll-margin-top: 90px;
  }
}

.treat-grid .card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.6rem;

}

.treat-grid .treat-icon {
  color: var(--gold-deep);
  font-size: 1.1rem;
  flex-shrink: 0;
}

html[dir="rtl"] .treat-grid .card h3 {
  flex-direction: row-reverse;
}

.service-detail h3 {
  margin-bottom: 0.5rem;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0;
}

.service-meta span {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(199, 159, 91, 0.12);
  color: var(--gold-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.service-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}
.service-list li {
  margin-bottom: 0.35rem;
}

html[dir="rtl"] .service-list {
  padding-left: 0;
  padding-right: 1.25rem;
}

.legal-content .legal-intro {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.legal-list li {
  margin-bottom: 0.5rem;
}

html[dir="rtl"] .legal-list {
  padding-left: 0;
  padding-right: 1.25rem;
}

.blog-card {
  min-height: 100%;
}

.blog-card h3 {
  margin-top: 0.2rem;
}

.doctor img {
  aspect-ratio: 4/3;
  margin-bottom: 1rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.gallery-link {
  display: block;
  position: relative;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-card .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  color: #fff;
}

.list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.list div {
      /* padding: 0.3rem; */
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.58);
      border: 1px solid rgba(255, 255, 255, 0.72);
      color: var(--muted);
      font-size: 1.2rem;
      font-weight: 500;
}

.notice {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(199, 159, 91, 0.12);
  border: 1px solid rgba(199, 159, 91, 0.18);
  color: var(--muted);
}

.cta {
  background: linear-gradient(135deg, rgba(25, 23, 21, 0.97), rgba(58, 45, 26, 0.92));
  color: #f3ecdf;
  border-radius: 36px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
}

.cta .eyebrow {
  color: #ead0a6;
}

.cta p {
  color: rgba(243, 236, 223, 0.78);
}

.cta .ghost-cta {
  color: #f3ecdf;
  border-color: rgba(243, 236, 223, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.faq details {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.contact-list p {
  margin: 0.35rem 0;
}

.wa-form {
  display: grid;
  gap: 0.9rem;
}

.wa-form input,
.wa-form select,
.wa-form textarea {
  width: 100%;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  color: var(--text);
}

.wa-form textarea {
  min-height: 120px;
  resize: vertical;
}

.wa-quick {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.wa-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.footer {
  padding: 1.5rem 0 0;
  color: var(--muted);
}

.footer-brand {
  max-width: 260px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-logo img {
  height: 140px;
  width: 100%;
  /* max-width: 140px; */
  object-fit: cover;
  border-radius: 10px;
}

.footer-brand p {
  font-size: 0.91rem;
  margin: 10px 0px;
  line-height: 1.5;
}

.footer h4 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  color: #c89e55;
}

.footer a {
  display: block;
  margin: 0.25rem 0;
  color: var(--muted);
}

.footer a:hover {
  color: var(--text);
}

.footer-contact-item {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-contact-label {
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.15rem;
}

.footer-contact a {
  display: inline;
  margin: 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(199, 159, 91, 0.12);
  border: 1px solid var(--line);
  color: var(--gold-deep);
  transition: 0.25s ease;
}

.footer-social a:hover {
  transform: translateY(-1px);
  color: var(--text);
  background: rgba(199, 159, 91, 0.22);
}

.footer-social i {
  font-size: 1rem;
  line-height: 1;
}

.footer-bottom {
  margin-top: 1.25rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  display: inline;
  margin: 0 0.25rem;
}

.wa-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 80;
  background: #1fbf63;
  color: #fff;
  box-shadow: 0 16px 32px rgba(31, 191, 99, 0.25);
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
}

.wa-float i {
  font-size: 1.75rem;
}

body.lang-en .wa-float {
  left: auto;
  right: 20px;
}

.card-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-values-card {
  margin-bottom: 60px;
}

.section + .container {
  margin-top: 1.2rem;
}

.mobile-note {
  display: none;
}

.mt-1 {
  margin-top: 1rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .doctor-profile,
  .grid-4,
  .grid-3,
  .treat-grid,
  .doctor-grid,
  .metrics,
  .gallery-grid,
  .footer-grid,
  .detail-grid,
  .blog-grid,
  .wa-booking-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 0.75rem;
  }

  .nav .brand {
    order: 1;
  }

  .doctor-profile-image {
    position: static;
  }

  html[dir="rtl"] .doctor-profile-image {
    order: 0;
  }

  .burger {
    display: flex;
    order: 2;
  }

  .menu,
  .nav-actions {
    display: none !important;
    order: 3;
    width: 100%;
  }

  .nav.nav-open .menu,
  .nav.nav-open .nav-actions {
    display: flex !important;
  }

  .nav-open .menu {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(32, 27, 22, 0.08);
  }

  .nav-open .menu a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(32, 27, 22, 0.06);
    font-size: 1.05rem;
  }

  .nav-open .nav-actions {
    flex-direction: column;
    padding: 0.75rem 0 0.5rem;
    gap: 0.5rem;
  }

  .nav-open .nav-actions .btn,
  .nav-open .nav-actions .lang-toggle {
    width: 100%;
    justify-content: center;
  }

  .menu {
    order: 3;
  }

  .visual {
    min-height: 420px;
  }

  .photo {
    min-height: 125px;
    border-radius: 32px;
    box-shadow: var(--shadow);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* Hero: banner first, then content on mobile */
  .hero-grid .visual {
    order: 1;
  }

  .hero-grid .glass-card {
    order: 2;
  }

  /* Mobile typography */
  body {
    font-size: 0.9375rem;
  }

  .lead {
    font-size: 0.95rem;
    max-width: none;
  }

  h1 {
    font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  }

  h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  }

  h4 {
    font-size: clamp(1rem, 2vw, 1.25rem);
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
  }

  .glass-card h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .section-head p,
  .card p {
    font-size: 0.9375rem;
  }

  .metric strong {
    font-size: 1.35rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .brand-copy span {
    display: none;
  }

  .mobile-note {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .glass-card,
  .card {
    padding: 1.25rem;
  }

  .page-hero .glass-card {
    padding: 1.5rem;
  }

  h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  h2 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  h3 {
    font-size: clamp(1.05rem, 3vw, 1.35rem);
  }

  .glass-card h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .lead {
    font-size: 0.9rem;
  }

  .section-head p,
  .card p {
    font-size: 0.9rem;
  }

  .eyebrow {
    font-size: 0.65rem;
  }

  .metric strong {
    font-size: 1.2rem;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .section {
    padding: 1.75rem 0;
  }

  .brand img {
    height: 72px;
  }
}
