/* Bristol Medical Centre — Al Nahda, Sharjah
   Concept by Beans Digital
   Palette: calm teal + warm paper + soft mint. Light, airy, rounded.
   Type: Fraunces (warm display serif) + Public Sans (body). */

@view-transition { navigation: auto; }

:root {
  --paper: #f7f5f0;
  --white: #ffffff;
  --ink: #16343a;
  --ink-soft: #46626a;
  --teal: #0e6a6e;
  --teal-deep: #0a4e52;
  --mint: #dcebe4;
  --mint-2: #cfe3da;
  --sun: #e8b84b;
  --line: #e0dbd0;
  --radius: 18px;
  --radius-lg: 26px;
  --wrap: 1080px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(22, 52, 58, 0.08);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- concept banner ---------- */
.concept-banner {
  background: var(--ink);
  color: #f3efe6;
  font-size: 0.8rem;
  text-align: center;
  padding: 7px 16px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--teal-deep);
  line-height: 1.15;
  view-transition-name: site-logo;
}
.logo:hover { text-decoration: none; }
.logo .cross {
  display: inline-block;
  color: var(--sun);
  margin-right: 6px;
}
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--teal-deep); text-decoration: none; }
.site-nav a[aria-current="page"] {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.nav-cta {
  background: var(--teal);
  color: #fff !important;
  border-radius: 999px;
  padding: 9px 20px !important;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--teal-deep); text-decoration: none; }

.menu-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(760px 400px at 90% -20%, var(--mint), transparent 72%),
    var(--paper);
}
.hero .pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pill {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-deep);
  padding: 6px 14px;
}
.pill.sun { background: #faf0d8; border-color: #ecd9a4; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero .lede {
  margin-top: 20px;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-deep); color: #fff; }
.btn-outline { border: 2px solid var(--teal); color: var(--teal-deep); }
.btn-outline:hover { background: var(--mint); }

.hero-strip {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.strip-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.strip-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--teal-deep);
}
.strip-item span { font-size: 0.85rem; color: var(--ink-soft); }
.strip-item .star { color: var(--sun); }

/* ---------- sections ---------- */
section { padding: 70px 0; }
.section-head { margin-bottom: 38px; max-width: 640px; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.12;
}
.section-head p { margin-top: 12px; color: var(--ink-soft); }

/* department cards */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.dept {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.dept:hover { transform: translateY(-4px); }
.dept .glyph {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.dept h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.dept p { color: var(--ink-soft); font-size: 0.95rem; }
.dept .note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  .dept, .btn { transition: none; }
  .dept:hover, .btn:hover { transform: none; }
}

/* promise list */
.promise-wrap {
  background: var(--teal-deep);
  color: #eef5f0;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}
.promise-wrap h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin-bottom: 8px;
}
.promise-wrap > p { color: #bcd6cb; max-width: 60ch; }
.promise-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  list-style: none;
}
.promise-list h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}
.promise-list h3::before { content: "✓ "; color: var(--sun); }
.promise-list p { font-size: 0.92rem; color: #cfe0d7; }

/* review quotes */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.quote p { font-size: 0.97rem; }
.quote footer {
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.quote .stars { color: var(--sun); letter-spacing: 0.15em; margin-bottom: 10px; }

/* hours table */
.hours-table { width: 100%; border-collapse: collapse; max-width: 540px; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.hours-table th { font-weight: 700; color: var(--teal-deep); }
.hours-table td { color: var(--ink-soft); }
.hours-table tr.today th, .hours-table tr.today td {
  color: var(--ink);
  background: var(--mint);
}
.hours-table tr.today th::after {
  content: " · today";
  color: var(--teal);
  font-size: 0.72rem;
}

/* contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }
.contact-lines { list-style: none; }
.contact-lines li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
}
.contact-lines .lbl {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  min-width: 96px;
}

/* step list (visit page) */
.steps { list-style: none; counter-reset: step; max-width: 680px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--teal);
}
.steps h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.steps p { color: var(--ink-soft); font-size: 0.95rem; }

/* disclaimer */
.disclaimer {
  background: var(--mint);
  border: 1px solid var(--mint-2);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* CTA band */
.cta-band {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.1;
}
.cta-band p { margin: 14px auto 28px; color: var(--ink-soft); max-width: 54ch; }

/* footer */
.site-footer {
  background: var(--ink);
  color: #c9d6d2;
  padding: 48px 0 96px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 30px;
}
.site-footer h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #a9ccc0; }
.site-footer a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* floating WhatsApp */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1faa53;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(10, 60, 40, 0.35);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: translateY(-3px); color: #fff; text-decoration: none; }
.wa-float svg { width: 20px; height: 20px; flex: none; }

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
  .nav-cta { background: none; color: var(--teal) !important; padding: 12px 0 !important; border-radius: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 54px 0 46px; }
  section { padding: 52px 0; }
  .promise-wrap { padding: 34px 24px; }
}
.no-js .site-nav { display: flex; position: static; flex-direction: column; align-items: flex-start; background: none; border: none; padding: 8px 0 0; }
@media (min-width: 761px) {
  .no-js .site-nav { flex-direction: row; align-items: center; gap: 24px; }
}
.no-js .menu-toggle { display: none; }
