/* ================================================================
   BRILLIANT KIDS STUDIO — DESIGN SYSTEM
   Quick edits: brand colors and fonts live in the variables below.
   ================================================================ */
@import url("brand-tokens.css");
:root {
  --navy: #604020; --navy-2: #795238; --cream: #fff7fa; --white: #fff;
  --coral: #ff90a8; --coral-dark: #e9678c; --peach: #ffd7e1;
  --butter: #ffc060; --mint: #f0e4fa; --sky: #ffe9f0; --lilac: #eadff5; --rose: #ffdee7;
  --lavender: #b090d0; --text: #765f53; --line: #f0d9e1; --green: #28bd68;
  --display: var(--font-display); --body: var(--font-body);
  --shadow: 0 24px 70px rgba(96, 64, 32, .13); --radius: 32px;
  --brand-pink: #ff7fa5; --brand-pink-hover: #ff668f; --brand-lilac: #a88be8; --brand-lilac-hover: #9876e3;
  --brand-yellow: #f6c04d; --brand-yellow-hover: #f4b72b; --brand-brown: #5a3825; --brand-brown-hover: #482a1b;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; overflow-x: clip; background: var(--cream); color: var(--navy); font-family: var(--body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 112px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 999; top: -70px; left: 20px; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: white; transition: top .2s; }
.skip-link:focus { top: 12px; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.08; letter-spacing: -.045em; }
h1 { font-size: clamp(3.3rem, 6.1vw, 5.65rem); }
h2 { font-size: clamp(2.35rem, 4.6vw, 4rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { color: var(--coral); font-style: normal; }
p { margin: 0; color: var(--text); }
.kicker { display: block; margin-bottom: 15px; color: var(--coral-dark); font-size: .73rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 13px 25px; border: 0; border-radius: 999px; background: var(--brand-pink); box-shadow: 0 10px 23px rgba(255,127,165,.28); color: white; font-weight: 800; cursor: pointer; transition: transform 250ms ease, background-color 250ms ease, box-shadow 250ms ease, filter 250ms ease; }
.button:hover { transform: translateY(-2px); background: var(--brand-pink-hover); box-shadow: 0 15px 31px rgba(255,127,165,.38); filter: saturate(1.08); }
.btn-pink { background: var(--brand-pink); color: white; }.btn-pink:hover { background: var(--brand-pink-hover); }
.btn-lilac { background: var(--brand-lilac); color: white; box-shadow: 0 10px 23px rgba(168,139,232,.3); }.btn-lilac:hover { background: var(--brand-lilac-hover); box-shadow: 0 15px 31px rgba(168,139,232,.4); }
.btn-yellow { background: var(--brand-yellow); color: var(--brand-brown); box-shadow: 0 10px 23px rgba(246,192,77,.3); }.btn-yellow:hover { background: var(--brand-yellow-hover); color: var(--brand-brown); box-shadow: 0 15px 31px rgba(246,192,77,.42); }
.btn-brown { background: var(--brand-brown); color: white; box-shadow: 0 10px 23px rgba(90,56,37,.25); }.btn-brown:hover { background: var(--brand-brown-hover); box-shadow: 0 15px 31px rgba(90,56,37,.35); }
.hero-actions .button:nth-child(2) { background: var(--brand-yellow); color: var(--brand-brown); box-shadow: 0 10px 23px rgba(246,192,77,.3); }.hero-actions .button:nth-child(2):hover { background: var(--brand-yellow-hover); box-shadow: 0 15px 31px rgba(246,192,77,.42); }
.portal-nav-button { background: #a887e8; color: white !important; }.portal-nav-button:hover { background: #9875e2; }
.button-small { min-height: 45px; padding: 9px 20px !important; color: white !important; }
.button-light { background: white; box-shadow: none; color: var(--navy); }
.button-link, .text-arrow { display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(36,48,71,.3); color: var(--navy); font-weight: 700; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 55px; margin-bottom: 55px; }
.section-head > p { max-width: 430px; padding-bottom: 8px; }
.center-head { max-width: 680px; margin: 0 auto 55px; text-align: center; }
.center-head p { max-width: 560px; margin: 18px auto 0; }

/* Navigation */
.site-header { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; border-bottom: 1px solid transparent; transition: background .3s, border .3s, box-shadow .3s; }
.site-header.scrolled { border-color: rgba(96,64,32,.08); background: rgba(255,247,250,.94); box-shadow: 0 9px 30px rgba(96,64,32,.07); backdrop-filter: blur(16px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 92px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand > img { width: 74px; height: 74px; border: 0; border-radius: 50%; background: transparent; object-fit: contain; box-shadow: 0 8px 22px rgba(96,64,32,.08); }
.brand-mark { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 2px; width: 45px; height: 42px; padding-bottom: 9px; overflow: hidden; border-radius: 14px; background: var(--sky); }
.brand-mark i { display: block; width: 8px; height: 18px; border-radius: 9px 9px 0 0; border: 4px solid var(--coral); border-bottom: 0; }
.brand-mark i:nth-child(2) { height: 25px; border-color: var(--butter); }.brand-mark i:nth-child(3) { border-color: #74b69a; }
.brand-name { display: flex; flex-direction: column; font-family: var(--display); font-size: 1.05rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.brand-name small { margin-top: 4px; color: var(--coral-dark); font-size: .55rem; letter-spacing: .35em; }
.nav-links { display: flex; align-items: center; gap: 13px; }
.nav-links > a { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 9px 19px !important; border: 0 !important; border-radius: 999px; box-shadow: 0 6px 15px rgba(91,53,31,.1); font-size: .82rem; font-weight: 700; line-height: 1.2; text-align: center; transition: transform 250ms ease,background-color 250ms ease,box-shadow 250ms ease,filter 250ms ease; }
.nav-links > a::before,.nav-links > a::after { content: none !important; display: none !important; }
.nav-links > a:hover { border: 0; box-shadow: 0 11px 23px rgba(91,53,31,.18); text-decoration: none; transform: translateY(-2px); filter: saturate(1.08); }
.nav-links > a.is-active { box-shadow: 0 0 0 2px rgba(255,255,255,.9),0 0 0 4px rgba(91,53,31,.16),0 10px 22px rgba(91,53,31,.18); }
.nav-links > .nav-programs { background: #f8c34d; color: #5b351f; }.nav-links > .nav-programs:hover { background: #f4b82f; color: #5b351f; }
.nav-links > .nav-method { background: #653e25; color: white; }.nav-links > .nav-method:hover { background: #55321d; color: white; }
.nav-links > .portal-nav-button { background: #a887e8; color: white; }.nav-links > .portal-nav-button:hover { background: #9875e2; color: white; }
.nav-links > .btn-pink { background: #ff82a8; color: white; }.nav-links > .btn-pink:hover { background: #fa6996; color: white; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 10px; border: 0; border-radius: 14px; background: white; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--navy); transition: .25s; }

/* Hero */
.hero { position: relative; min-height: 850px; padding: 165px 0 95px; overflow: hidden; background: radial-gradient(circle at 13% 37%, rgba(255,192,96,.25), transparent 25%), radial-gradient(circle at 85% 30%, rgba(176,144,208,.18), transparent 28%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 75px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--coral-dark); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: "✦"; color: var(--butter); font-size: 1.15rem; }
.hero-copy h1 { max-width: 720px; color: var(--brand-brown); font-size: 66px; line-height: 1.02; letter-spacing: -.045em; }.hero-copy h1 span,.hero-copy h1 em { display: block; }.hero-copy h1 em { margin-top: 5px; color: var(--brand-pink); }
.hero-copy > p { max-width: 650px; margin-top: 25px; color: var(--text); font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 20px; max-width: 650px; margin-top: 42px; padding-top: 25px; border-top: 1px solid var(--line); }
.hero-badges span { color: var(--navy); font-size: .78rem; font-weight: 800; }.hero-badges span::first-letter { color: var(--lavender); }
.hero-media { position: relative; min-height: 560px; }
.hero-photo { position: absolute; inset: 10px 0 20px 15px; overflow: hidden; border: 11px solid white; border-radius: 45% 55% 40% 60% / 40% 42% 58% 60%; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-photo img { height: 100%; object-fit: cover; }
.photo-label { position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; padding: 13px 17px; border: 1px solid white; border-radius: 17px; background: rgba(255,255,255,.95); box-shadow: 0 16px 40px rgba(42,49,69,.14); }
.photo-label > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--butter); color: var(--navy); font-family: var(--display); font-weight: 800; }
.photo-label strong, .photo-label small { display: block; }.photo-label strong { font-size: .78rem; }.photo-label small { color: var(--text); font-size: .67rem; }
.label-top { top: 65px; left: -45px; }.label-bottom { right: -30px; bottom: 85px; }.label-bottom > span { background: var(--rose); color: var(--coral-dark); }
.mini-rainbow { position: absolute; top: -45px; right: -70px; width: 135px; height: 85px; overflow: hidden; transform: rotate(14deg); }
.mini-rainbow i { position: absolute; bottom: -57px; left: 50%; width: 135px; height: 135px; border: 13px solid var(--coral); border-radius: 50%; transform: translateX(-50%); }.mini-rainbow i:nth-child(2) { width: 103px; height: 103px; border-color: var(--butter); }.mini-rainbow i:nth-child(3) { width: 70px; height: 70px; border-color: var(--lavender); }
.doodle { position: absolute; }.star { color: var(--butter); font-size: 1.8rem; }.s1 { top: 140px; left: 4%; }.s2 { right: 3%; bottom: 180px; color: var(--coral); }
.hero-ticker { position: absolute; right: -2%; bottom: 0; left: -2%; display: flex; align-items: center; justify-content: space-around; height: 58px; background: var(--navy); color: white; transform: rotate(-1deg); }
.hero-ticker span { font-family: var(--display); font-size: .73rem; font-weight: 800; letter-spacing: .2em; }.hero-ticker b { color: var(--coral); font-size: 1.2rem; }

/* Benefits */
.why { position: relative; overflow: hidden; background: white; }.why::before { content: "♡"; position: absolute; top: 45px; right: 5%; color: var(--rose); font-family: var(--display); font-size: 6rem; transform: rotate(12deg); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit-card { min-height: 245px; padding: 32px; border: 1px solid rgba(96,64,32,.05); border-radius: 30px; transition: transform .3s, box-shadow .3s; }
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.benefit-card .icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 28px; border-radius: 15px; background: rgba(255,255,255,.58); font-family: var(--display); font-size: .78rem; font-weight: 800; letter-spacing: -.1em; }
.benefit-card h3 { margin-bottom: 11px; }.benefit-card p { font-size: .9rem; }
.benefit-card.coral { background: #ffe1e8; }.benefit-card.mint { background: #f0e5fa; }.benefit-card.butter { background: #fff0c9; }.benefit-card.lilac { background: #e9dcf6; }.benefit-card.sky { background: #ffeaf1; }.benefit-card.rose { background: #ffd9e4; }

/* Programs */
.programs { position: relative; overflow: hidden; background: #fff1f6; }.programs::after { content: "✦"; position: absolute; right: 4%; bottom: 40px; color: var(--butter); font-size: 4rem; opacity: .6; }
.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; }
.program-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 35px rgba(96,64,32,.06); transition: transform .3s, box-shadow .3s; }
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.program-image { position: relative; height: 300px; overflow: hidden; }.program-image img { height: 100%; object-fit: cover; transition: transform .5s; }.program-card:hover img { transform: scale(1.04); }
.program-image > span { position: absolute; top: 18px; left: 18px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--navy); font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.program-body { position: relative; padding: 30px; }.program-body .number { position: absolute; top: 30px; right: 30px; color: var(--coral); font-family: var(--display); font-size: .77rem; font-weight: 800; }
.program-body h3 { font-size: 1.75rem; }.program-body p { min-height: 78px; margin: 15px 0 20px; font-size: .9rem; }.program-body a { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); font-size: .83rem; font-weight: 700; }
.cambridge-program { display: flex; flex-direction: column; }.cambridge-program .program-body { display: flex; flex: 1; flex-direction: column; }.cambridge-program .program-body p { min-height: 0; overflow-wrap: anywhere; font-size: .84rem; line-height: 1.55; }.cambridge-program .program-body a { margin-top: auto; }

/* Method */
.method { overflow: hidden; background: linear-gradient(135deg,#fff8f3 0%,#fff1f6 100%); color: var(--brand-brown); }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; }.method .kicker { color: var(--coral-dark); }.method h2 { color: var(--brand-brown); }.method h2 span,.method h2 em { display: block; }.method h2 em { color: var(--brand-pink); }
.method-visual { position: relative; min-height: 600px; }.method-photo { position: absolute; inset: 10px 0 10px; overflow: hidden; border: 10px solid rgba(255,255,255,.95); border-radius: 40% 60% 48% 52% / 56% 44% 56% 44%; transform: rotate(-2deg); }.method-photo img { height: 100%; object-fit: cover; }
.method-sticker { position: absolute; right: -40px; bottom: 50px; display: grid; place-items: center; width: 135px; height: 135px; border: 5px solid white; border-radius: 50%; background: var(--brand-yellow); color: var(--brand-brown); box-shadow: 0 14px 30px rgba(90,56,37,.18); font-family: var(--display); font-size: .85rem; text-align: center; transform: rotate(8deg); }.method-sticker b { color: var(--brand-brown); font-size: 1.05rem; }.method-sticker::after { content: "♥"; position: absolute; right: 13px; bottom: 10px; color: var(--brand-pink); font-size: 1rem; }.cloud-doodle { position: absolute; top: -40px; left: -35px; color: var(--brand-lilac); font-size: 5.5rem; opacity: .75; }
.method-copy .lead { margin: 26px 0 15px; color: var(--brand-brown); font-size: 1.15rem; font-weight: 700; }.method-copy > p:not(.lead) { color: var(--text); }
.method-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0; }.method-tags span { padding: 9px 14px; border: 0; border-radius: 999px; color: var(--brand-brown); font-size: .78rem; font-weight: 700; }.method-tags span:nth-child(4n+1) { background: #ffdee7; }.method-tags span:nth-child(4n+2) { background: #eadff5; }.method-tags span:nth-child(4n+3) { background: #f6c04d; }.method-tags span:nth-child(4n+4) { background: #5a3825; color: white; }
.method .text-arrow { border-color: rgba(255,255,255,.35); color: white; }

/* Gallery */
.gallery { background: white; }.gallery-head { margin-bottom: 35px; }
.masonry { display: grid; grid-auto-rows: 225px; grid-template-columns: repeat(3, 1fr); gap: 15px; }.masonry figure { position: relative; margin: 0; overflow: hidden; border-radius: 20px; }.masonry .tall { grid-row: span 2; }.masonry .wide { grid-column: span 2; }
.masonry img { height: 100%; object-fit: cover; transition: transform .5s; }.masonry figure:hover img { transform: scale(1.04); }.masonry figure::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(22,29,44,.72)); }
.masonry figcaption { position: absolute; z-index: 2; right: 20px; bottom: 18px; left: 20px; color: white; font-family: var(--display); font-size: 1.05rem; font-weight: 700; }.masonry figcaption span { display: block; color: var(--butter); font-family: var(--body); font-size: .63rem; letter-spacing: .13em; text-transform: uppercase; }

/* Testimonials */
.testimonials { background: var(--lilac); }.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }.quote-card { margin: 0; padding: 32px; border-radius: 30px; background: white; }.quote-card.accent { background: var(--lavender); color: white; transform: translateY(-12px); }.stars { color: var(--butter); font-size: .75rem; letter-spacing: .18em; }.quote-card > p { min-height: 155px; margin: 22px 0; color: inherit; font-family: var(--display); font-size: 1.04rem; font-weight: 600; line-height: 1.65; }.quote-card:not(.accent) > p { color: var(--navy); }.quote-card footer { display: flex; align-items: center; gap: 12px; }.quote-card footer > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--rose); color: var(--coral-dark); font-weight: 800; }.quote-card strong, .quote-card small { display: block; }.quote-card small { color: var(--text); }

/* About + portal promo */
.about { overflow: hidden; background: var(--cream); }.about-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 100px; }.about-copy .lead { margin: 24px 0 15px; color: var(--navy); font-size: 1.12rem; font-weight: 600; }.about-copy > p { margin-bottom: 15px; }.signature { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }.signature span { padding: 8px 13px; border-radius: 999px; background: white; color: var(--navy); font-size: .76rem; font-weight: 700; }
.about-image { position: relative; height: 590px; }.about-image img { height: 100%; object-fit: cover; border: 10px solid white; border-radius: 52% 48% 45% 55% / 42% 50% 50% 58%; box-shadow: var(--shadow); }.heart-doodle { position: absolute; right: -25px; bottom: -35px; color: var(--coral); font-size: 7rem; transform: rotate(15deg); }
.portal-promo { padding-top: 0; background: var(--cream); }.portal-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 35px; padding: 45px 50px; border-radius: 34px; background: var(--navy); color: white; }.portal-card .kicker { color: var(--butter); }.portal-card h2 { font-size: 2.4rem; }.portal-card p { max-width: 650px; margin-top: 10px; color: #f7dce6; }.portal-icon { position: relative; display: grid; place-items: center; width: 82px; height: 82px; border-radius: 28px; background: var(--lilac); color: var(--navy); font-size: 2.3rem; }.portal-icon span { position: absolute; top: -8px; right: -7px; color: var(--butter); font-size: 1.2rem; }

/* Visit */
.visit { background: white; }.visit-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 80px; }.visit-info > p { margin: 20px 0 28px; }.visit-info address { display: flex; gap: 15px; margin-bottom: 25px; color: var(--navy); font-style: normal; }.visit-info address > span { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 13px; background: var(--peach); color: var(--coral-dark); }
.map-placeholder { position: relative; height: 430px; overflow: hidden; border: 10px solid var(--cream); border-radius: 32px; background: #eadcf5; }.map-roads { position: absolute; inset: 0; background-image: linear-gradient(30deg, transparent 45%, #fff7fa 46%, #fff7fa 52%, transparent 53%), linear-gradient(105deg, transparent 40%, #fff7fa 41%, #fff7fa 47%, transparent 48%); }.map-roads i { position: absolute; width: 180%; height: 12px; background: #fff7fa; transform: rotate(-15deg); }.map-roads i:nth-child(1) { top: 18%; left: -30%; }.map-roads i:nth-child(2) { top: 67%; left: -30%; transform: rotate(7deg); }.map-roads i:nth-child(3) { top: 35%; left: -35%; transform: rotate(70deg); }.map-roads i:nth-child(4) { top: 62%; left: -40%; transform: rotate(103deg); }
.map-pin { position: absolute; top: 48%; left: 52%; display: flex; flex-direction: column; align-items: center; padding: 14px 22px; border-radius: 15px; background: white; box-shadow: var(--shadow); transform: translate(-50%,-50%); text-align: center; }.map-pin > span { display: grid; place-items: center; width: 38px; height: 38px; margin-top: -33px; margin-bottom: 7px; border: 4px solid white; border-radius: 50%; background: var(--coral); color: white; }.map-pin strong { font-size: .8rem; }.map-pin small { color: var(--text); }.map-placeholder > a { position: absolute; right: 18px; bottom: 18px; padding: 9px 14px; border-radius: 999px; background: var(--navy); color: white; font-size: .73rem; font-weight: 700; }

/* FAQ */
.faq { background: #fff1f6; }.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; }.faq header > p { margin: 20px 0; }.accordion article { border-bottom: 1px solid var(--line); }.accordion button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 24px 0; border: 0; background: transparent; color: var(--navy); font-family: var(--display); font-weight: 700; text-align: left; cursor: pointer; }.accordion button i { color: var(--coral-dark); font-size: 1.4rem; font-style: normal; transition: transform .25s; }.accordion button[aria-expanded="true"] i { transform: rotate(45deg); }.answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s; }.answer p { min-height: 0; overflow: hidden; }.accordion button[aria-expanded="true"] + .answer { grid-template-rows: 1fr; }.accordion button[aria-expanded="true"] + .answer p { padding-bottom: 24px; }

/* Newsletter + contact */
.newsletter { padding: 80px 0; background: var(--butter); }.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }.newsletter .kicker { color: var(--navy); }.newsletter h2 { font-size: 2.7rem; }.newsletter-form { display: grid; grid-template-columns: minmax(230px, 340px) auto; gap: 10px; }.newsletter-form input { min-height: 55px; padding: 13px 20px; border: 0; border-radius: 999px; outline: none; }.form-status { grid-column: 1/-1; min-height: 20px; color: var(--navy); font-size: .8rem; font-weight: 700; text-align: center; }
.contact { background: white; }.contact-box { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 65px; overflow: hidden; border-radius: 34px; background: var(--sky); }.contact-box h2 { font-size: clamp(2.2rem,4vw,3.6rem); }.contact-box p { max-width: 650px; margin-top: 16px; }.contact-star { position: absolute; right: 34%; bottom: -50px; color: rgba(255,255,255,.65); font-size: 10rem; }.whatsapp-cta { position: relative; z-index: 2; flex: 0 0 auto; background: var(--green); box-shadow: 0 12px 26px rgba(40,189,104,.25); }.whatsapp-cta:hover { background: #20aa5b; }.whatsapp-cta svg { width: 23px; fill: white; }

/* Footer */
.footer { padding: 75px 0 25px; background: var(--navy); color: white; }.footer-main { display: grid; grid-template-columns: 1.6fr .7fr 1fr .7fr; gap: 60px; }.footer-logo > img { width: 128px; height: 128px; border: 5px solid rgba(255,255,255,.9); }.footer-brand p { max-width: 290px; margin-top: 17px; color: #f5dce5; }.footer-main > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; }.footer-main strong { margin-bottom: 5px; color: var(--butter); font-family: var(--display); }.footer-main a, .footer-main span { color: #f8e8ee; font-size: .83rem; }.socials { display: flex; gap: 8px; margin-top: 5px; }.socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lavender); color: white; font-weight: 700; }.footer-bottom { display: flex; justify-content: space-between; margin-top: 55px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); color: #f1d8e0; font-size: .76rem; }.footer-bottom i { color: var(--coral); font-style: normal; }
.whatsapp-float { position: fixed; z-index: 90; right: 23px; bottom: 23px; display: grid; place-items: center; width: 59px; height: 59px; border: 4px solid white; border-radius: 50%; background: var(--green); box-shadow: 0 12px 28px rgba(27,107,61,.28); transition: transform .25s; }.whatsapp-float:hover { transform: scale(1.08) rotate(-4deg); }.whatsapp-float svg { width: 30px; fill: white; }

/* Portal */
.family-hub{min-height:100vh;background:radial-gradient(circle at 10% 20%,#eadff5,transparent 24%),radial-gradient(circle at 88% 80%,#ffe0e9,transparent 25%),var(--color-background)}.hub-header{display:flex;align-items:center;justify-content:space-between;width:min(1180px,calc(100% - 40px));margin:auto;padding:20px 0}.hub-main{width:min(980px,calc(100% - 30px));margin:auto;padding:45px 0 90px;text-align:center}.hub-main h1{font-size:clamp(3rem,7vw,5rem)}.hub-main h1 em{color:var(--color-pink)}.hub-intro{max-width:650px;margin:18px auto 45px}.hub-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;text-align:left}.hub-card{display:flex;min-height:480px;padding:38px;border:1px solid var(--color-line);border-radius:var(--radius-card);background:white;box-shadow:var(--shadow-soft);flex-direction:column}.hub-card h2{font-size:2rem}.hub-card p{margin:16px 0}.hub-card ul{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0;list-style:none}.hub-card li{padding:9px 12px;border-radius:999px;background:#fff3d0;color:var(--color-chocolate);font-size:.78rem;font-weight:800}.hub-icon{display:grid;place-items:center;width:62px;height:62px;margin-bottom:25px;border-radius:20px;background:#fff0c5;font-size:1.7rem}.account .hub-icon{background:#eadff5;color:var(--color-lavender)}.hub-card .button{margin-top:auto}.privacy-note{margin:18px 0;padding:15px;border-radius:16px;background:#f4efff;color:var(--color-text);font-size:.8rem}@media(max-width:700px){.hub-grid{grid-template-columns:1fr}.hub-card{min-height:auto}.hub-card .button{margin-top:25px}}
.portal-page { min-height: 100vh; background: #fff4f8; }.portal-header { position: absolute; z-index: 10; top: 18px; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; }.portal-header .brand > img { width: 82px; height: 82px; }.back-link { color: var(--navy); font-size: .84rem; font-weight: 800; }
.portal-login { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }.login-art { position: relative; overflow: hidden; background: var(--lavender); }.login-art::after { content: "APRENDER • JUGAR • CREAR •"; position: absolute; bottom: 60px; left: 50%; width: 80%; color: rgba(255,255,255,.18); font-family: var(--display); font-size: clamp(2.5rem,6vw,6rem); font-weight: 800; line-height: 1.05; transform: translateX(-50%) rotate(-5deg); }.login-art > span { position: absolute; color: var(--butter); font-size: 3rem; }.login-art > span:nth-of-type(1) { top: 20%; left: 20%; }.login-art > span:nth-of-type(2) { right: 18%; bottom: 27%; color: var(--coral); font-size: 5rem; }.login-art > span:nth-of-type(3) { top: 43%; left: 48%; color: white; font-size: 6rem; }
.portal-rainbow { position: absolute; top: 22%; left: 50%; width: 380px; height: 220px; overflow: hidden; transform: translateX(-50%) rotate(-5deg); }.portal-rainbow i { position: absolute; bottom: -180px; left: 50%; width: 380px; height: 380px; border: 45px solid var(--coral); border-radius: 50%; transform: translateX(-50%); }.portal-rainbow i:nth-child(2) { width: 280px; height: 280px; border-color: var(--butter); }.portal-rainbow i:nth-child(3) { width: 180px; height: 180px; border-color: var(--navy); }
.login-card { align-self: center; justify-self: center; width: min(460px, calc(100% - 60px)); padding-top: 80px; }.lock-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 25px; border-radius: 18px; background: var(--lilac); font-size: 1.8rem; }.login-card h1 { font-size: clamp(2.7rem,5vw,4.2rem); }.login-card > p { margin: 20px 0 28px; }.login-card form { display: grid; gap: 10px; }.login-card label { font-size: .77rem; font-weight: 700; }.password-wrap { position: relative; }.password-wrap input { width: 100%; min-height: 55px; padding: 13px 75px 13px 17px; border: 1px solid var(--line); border-radius: 14px; outline: none; background: white; }.password-wrap input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(238,142,131,.12); }.show-password { position: absolute; top: 50%; right: 13px; border: 0; background: none; color: var(--coral-dark); font-size: .72rem; font-weight: 700; transform: translateY(-50%); cursor: pointer; }.login-card form > .button { width: 100%; margin-top: 8px; }.login-status { min-height: 22px; color: #bd4d48; font-size: .8rem; text-align: center; }.help-text { display: block; color: var(--text); text-align: center; }.help-text a { color: var(--coral-dark); font-weight: 700; }
.resource-hero { padding: 150px 0 85px; background: var(--navy); color: white; }.resource-hero .container { display: flex; align-items: flex-end; justify-content: space-between; }.resource-hero .kicker { color: var(--butter); }.resource-hero h1 { font-size: clamp(3rem,6vw,5.2rem); }.resource-hero p { margin-top: 15px; color: #f4dce4; }.logout-button { padding: 10px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.4); background: transparent; color: white; cursor: pointer; }.resource-content { padding-top: 65px; padding-bottom: 90px; }.resource-toolbar { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 35px; }.resource-toolbar h2 { font-size: 2rem; }.updated { padding: 8px 13px; border-radius: 999px; background: var(--mint); font-size: .72rem; font-weight: 700; }.resource-programs { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }.resource-program { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: white; }.resource-program > header { display: flex; align-items: center; gap: 14px; padding: 27px; }.resource-program.toddlers > header { background: var(--rose); }.resource-program.kids > header { background: var(--lilac); }.resource-program.cambridge > header { background: #fff0c9; }.resource-symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: rgba(255,255,255,.72); font-family: var(--display); font-weight: 800; }.resource-program header small { font-size: .61rem; font-weight: 800; letter-spacing: .13em; }.resource-program header h3 { font-size: 1.3rem; }.resource-list { padding: 8px 22px; }.resource-list a { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 11px; padding: 18px 0; border-bottom: 1px solid var(--line); }.resource-list a:last-child { border: 0; }.resource-list a > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #fff0f5; font-size: .75rem; font-weight: 800; }.resource-list strong, .resource-list small { display: block; }.resource-list strong { font-size: .83rem; }.resource-list small { color: var(--text); font-size: .68rem; }.resource-list i { color: var(--coral-dark); font-style: normal; }.portal-note { display: flex; gap: 18px; max-width: 750px; margin: 35px auto 0; padding: 25px; border-radius: 24px; background: var(--butter); }.portal-note > span { color: var(--coral-dark); font-size: 2.1rem; }.portal-note p { margin-top: 4px; font-size: .88rem; }
.category-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }.category-card { display: flex; min-height: 510px; overflow: hidden; border: 1px solid rgba(88,55,43,.08); border-radius: 34px; background: white; box-shadow: 0 18px 45px rgba(91,53,65,.09); flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }.category-card:hover { transform: translateY(-7px); box-shadow: 0 24px 55px rgba(91,53,65,.14); }.category-art { position: relative; display: grid; place-items: center; height: 205px; overflow: hidden; font-size: 4.6rem; }.category-art span { position: absolute; filter: drop-shadow(0 5px 5px rgba(83,50,40,.08)); }.category-art span:nth-child(1) { top: 30px; left: 35px; }.category-art span:nth-child(2) { top: 28px; right: 38px; font-size: 2.2rem; }.category-art span:nth-child(3) { bottom: 12px; left: 50%; transform: translateX(-50%); }.category-art span:nth-child(4) { right: 35px; bottom: 22px; font-size: 2.5rem; }.toddlers-card .category-art { background: linear-gradient(145deg,#ffe4ed,#fff4f8); }.kids-card .category-art { background: linear-gradient(145deg,#eee4fa,#faf7ff); }.cambridge-card .category-art { background: linear-gradient(145deg,#ffedbb,#fff8e6); }.kids-card .category-art span:nth-child(1), .cambridge-card .category-art span:nth-child(2) { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: white; color: var(--navy); font-family: var(--display); font-size: 2rem; }.category-copy { display: flex; flex: 1; padding: 30px; flex-direction: column; }.category-copy small,.library-heading small { color: var(--coral-dark); font-size: .65rem; font-weight: 800; letter-spacing: .14em; }.category-copy h3 { margin-top: 8px; color: var(--navy); font-size: 2rem; line-height: 1.05; }.category-copy p { margin: 15px 0 24px; }.category-button { width: 100%; margin-top: auto; border: 0; font-size: .75rem; cursor: pointer; }.program-library { padding-top: 55px; padding-bottom: 90px; }.library-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 45px; }.portal-back { padding: 8px 0; border: 0; border-bottom: 1px solid var(--coral); background: transparent; color: var(--navy); font-weight: 800; cursor: pointer; }.library-heading { display: flex; align-items: center; gap: 25px; margin-bottom: 38px; }.library-heading h2 { margin: 5px 0; font-size: clamp(2.2rem,4vw,3.8rem); }.library-heading p { max-width: 650px; }.library-icon { display: grid; place-items: center; flex: 0 0 auto; width: 92px; height: 92px; border-radius: 29px; background: var(--lilac); color: var(--navy); font-family: var(--display); font-size: 2rem; font-weight: 800; }.resource-type-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }.resource-type-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; min-height: 122px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 10px 30px rgba(91,53,65,.06); transition: transform .25s ease,border-color .25s ease; }.resource-type-card:hover { border-color: var(--coral); transform: translateY(-4px); }.resource-type-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--rose); color: var(--navy); font-family: var(--display); font-weight: 800; }.resource-type-card strong,.resource-type-card small { display: block; }.resource-type-card strong { color: var(--navy); font-size: .84rem; }.resource-type-card small { margin-top: 4px; color: var(--text); font-size: .68rem; line-height: 1.35; }.resource-type-card i { color: var(--coral-dark); font-style: normal; }.resource-type-grid[data-program="kids"] .resource-type-icon { background: var(--lilac); }.resource-type-grid[data-program="cambridge"] .resource-type-icon { background: #fff0c9; }.edit-note { margin-top: 35px; padding: 25px 30px; border: 1px dashed var(--coral); border-radius: 22px; background: #fffafd; }.edit-note p { margin-top: 5px; font-size: .85rem; }

/* Balanced brand button palette */
.program-body a { align-items: center; min-height: 46px; padding: 10px 17px; border: 0; border-radius: 999px; background: var(--brand-yellow); color: var(--brand-brown); box-shadow: 0 8px 18px rgba(246,192,77,.25); transition: transform 250ms ease,background-color 250ms ease,box-shadow 250ms ease,filter 250ms ease; }.program-body a:hover { background: var(--brand-yellow-hover); box-shadow: 0 12px 25px rgba(246,192,77,.38); transform: translateY(-2px); filter: saturate(1.08); }.program-card:nth-child(2) .program-body a { background: var(--brand-pink); color: white; }.program-card:nth-child(2) .program-body a:hover { background: var(--brand-pink-hover); }.program-card:nth-child(3) .program-body a { background: var(--brand-lilac); color: white; }.program-card:nth-child(3) .program-body a:hover { background: var(--brand-lilac-hover); }.program-card:nth-child(4) .program-body a { background: var(--brand-brown); color: white; box-shadow: 0 8px 18px rgba(90,56,37,.25); }.program-card:nth-child(4) .program-body a:hover { background: var(--brand-brown-hover); box-shadow: 0 12px 25px rgba(90,56,37,.35); }
.portal-card .button,.login-card .button,.category-card:nth-child(3) .category-button { background: var(--brand-lilac); color: white; box-shadow: 0 10px 23px rgba(168,139,232,.3); }.portal-card .button:hover,.login-card .button:hover,.category-card:nth-child(3) .category-button:hover { background: var(--brand-lilac-hover); box-shadow: 0 15px 31px rgba(168,139,232,.4); }
.method .button,.newsletter .button { background: var(--brand-brown); color: white; box-shadow: 0 10px 23px rgba(90,56,37,.25); }.method .button:hover,.newsletter .button:hover { background: var(--brand-brown-hover); box-shadow: 0 15px 31px rgba(90,56,37,.35); }
.category-card:nth-child(1) .category-button,.category-card:nth-child(2) .category-button { background: var(--brand-yellow); color: var(--brand-brown); box-shadow: 0 10px 23px rgba(246,192,77,.3); }.category-card:nth-child(1) .category-button:hover,.category-card:nth-child(2) .category-button:hover { background: var(--brand-yellow-hover); box-shadow: 0 15px 31px rgba(246,192,77,.42); }
.whatsapp-cta,.whatsapp-float { background: var(--brand-pink); box-shadow: 0 12px 28px rgba(255,127,165,.32); }.whatsapp-cta:hover,.whatsapp-float:hover { background: var(--brand-pink-hover); box-shadow: 0 16px 34px rgba(255,127,165,.44); }.whatsapp-float { transition: transform 250ms ease,background-color 250ms ease,box-shadow 250ms ease,filter 250ms ease; }.whatsapp-float:hover { transform: translateY(-2px) scale(1.05); filter: saturate(1.08); }
.map-placeholder > a,.portal-back { border-radius: 999px; background: var(--brand-brown); color: white; box-shadow: 0 8px 18px rgba(90,56,37,.22); transition: transform 250ms ease,background-color 250ms ease,box-shadow 250ms ease,filter 250ms ease; }.portal-back { padding: 10px 18px; border: 0; }.map-placeholder > a:hover,.portal-back:hover { background: var(--brand-brown-hover); box-shadow: 0 12px 25px rgba(90,56,37,.34); transform: translateY(-2px); filter: saturate(1.08); }

/* Motion */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }.reveal { opacity: 1; transform: none; } }

/* Tablet */
@media (max-width: 1020px) {
  .hero-copy h1 { font-size: 50px; }
  .section { padding: 90px 0; }.nav-links { gap: 18px; }.nav-links > a { font-size: .8rem; }.nav-links .parent-link { display: inline-flex; }
  .hero-grid { gap: 35px; }.hero-media { min-height: 490px; }.label-top { left: -20px; }.label-bottom { right: -10px; }
  .method-grid { gap: 60px; }.method-visual { min-height: 520px; }.method-sticker { right: -20px; }
  .about-grid, .faq-grid { gap: 55px; }.footer-main { grid-template-columns: 1.4fr .7fr 1fr; }.footer-main > div:last-child { grid-column: 2; }
}

/* Mobile */
@media (max-width: 780px) {
  .hero-copy h1 { max-width: 650px; margin-inline: auto; font-size: 48px; }
  .container { width: min(100% - 28px, 620px); }.section { padding: 75px 0; }.nav { min-height: 72px; }.menu-toggle { display: block; }
  .nav-links { position: fixed; inset: 72px 14px auto; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .25s; }.nav-links.open { opacity: 1; visibility: visible; transform: none; }.nav-links > a { width: 100%; min-height: 50px; font-size: .9rem; }.nav-links .parent-link { display: flex; border: 0; }.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }.menu-toggle.active span:nth-child(2) { opacity: 0; }.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: auto; padding: 125px 0 105px; }.hero-grid { grid-template-columns: 1fr; }.hero-copy { text-align: center; }.hero-copy > p { font-size: 1rem; }.hero-actions { justify-content: center; }.hero-badges { justify-content: center; }.hero-media { min-height: 470px; margin-top: 20px; }.hero-photo { inset-inline: 15px; }.mini-rainbow { right: 0; }.hero-ticker { right: -15%; left: -15%; }.hero-ticker span:nth-of-type(even), .hero-ticker b:nth-of-type(even) { display: none; }
  .section-head { display: block; text-align: center; }.section-head > p { margin: 18px auto 0; }.benefit-grid { grid-template-columns: 1fr 1fr; }.benefit-card { min-height: 220px; padding: 25px; }
  .program-grid { grid-template-columns: 1fr; }.program-card.featured { transform: none; }.program-card.featured:hover { transform: translateY(-8px); }.program-body p { min-height: auto; }
  .method-grid { grid-template-columns: 1fr; }.method-copy { grid-row: 1; text-align: center; }.method-visual { grid-row: 2; min-height: 480px; }.method-tags { justify-content: center; }
  .masonry { grid-auto-rows: 210px; grid-template-columns: 1fr 1fr; }.masonry .wide { grid-column: span 2; }
  .testimonial-grid { grid-template-columns: 1fr; }.quote-card.accent { transform: none; }.quote-card > p { min-height: auto; }
  .about-grid { grid-template-columns: 1fr; }.about-image { height: 480px; grid-row: 1; }.about-copy { text-align: center; }.signature { justify-content: center; }.portal-card { grid-template-columns: auto 1fr; padding: 35px; }.portal-card .button { grid-column: 1/-1; }
  .visit-grid, .faq-grid { grid-template-columns: 1fr; gap: 50px; }.visit-info, .faq header { text-align: center; }.visit-info address { justify-content: center; text-align: left; }.map-placeholder { height: 380px; }
  .newsletter-inner { flex-direction: column; text-align: center; }.newsletter-form { width: 100%; }.contact-box { flex-direction: column; padding: 45px 30px; text-align: center; }.footer-main { grid-template-columns: 1fr 1fr; }.footer-main > .footer-brand { grid-column: 1/-1; }.footer-main > div:last-child { grid-column: auto; }
  .portal-login { grid-template-columns: 1fr; min-height: 100vh; padding: 110px 0 60px; }.login-art { display: none; }.portal-header { top: 18px; }.login-card { padding: 0; }.resource-programs { grid-template-columns: 1fr; }.resource-hero .container { align-items: flex-start; flex-direction: column; gap: 30px; }
  .category-grid { grid-template-columns: 1fr; }.category-card { min-height: auto; }.category-art { height: 185px; }.resource-type-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 600px) and (max-width: 780px) {
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .hero-copy h1 { max-width: 390px; font-size: 38px; line-height: 1.04; }.eyebrow { margin-bottom: 26px; font-size: .66rem; letter-spacing: .1em; }
  h1 { font-size: 2.75rem; }.hero-actions { flex-direction: column; gap: 18px; }.hero-badges { gap: 8px 12px; }.hero-badges span { font-size: .69rem; }.hero-media { min-height: 400px; }.photo-label { padding: 10px 12px; }.label-top { left: -3px; }.label-bottom { right: -3px; bottom: 55px; }
  .benefit-grid { grid-template-columns: 1fr; }.benefit-card { min-height: auto; }.masonry { grid-auto-rows: 190px; }.masonry figure, .masonry .wide, .masonry .tall { grid-column: 1/-1; grid-row: span 1; }
  .about-image { height: 390px; }.heart-doodle { right: 0; font-size: 5rem; }.portal-card { display: block; padding: 28px; text-align: center; }.portal-icon { margin: 0 auto 22px; }.portal-card .button { margin-top: 25px; }.map-placeholder { height: 330px; }
  .newsletter-form { grid-template-columns: 1fr; }.newsletter-form .form-status { grid-column: 1; }.contact-box { width: calc(100% - 20px); }.footer-main { grid-template-columns: 1fr; }.footer-main > .footer-brand { grid-column: auto; }.footer-bottom { flex-direction: column; gap: 6px; }.whatsapp-float { right: 15px; bottom: 15px; width: 55px; height: 55px; }
  .portal-header .brand-name { display: none; }.login-card { width: calc(100% - 30px); }.resource-toolbar { align-items: flex-start; flex-direction: column; gap: 16px; }
  .resource-hero { padding: 125px 0 65px; }.resource-hero h1 { font-size: 2.8rem; }.library-nav { align-items: flex-start; flex-direction: column; gap: 18px; }.library-heading { align-items: flex-start; flex-direction: column; }.resource-type-grid { grid-template-columns: 1fr; }.resource-type-card { min-height: 108px; }.category-copy { padding: 25px; }
}

/* ================================================================
   PORTAL FAMILIAR SIMPLE
   Un único acceso compartido y recursos organizados por categoría.
   ================================================================ */
.family-portal-page { min-height: 100vh; background: #fff7fa; }
.family-portal-header { position: absolute; z-index: 20; top: 0; left: 50%; display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 40px)); padding: 18px 0; transform: translateX(-50%); }
.family-portal-header .brand img { width: 86px; height: 86px; object-fit: contain; }
.family-home-link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.88); box-shadow: 0 8px 24px rgba(90,56,37,.1); color: var(--brand-brown); font-size: .78rem; font-weight: 800; transition: transform 250ms ease, box-shadow 250ms ease; }
.family-home-link:hover { box-shadow: 0 12px 28px rgba(90,56,37,.16); transform: translateY(-2px); }

.family-login-screen { display: grid; min-height: 100vh; grid-template-columns: minmax(330px, .85fr) minmax(520px, 1.15fr); }
.family-login-art { position: relative; display: flex; overflow: hidden; padding: 160px 9% 70px; background: linear-gradient(145deg, #a887e8 0%, #c5acef 100%); align-items: flex-end; }
.family-login-art::before, .family-login-art::after { position: absolute; border: 46px solid; border-radius: 50%; content: ''; }
.family-login-art::before { top: 15%; left: -120px; width: 320px; height: 320px; border-color: #ff82a8; opacity: .9; }
.family-login-art::after { right: -120px; bottom: -140px; width: 360px; height: 360px; border-color: #f8c34d; opacity: .9; }
.family-login-art > span { position: absolute; z-index: 1; color: white; line-height: 1; }
.portal-cloud { top: 26%; right: 17%; font-size: 5rem; opacity: .45; }
.portal-star { top: 45%; left: 22%; color: #f8c34d !important; font-size: 3.5rem; }
.portal-heart { right: 22%; bottom: 32%; color: #ff82a8 !important; font-size: 6rem; }
.portal-art-copy { position: relative; z-index: 2; max-width: 440px; color: white; }
.portal-art-copy small { display: block; margin-bottom: 18px; font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
.portal-art-copy strong { display: block; font-family: var(--display); font-size: clamp(2.4rem, 4.5vw, 4.5rem); line-height: 1.04; letter-spacing: -.045em; }

.family-login-panel { display: grid; padding: 140px 30px 65px; place-items: center; }
.family-login-card { width: min(470px, 100%); }
.family-lock { display: grid; width: 58px; height: 58px; margin-bottom: 25px; border-radius: 19px; background: #ffe8ef; color: var(--brand-pink); font-size: 1.5rem; place-items: center; }
.family-login-card h1 { max-width: 440px; font-size: clamp(3rem, 5vw, 4.5rem); }
.family-login-card > p { margin: 20px 0 30px; font-size: 1rem; }
.family-login-card form { display: grid; gap: 10px; }
.family-login-card label { color: var(--brand-brown); font-size: .78rem; font-weight: 800; }
.family-login-card .password-wrap input { min-height: 58px; border: 1px solid #ecd7df; background: white; color: var(--brand-brown); }
.family-login-card .password-wrap input:focus { border-color: var(--brand-lilac); box-shadow: 0 0 0 4px rgba(168,135,232,.13); }
.family-login-card form > .button { width: 100%; margin-top: 8px; }
.family-login-card .login-status { min-height: 24px; margin: 0; color: #b14255; font-size: .78rem; }
.family-password-help { margin-top: 18px !important; padding: 15px 17px; border-radius: 16px; background: #fff0c9; color: var(--brand-brown) !important; font-size: .77rem !important; }

.family-resource-center { min-height: 100vh; background: #fffafc; }
.family-resource-hero { padding: 145px 0 75px; background: linear-gradient(135deg, #fff0f5 0%, #f1eaff 65%, #fff6da 100%); }
.family-resource-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.family-resource-heading h1 { max-width: 760px; font-size: clamp(3rem, 6vw, 5.4rem); }
.family-resource-heading p { max-width: 660px; margin-top: 18px; font-size: 1rem; }
.family-logout { flex: 0 0 auto; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--brand-brown); box-shadow: 0 8px 20px rgba(90,56,37,.2); color: white; font-size: .76rem; font-weight: 800; cursor: pointer; transition: transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease; }
.family-logout:hover { background: var(--brand-brown-hover); box-shadow: 0 12px 25px rgba(90,56,37,.3); transform: translateY(-2px); }
.family-resource-body { padding-top: 70px; padding-bottom: 100px; }
.family-resource-section + .family-resource-section { margin-top: 85px; }
.family-section-title { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.family-section-title > span { display: grid; width: 52px; height: 52px; border-radius: 17px; background: var(--brand-yellow); color: var(--brand-brown); font-family: var(--display); font-weight: 800; place-items: center; }
.family-section-title small { color: var(--brand-pink); font-size: .66rem; font-weight: 800; letter-spacing: .15em; }
.family-section-title h2 { margin-top: 3px; font-size: clamp(2.1rem, 4vw, 3.4rem); }
.family-section-intro { max-width: 650px; margin: -14px 0 30px 70px; }
.family-category-grid { display: grid; gap: 20px; }
.group-grid { grid-template-columns: repeat(3, 1fr); }
.exam-grid { grid-template-columns: repeat(5, 1fr); }
.family-category-card { display: flex; min-width: 0; min-height: 310px; padding: 28px; border: 0; border-radius: 30px; background: white; box-shadow: 0 15px 42px rgba(90,56,37,.09); color: var(--brand-brown); text-align: left; cursor: pointer; flex-direction: column; transition: transform 250ms ease, box-shadow 250ms ease, filter 250ms ease; }
.family-category-card:hover { box-shadow: 0 22px 50px rgba(90,56,37,.15); filter: saturate(1.06); transform: translateY(-5px); }
.family-category-card:focus-visible { outline: 3px solid var(--brand-lilac); outline-offset: 4px; }
.family-category-icon { display: grid; width: 64px; height: 64px; margin-bottom: auto; border-radius: 20px; background: rgba(255,255,255,.76); font-family: var(--display); font-size: 1.55rem; font-weight: 800; place-items: center; }
.family-category-card small { margin-top: 24px; font-size: .62rem; font-weight: 800; letter-spacing: .13em; }
.family-category-card strong { margin: 6px 0 12px; font-family: var(--display); font-size: 2rem; line-height: 1; }
.family-category-card > span:not(.family-category-icon) { color: #765f53; font-size: .82rem; line-height: 1.5; }
.family-category-card b { margin-top: 24px; font-size: .77rem; }
.family-category-card.toddlers { background: linear-gradient(145deg, #ffe5ed, #fff7fa); }
.family-category-card.kids { background: linear-gradient(145deg, #eee6fc, #faf8ff); }
.family-category-card.preteens { background: linear-gradient(145deg, #fff0bd, #fff9e8); }
.family-category-card.exam { min-height: 250px; padding: 24px; }
.family-category-card.exam small { min-height: 38px; margin-top: 0; color: rgba(90,56,37,.72); }
.family-category-card.exam strong { font-size: 1.65rem; }
.family-category-card.exam b { margin-top: auto; padding-top: 22px; }
.family-category-card.starters, .family-category-card.flyers { background: #ffe8ef; }
.family-category-card.movers, .family-category-card.pet { background: #eee6fc; }
.family-category-card.ket { background: #fff0bd; }

.family-library { min-height: 600px; }
.family-back-button { min-height: 44px; margin-bottom: 42px; padding: 10px 18px; border: 0; border-radius: 999px; background: #fff0c9; color: var(--brand-brown); font-size: .76rem; font-weight: 800; cursor: pointer; transition: transform 250ms ease, box-shadow 250ms ease; }
.family-back-button:hover { box-shadow: 0 10px 22px rgba(246,192,77,.25); transform: translateY(-2px); }
.family-library-heading { display: flex; align-items: center; gap: 24px; max-width: 850px; margin-bottom: 38px; }
.family-library-icon { display: grid; flex: 0 0 auto; width: 92px; height: 92px; padding: 8px; border-radius: 28px; background: var(--brand-lilac); color: white; font-family: var(--display); font-size: 1.25rem; font-weight: 800; text-align: center; place-items: center; }
.family-library-heading small { color: var(--brand-pink); font-size: .66rem; font-weight: 800; letter-spacing: .14em; }
.family-library-heading h2 { margin: 5px 0 8px; font-size: clamp(2.3rem, 4vw, 3.8rem); }
.family-library-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.family-library-meta span { padding: 7px 12px; border-radius: 999px; background: #fff0c9; color: var(--brand-brown); font-size: .66rem; font-weight: 800; }
.family-library-meta span:nth-child(2) { background: #ffe7ef; }
.family-library-meta span:nth-child(3) { background: #eee6fc; }
.family-resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.family-resource-card { display: flex; min-height: 190px; padding: 22px; border: 1px solid #ecdde2; border-radius: 24px; background: white; flex-direction: column; }
.family-resource-card.is-ready { border-color: #d8c6f6; box-shadow: 0 12px 30px rgba(168,135,232,.12); transition: transform 250ms ease, box-shadow 250ms ease; }
.family-resource-card.is-ready:hover { box-shadow: 0 18px 38px rgba(168,135,232,.2); transform: translateY(-4px); }
.family-resource-icon { display: grid; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 15px; background: #ffe8ef; color: var(--brand-brown); font-family: var(--display); font-size: .9rem; font-weight: 800; place-items: center; }
.family-resource-icon svg { width: 25px; height: 25px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.family-resource-card:nth-child(2) .family-resource-icon, .family-resource-card:nth-child(6) .family-resource-icon { background: #fff0bd; }
.family-resource-card:nth-child(3) .family-resource-icon, .family-resource-card:nth-child(5) .family-resource-icon { background: #eee6fc; }
.family-resource-card:nth-child(4) .family-resource-icon { background: #f2e8df; }
.family-resource-card strong, .family-resource-card small { display: block; }
.family-resource-card strong { font-family: var(--display); font-size: 1.08rem; }
.family-resource-card small { margin-top: 6px; color: var(--text); font-size: .74rem; line-height: 1.45; }
.family-resource-card i { margin-top: auto; padding-top: 18px; color: #9b8790; font-size: .68rem; font-style: normal; font-weight: 800; }
.family-resource-card.is-ready i { color: var(--brand-lilac); }
.family-update-note { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 22px 25px; border-radius: 22px; background: #fff0c9; }
.family-update-note > span { color: var(--brand-pink); font-size: 2rem; }
.family-update-note p { font-size: .82rem; }

@media (max-width: 1050px) {
  .exam-grid { grid-template-columns: repeat(3, 1fr); }
  .family-resource-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .family-portal-header { width: min(100% - 28px, 620px); }
  .family-portal-header .brand img { width: 72px; height: 72px; }
  .family-login-screen { display: block; padding: 120px 0 60px; }
  .family-login-art { display: none; }
  .family-login-panel { min-height: calc(100vh - 180px); padding: 20px 22px; }
  .family-resource-hero { padding: 125px 0 60px; }
  .family-resource-heading { align-items: flex-start; flex-direction: column; }
  .group-grid { grid-template-columns: 1fr; }
  .exam-grid { grid-template-columns: repeat(2, 1fr); }
  .family-category-card { min-height: 270px; }
  .family-resource-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .family-home-link { padding: 8px 13px; font-size: .7rem; }
  .family-login-card h1 { font-size: 2.85rem; }
  .family-resource-body { padding-top: 55px; }
  .family-resource-section + .family-resource-section { margin-top: 65px; }
  .family-section-title { align-items: flex-start; }
  .family-section-title > span { width: 44px; height: 44px; border-radius: 14px; }
  .family-section-intro { margin-left: 0; }
  .exam-grid, .family-resource-grid { grid-template-columns: 1fr; }
  .family-category-card.exam { min-height: 210px; }
  .family-library-heading { align-items: flex-start; flex-direction: column; }
  .family-library-icon { width: 74px; height: 74px; border-radius: 22px; }
  .family-resource-card { min-height: 170px; }
  .family-update-note { align-items: flex-start; }
}
