/* =========================================================
   Rossana's Family Daycare — main.css
   Palette pulled from the house itself: teepee canvas, the
   playhouse's blue roof, the yellow stool, the grass, the
   pink table. Bunting flags = the signature motif.
   ========================================================= */

@font-face {
	font-family: 'Fraunces';
	src: url('../fonts/Fraunces.ttf') format('truetype');
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: 'Nunito';
	src: url('../fonts/Nunito.ttf') format('truetype');
	font-weight: 200 900;
	font-display: swap;
}

:root {
	--cream: #FBF6EE;
	--sand: #F1E8D8;
	--ink: #2B2A33;
	--ink-soft: #5B5966;
	--sky: #6FA8D6;
	--sky-deep: #3F7FB5;
	--sky-pale: #EAF3FA;
	--sun: #F8D878;
	--leaf: #7DC49A;
	--berry: #E890A8;
	--line: rgba(43, 42, 51, .12);

	--display: 'Fraunces', Georgia, serif;
	--body: 'Nunito', 'Segoe UI', system-ui, sans-serif;

	--wrap: 1140px;
	--gutter: clamp(20px, 5vw, 48px);
	--radius: 18px;
	--shadow: 0 10px 30px rgba(43, 42, 51, .08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
	font-family: var(--display);
	font-variation-settings: 'SOFT' 100, 'opsz' 72;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow {
	font-weight: 800;
	font-size: .8rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sky-deep);
	margin-bottom: .9em;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 800; font-size: 1rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
	font-family: var(--body);
}
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--primary { background: var(--sky); color: #fff; }
.btn--primary:hover { background: var(--sky-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 246, 238, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img, .brand .custom-logo { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a { font-weight: 700; text-decoration: none; color: var(--ink); padding: 6px 0; position: relative; }
.nav__list a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav__list a:hover::after, .nav__list .current-menu-item a::after { transform: scaleX(1); }
.nav__cta { padding: 10px 18px; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
	content: ''; position: absolute; left: 10px; width: 24px; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .2s, top .2s;
}
.nav-toggle__bar { top: 20px; }
.nav-toggle__bar::before { top: -8px; }
.nav-toggle__bar::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--cream); border-bottom: 1px solid var(--line);
		padding: 8px var(--gutter) 20px;
		display: none;
	}
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.nav__list a::after { display: none; }
	.nav__cta { margin-top: 16px; justify-content: center; }
}

/* ---------- Bunting (signature) ---------- */
.bunting { color: var(--ink); line-height: 0; }
.bunting svg { width: 100%; height: 40px; display: block; overflow: visible; }
.bunting--hero { margin-top: -6px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 88px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; padding-bottom: 32px; }
.hero__title em { font-style: italic; font-weight: 500; color: var(--sky-deep); }
.hero__lead { font-size: 1.15rem; max-width: 34em; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .95rem; color: var(--ink-soft); }
.hero__facts strong { color: var(--ink); font-weight: 800; }

.hero__photos { position: relative; height: 480px; }
.hero__photo { margin: 0; position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--a { left: 0; top: 0; width: 62%; height: 62%; transform: rotate(-2deg); }
.hero__photo--b { right: 0; top: 10%; width: 44%; height: 50%; transform: rotate(2.5deg); }
.hero__photo--c { left: 18%; bottom: 0; width: 58%; height: 42%; transform: rotate(1deg); }

@media (max-width: 860px) {
	.hero__in { grid-template-columns: 1fr; }
	.hero__photos { height: 340px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--sand { background: var(--sand); }
.section--sky { background: var(--sky-pale); }
.section__head { max-width: 42em; margin-bottom: 40px; }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; }

/* Included */
.included { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.included li { background: var(--cream); border-radius: var(--radius); padding: 26px 24px; }
.included h3 { margin: 16px 0 6px; }
.included p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.included__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; }
.included__icon svg { width: 24px; height: 24px; }
.included__icon--sun   { background: #FDF3D4; color: #A8780A; }
.included__icon--sky   { background: var(--sky-pale); color: var(--sky-deep); }
.included__icon--leaf  { background: #E6F4EA; color: #3C7A38; }
.included__icon--berry { background: #FBE8EE; color: #B93B54; }
@media (max-width: 960px) { .included { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .included { grid-template-columns: 1fr; } }

/* Programs */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program { display: block; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.program:hover { transform: translateY(-4px); }
.program img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.program__body { padding: 22px 24px 26px; }
.program__body p { color: var(--ink-soft); margin-bottom: 12px; }
.program__more { font-weight: 800; color: var(--sky-deep); }
@media (max-width: 860px) { .programs { grid-template-columns: 1fr; } }

/* About strip (home) */
.about-strip { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-strip__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.about-strip__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-strip__copy .btn { margin-top: 8px; }
@media (max-width: 860px) { .about-strip { grid-template-columns: 1fr; } }

/* Rates table */
.rates { max-width: 760px; margin-inline: auto; }
.rates__table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rates__table th, .rates__table td { padding: 20px 24px; text-align: left; }
.rates__table thead th { background: var(--ink); color: #fff; font-weight: 800; font-size: .95rem; }
.rates__table thead th small { display: block; font-weight: 600; opacity: .7; font-size: .8rem; }
.rates__table tbody th { font-weight: 800; border-top: 1px solid var(--line); }
.rates__table tbody th small { display: block; font-weight: 600; color: var(--ink-soft); font-size: .85rem; }
.rates__table tbody td { border-top: 1px solid var(--line); font-family: var(--display); font-size: 1.8rem; font-weight: 600; color: var(--sky-deep); }
.rates__table tbody td:last-child { color: var(--ink); }
.rates__note { text-align: center; color: var(--ink-soft); margin-top: 18px; font-size: .98rem; }
@media (max-width: 520px) {
	.rates__table th, .rates__table td { padding: 14px 12px; }
	.rates__table tbody td { font-size: 1.35rem; }
}

/* Quotes */
.quotes__h { text-align: center; margin-bottom: 36px; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin-inline: auto; }
.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 30px 30px 26px; position: relative; }
.quote::before { content: '“'; position: absolute; top: 6px; left: 22px; font-family: var(--display); font-size: 4.5rem; line-height: 1; color: var(--sun); }
.quote p { font-family: var(--display); font-size: 1.25rem; line-height: 1.4; margin: 18px 0 14px; }
.quote footer { font-weight: 800; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 700px) { .quotes { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); }
.contact__details { display: grid; gap: 14px; margin: 26px 0 0; }
.contact__details dt { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.contact__details dd { margin: 0; font-weight: 700; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.tour-form { background: #fff; border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.tour-form label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 14px; }
.tour-form input, .tour-form select, .tour-form textarea {
	display: block; width: 100%; margin-top: 6px;
	font: inherit; font-weight: 600; color: var(--ink);
	padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--cream);
}
.tour-form input:focus, .tour-form select:focus, .tour-form textarea:focus { outline: none; border-color: var(--sky); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.tour-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-fine { font-size: .9rem; color: var(--ink-soft); text-align: center; margin: 14px 0 0; }
.form-note { padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.form-note--ok { background: #E4F2E3; color: #2F6A2B; }
.form-note--err { background: #FBE3E8; color: #A22F46; }
.hp { position: absolute; left: -9999px; }

/* Page hero */
.page-hero { padding-top: clamp(40px, 6vw, 72px); }
.page-hero .wrap { padding-bottom: 28px; max-width: 760px; }
.page-hero__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }

/* About page */
.about-story { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.about-story__text p { font-size: 1.05rem; }
.fact-list { list-style: none; margin: 0; padding: 26px 28px; background: var(--sky-pale); border-radius: var(--radius); display: grid; gap: 14px; }
.fact-list li { padding-left: 28px; position: relative; }
.fact-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); }
.fact-list strong { font-weight: 800; }
@media (max-width: 860px) { .about-story { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.gallery img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Programs page */
.program-list { display: grid; gap: clamp(48px, 8vw, 96px); }
.program-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; scroll-margin-top: 100px; }
.program-detail--flip .program-detail__photo { order: 2; }
.program-detail__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.program-detail__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; font-weight: 600; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf); }
.checks li::after { content: ''; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@media (max-width: 760px) { .program-detail { grid-template-columns: 1fr; } .program-detail--flip .program-detail__photo { order: 0; } }

.day { list-style: none; margin: 0; padding: 0; max-width: 620px; display: grid; }
.day li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.day li:first-child { border-top: 0; }
.day time { font-weight: 800; color: var(--sky-deep); }
.day span { font-weight: 600; }

/* Rates page FAQ */
.faq { max-width: 760px; }
.faq details { background: #fff; border-radius: 14px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 1.5rem; color: var(--sky); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 16px; margin: 0; color: var(--ink-soft); }

/* Contact page map */
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Prose fallback */
.prose { max-width: 720px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand); color: var(--ink-soft); padding: 64px 0 100px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--sky-deep); }
.site-footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr .7fr; gap: 40px; }
.site-footer__brand img { height: 150px; width: auto; margin-bottom: 16px; }
.site-footer__brand p { font-size: .95rem; max-width: 30em; }
.site-footer__license { font-size: .85rem; opacity: .7; }
.site-footer__h { font-family: var(--body); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-deep); margin-bottom: 14px; }
.site-footer__col p { margin: 0 0 8px; font-size: .95rem; }
.site-footer__social a { margin-right: 14px; }
.site-footer__nav { list-style: none; margin: 0; padding: 0; }
.site-footer__nav a { text-decoration: none; display: block; padding: 4px 0; font-size: .95rem; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; opacity: .8; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 860px) { .site-footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__in { grid-template-columns: 1fr; } .site-footer { padding-bottom: 96px; } }

/* Sticky mobile call bar */
.call-bar {
	display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
	justify-content: center; align-items: center; gap: 10px;
	background: var(--sky); color: #fff; font-weight: 800; text-decoration: none;
	padding: 15px; border-radius: 999px; box-shadow: 0 8px 24px rgba(47, 127, 184, .35);
}
@media (max-width: 860px) { .call-bar { display: flex; } }

/* Scroll reveal (progressive; content is visible without JS) */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
	.js .reveal.is-in { opacity: 1; transform: none; }
}

/* Mobile tweaks */
@media (max-width: 700px) {
	.bunting__flags path:nth-child(even) { display: none; }
	.bunting svg { height: 32px; }
	.eyebrow { font-size: .72rem; letter-spacing: .12em; }
}
