/* Sunrise Care — calm, rounded healthcare theme
   Fonts: Nunito (rounded headings) + DM Sans (body)
   Motion: gentle floats, soft slide-ups, smooth accordion */

:root {
  --bg: #ffffff;
  --mint: #e8f6f3;
  --mint-2: #d3efe9;
  --teal: #0f8f86;
  --teal-dark: #0a6b64;
  --coral: #ff8a65;
  --ink: #16323a;
  --muted: #5d7880;
  --line: #e2ecee;
  --r: 20px;
  --shadow: 0 10px 30px rgba(15, 80, 90, .08);
  --ease: cubic-bezier(.25, .8, .25, 1);
  --head: "Nunito", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
section { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 5vw, 4rem); }
.head { text-align: center; margin-bottom: 2.8rem; }
.chip { display: inline-block; background: var(--mint); color: var(--teal-dark); font-weight: 700; font-size: .8rem; padding: .35rem .9rem; border-radius: 99px; margin-bottom: .9rem; }

.ph { position: relative; background: linear-gradient(135deg, var(--mint-2), #bfe6df 55%, #9fd8cf); overflow: hidden; }
.ph-icon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; opacity: .6; z-index: 0; }
.ph img { position: relative; z-index: 1; }

/* ---------- top + nav ---------- */
.topbar { background: var(--teal-dark); color: #fff; font-size: .85rem; display: flex; justify-content: space-between; padding: .45rem clamp(1rem, 5vw, 4rem); }
.topbar a { font-weight: 700; text-decoration: underline; }
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 2rem; padding: .9rem clamp(1rem, 5vw, 4rem); background: rgba(255,255,255,.9); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.logo { font-family: var(--head); font-weight: 700; font-size: 1.35rem; display: flex; align-items: center; gap: .45rem; }
.logo b { color: var(--teal); font-weight: 800; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; }
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a { font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--teal); }
.burger { display: none; background: var(--mint); border: 0; width: 42px; height: 42px; border-radius: 12px; font-size: 1.2rem; cursor: pointer; color: var(--teal-dark); }

.btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--teal); color: #fff; border: 2px solid var(--teal); padding: .7rem 1.3rem; border-radius: 14px; font: 700 .95rem var(--body); cursor: pointer; transition: all .3s var(--ease); }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,143,134,.25); }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--mint); color: var(--teal-dark); box-shadow: none; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; overflow: hidden; min-height: calc(100vh - 110px); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; animation: float 14s ease-in-out infinite; }
.b1 { width: 480px; height: 480px; background: #c9efe8; top: -120px; right: -100px; }
.b2 { width: 360px; height: 360px; background: #ffe3d8; bottom: -120px; left: -80px; animation-delay: -6s; }
@keyframes float { 50% { transform: translate(30px, -30px) scale(1.06); } }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; margin: .3rem 0 1.2rem; }
.hl { color: var(--teal); position: relative; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .22em; background: #ffd8c9; z-index: -1; border-radius: 4px; }
.hero-copy > p { font-size: 1.15rem; color: var(--muted); max-width: 500px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.trust { list-style: none; display: flex; gap: 2.5rem; margin-top: 2.8rem; flex-wrap: wrap; }
.trust b { display: block; font-family: var(--head); font-size: 2rem; font-weight: 800; color: var(--ink); }
.trust span { color: var(--muted); font-size: .9rem; }
.hero-visual { position: relative; }
.hero-img { height: min(560px, 70vh); border-radius: 200px 200px var(--r) var(--r); box-shadow: var(--shadow); }
.float-card { position: absolute; display: flex; gap: .7rem; align-items: center; background: #fff; padding: .8rem 1.1rem; border-radius: 16px; box-shadow: var(--shadow); font-size: .9rem; z-index: 2; animation: bob 5s ease-in-out infinite; }
.float-card b { display: block; }
.float-card small { color: var(--muted); }
.fc1 { left: -30px; top: 22%; }
.fc2 { right: -20px; bottom: 14%; animation-delay: -2.5s; font-size: 1.4rem; }
.fc2 div { font-size: .9rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #23c26b; box-shadow: 0 0 0 0 rgba(35,194,107,.6); animation: pulse 2s infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(35,194,107,0); } 100% { box-shadow: 0 0 0 0 rgba(35,194,107,0); } }

/* ---------- services ---------- */
.services { background: var(--mint); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; max-width: 1150px; margin: 0 auto; }
.svc { background: #fff; border-radius: var(--r); padding: 1.6rem; transition: transform .35s var(--ease), box-shadow .35s; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--mint); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1rem; transition: transform .4s var(--ease); }
.svc:hover .ic { transform: rotate(-8deg) scale(1.08); }
.svc h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.svc p { color: var(--muted); font-size: .95rem; }

/* ---------- doctors ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { border: 1.5px solid var(--line); background: #fff; padding: .5rem 1rem; border-radius: 99px; font: 500 .9rem var(--body); cursor: pointer; color: var(--muted); transition: all .25s; }
.filters button.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; max-width: 1150px; margin: 0 auto; }
.doc { border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; transition: transform .35s var(--ease), box-shadow .35s, opacity .35s; animation: fadeUp .5s var(--ease) both; }
.doc:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.doc-ava { height: 170px; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 3rem; color: #fff; }
.doc-body { padding: 1.2rem; }
.doc-body h3 { font-size: 1.1rem; }
.doc-body .spec { color: var(--teal); font-weight: 700; font-size: .85rem; }
.doc-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin: .7rem 0 1rem; }
.doc-next { display: flex; align-items: center; gap: .5rem; background: var(--mint); padding: .5rem .7rem; border-radius: 10px; font-size: .85rem; margin-bottom: .9rem; }
.doc .btn { width: 100%; justify-content: center; }

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1050px; margin: 0 auto; counter-reset: s; position: relative; }
.steps li { text-align: center; padding: 1rem; }
.steps span { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: #fff; font: 800 1.5rem var(--head); margin-bottom: 1rem; box-shadow: 0 0 0 10px var(--mint); }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); }

/* ---------- booking ---------- */
.book { background: linear-gradient(180deg, #fff, var(--mint)); }
.book-card { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; background: #fff; border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.book-side { background: var(--teal); color: #fff; padding: 2.5rem; display: flex; flex-direction: column; }
.book-side p { opacity: .85; margin: .8rem 0 2rem; }
.progress { list-style: none; display: flex; flex-direction: column; gap: .9rem; counter-reset: p; }
.progress li { display: flex; align-items: center; gap: .8rem; opacity: .55; font-weight: 700; transition: opacity .3s; counter-increment: p; }
.progress li::before { content: counter(p); width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font-size: .85rem; transition: all .3s; }
.progress li.on { opacity: 1; }
.progress li.on::before { background: #fff; color: var(--teal); }
.insurers { margin-top: auto; padding-top: 2rem; }
.insurers small { opacity: .7; }
.insurers div { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.insurers span { background: rgba(255,255,255,.15); padding: .25rem .6rem; border-radius: 8px; font-size: .8rem; }
form { padding: 2.5rem; position: relative; min-height: 420px; }
.step { display: none; animation: fadeUp .45s var(--ease); }
.step.on { display: block; }
label { display: flex; flex-direction: column; gap: .4rem; font-weight: 700; font-size: .9rem; margin-bottom: 1.2rem; }
input, select, textarea { font: 400 1rem var(--body); padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfdfd; color: var(--ink); transition: border-color .2s, box-shadow .2s; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,143,134,.12); }
input.bad { border-color: #e5534b; }
.nav-row { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1rem; }
.day { flex: 0 0 auto; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: .6rem .8rem; text-align: center; cursor: pointer; font-family: var(--body); color: var(--ink); min-width: 64px; transition: all .25s; }
.day small { display: block; color: var(--muted); font-size: .75rem; }
.day b { font-size: 1.2rem; }
.day.on { border-color: var(--teal); background: var(--teal); color: #fff; }
.day.on small { color: #d5f3ef; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .5rem; }
.time { border: 1.5px solid var(--line); background: #fff; padding: .55rem; border-radius: 10px; cursor: pointer; font: 500 .9rem var(--body); color: var(--ink); transition: all .2s; }
.time:hover:not(:disabled) { border-color: var(--teal); }
.time.on { background: var(--mint); border-color: var(--teal); color: var(--teal-dark); font-weight: 700; }
.time:disabled { opacity: .35; cursor: not-allowed; }
.done { text-align: center; padding-top: 2rem; }
.tick { width: 80px; height: 80px; border-radius: 50%; background: #23c26b; color: #fff; display: grid; place-items: center; font-size: 2.4rem; margin: 0 auto 1rem; animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } }
.done p { color: var(--muted); margin: .5rem 0 1.5rem; }
.err { color: #d0433b; font-weight: 500; font-size: .9rem; min-height: 1.4em; margin-top: .5rem; }

/* ---------- faq ---------- */
.acc { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.qa { border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .3s; }
.qa.open { border-color: var(--teal); }
.qa button { width: 100%; text-align: left; background: none; border: 0; padding: 1.1rem 1.3rem; font: 700 1.02rem var(--body); color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; }
.qa button i { font-style: normal; color: var(--teal); transition: transform .35s var(--ease); font-size: 1.3rem; line-height: 1; }
.qa.open button i { transform: rotate(45deg); }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.qa.open .ans { grid-template-rows: 1fr; }
.qa .ans p { overflow: hidden; padding: 0 1.3rem; color: var(--muted); }
.qa.open .ans p { padding-bottom: 1.2rem; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; align-items: flex-end; padding: 2.5rem clamp(1rem, 5vw, 4rem); background: var(--ink); color: #c8d7da; font-size: .9rem; }
.footer .logo { color: #fff; margin-bottom: .6rem; }
.fine { opacity: .7; }

/* ---------- entrance (only hide when JS is there to reveal) ---------- */
.js .up { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .up.in { opacity: 1; transform: none; }

/* ---------- accessibility ---------- */
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

@media (max-width: 900px) {
  .hide-sm { display: none; }
  .burger { display: block; margin-left: auto; }
  .nav > .btn { display: none; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); margin: 0; }
  .nav-links a { padding: 1rem clamp(1rem, 5vw, 4rem); border-top: 1px solid var(--line); }
  .nav.open .nav-links { max-height: 300px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-img { height: 360px; }
  .fc1 { left: 10px; } .fc2 { right: 10px; }
  .trust { gap: 1.4rem; justify-content: space-between; }
  .trust b { font-size: 1.6rem; }
  .steps { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 1fr; }
  .book-side, form { padding: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .up { opacity: 1; transform: none; }
}
