/* ============================================================
   Golden Hearts Daycare — shared styles
   Warm, playful, no fonts/images to download. Fully offline.
   ============================================================ */
:root {
  --cream: #FFF8F0;
  --paper: #FFFFFF;
  --peach: #FFB88A;
  --peach-soft: #FFE8D6;
  --coral: #E76F51;
  --teal: #2A9D8F;
  --teal-dark: #1F7A6F;
  --navy: #264653;
  --ink: #33413C;
  --lav: #B8A0D6;
  --golden: #F4A259;
  --green: #6A994E;
  --shadow: 0 10px 30px rgba(38, 70, 83, .12);
  --radius: 18px;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); line-height: 1.2; }
a { color: var(--teal-dark); }
img { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-block; padding: .7em 1.4em; border: 0; border-radius: 999px;
  background: var(--coral); color: #fff; font-weight: 700; font-size: 1rem;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 4px 14px rgba(231, 111, 81, .35);
}
.btn:hover { transform: translateY(-2px); }
.btn-teal { background: var(--teal); box-shadow: 0 4px 14px rgba(42, 157, 143, .35); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy)40; }
.chip {
  display: inline-block; padding: .25em .8em; border-radius: 999px;
  background: var(--teal); color: #fff; font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; background: var(--cream)dd;
  backdrop-filter: blur(6px); border-bottom: 1px solid rgba(38,70,83,.08);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); text-decoration: none; font-size: 1.1rem; }
.brand .paw { font-size: 1.5rem; }
.topbar nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.topbar nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.topbar nav a:hover { color: var(--coral); }
@media (max-width: 720px) { .topbar nav { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .2em 0; }
.hero p.lead { font-size: 1.15rem; color: var(--ink); max-width: 34em; }
.hero-blob {
  background: radial-gradient(120% 120% at 20% 20%, var(--peach-soft) 0%, var(--peach) 55%, var(--golden) 100%);
  border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
  min-height: 320px; display: flex; align-items: center; justify-content: center;
  font-size: 6rem; filter: drop-shadow(var(--shadow));
}
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero-blob { display: none; } }
.stats { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.6rem; color: var(--coral); font-family: Georgia, serif; }
.stat span { font-size: .9rem; color: var(--navy); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--peach-soft); border-radius: 40px 40px 0 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: 2rem; margin: .2em 0; }
.section-head p { color: var(--ink); opacity: .85; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card .emoji { font-size: 2.2rem; }
.card h3 { margin: .4em 0 .2em; }
.card p { margin: .3em 0 0; font-size: .95rem; opacity: .9; }

/* ---------- About / provider ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; align-items: center; }
.about .portrait {
  background: linear-gradient(135deg, var(--lav), var(--peach));
  border-radius: var(--radius); min-height: 300px; display: flex;
  align-items: flex-end; justify-content: center; font-size: 5rem; padding-bottom: 14px;
  box-shadow: var(--shadow);
}
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
.quote { border-left: 4px solid var(--golden); padding: .4em 0 .4em 1em; font-style: italic; color: var(--navy); }
ul.facts { list-style: none; padding: 0; margin: 14px 0 0; }
ul.facts li { padding: 6px 0 6px 30px; position: relative; }
ul.facts li::before { content: "✔"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

/* ---------- Daily rhythm ---------- */
.rhythm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .rhythm { grid-template-columns: repeat(2, 1fr); } }
.slot { background: var(--paper); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); border-top: 5px solid var(--teal); }
.slot.p { border-color: var(--coral); }
.slot.n { border-color: var(--lav); }
.slot.g { border-color: var(--green); }
.slot time { font-weight: 800; color: var(--teal-dark); font-size: .85rem; letter-spacing: .03em; }
.slot h4 { margin: .3em 0 .2em; color: var(--navy); }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--paper); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.quote-card .stars { color: var(--golden); letter-spacing: 2px; }
.quote-card .who { font-weight: 700; color: var(--navy); margin-top: 10px; font-size: .9rem; }

/* ---------- Tour form ---------- */
.tour { background: linear-gradient(120deg, var(--teal), var(--teal-dark)); color: #fff; border-radius: 40px; padding: 48px 8px; }
.tour h2, .tour .section-head h2 { color: #fff; }
.tour .section-head p { color: #eafff6; }
.tour form { max-width: 620px; margin: 0 auto; display: grid; gap: 12px; }
.tour .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .tour .row2 { grid-template-columns: 1fr; } }
.tour input, .tour select, .tour textarea {
  width: 100%; padding: .8em 1em; border: 0; border-radius: 12px; font-size: 1rem;
}
.tour textarea { min-height: 90px; resize: vertical; }
.tour .btn { justify-self: start; align-self: center; }
#tourDone { display: none; background: #ffffff26; padding: 18px 20px; border-radius: 14px; }

/* ---------- Footer ---------- */
footer { text-align: center; padding: 36px 0 44px; color: var(--navy); opacity: .8; font-size: .9rem; }
.demo-pill {
  display: inline-block; margin-top: 10px; padding: .3em .9em; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: .75rem; letter-spacing: .05em;
}

/* ============================================================
   SCHEDULER
   ============================================================ */
body.scheduler { background: #F2EFEA; }
.sched-shell { max-width: 1280px; margin: 0 auto; padding: 22px 20px 60px; }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px; }
.login-card { width: 400px; max-width: 94vw; background: var(--paper); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); text-align: center; }
.login-card .paw { font-size: 3rem; }
.login-card h1 { margin: .2em 0 .1em; font-size: 1.6rem; }
.login-card .sub { color: var(--ink); opacity: .75; font-size: .92rem; margin: 0 0 18px; }
.login-card input {
  width: 100%; padding: .75em 1em; margin: 6px 0; border-radius: 12px;
  border: 1.5px solid #D8E0DE; font-size: 1rem; background: var(--cream);
}
.login-card input:focus { outline: 2px solid var(--teal); }
.login-card button { width: 100%; margin-top: 12px; }
.login-error { color: var(--coral); font-weight: 700; font-size: .9rem; min-height: 1.2em; margin-top: 10px; }
.demo-hint {
  margin-top: 16px; font-size: .8rem; background: var(--teal)14; color: var(--teal-dark);
  padding: 8px 12px; border-radius: 10px; line-height: 1.5;
}

/* Dashboard header */
.dashbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--paper); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
}
.dashbar h1 { font-size: 1.3rem; margin: 0; }
.dashbar .date-chip { color: var(--navy); font-weight: 700; font-size: .95rem; }
.dashbar .spacer { flex: 1; }
.iconbtn {
  padding: .55em 1.1em; border-radius: 999px; border: 0; background: var(--teal);
  color: #fff; font-weight: 700; cursor: pointer; font-size: .9rem;
}
.iconbtn.gray { background: #7C8B86; }
.iconbtn.google { background: #4285F4; }
.dashbar select, .dashbar input[type="date"] { border: 1.5px solid #D8E0DE; border-radius: 10px; padding: .45em .7em; font-size: .9rem; }

/* Layout: grid + sidebar */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; margin-top: 18px; align-items: start; }
@media (max-width: 1000px) { .dash { grid-template-columns: 1fr; } }

/* Week grid — 22 half-hour rows (7:00 → 18:00) × 36px */
.weekcard { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.week-head { display: grid; grid-template-columns: 64px repeat(7, 1fr); background: var(--navy); color: #fff; }
.week-head div { padding: 10px 4px; text-align: center; font-weight: 700; font-size: .85rem; border-left: 1px solid #ffffff22; }
.week-head .today-col { background: var(--coral); }
.weekgrid { --pycell: 36px; --rows: 22; display: grid; grid-template-columns: 64px repeat(7, 1fr); position: relative; }
.weekgrid .gutter { height: calc(var(--pycell) * var(--rows)); }
.day-col {
  position: relative; border-left: 1px solid #ECE9E4; grid-column: auto;
  height: calc(var(--pycell) * var(--rows));
  background: repeating-linear-gradient(to bottom,
    transparent 0 calc(var(--pycell) * 2 - 1px), #ECE9E4 calc(var(--pycell) * 2 - 1px) calc(var(--pycell) * 2));
  cursor: copy;
}
.day-col.weekend { background-color: #F8F6F2; }
.day-col.today-col { background-color: #FFF6F1; }
.time-head { text-align: right; padding-right: 6px; font-size: .7rem; color: #8A938F; transform: translateY(-7px); }
.event {
  position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: 4px 8px;
  font-size: .78rem; font-weight: 700; color: #fff; cursor: pointer;
  overflow: hidden; border: 2px solid #ffffff55; box-shadow: 0 3px 8px rgba(0,0,0,.15);
  line-height: 1.25;
}
.event .ev-time { font-weight: 600; opacity: .9; font-size: .72rem; display: block; }
.event.src-google::after {
  content: "Google"; position: absolute; right: 6px; top: 4px;
  font-size: .6rem; background: #ffffff33; padding: 1px 6px; border-radius: 999px;
}

/* Sidebar */
.sidecard { background: var(--paper); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }
.sidecard h3 { margin: 0 0 8px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.gstatus { font-size: .85rem; }
.synclog {
  margin-top: 10px; background: #101820; color: #9FE8DC; font-family: Consolas, monospace;
  font-size: .72rem; border-radius: 10px; padding: 10px; max-height: 150px; overflow: auto; white-space: pre-wrap;
}
.req-item { border: 1.5px solid #ECE9E4; border-radius: 12px; padding: 10px 12px; margin-top: 10px; font-size: .85rem; }
.req-item b { color: var(--navy); }
.req-item .btn { margin-top: 6px; padding: .35em 1em; font-size: .78rem; }

/* Modal */
.modal-scrim { position: fixed; inset: 0; background: rgba(20, 30, 35, .5); display: none; align-items: center; justify-content: center; z-index: 90; padding: 20px; }
.modal-scrim.open { display: flex; }
.modal { background: var(--paper); border-radius: 18px; padding: 26px; width: 430px; max-width: 96vw; max-height: 90vh; overflow: auto; box-shadow: var(--shadow); }
.modal h2 { margin: 0 0 4px; font-size: 1.25rem; }
.modal .modal-sub { font-size: .85rem; opacity: .75; margin: 0 0 14px; }
.modal label { display: block; font-size: .8rem; font-weight: 700; color: var(--navy); margin: 10px 0 3px; text-transform: uppercase; letter-spacing: .04em; }
.modal input, .modal select, .modal textarea {
  width: 100%; padding: .6em .8em; border-radius: 10px; border: 1.5px solid #D8E0DE; font-size: .95rem; background: var(--cream);
}
.modal .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; flex-wrap: wrap; }
.modal-actions .btn { padding: .55em 1.3em; font-size: .9rem; }
.btn-danger { background: var(--coral); }

/* Google consent simulation */
.gconsent { font-family: "Segoe UI", system-ui, sans-serif; }
.gconsent .g-top { text-align: center; padding: 6px 0 2px; }
.gconsent .g-logo { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.5px; }
.gconsent .g-logo span:nth-child(1) { color: #4285F4; }
.gconsent .g-logo span:nth-child(2) { color: #DB4437; }
.gconsent .g-logo span:nth-child(3) { color: #F4B400; }
.gconsent .g-logo span:nth-child(4) { color: #4285F4; }
.gconsent .g-logo span:nth-child(5) { color: #0F9D58; }
.gconsent .g-logo span:nth-child(6) { color: #DB4437; }
.gconsent .g-acc { text-align: center; margin: 12px 0; }
.gconsent .g-acc .avatar { width: 52px; height: 52px; border-radius: 50%; background: #7C4DFF; color: #fff; font-size: 1.6rem; line-height: 52px; margin: 0 auto 8px; font-weight: 700; }
.gconsent ul { font-size: .88rem; color: #333; padding-left: 18px; margin: 10px 0 16px; }
.gconsent .g-actions { display: flex; justify-content: space-between; border-top: 1px solid #EAE9E6; padding-top: 14px; }
.gconsent .g-plain { background: transparent; color: #1a73e8; border: 0; font-weight: 600; cursor: pointer; font-size: .95rem; }
.gconsent .g-allow { background: #1a73e8; color: #fff; border: 0; border-radius: 6px; padding: .6em 1.4em; font-weight: 600; cursor: pointer; font-size: .95rem; }
.sim-note { text-align: center; font-size: .72rem; color: #B9451F; background: #FFF3EC; border: 1px dashed #F4A259; border-radius: 10px; padding: 6px 8px; margin-top: 4px; }
