/* Cares Home-based Tuition theme. Built by Wallflower Agency. */

:root {
	/* Existing Cares brand palette (from the live site). */
	--navy: #2a337e;          /* primary indigo */
	--navy-700: #20276a;      /* darker indigo */
	--blue: #2a337e;          /* links use the brand indigo */
	--blue-700: #20276a;
	--gold: #bdcb3a;          /* brand lime-green accent */
	--gold-700: #a6b32f;
	--coral: #e6573f;         /* tertiary accent from the template */
	--ink: #444444;
	--heading: #2a337e;
	--gray: #6e6e6e;
	--line: #e6e8f0;
	--bg: #ffffff;
	--bg-tint: #f6f7fb;
	--bg-soft: #eef0f8;
	--radius: 10px;
	--shadow: 0 10px 30px rgba(42, 51, 126, .10);
	--shadow-sm: 0 4px 14px rgba(42, 51, 126, .07);
	--maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.65;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Raleway', 'Poppins', system-ui, sans-serif; line-height: 1.2; color: var(--heading); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.content-narrow { max-width: 760px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 10px 16px; z-index: 1000; border-radius: 8px; }

/* Buttons */
.btn { display: inline-block; border-radius: 10px; padding: 12px 22px; font-weight: 600; font-size: .98rem; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 1.03rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-700); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }
.brand-logo { display: flex; align-items: center; }
.brand-logo img { display: block; height: 44px; width: auto; }
.brand-text { display: flex; align-items: center; }
.brand-name { font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.custom-logo { max-height: 52px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 26px; }
.nav-list { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; align-items: center; }
.nav-list a { color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav-list a:hover { color: var(--blue); text-decoration: none; }
.nav-cta { white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }

/* Hero */
.hero { background: linear-gradient(160deg, #f6f7fb 0%, #e9ebf6 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 64px 24px; }
.hero-photo img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); display: block; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--gold-700); margin-bottom: 14px; }
.hero h1 { margin-bottom: 18px; }
.hero-sub { font-size: 1.15rem; color: var(--gray); max-width: 36em; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { list-style: none; display: flex; gap: 26px; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-trust li { font-size: .92rem; color: var(--navy); position: relative; padding-left: 22px; }
.hero-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-700); font-weight: 700; }
/* Media sections (about / study-abroad) */
.media-section { padding: 64px 0; }
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.media-row--reverse .media-figure { order: 2; }
.media-figure img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); display: block; }
.media-copy h2 { margin-bottom: 14px; }
.media-copy p { color: var(--gray); font-size: 1.04rem; margin-bottom: 16px; }
.tick-list { list-style: none; margin: 0 0 22px; padding: 0; }
.tick-list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--ink); }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--gold); width: 20px; height: 20px; border-radius: 50%; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Partners / clients strip */
.clients-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 44px; }
.clients-strip img { height: 56px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: .7; transition: opacity .15s ease, filter .15s ease; }
.clients-strip img:hover { filter: grayscale(0); opacity: 1; }

/* Sections */
.section { padding: 72px 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--navy); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--gray); font-size: 1.08rem; margin: 0; }
.section-head--light h2, .section-head--light p { color: #fff; }
.group-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-700); margin: 8px 0 18px; font-family: 'Inter', sans-serif; font-weight: 700; }
.group-label--muted { color: var(--gray); margin-top: 40px; }
.admin-note { display: inline-block; margin-top: 12px; font-size: .85rem; background: #fff7e6; color: #8a6d3b; border: 1px solid #f0d9a8; padding: 6px 12px; border-radius: 8px; }
.admin-note--light { background: rgba(255,255,255,.12); color: #ffe6b0; border-color: rgba(255,255,255,.2); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid--secondary { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h4 { margin-bottom: 8px; }
.card p { color: var(--gray); margin: 0; font-size: .97rem; }
.card--secondary { background: var(--bg-tint); box-shadow: none; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-ico { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.feature h4 { margin-bottom: 6px; }
.feature p { color: var(--gray); font-size: .95rem; margin: 0; }

/* Success stories */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.story-result { align-self: flex-start; background: #eaf7ef; color: #1c7a45; font-weight: 700; font-size: .82rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.story-excerpt { color: var(--ink); font-size: 1rem; margin-bottom: 16px; }
.story-meta { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.story-meta strong { color: var(--navy); }
.story-meta span { color: var(--gray); font-size: .88rem; }
.story-link { margin-top: 12px; font-weight: 600; font-size: .9rem; }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card { background: var(--navy-700); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 26px; margin: 0; color: #eaf1f8; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.quote-card blockquote { margin: 0 0 16px; font-size: 1.02rem; line-height: 1.55; }
.quote-card figcaption { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
.quote-card figcaption strong { color: #fff; }
.quote-card figcaption span { color: #aebfd0; font-size: .86rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--gold) 0%, #f2bd4d 100%); padding: 64px 0; text-align: center; }
.cta-inner h2 { color: var(--navy); }
.cta-inner p { color: #5a4410; font-size: 1.1rem; max-width: 34em; margin: 0 auto 24px; }

/* Content pages */
.page-content { padding: 56px 0; }
.page-head { margin-bottom: 28px; }
.post-meta { color: var(--gray); font-size: .9rem; margin-bottom: 8px; }
.page-featured { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }
.entry { font-size: 1.06rem; }
.entry .lead { font-size: 1.15rem; color: var(--gray); margin-bottom: 1.2em; }
.entry h2 { margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry img { border-radius: 10px; margin: 1.2em 0; }
.back-link { margin-top: 36px; }

/* Blog grid */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.post-thumb img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card-title { font-size: 1.2rem; margin-bottom: 10px; }
.post-card-title a { color: var(--navy); }
.post-card-excerpt { color: var(--gray); font-size: .95rem; flex: 1; }
.post-card-link { font-weight: 600; font-size: .9rem; margin-top: 12px; }
.pagination { margin-top: 40px; text-align: center; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; margin: 0 3px; color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Contact form */
.contact-form { margin: 8px 0 28px; }
.cf-field { margin: 0 0 16px; }
.cf-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.cf-field input, .cf-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-notice { padding: 14px 18px; border-radius: 10px; margin: 0 0 20px; font-size: .98rem; }
.form-notice--ok { background: #eaf7ef; color: #1c7a45; border: 1px solid #b8e6cb; }
.form-notice--error { background: #fdeceb; color: #b32d2e; border: 1px solid #f5c6c4; }
.contact-alt { border-top: 1px solid var(--line); padding-top: 20px; color: var(--gray); }
.contact-alt p { margin: 0 0 6px; }

/* Search form */
.search-form { display: flex; gap: 10px; margin: 20px 0; }
.search-field { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }

/* Footer */
.site-footer { background: var(--navy); color: #c7d4e2; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 24px 36px; }
.footer-brand { font-family: 'Fraunces', serif; font-size: 1.3rem; color: #fff; margin-bottom: 10px; }
.footer-tag { color: #9fb2c6; max-width: 32em; }
.footer-col h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-menu, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-menu li, .footer-contact li { margin-bottom: 8px; }
.footer-menu a, .footer-contact a { color: #c7d4e2; }
.footer-menu a:hover, .footer-contact a:hover { color: #fff; }
.social-links { display: flex; gap: 12px; margin-top: 18px; }
.social-link { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease; }
.social-link:hover { background: var(--gold); color: var(--navy); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding: 18px 24px; font-size: .85rem; color: #8ea3b8; flex-wrap: wrap; }
.footer-credit a { color: #c7d4e2; }

/* Responsive */
@media (max-width: 900px) {
	.hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px; }
	.hero-photo { order: -1; }
	.media-row { grid-template-columns: 1fr; gap: 28px; }
	.media-row--reverse .media-figure { order: 0; }
	.card-grid, .card-grid--secondary, .feature-grid, .story-grid, .quote-grid, .post-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.nav-toggle { display: flex; }
	.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px; box-shadow: var(--shadow); }
	.primary-nav.open { display: flex; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-list li { border-bottom: 1px solid var(--line); }
	.nav-list a { display: block; padding: 12px 0; }
	.nav-cta { margin-top: 14px; text-align: center; }
	.card-grid, .card-grid--secondary, .feature-grid, .story-grid, .quote-grid, .post-grid, .footer-grid { grid-template-columns: 1fr; }
	.hero-trust { gap: 16px; }
}
