/* Manila Polyclinic Al Rigga — concept by Beans Digital
   Palette: deep harbour blue + Philippine-sun gold on clinical white.
   Type: Fraunces (warm display serif) + Figtree (friendly sans). */

@view-transition { navigation: auto; }

:root {
  --blue-950: #092c47;
  --blue-900: #0c3c60;
  --blue-700: #11558c;
  --blue-100: #e3eff9;
  --blue-50: #f2f8fd;
  --gold-500: #f2b33d;
  --gold-600: #dd9a1b;
  --gold-100: #fdf3de;
  --ink: #15293b;
  --muted: #51697e;
  --line: #d8e5ef;
  --bg: #ffffff;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(12, 60, 96, 0.1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---------- concept banner ---------- */
.concept-banner {
  background: var(--blue-950);
  color: #cfe3f3;
  font-size: 0.78rem;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.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: 16px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue-900);
  view-transition-name: site-logo;
}

.logo .sun {
  width: 36px;
  height: 36px;
  flex: none;
}

.logo b {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.1;
  display: block;
}

.logo span.sub {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-600);
  font-weight: 700;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover { background: var(--blue-100); color: var(--blue-900); }

.main-nav a.active { background: var(--blue-900); color: #fff; }

.main-nav a.nav-cta {
  background: var(--gold-500);
  color: var(--blue-950);
  margin-left: 6px;
}

.main-nav a.nav-cta:hover { background: var(--gold-600); color: #fff; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--blue-900);
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, var(--gold-100), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, var(--blue-100), transparent 60%),
    var(--blue-50);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  padding: 84px 0 64px;
  text-align: center;
  position: relative;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.3rem, 5.8vw, 4rem);
  line-height: 1.08;
  color: var(--blue-950);
  margin: 22px auto 18px;
  max-width: 17ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-600);
}

.hero p.lead {
  max-width: 54ch;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue-900);
  color: #fff;
  box-shadow: 0 10px 24px rgba(12, 60, 96, 0.28);
}

.btn-primary:hover { background: var(--blue-700); }

.btn-gold {
  background: var(--gold-500);
  color: var(--blue-950);
  box-shadow: 0 10px 24px rgba(242, 179, 61, 0.35);
}

.btn-gold:hover { background: var(--gold-600); color: #fff; }

.btn-ghost {
  background: #fff;
  color: var(--blue-900);
  border: 1.5px solid var(--line);
}

.hero .proof {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: var(--shadow);
}

.hero .proof .stars { color: var(--gold-500); letter-spacing: 2px; font-size: 1.05rem; }

.hero .proof small { color: var(--muted); display: block; font-size: 0.8rem; }

.hero .proof b { color: var(--blue-950); font-size: 1.05rem; }

/* wave divider */
.wave { display: block; width: 100%; height: 56px; margin-bottom: -1px; }

/* ---------- sections ---------- */
section.block { padding: 72px 0; }

section.block.tint { background: var(--blue-50); }

.kicker {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-600);
  margin: 0 0 10px;
}

h2.title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  color: var(--blue-950);
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 24ch;
}

.center { text-align: center; }

.center h2.title { margin-inline: auto; }

p.sub { color: var(--muted); max-width: 60ch; margin: 0 0 36px; }

.center p.sub { margin-inline: auto; }

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--gold-500);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-100);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--blue-700);
}

.card.gold .icon { background: var(--gold-100); color: var(--gold-600); }

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  margin: 0 0 8px;
  color: var(--blue-950);
}

.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.card .more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-700);
  text-decoration: none;
}

.card .more:hover { color: var(--gold-600); }

/* ---------- stats band ---------- */
.stats-band {
  background: var(--blue-950);
  color: #fff;
  border-radius: var(--radius);
  padding: 42px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 26px;
  text-align: center;
}

.stats-band .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold-500);
  line-height: 1;
}

.stats-band .lbl { color: #bcd4e8; font-size: 0.9rem; margin-top: 8px; }

/* ---------- review wall ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}

.review .stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 12px; }

.review p { color: var(--ink); font-size: 0.96rem; margin: 0 0 14px; }

.review cite { color: var(--muted); font-size: 0.82rem; font-style: normal; }

/* ---------- hours & contact ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.hours-table { width: 100%; border-collapse: collapse; }

.hours-table th, .hours-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.hours-table th { color: var(--blue-950); font-weight: 700; }

.hours-table td { color: var(--muted); }

.hours-table tr.today th, .hours-table tr.today td {
  background: var(--gold-100);
  color: var(--blue-950);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.map-frame {
  border: 0;
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }

.contact-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }

.contact-list .ci {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: grid; place-items: center;
}

.contact-list a { color: var(--blue-700); font-weight: 700; text-decoration: none; }

.contact-list a:hover { color: var(--gold-600); }

/* ---------- FAQ ---------- */
details.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 22px;
  margin-bottom: 12px;
}

details.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue-950);
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details.faq summary::after { content: "+"; color: var(--gold-600); font-size: 1.3rem; }

details.faq[open] summary::after { content: "–"; }

details.faq p { color: var(--muted); margin: 0 0 16px; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
  border-radius: var(--radius);
  color: #fff;
  padding: 52px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin: 0 0 12px;
}

.cta-strip p { color: #cfe3f3; margin: 0 0 26px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--blue-950);
  color: #a9c5db;
  padding: 54px 0 30px;
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 14px; }

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }

.site-footer a { color: #a9c5db; text-decoration: none; font-size: 0.92rem; }

.site-footer a:hover { color: var(--gold-500); }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.82rem;
}

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}

.wa-float:hover { transform: scale(1.08); }

.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- reveal animations (JS adds .js to <html>) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .wa-float { transition: none; }
  @view-transition { navigation: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    display: none;
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: flex; }

  .main-nav a { padding: 13px 14px; border-radius: 12px; }

  .main-nav a.nav-cta { margin-left: 0; text-align: center; }

  .split { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .hero-inner { padding: 58px 0 48px; }
}
