/* ============================================================
   Doors Open Childcare — Richmond
   Shared stylesheet · light, airy, warm & welcoming
   Type: Fraunces (display) + Figtree (body)
   ============================================================ */

:root {
  /* Colour */
  --paper:      #FCF8F3;   /* warm ivory background */
  --paper-2:    #FFFFFF;   /* cards / raised surfaces */
  --ink:        #453B33;   /* warm soft-brown text */
  --ink-soft:   #7C6E62;   /* warm taupe secondary */
  --coral:      #DD8560;   /* soft coral — decorative accents */
  --coral-deep: #A24E29;   /* accessible terracotta — text, buttons */
  --coral-hover:#8C4322;   /* button hover */
  --honey:      #E7B15C;   /* warm honey secondary */
  --honey-2:    #F8E6C4;   /* soft honey fill */
  --rose:       #E27A6B;   /* rosy pop */
  --sand:       #F3E6D8;   /* soft warm fill */
  --line:       #EDE3D6;   /* warm hairlines */

  /* Type */
  --display:  "Fraunces", Georgia, "Times New Roman", serif;
  --body:     "Figtree", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --step--1: clamp(0.83rem, 0.79rem + 0.2vw, 0.94rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.55rem, 1.35rem + 1vw, 2.05rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.5rem, 1.9rem + 3.2vw, 4.3rem);

  --maxw: 1080px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 1px 2px rgba(69,59,51,.05), 0 8px 20px -16px rgba(69,59,51,.35);
  --shadow: 0 2px 6px rgba(69,59,51,.06), 0 18px 40px -22px rgba(69,59,51,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: var(--step-4); font-weight: 600; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; }

p { margin: 0 0 1rem; max-width: 66ch; }

a { color: var(--coral-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--coral-hover); }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-family: var(--body); font-weight: 700;
  font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase;
  color: var(--coral-deep);
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--honey); display: inline-block; }

/* Skip link + focus */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 0; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 4px; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; color: var(--coral-deep); }
.nav-links { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-block; padding: .5rem .7rem; border-radius: 10px; color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { background: var(--sand); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--coral-deep); background: var(--sand); }

.nav-toggle { display: none; border: 1px solid var(--line); background: var(--paper-2); border-radius: 10px; padding: .5rem .6rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { display: block; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--paper-2); border-bottom: 1px solid var(--line); padding: .6rem 1.25rem 1rem;
    box-shadow: var(--shadow-soft); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .5rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--body); font-weight: 600; font-size: 1rem; padding: .8rem 1.3rem; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .12s ease, background .12s ease; }
.btn-primary { background: var(--coral-deep); color: #fff; }
.btn-primary:hover { background: var(--coral-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--coral-deep); border-color: var(--line); }
.btn-ghost:hover { background: var(--sand); color: var(--coral-deep); transform: translateY(-1px); }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.2rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 42ch; }
.hero-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; background: var(--paper-2); border: 1px solid var(--line); padding: .45rem .8rem; border-radius: 999px; font-size: .92rem; font-weight: 500; }
.chip svg { width: 16px; height: 16px; color: var(--coral-deep); }
.cta-row { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-photo { width: 100%; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Placeholder image tiles (swap for <img> when you have photos) */
.ph { width: 100%; height: 100%; display: grid; place-items: center; }
.ph svg { width: 54px; height: 54px; color: #fff; opacity: .95; }
.ph--hero    { background: linear-gradient(140deg, #F7DCA9, #EEA97C 55%, #E4886B); }
.ph--hero svg{ width: 88px; height: 88px; }
.ph--parents { background: linear-gradient(140deg, #F2B382, #E98C63); }
.ph--phil    { background: linear-gradient(140deg, #EFCB7C, #E7B15C); }
.ph--loc     { background: linear-gradient(140deg, #EC9E84, #E27A6B); }
.ph--prod    { background: linear-gradient(140deg, #ECBB82, #DD9A5A); }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); }
.lead-in { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }

/* Learn More cards */
.learn-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .learn-grid { grid-template-columns: 1fr 1fr; } }
.learn-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-soft); transition: transform .15s ease, box-shadow .15s ease;
}
.learn-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.learn-media { aspect-ratio: 16 / 10; width: 100%; }
.learn-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.learn-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.learn-body h3 { margin: 0; font-size: 1.3rem; }
.learn-body p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.learn-body .go { margin-top: auto; padding-top: .5rem; color: var(--coral-deep); font-weight: 600; font-size: .96rem; }

/* General card grid (kept for reuse) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.4rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .5rem; transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--coral); }
.card .num { font-family: var(--display); color: var(--coral-deep); font-size: 1.1rem; font-weight: 600; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.card .go { margin-top: .4rem; color: var(--coral-deep); font-weight: 600; font-size: .95rem; }

/* Locations */
.map-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); aspect-ratio: 16 / 9; margin-bottom: 2rem; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder { height: 100%; display: grid; place-content: center; text-align: center; gap: .3rem; color: var(--ink-soft); padding: 2rem; }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.loc-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.3rem; }
.loc-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.loc-card .care { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--coral-deep); background: var(--sand); padding: .2rem .55rem; border-radius: 999px; margin-bottom: .7rem; }
.loc-card dl { margin: 0; display: grid; grid-template-columns: 1.2rem 1fr; gap: .35rem .6rem; font-size: .95rem; }
.loc-card dt { color: var(--coral-deep); display: grid; place-items: center; }
.loc-card dd { margin: 0; color: var(--ink-soft); }
.loc-card a { word-break: break-word; }

/* Philosophy blocks */
.phil { display: grid; gap: 1.1rem; }
.phil-item { background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--honey); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.phil-item h3 { margin-bottom: .3rem; }
.phil-item .origin { font-size: .85rem; color: var(--ink-soft); font-style: italic; margin-bottom: .6rem; }
.phil-item p:last-child { margin-bottom: 0; }
.callout { background: linear-gradient(180deg, var(--honey-2), #fff); border: 1px solid #EAD6A6; border-radius: var(--radius-lg); padding: 1.6rem; margin-top: 2rem; }
.callout h3 { color: var(--coral-deep); }
.callout p:last-child { margin-bottom: 0; }

/* Checklist */
.check { display: grid; gap: 1rem; counter-reset: q; }
.check-item { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem 1.2rem 3.4rem; position: relative; }
.check-item::before { counter-increment: q; content: counter(q); position: absolute; left: 1.1rem; top: 1.15rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--coral-deep); color: #fff; font-family: var(--display); font-weight: 600; display: grid; place-items: center; font-size: .95rem; }
.check-item h3 { margin-bottom: .3rem; font-size: 1.1rem; }
.check-item p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.check-item ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .95rem; }
.check-item li { margin-bottom: .25rem; }

/* Prose helper */
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; max-width: 64ch; }

/* Editable placeholder marker */
.todo { background: #FCE9C7; color: #7A5200; border: 1px dashed #D9AE52; padding: .05rem .4rem; border-radius: 6px; font-weight: 600; font-size: .95em; }

/* Footer — light & airy */
.site-footer { background: #F5EBDD; color: var(--ink-soft); border-top: 1px solid var(--line); padding: 2.6rem 0 2rem; margin-top: 3rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.site-footer h3 { color: var(--ink); font-size: 1.15rem; }
.site-footer p { color: var(--ink-soft); font-size: .95rem; max-width: 40ch; }
.site-footer a { color: var(--coral-deep); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--coral-deep); text-decoration: underline; }
.foot-note { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid #E4D6C4; font-size: .85rem; color: var(--ink-soft); }

/* Responsive */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .foot-grid { flex-direction: column; gap: 1.4rem; }
}

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