/*
Theme Name: Eleventa Clinic
Theme URI: https://eleventaclinic.com
Author: Eleventa
Description: One-page theme for ELEVENTA Health & Beauty clinics: dental care, laser, dermatology and cosmetics in Khamis Mushait and Abha. Edit phones, hours, email and social links from Appearance → Customize → Clinic Info.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: eleventa
Tags: one-column, rtl-language-support, custom-logo, one-page
*/

:root {
  --lav-50:  #faf6fc;
  --lav-100: #f3eaf8;
  --lav-200: #e6d4f0;
  --lav-300: #cfb2e2;
  --lav-500: #b085c9;
  --lav-600: #9a6bb6;
  --lav-700: #7d5196;
  --plum-900: #2e2236;
  --ink: #3b3042;
  --muted: #7a6d82;
  --line: #eadff0;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(125, 81, 150, .35);
  --font: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-latin: "Cormorant Garamond", Georgia, serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; color: var(--plum-900); font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.latin { font-family: var(--font-latin); letter-spacing: .35em; font-weight: 600; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.6em; border-radius: 999px;
  font-weight: 700; font-size: 1rem; border: 1.5px solid transparent;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  cursor: pointer;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-primary { background: var(--lav-600); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--lav-700); transform: translateY(-2px); }
.btn-ghost { border-color: var(--lav-300); color: var(--lav-700); background: rgba(255,255,255,.7); }
.btn-ghost:hover { background: var(--lav-100); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img, .brand .custom-logo { height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-latin); letter-spacing: .3em; color: var(--lav-600); font-size: 1.25rem; }
.brand-text small { font-size: .7rem; letter-spacing: .25em; color: var(--muted); font-family: var(--font-latin); }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a { font-weight: 500; color: var(--ink); position: relative; padding-block: 6px; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--lav-500); transform: scaleX(0); transition: transform .25s ease; }
.main-nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; gap: 10px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--plum-900); }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, var(--lav-100), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, var(--lav-50), transparent 60%),
    var(--white);
  padding: 90px 0 110px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 50px; }
.eyebrow { display: inline-block; color: var(--lav-700); background: var(--lav-100); border-radius: 999px; padding: .35em 1.1em; font-size: .9rem; font-weight: 700; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; }
.hero h1 span { color: var(--lav-600); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 38px; color: var(--muted); font-size: .95rem; }
.hero-meta div { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 20px; height: 20px; color: var(--lav-600); }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art .diamond { animation: float 7s ease-in-out infinite; transform-origin: center; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .kicker { color: var(--lav-600); font-weight: 700; font-size: .95rem; display: block; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--muted); }
.bg-soft { background: var(--lav-50); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--lav-300); }
.service .ico { width: 58px; height: 58px; border-radius: 16px; background: var(--lav-100); color: var(--lav-700); display: grid; place-items: center; margin-bottom: 20px; }
.service .ico svg { width: 30px; height: 30px; }
.service h3 { font-size: 1.25rem; }
.service ul { list-style: none; margin: 14px 0 0; padding: 0; color: var(--muted); font-size: .95rem; }
.service li { padding: 6px 0; border-top: 1px dashed var(--line); display: flex; gap: 8px; align-items: center; }
.service li::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--lav-300); flex: none; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why { text-align: center; padding: 30px 24px; }
.why .num { font-family: var(--font-latin); font-size: 2.6rem; color: var(--lav-500); line-height: 1; margin-bottom: 14px; }
.why h3 { font-size: 1.15rem; }
.why p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Visit / contact */
.visit-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: stretch; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row:last-of-type { border-bottom: 0; }
.info-row .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--lav-100); color: var(--lav-700); display: grid; place-items: center; flex: none; }
.info-row .ico svg { width: 22px; height: 22px; }
.info-row h3 { font-size: 1rem; margin: 0 0 2px; }
.info-row p, .info-row a { margin: 0; color: var(--muted); }
.info-row a:hover { color: var(--lav-700); }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 420px; position: relative; background: var(--lav-100); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card .map-link { position: absolute; bottom: 16px; inset-inline-start: 16px; }

/* CTA band */
.cta-band { padding: 0 0 100px; }
.cta-inner {
  background: linear-gradient(135deg, var(--lav-600), var(--lav-700));
  color: var(--white); border-radius: 28px; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-inner::before { content: ""; position: absolute; width: 340px; height: 340px; border: 2px solid rgba(255,255,255,.18); transform: rotate(45deg); inset-inline-end: -90px; top: -120px; }
.cta-inner h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 6px; }
.cta-inner p { margin: 0; opacity: .9; }
.cta-inner .btn-primary { background: var(--white); color: var(--lav-700); }
.cta-inner .btn-primary:hover { background: var(--lav-50); }

/* Footer */
.site-footer { background: var(--plum-900); color: #d8cce0; padding: 60px 0 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand strong { font-family: var(--font-latin); letter-spacing: .35em; font-size: 1.5rem; color: var(--white); display: block; }
.footer-brand small { font-family: var(--font-latin); letter-spacing: .3em; color: var(--lav-300); }
.socials { display: flex; gap: 12px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; transition: background .2s ease, border-color .2s ease; }
.socials a:hover { background: var(--lav-600); border-color: var(--lav-600); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { padding-top: 24px; font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; opacity: .75; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(37,211,102,.6);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art .diamond { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .main-nav { position: absolute; top: 76px; inset-inline: 0; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 20px 20px; }
  .main-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .header-cta .btn-ghost { display: none; }
  .hero { padding: 50px 0 70px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-art { max-width: 280px; order: -1; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero p.lead { margin-inline: auto; }
  .why-grid, .visit-grid { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .cta-inner { padding: 40px 28px; text-align: center; justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .header-cta .btn { padding: .65em 1.1em; font-size: .9rem; }
  .brand-text { display: none; }
  .info-card { padding: 24px; }
  .footer-top { justify-content: center; text-align: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}
