/* =========================================
   Hill Valley Daycare – styles
   Colours taken from the logo
   ========================================= */
:root {
  --sky: #00a3e8;
  --sky-soft: #dff4fd;
  --grass: #23b14d;
  --grass-dark: #168a3b;
  --leaf: #75c15a;
  --leaf-soft: #e9f7e2;
  --sun: #ffe14d;
  --sun-soft: #fff8d6;
  --orange: #ff8a3d;
  --purple: #8e6bd8;
  --pink: #ff8fb8;
  --ink: #1d2b3a;
  --ink-soft: #4a5a6a;
  --cream: #fffcf3;
  --white: #ffffff;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(29, 43, 58, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
h1, h2, h3 {
  font-family: "Fredoka", "Nunito", sans-serif;
  line-height: 1.1;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--white);
  background: var(--grass-dark);
  padding: 14px 30px;
  border-radius: 999px;
  box-shadow: 0 5px 0 #0f6a2c;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: var(--grass); transform: translateY(-2px); box-shadow: 0 7px 0 #0f6a2c; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #0f6a2c; }
.btn:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; }
.btn-big { font-size: 1.35rem; padding: 18px 38px; }
.btn-small { font-size: 1rem; padding: 10px 22px; box-shadow: 0 4px 0 #0f6a2c; }

/* ---------- Top menu ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 4px solid var(--sun);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 56px; height: auto; }
.brand span { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--grass-dark); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-family: "Fredoka", sans-serif; font-weight: 500; font-size: 1.05rem;
  text-decoration: none; color: var(--ink);
}
.nav-links a:hover { color: var(--sky); }

/* ---------- Welcome / hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #b9e8fb 0%, var(--sky-soft) 60%, var(--leaf-soft) 100%);
  padding: 70px 0 150px;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 50px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero .lead { font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--ink-soft); margin-bottom: 34px; max-width: 30ch; }
.hero .since { color: var(--sky); font-weight: 800; }
.hero-photo { max-width: 440px; justify-self: center; width: 100%; }
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: 42% 58% 55% 45% / 45% 42% 58% 55%;
  border: 10px solid var(--white);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.sun {
  position: absolute; top: -70px; right: 6%;
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 26px rgba(255, 225, 77, .35), 0 0 0 56px rgba(255, 225, 77, .18);
}
.cloud {
  position: absolute; background: var(--white); border-radius: 999px; opacity: .9;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: var(--white); border-radius: 50%; }
.cloud-1 { width: 150px; height: 46px; top: 40px; left: 2%; }
.cloud-1::before { width: 70px; height: 70px; top: -36px; left: 22px; }
.cloud-1::after { width: 52px; height: 52px; top: -24px; left: 76px; }
.cloud-2 { width: 110px; height: 36px; top: 50px; left: 50%; }
.cloud-2::before { width: 52px; height: 52px; top: -26px; left: 16px; }
.cloud-2::after { width: 40px; height: 40px; top: -18px; left: 56px; }
.hills { position: absolute; bottom: -1px; left: 0; width: 100%; height: 130px; z-index: 1; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-green { background: var(--grass); color: var(--white); }
.section-blue { background: var(--sky-soft); }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; margin-bottom: 14px; }
.section-head .lead { font-size: 1.25rem; color: var(--ink-soft); margin-bottom: 28px; }
.section-green .lead { color: #eafbe9; }
.section-green .btn { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 #d4b100; }
.section-green .btn:hover { background: #fff07a; box-shadow: 0 7px 0 #d4b100; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 16px;
}
.g-item {
  border-radius: 22px; overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
  transition: transform .2s ease;
}
.g-item:nth-child(odd) { transform: rotate(-1deg); }
.g-item:nth-child(even) { transform: rotate(1deg); }
.g-item:hover { transform: scale(1.03) rotate(0); }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }

/* ---------- About cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 10px solid var(--c);
}
.card h3 { font-size: 1.45rem; margin: 14px 0 8px; color: var(--ink); }
.card p { color: var(--ink-soft); font-size: 1.05rem; }
.icon {
  width: 72px; height: 72px; margin-inline: auto;
  display: grid; place-items: center;
  font-size: 2.1rem; border-radius: 50%;
  background: var(--sun-soft);
}
.c-orange { --c: var(--orange); }
.c-blue   { --c: var(--sky); }
.c-green  { --c: var(--grass); }
.c-purple { --c: var(--purple); }

.hours {
  margin: 34px auto 0; max-width: 680px;
  display: flex; align-items: center; gap: 22px;
  background: var(--sun-soft);
  border: 3px dashed #f2c94c;
  border-radius: var(--radius);
  padding: 22px 30px;
}
.hours .icon { margin: 0; flex-shrink: 0; background: var(--white); }
.nowrap { white-space: nowrap; }
.hours h3 { font-size: 1.45rem; margin-bottom: 4px; }

/* ---------- Notices (timeline) ---------- */
.narrow { width: min(820px, 100% - 40px); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 36px; position: relative; display: grid; gap: 24px; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px;
  width: 4px; border-radius: 4px; background: #b9e3f6;
}
.notice {
  position: relative;
  background: var(--white);
  border-radius: 22px;
  padding: 22px 26px;
  box-shadow: var(--shadow);
}
.notice::before {
  content: ""; position: absolute; left: -34px; top: 26px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c, var(--grass));
  box-shadow: 0 0 0 5px var(--sky-soft);
}
.notice h3 { font-size: 1.45rem; margin: 4px 0 6px; }
.notice p { color: var(--ink-soft); }
.notice .notice-date { font-weight: 700; color: var(--c, var(--grass)); font-size: 1rem; }
.n-green  { --c: var(--grass-dark); }
.n-blue   { --c: #0083bd; }
.n-orange { --c: #e0661a; }
.n-purple { --c: var(--purple); }
.n-pink   { --c: #e0558a; }

/* ---------- Contact ---------- */
.contact { background: var(--sun-soft); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  display: block; text-decoration: none; text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  box-shadow: var(--shadow);
  border-bottom: 10px solid var(--c);
  transition: transform .15s ease;
  overflow-wrap: anywhere;
}
.contact-card:hover { transform: translateY(-5px); }
.contact-card h3 { font-size: 1.4rem; margin: 14px 0 6px; }
.contact-card p { color: var(--ink-soft); font-size: 1.02rem; }
.cc-green  { --c: var(--grass); }
.cc-orange { --c: var(--orange); }
.cc-purple { --c: var(--purple); }

/* ---------- Footer ---------- */
.footer { background: var(--grass-dark); color: var(--white); padding: 40px 0; text-align: center; }
.footer-inner { display: grid; justify-items: center; gap: 8px; }
.footer img { background: var(--white); border-radius: 50%; padding: 6px; width: 84px; height: auto; }
.footer p { font-family: "Fredoka", sans-serif; font-size: 1.15rem; }
.footer .small { font-family: "Nunito", sans-serif; font-size: .95rem; opacity: .85; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Photo viewer ---------- */
.viewer {
  border: none; padding: 0; background: transparent;
  max-width: 92vw; max-height: 90vh;
}
.viewer::backdrop { background: rgba(10, 20, 30, .85); }
.viewer img { max-width: 92vw; max-height: 88vh; border-radius: 18px; border: 6px solid var(--white); }
.viewer-close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--white); font-size: 1.2rem; cursor: pointer;
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .brand { margin-right: auto; }
  .hero { padding: 50px 0 140px; }
  .hero-photo { max-width: 340px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero .lead { margin-inline: auto; }
  .sun { width: 150px; height: 150px; top: -50px; }
  .cloud-2 { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g-item.tall { grid-row: span 1; }
  .g-item.hide-sm { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

/* ---------- Phone ---------- */
@media (max-width: 560px) {
  .timeline { padding-left: 30px; }
  .timeline::before { left: 8px; }
  .notice { padding: 18px 20px; }
  .notice::before { left: -30px; width: 20px; height: 20px; }
  body { font-size: 1.05rem; }
  .nav-inner { height: 68px; gap: 12px; }
  .brand img { width: 46px; }
  .brand span { font-size: 1.1rem; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .gallery { grid-auto-rows: 150px; gap: 12px; }
  .g-item.wide { grid-column: span 2; }
  .cards, .contact-grid { grid-template-columns: 1fr; }
  .hours { flex-direction: column; text-align: center; padding: 22px; }
  .btn-big { font-size: 1.2rem; padding: 16px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
