/* Qasr Al Reem Dental & Medical Centre | Beans Digital concept
   Palette: deep teal / ice white / sand gold.
   Teal = calm, clinical trust; sand gold nods to "Qasr" (palace) and the
   desert reem (gazelle); arch motifs echo Emirati palace architecture.
   Deliberately opposite of a warm patisserie look: cool, precise, left-aligned. */

@view-transition { navigation: auto; }

:root {
  --teal: #0b4f4c;
  --teal-deep: #073a38;
  --teal-mid: #11726d;
  --ice: #f2f7f6;
  --white: #ffffff;
  --sand: #c9a86a;
  --sand-soft: #efe5d2;
  --ink: #122927;
  --muted: #4c6361;
  --line: rgba(11, 79, 76, .14);
  --arch: 200px 200px 0 0;
  --font-head: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.03rem;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; }

a { color: var(--teal-mid); }

.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- concept banner ---------- */
.concept-banner {
  background: var(--teal-deep);
  color: var(--ice);
  font-size: .8rem;
  text-align: center;
  padding: .55rem 1rem;
  letter-spacing: .02em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--teal);
  view-transition-name: brand;
}

.brand-mark {
  width: 36px; height: 36px;
  background: var(--teal);
  border-radius: 18px 18px 3px 3px; /* arch */
  display: grid;
  place-items: center;
  color: var(--sand);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  flex: none;
}

.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }

.main-nav { display: flex; align-items: center; gap: 1.5rem; }

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .93rem;
  position: relative;
  padding: .3rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--sand);
  transition: width .3s;
}

.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: var(--teal-mid); }

.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: .55rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
}

.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--teal-mid); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--teal);
  border-radius: 8px;
  color: var(--teal);
  font: inherit;
  font-weight: 700;
  padding: .35rem .7rem;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal) 55%, var(--teal-mid));
  color: var(--ice);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -120px;
  width: 380px; height: 480px;
  background: var(--teal-mid);
  opacity: .35;
  border-radius: var(--arch);
}

.hero::before {
  content: "";
  position: absolute;
  right: 160px; bottom: -180px;
  width: 300px; height: 420px;
  border: 2px solid rgba(201, 168, 106, .4);
  border-radius: var(--arch);
}

.hero-inner { position: relative; z-index: 1; padding: 5rem 0 5.5rem; max-width: 620px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.2rem;
}

.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--sand); }

.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; margin-bottom: 1.2rem; }
.hero p.lede { font-size: 1.12rem; color: #d5e6e4; margin-bottom: 2rem; max-width: 34rem; }

.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-weight: 700;
  padding: .85rem 1.6rem;
  border-radius: 10px;
  transition: transform .25s, background .25s, color .25s;
  font-size: .98rem;
}

.btn-gold { background: var(--sand); color: var(--teal-deep); }
.btn-gold:hover { background: #d9bd87; transform: translateY(-2px); }

.btn-line { border: 2px solid rgba(242, 247, 246, .6); color: var(--ice); }
.btn-line:hover { border-color: var(--sand); color: var(--sand); transform: translateY(-2px); }

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-mid); transform: translateY(-2px); }

.btn-outline { border: 2px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }

.hero-note { margin-top: 2.2rem; display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: .9rem; color: #cfe2e0; }
.hero-note b { color: var(--sand); font-family: var(--font-head); }

/* ---------- trust bar ---------- */
.trust-bar { background: var(--ice); border-bottom: 1px solid var(--line); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
}

.trust-item { background: var(--ice); padding: 1.6rem 1.4rem; }
.trust-item b { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--teal); }
.trust-item span { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 4.5rem 0; }

.sec-head { max-width: 40rem; margin-bottom: 2.6rem; }
.sec-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--teal-deep); margin: .6rem 0 .8rem; }
.sec-head p { color: var(--muted); }

.sec-ice { background: var(--ice); }

/* ---------- numbered services ---------- */
.svc-list { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }

.svc-row {
  background: var(--white);
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.7rem 0.4rem;
  text-decoration: none;
  color: inherit;
  transition: background .3s, padding-left .3s;
}

.sec-ice .svc-row { background: var(--ice); }

.svc-row:hover { background: var(--sand-soft); padding-left: .9rem; }

.svc-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--sand);
  border: 1.5px solid var(--sand);
  border-radius: 24px 24px 4px 4px;
  width: 52px; height: 56px;
  display: grid;
  place-items: center;
}

.svc-row h3 { font-size: 1.22rem; color: var(--teal-deep); margin-bottom: .25rem; }
.svc-row p { font-size: .95rem; color: var(--muted); max-width: 46rem; }

.svc-arrow { color: var(--teal-mid); font-family: var(--font-head); font-size: 1.3rem; }

/* ---------- feature cards (patient experience) ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.3rem;
}

.feat {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sand);
  border-radius: 0 0 14px 14px;
  padding: 1.9rem 1.6rem;
  transition: transform .3s, box-shadow .3s;
}

.feat:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -22px rgba(7, 58, 56, .4); }

.feat .f-icon {
  width: 52px; height: 52px;
  border-radius: 26px 26px 4px 4px;
  background: var(--ice);
  color: var(--teal-mid);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.feat h3 { font-size: 1.15rem; color: var(--teal-deep); margin-bottom: .5rem; }
.feat p { font-size: .94rem; color: var(--muted); }

/* ---------- testimonials ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.3rem;
}

.quote {
  background: var(--teal);
  color: var(--ice);
  border-radius: 14px 14px 14px 0;
  padding: 1.9rem 1.7rem;
  position: relative;
}

.quote::before {
  content: "“";
  font-family: var(--font-head);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--sand);
  display: block;
  margin-bottom: .4rem;
}

.quote p { font-size: .96rem; }
.quote footer { margin-top: 1rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); font-weight: 700; }
.quote .stars { color: var(--sand); margin-bottom: .5rem; letter-spacing: .1em; }

/* ---------- prose ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); color: var(--teal-deep); margin: 2.2rem 0 .8rem; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: 1rem 0 1rem 1.3rem; color: var(--muted); }
.prose li + li { margin-top: .4rem; }

.note-box {
  background: var(--sand-soft);
  border-inline-start: 4px solid var(--sand);
  border-radius: 10px;
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
  font-size: .95rem;
}

/* ---------- hours ---------- */
.hours-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hours-table th, .hours-table td { padding: .8rem 1.2rem; text-align: left; font-size: .96rem; }
.hours-table tr + tr { border-top: 1px solid var(--line); }
.hours-table th { background: var(--teal); color: var(--ice); font-family: var(--font-head); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--teal-mid); }
.hours-table .today-note { font-size: .8rem; color: var(--sand); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.9rem 1.7rem;
}

.contact-card + .contact-card { margin-top: 1.3rem; }
.contact-card h3 { color: var(--teal-deep); margin-bottom: .55rem; font-size: 1.18rem; }

.map-frame {
  border: 0;
  width: 100%;
  height: 440px;
  border-radius: 110px 110px 14px 14px;
  box-shadow: 0 24px 50px -28px rgba(7, 58, 56, .5);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-deep), var(--teal));
  color: var(--ice);
  border-radius: 18px;
  padding: 3.2rem clamp(1.5rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -40px; top: -70px;
  width: 190px; height: 260px;
  border: 2px solid rgba(201, 168, 106, .35);
  border-radius: var(--arch);
}

.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .5rem; }
.cta-band p { color: #cfe2e0; max-width: 30rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-deep); color: var(--ice); margin-top: 4.5rem; padding: 3rem 0 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 { font-size: 1.05rem; margin-bottom: .8rem; color: var(--sand); }
.site-footer ul { list-style: none; display: grid; gap: .45rem; font-size: .93rem; }
.site-footer a { color: var(--ice); text-decoration: none; }
.site-footer a:hover { color: var(--sand); text-decoration: underline; }
.site-footer p { font-size: .93rem; opacity: .85; }

.footer-legal {
  border-top: 1px solid rgba(242, 247, 246, .15);
  padding-top: 1.3rem;
  text-align: center;
  font-size: .85rem;
  opacity: .75;
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .4);
  transition: transform .25s;
}

.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 780px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: .9rem;
    padding: 1rem 1.4rem 1.4rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 32px -22px rgba(7, 58, 56, .4);
  }

  .main-nav.open { display: flex; }
  .nav-cta { text-align: center; }

  section { padding: 3.2rem 0; }
  .hero-inner { padding: 3.6rem 0 4rem; }

  .svc-row { grid-template-columns: 56px 1fr; }
  .svc-arrow { display: none; }
  .svc-num { width: 44px; height: 48px; font-size: .9rem; }

  .map-frame { height: 320px; border-radius: 70px 70px 14px 14px; }
}
