/* SEHA Dental Clinic — LymaWeb prototype */

:root {
  --teal-900: #0F4C5C;
  --teal-700: #1B6F82;
  --teal-500: #2A9CB1;
  --teal-100: #E2F1F4;
  --teal-50:  #F2F8FA;
  --navy:     #102A43;
  --ink:      #1F2A37;
  --muted:    #506071;
  --line:     #E1E8EE;
  --bg:       #FFFFFF;
  --bg-soft:  #F7FAFB;
  --gold:     #D4A04A;

  --shadow-sm: 0 2px 6px rgba(15,76,92,.06);
  --shadow-md: 0 12px 30px rgba(15,76,92,.10);
  --shadow-lg: 0 24px 60px rgba(15,76,92,.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --header-h: 72px;

  --font-display: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic:  'Tajawal', 'Manrope', system-ui, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body[dir="rtl"] { font-family: var(--font-arabic); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 .4em;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: .8rem;
  padding: .35rem .7rem;
  border: 1px solid var(--teal-100);
  background: var(--teal-50);
  border-radius: 999px;
}

/* ------- header ------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-family: var(--font-display);
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--teal-700), var(--teal-500));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; letter-spacing: .12em; }
.brand-sub  { font-size: .72rem; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }

.site-nav { margin-inline-start: auto; display: flex; gap: 6px; }
.site-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--muted);
  font-size: .95rem;
  transition: color .15s ease, background .15s ease;
}
.site-nav a:hover { color: var(--navy); background: var(--teal-50); }
.site-nav a.active { color: var(--teal-700); background: var(--teal-50); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: .85rem;
  color: var(--navy);
  letter-spacing: .03em;
  transition: border-color .15s ease, color .15s ease;
}
.lang-toggle:hover { border-color: var(--teal-500); color: var(--teal-700); }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ------- buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-primary {
  background: var(--teal-700);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15,76,92,.25);
}
.btn-primary:hover { background: var(--teal-900); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15,76,92,.30); }
.btn-ghost {
  background: rgba(255,255,255,.86);
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #fff; border-color: var(--teal-500); color: var(--teal-700); }

/* ------- hero ------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(60px, 10vw, 110px) 0 clamp(60px, 9vw, 100px);
  overflow: hidden;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,76,92,.85) 0%, rgba(15,76,92,.66) 60%, rgba(15,76,92,.92) 100%),
    radial-gradient(120% 80% at 80% 0%, rgba(42,156,177,.55), transparent 60%);
}
.hero-inner { position: relative; max-width: 920px; }
.hero-pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero h1 { color: #fff; }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(255,255,255,.92);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  max-width: 820px;
}
.trust-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
}
.trust-rating { display: flex; align-items: baseline; gap: 6px; }
.trust-stars { color: var(--gold); letter-spacing: .08em; font-size: 1.05rem; }
.trust-score { font-weight: 800; font-size: 1.5rem; font-family: var(--font-display); color: #fff; }
.trust-icon { font-size: 1.4rem; color: var(--gold); }
.trust-meta { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.trust-meta strong { color: #fff; font-size: .95rem; font-weight: 700; }
.trust-meta span { color: rgba(255,255,255,.78); font-size: .82rem; }

/* ------- generic section ------- */
.section { padding: clamp(64px, 10vw, 110px) 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-lead { font-size: 1.05rem; color: var(--muted); margin: 0; }
.section-cta { text-align: center; margin-top: 44px; }

/* ------- services cards ------- */
.section-services { background: var(--bg-soft); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-100);
}
.card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal-700);
  margin-bottom: 18px;
}
.card h3 { color: var(--navy); margin-bottom: 8px; }
.card p { font-size: .95rem; margin: 0; }

/* ------- pillars ------- */
.section-pillars { background: var(--bg); }
.pillars-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.pillars-text .section-lead { margin-bottom: 32px; }
.pillars-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.pillars-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.pillar-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: 12px;
  display: grid;
  place-items: center;
  height: 50px;
}
.pillars-list strong { color: var(--navy); display: block; margin-bottom: 4px; }
.pillars-list p { margin: 0; font-size: .95rem; }
.pillars-media {
  position: relative;
  display: grid;
  align-content: center;
}
.media-stack {
  position: relative;
  display: grid;
  gap: 16px;
}
.media-stack img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.media-stack img:nth-child(2) {
  width: 60%;
  margin-inline-start: auto;
  margin-top: -60px;
  border: 6px solid #fff;
  aspect-ratio: 4 / 3;
}

/* ------- testimonials ------- */
.section-testimonials {
  background:
    radial-gradient(80% 60% at 0% 0%, var(--teal-50), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, var(--teal-50), transparent 60%),
    var(--bg);
}
.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.05rem;
}
.rating-summary strong { font-size: 1.3rem; }
.rating-summary span { color: var(--muted); font-size: .95rem; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  margin: 0;
  position: relative;
}
.testimonial::before {
  content: "";
  position: absolute;
  inset-block-start: -10px;
  inset-inline-start: 24px;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--teal-700), var(--teal-500));
  z-index: 0;
}
.testimonial::after {
  content: "“";
  position: absolute;
  inset-block-start: -8px;
  inset-inline-start: 32px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: #fff;
  line-height: 1;
  z-index: 1;
}
.testimonial p { color: var(--ink); font-size: 1rem; margin-bottom: 18px; padding-top: 10px; }
.testimonial footer { display: flex; justify-content: space-between; align-items: center; }
.t-name { font-weight: 600; color: var(--navy); }
.t-stars { color: var(--gold); letter-spacing: .04em; }
.testimonials-note { text-align: center; margin-top: 22px; color: var(--muted); font-size: .85rem; }

/* ------- cta band ------- */
.section-cta-band {
  padding: 0;
}
.cta-band {
  margin: clamp(40px, 6vw, 70px) auto;
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: #fff; color: var(--teal-900); }
.cta-band .btn-primary:hover { background: var(--teal-50); color: var(--teal-900); }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.10); border-color: #fff; color: #fff; }

/* ------- location ------- */
.section-location { background: var(--bg-soft); }
.location-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.location-text .section-lead { margin-bottom: 22px; }
.info-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.info-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .95rem;
}
.info-list strong { color: var(--navy); }
.info-list span { color: var(--muted); }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 360px;
  box-shadow: var(--shadow-sm);
}
.location-map iframe { width: 100%; height: 100%; min-height: 360px; }

/* ------- footer ------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.78);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .brand-name { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.1rem; letter-spacing: .12em; display: block; margin-bottom: 8px; }
.footer-brand p { color: rgba(255,255,255,.62); margin-bottom: 18px; }
.social { display: flex; gap: 8px; }
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .15s ease;
}
.social a:hover { background: var(--teal-500); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 {
  color: #fff;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-col a, .footer-col span {
  color: rgba(255,255,255,.7);
  font-size: .92rem;
  transition: color .15s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 20px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.footer-built a { color: rgba(255,255,255,.78); }
.footer-built a:hover { color: #fff; }

/* ------- floating WhatsApp/RDV ------- */
.floating-whatsapp {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  z-index: 60;
  box-shadow: 0 16px 30px rgba(37,211,102,.35);
  transition: transform .15s ease, box-shadow .2s ease;
}
.floating-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 20px 36px rgba(37,211,102,.45); }
.floating-whatsapp span { font-size: .9rem; }

/* ------- secondary page styles ------- */
.page-hero {
  background:
    linear-gradient(180deg, rgba(15,76,92,.94), rgba(15,76,92,.78)),
    url("../images/dental-equipment.jpg") center / cover no-repeat;
  color: #fff;
  padding: clamp(60px, 9vw, 100px) 0 clamp(60px, 8vw, 80px);
}
.page-hero h1 { color: #fff; max-width: 800px; }
.page-hero p { color: rgba(255,255,255,.86); max-width: 720px; font-size: 1.05rem; margin: 0; }

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}
.service-detail.reverse { direction: ltr; }
.service-detail.reverse > .service-detail-text { order: 2; }
body[dir="rtl"] .service-detail.reverse > .service-detail-text { order: 0; }
.service-detail h3 { font-size: 1.4rem; }
.service-detail img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.service-detail ul { padding-inline-start: 18px; color: var(--muted); }
.service-detail ul li { margin-bottom: 6px; }

/* equipe / team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}
.team-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--teal-700), var(--teal-500));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: .04em;
  box-shadow: var(--shadow-md);
}
.team-card h3 { margin-bottom: 4px; }
.team-role { color: var(--teal-700); font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.team-card p { font-size: .95rem; }

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(42,156,177,.18);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .submit-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; }
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-side .info-list { margin-bottom: 0; }
.contact-side .location-map { min-height: 280px; }
.contact-side .location-map iframe { min-height: 280px; }

/* ------- responsive ------- */
@media (max-width: 900px) {
  .pillars-inner { grid-template-columns: 1fr; }
  .media-stack img:nth-child(2) { width: 70%; margin-top: -40px; }
  .location-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { grid-template-columns: 1fr; text-align: start; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail.reverse > .service-detail-text { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline-start: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 18px 22px 26px;
    gap: 4px;
    transform: translateY(-110%);
    transition: transform .25s ease;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .header-actions { margin-inline-start: auto; }
  .info-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* RTL adjustments */
body[dir="rtl"] .site-nav { margin-inline-start: 0; margin-inline-end: auto; }
body[dir="rtl"] .brand-text { text-align: right; }
body[dir="rtl"] .pillars-list li { grid-template-columns: 56px 1fr; }
body[dir="rtl"] .footer-bottom { direction: rtl; }

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
