/* SM Tutor — supplementary styles (most styling lives in theme.json). */

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--wp--preset--color--border); backdrop-filter: saturate(1.4) blur(10px); background-color: rgba(255,255,255,.92) !important; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.wp-block-site-title.brand { display: inline-flex; align-items: center; gap: .6rem; margin: 0; }
.wp-block-site-title.brand::before { content: "</>"; display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 10px; background: var(--wp--preset--gradient--brand); color: #fff; font: 700 .8rem/1 var(--wp--preset--font-family--heading); letter-spacing: -.04em; flex-shrink: 0; }
.brand--light a { color: #fff !important; }
.site-header .wp-block-navigation { gap: 1.6rem; }
.site-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.site-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }
.site-header .wp-block-navigation .nav-cta a,
.site-header .wp-block-navigation .nav-cta > .wp-block-navigation-item__content { background: var(--wp--preset--color--primary); color: #fff !important; padding: .6rem 1.05rem; border-radius: 10px; font-weight: 600; }
.site-header .wp-block-navigation .nav-cta a:hover { background: var(--wp--preset--color--primary-dark); }
.wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 1.25rem; font-size: 1.15rem; }

/* Footer */
.site-footer .wp-block-navigation a { text-decoration: none; color: #c7d2fe !important; }
.site-footer .wp-block-navigation a:hover { color: #fff !important; }
.site-footer .wp-block-navigation { gap: .55rem; }

/* Typography helpers */
.is-style-eyebrow { font-family: var(--wp--preset--font-family--heading); font-size: .8rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--accent); margin-bottom: -.5rem !important; }
.text-gradient { background: var(--wp--preset--gradient--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guide-text { font-style: italic; margin-top: var(--wp--preset--spacing--40) !important; }
.section-intro { margin-bottom: var(--wp--preset--spacing--50); }
.section-intro > * { margin-left: 0 !important; }

/* Hero */
.page-hero { position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,.14), transparent 65%); pointer-events: none; }
.hero-photo img { box-shadow: var(--wp--preset--shadow--lift); width: 100%; height: auto; }
.trust-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--wp--preset--spacing--40) !important; }
.pill { display: inline-block; padding: .35rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--border); color: var(--wp--preset--color--muted); font-weight: 500; }

/* Stats */
.stats .wp-block-column { border-left: 3px solid var(--wp--preset--color--surface-2); padding-left: 1.1rem; }
.stat-num { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.02em; background: var(--wp--preset--gradient--brand); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .25rem !important; }

/* Cards */
.is-style-card { background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--large); padding: clamp(1.4rem, 2.5vw, 2rem); box-shadow: var(--wp--preset--shadow--card); transition: transform .2s ease, box-shadow .2s ease; }
.is-style-card:hover { transform: translateY(-3px); box-shadow: var(--wp--preset--shadow--lift); }
.is-style-card.is-featured { border: 2px solid var(--wp--preset--color--primary); position: relative; }
.is-style-card > .wp-block-buttons { margin-top: auto; padding-top: 1rem; }
.wp-block-column.is-style-card { display: flex; flex-direction: column; }
.card-image img { border-radius: var(--wp--custom--radius--medium); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.badge { display: inline-block; align-self: flex-start; padding: .25rem .7rem; border-radius: 999px; background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--primary); font-size: .78rem !important; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.quote-text { font-size: 1.05rem; line-height: 1.6; }

/* Tick lists */
ul.is-style-checks { list-style: none; padding-left: 0 !important; }
ul.is-style-checks li { position: relative; padding-left: 1.8rem; margin-bottom: .55rem; }
ul.is-style-checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--wp--preset--color--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234338CA'%3E%3Cpath d='M8.1 13.3 4.8 10l-1.1 1.1 4.4 4.4 8.6-8.6-1.1-1.1z'/%3E%3C/svg%3E") center/80% no-repeat; }

/* Steps */
.step-num { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--wp--preset--gradient--brand); color: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.1rem !important; }

/* Pricing */
.price { font-family: var(--wp--preset--font-family--heading); margin: .25rem 0 .5rem !important; }
.price strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--wp--preset--color--contrast); }
.price span { color: var(--wp--preset--color--muted); }

/* CTA band */
.cta-band { border-radius: 28px; box-shadow: var(--wp--preset--shadow--lift); position: relative; overflow: hidden; }
.cta-band__text { opacity: .9; }
.cta-band .wp-block-button__link:hover { background: var(--wp--preset--color--surface-2) !important; }

/* FAQ */
.wp-block-details { margin-bottom: .75rem !important; background: #fff; }
.wp-block-details summary { font-weight: 600; cursor: pointer; }
.wp-block-details[open] summary { margin-bottom: .5rem; color: var(--wp--preset--color--primary); }

/* Teacher / guidance notes */
.teacher-note { border: 2px dashed #c4b5fd; background: #faf5ff; border-radius: 14px; margin-bottom: var(--wp--preset--spacing--50) !important; }

/* Tables */
.progress-table table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--wp--preset--color--border); border-radius: 14px; overflow: hidden; background: #fff; }
.progress-table th { background: var(--wp--preset--color--surface-2); text-align: left; font-family: var(--wp--preset--font-family--heading); }
.progress-table th, .progress-table td { border: 0 !important; border-bottom: 1px solid var(--wp--preset--color--border) !important; padding: .8rem 1rem; }

/* Forms (enquiry + login) */
.smt-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.smt-form input[type=text], .smt-form input[type=email], .smt-form input[type=tel], .smt-form input[type=password], .smt-form select, .smt-form textarea,
.smt-login-card input[type=text], .smt-login-card input[type=password] { width: 100%; box-sizing: border-box; font: inherit; padding: .75rem .9rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: inherit; transition: border-color .15s, box-shadow .15s; }
.smt-form :is(input, select, textarea):focus, .smt-login-card input:focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 4px rgba(67,56,202,.15); }
.smt-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .smt-form__row { grid-template-columns: 1fr; } }
.smt-form p { margin: 0 0 1rem; }
.smt-check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--wp--preset--color--muted); }
.smt-check input { margin-top: .3rem; accent-color: var(--wp--preset--color--primary); }
.req { color: var(--wp--preset--color--accent); }
.opt { color: var(--wp--preset--color--muted); font-weight: 400; }
.smt-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.smt-btn, .smt-login-card #wp-submit { background: var(--wp--preset--color--primary); color: #fff; border: 0; border-radius: 10px; padding: .85rem 1.5rem; font: 600 1rem/1.2 var(--wp--preset--font-family--heading); cursor: pointer; }
.smt-btn:hover, .smt-login-card #wp-submit:hover { background: var(--wp--preset--color--primary-dark); }
.smt-notice { padding: 1rem 1.2rem; border-radius: 12px; background: var(--wp--preset--color--surface-2); margin-bottom: 1.25rem; }
.smt-notice--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.smt-notice--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Portal */
.portal-section { min-height: 60vh; }
.smt-login-card { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 22px; padding: 2.25rem; box-shadow: var(--wp--preset--shadow--lift); }
.smt-login-card h2 { margin-top: 0; font-size: 1.8rem; }
.smt-login-card label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.smt-login-card .login-remember label { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.smt-login-card .login-submit { margin-bottom: 0; }
.smt-login-card #wp-submit { width: 100%; }
.smt-muted { color: var(--wp--preset--color--muted); }
.smt-small { font-size: .9rem; }
.smt-portal__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.smt-portal__head h2 { margin: .25rem 0 0; }
.smt-eyebrow { font: 700 .8rem/1 var(--wp--preset--font-family--heading); letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--accent); margin: 0; }
.smt-logout { font-weight: 600; }
.smt-portal__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.smt-portal__card { display: flex; flex-direction: column; gap: .4rem; padding: 1.6rem; background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 18px; text-decoration: none !important; color: var(--wp--preset--color--muted) !important; box-shadow: var(--wp--preset--shadow--card); transition: transform .2s, box-shadow .2s, border-color .2s; }
.smt-portal__card strong { color: var(--wp--preset--color--contrast); font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; }
.smt-portal__card:hover { transform: translateY(-3px); border-color: var(--wp--preset--color--primary); box-shadow: var(--wp--preset--shadow--lift); }
.smt-portal__icon { font-size: 1.6rem; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 14px; background: var(--wp--preset--color--surface-2); margin-bottom: .4rem; }

/* Small screens */
@media (max-width: 781px) {
	.stats.wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
	.page-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.page-hero .wp-block-button__link { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
