/*
Theme Name: ThruNorth
Theme URI: https://thrunorth.com.au
Author: ThruNorth
Description: Custom block theme for ThruNorth – Teen Weight Management & Wellness. On activation it imports the brand images, builds the Home, About Us, For Parents and How to Apply pages, sets Home as the front page and creates the main menu. All content is editable with the standard WordPress block editor.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thrunorth
Tags: block-patterns, full-site-editing, one-column, custom-colors, custom-logo
*/

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:where(section, .wp-block-group)[id] { scroll-margin-top: 100px; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* Flow/constrained layouts add top margins between children; sections handle their own spacing */
.wp-site-blocks > main { margin-block-start: 0; }
.wp-site-blocks > footer { margin-block-start: 0; }
.entry-content > .alignfull, .wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* ==========================================================
   Utilities
   ========================================================== */
.tn-eyebrow {
	text-transform: uppercase;
	letter-spacing: .13em;
	font-weight: 800;
	font-size: .76rem !important;
	color: var(--wp--preset--color--orange);
	margin-bottom: 1rem !important;
}
.tn-eyebrow.is-light { color: #f4b98c; }
.tn-lead { font-size: 1.2rem !important; }
.tn-orange-line.wp-block-separator {
	width: 46px; max-width: 46px; height: 3px; border: 0 !important;
	background: var(--wp--preset--color--orange) !important; opacity: 1;
	margin: 1.6rem 0 !important;
}
.tn-orange-line.is-center, .has-text-align-center + .tn-orange-line { margin-left: auto !important; margin-right: auto !important; }
.tn-tagline { font-weight: 800; font-size: 1.15rem !important; margin: 0 !important; }
.tn-tagline.is-green { color: var(--wp--preset--color--green); font-size: 1.35rem !important; }
.tn-statement {
	border-left: 4px solid var(--wp--preset--color--orange);
	padding-left: 18px;
	font-size: 1.1rem !important;
}
.tn-closing { font-size: 1.08rem !important; }
.tn-text-link a, a.tn-text-link {
	color: var(--wp--preset--color--green);
	font-weight: 800;
	text-decoration: none;
	border-bottom: 2px solid var(--wp--preset--color--orange);
	padding-bottom: 2px;
}
.tn-text-link a:hover { color: var(--wp--preset--color--deep); }
.tn-muted { color: var(--wp--preset--color--muted); }
.tn-fine { opacity: .8; font-size: .88rem !important; }

/* Buttons */
.wp-block-button .wp-block-button__link { transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.tn-btn-orange .wp-block-button__link { background: var(--wp--preset--color--orange); color: #fff; }
.wp-block-button.tn-btn-orange .wp-block-button__link:hover { background: #d0681a; }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(255,255,255,.85);
	border: 2px solid var(--wp--preset--color--green);
	color: var(--wp--preset--color--green);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--green); color: #fff; }
.wp-block-button.tn-btn-light .wp-block-button__link { background: #fff; color: var(--wp--preset--color--deep); }
.wp-block-button.tn-btn-outline-light .wp-block-button__link { background: transparent; border: 2px solid rgba(255,255,255,.75); color: #fff; }

/* ==========================================================
   Header
   ========================================================== */
.tn-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.96);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(23,51,47,.08);
}
.admin-bar .tn-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tn-header { top: 46px; } }
.tn-header-inner { min-height: 86px; }
.tn-header .wp-block-site-logo img { width: auto; max-height: 58px; }
.tn-header .wp-block-navigation { font-weight: 700; font-size: .95rem; }
.tn-header .wp-block-navigation a:hover { color: var(--wp--preset--color--orange); }
.tn-header .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.tn-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.1rem; font-size: 1.15rem; }
.tn-header .tn-header-cta .wp-block-button__link { padding: .75rem 1.3rem; font-size: .95rem; }
@media (max-width: 600px) {
	.tn-header .tn-header-cta { display: none; }
	.tn-header .wp-block-site-logo img { max-height: 44px; }
	.tn-header-inner { min-height: 70px; }
}

/* ==========================================================
   Hero
   ========================================================== */
.tn-hero { background: linear-gradient(135deg, #fbf8f1 0%, #fff 55%, #e8efe7 100%); }
.tn-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); letter-spacing: -.045em; margin-bottom: 1.4rem; }
.tn-hero-photo { position: relative; margin: 0; }
.tn-hero-photo img { width: 100%; height: 600px; object-fit: cover; border-radius: 28px; box-shadow: 0 25px 70px rgba(31,81,72,.18); display: block; }
.tn-hero-badge { position: relative; }
.tn-hero-badge .tn-hero-logo { position: absolute; right: -24px; top: 28px; width: 150px; margin: 0; z-index: 2; background: #fff; border-radius: 50%; padding: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.12); }
.tn-hero-badge .tn-hero-logo img { display: block; }
@media (max-width: 781px) {
	.tn-hero-photo img { height: 340px; }
	.tn-hero-badge .tn-hero-logo { width: 96px; right: 12px; top: 12px; padding: 12px; }
	.tn-hero .tn-hero-cols { flex-direction: column-reverse; }
}

/* ==========================================================
   Benefit strip
   ========================================================== */
.tn-strip { background: linear-gradient(90deg, var(--wp--preset--color--deep), var(--wp--preset--color--forest), var(--wp--preset--color--deep)); color: #fff; }
.tn-strip-grid { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 0 !important; }
.tn-strip-grid > * { margin: 0 !important; }
.tn-strip-item {
	display: flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 84px; padding: 10px 14px;
	border-right: 1px solid rgba(255,255,255,.22);
	font-size: .86rem !important; font-weight: 800; line-height: 1.3; color: #fff;
}
.tn-strip-item:last-child { border-right: 0; }
.tn-strip-icon { font-size: 1.7rem; line-height: 1; color: #f4b98c; }
@media (max-width: 900px) {
	.tn-strip-grid { grid-template-columns: 1fr 1fr; }
	.tn-strip-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); justify-content: flex-start; }
}
@media (max-width: 520px) { .tn-strip-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   Sections
   ========================================================== */
.tn-section h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.035em; }
.tn-quote.wp-block-quote {
	border: 0; padding: 0; margin: 2rem 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.45;
	color: var(--wp--preset--color--green);
}
.tn-quote.wp-block-quote p { font-size: inherit; }

/* Why different */
.tn-diff-card { background: rgba(255,255,255,.75); border-radius: 18px; padding: 34px !important; box-shadow: 0 12px 30px rgba(0,0,0,.05); height: 100%; }
.tn-no-row { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 14px !important; margin-top: 1.4rem !important; }
.tn-no-row > * { margin: 0 !important; }
.tn-no {
	text-align: center; font-weight: 800; line-height: 1.25; font-size: .95rem !important;
}
.tn-no::before {
	content: "×"; display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin: 0 auto 10px;
	border: 2px solid var(--wp--preset--color--green); border-radius: 50%;
	font-size: 1.6rem; font-weight: 400; color: var(--wp--preset--color--orange);
}
.tn-note { font-weight: 800; font-size: 1.12rem !important; text-align: center; }
.tn-note mark { background: none; color: var(--wp--preset--color--orange); }
.tn-side-photo, .tn-side-photo img { height: 100%; margin: 0; }
.tn-who-photo { margin: 0 0 1.8rem !important; }
.tn-who-photo img { width: 100%; height: 340px; object-fit: cover; border-radius: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.08); display: block; }
.tn-diff-card { display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 782px) { .tn-sticky { position: sticky; top: 120px; align-self: flex-start; } }
.tn-side-photo img { width: 100%; min-height: 320px; object-fit: cover; border-radius: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.08); display: block; }

/* Cards */
.tn-cards { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 18px !important; }
.tn-cards > * { margin: 0 !important; }
.tn-card { border: 1px solid var(--wp--preset--color--line); border-radius: 18px; padding: 28px !important; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.tn-card:hover { box-shadow: 0 16px 40px rgba(23,51,47,.08); transform: translateY(-3px); }
.tn-card h3 { font-size: 1.22rem; margin: 0 0 .6rem; }
.tn-card p { color: var(--wp--preset--color--muted); margin: 0; }
.tn-card .tn-card-num { color: var(--wp--preset--color--orange); font-weight: 800; font-size: .82rem !important; margin-bottom: .9rem; letter-spacing: .05em; }
@media (max-width: 900px) { .tn-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tn-cards { grid-template-columns: 1fr; } }

/* Photo strip */
.tn-photo-strip { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 18px !important; }
.tn-photo-strip > * { margin: 0 !important; }
.tn-photo-strip .wp-block-image { background: var(--wp--preset--color--cream); border-radius: 18px; overflow: hidden; }
.tn-photo-strip .wp-block-image img { width: 100%; height: 260px; object-fit: cover; display: block; }
.tn-photo-strip .wp-element-caption { margin: 0; padding: 14px 16px; font-weight: 800; text-align: left; color: var(--wp--preset--color--ink); font-size: .95rem; }
@media (max-width: 900px) { .tn-photo-strip { grid-template-columns: 1fr 1fr; } .tn-photo-strip > :last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .tn-photo-strip { grid-template-columns: 1fr; } }

/* Feature band */
.tn-band { background: var(--wp--preset--color--forest); color: #fff; border-radius: 24px; padding: 48px !important; }
.tn-band h2 { color: #fff; margin: 0; }
@media (max-width: 600px) { .tn-band { padding: 30px !important; } }

/* Journey / phases */
.tn-phase { background: #fff; border-left: 6px solid var(--wp--preset--color--orange); border-radius: 12px; padding: 22px !important; }
.tn-phase h4 { color: var(--wp--preset--color--green); font-size: 1.15rem; margin: 0 0 .4rem; }
.tn-phase p { margin: 0; font-size: .95rem; }
.tn-support-box { background: #fff; border-radius: 20px; padding: 0 0 34px !important; box-shadow: 0 18px 50px rgba(23,51,47,.08); overflow: hidden; }
.tn-support-box > :not(.tn-support-photo) { padding-left: 34px; padding-right: 34px; }
.tn-support-photo { margin: 0 0 28px !important; }
.tn-support-photo img { width: 100%; height: 250px; object-fit: cover; display: block; }

/* Check list */
.tn-check-list { list-style: none; padding: 0 !important; margin: 0; }
.tn-check-list li { position: relative; padding: 0 0 18px 36px; border-bottom: 1px solid var(--wp--preset--color--line); margin-bottom: 18px; }
.tn-check-list li:last-child { border-bottom: 0; margin-bottom: 0; }
.tn-check-list li::before {
	content: "✓"; position: absolute; left: 0; top: 1px;
	width: 24px; height: 24px; border-radius: 50%;
	background: var(--wp--preset--color--green); color: #fff;
	display: grid; place-items: center; font-weight: 800; font-size: .78rem;
}
.tn-check-list.is-compact li { padding-bottom: 12px; margin-bottom: 12px; }

/* Program details */
.tn-details { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 16px !important; }
.tn-details > * { margin: 0 !important; }
.tn-detail { background: #fff; border-radius: 16px; padding: 22px 18px !important; text-align: center; border-top: 4px solid var(--wp--preset--color--orange); box-shadow: 0 10px 30px rgba(23,51,47,.06); }
.tn-detail p { margin: 0; }
.tn-detail .tn-detail-label { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem !important; font-weight: 800; color: var(--wp--preset--color--muted); }
.tn-detail .tn-detail-value { font-family: var(--wp--preset--font-family--heading); font-size: 1.35rem !important; font-weight: 800; color: var(--wp--preset--color--green); margin-top: .3rem; }
@media (max-width: 900px) { .tn-details { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .tn-details { grid-template-columns: 1fr 1fr; } }

/* Safety grid */
.tn-safety-grid { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 18px !important; }
.tn-safety-grid > * { margin: 0 !important; }
.tn-safety-item { padding: 26px !important; background: var(--wp--preset--color--cream); border-radius: 16px; }
.tn-safety-item h3 { font-size: 1.05rem; margin: 0 0 .55rem; }
.tn-safety-item p { color: var(--wp--preset--color--muted); font-size: .94rem; margin: 0; }
@media (max-width: 900px) { .tn-safety-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tn-safety-grid { grid-template-columns: 1fr; } }

/* FAQ */
.tn-faq-box { background: var(--wp--preset--color--cream); border-radius: 22px; padding: 46px !important; box-shadow: 0 14px 35px rgba(0,0,0,.05); }
.tn-faq-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 18px !important; align-items: start; }
.tn-faq-grid > * { margin: 0 !important; }
.tn-faq-item.wp-block-details { background: #fff; border-radius: 12px; padding: 22px !important; border-left: 5px solid var(--wp--preset--color--orange); }
.tn-faq-item summary { cursor: pointer; list-style: none; font-family: var(--wp--preset--font-family--heading); font-size: 1.08rem; font-weight: 700; color: var(--wp--preset--color--green); padding-right: 30px; position: relative; }
.tn-faq-item summary::-webkit-details-marker { display: none; }
.tn-faq-item summary::after { content: "+"; position: absolute; right: 0; top: -4px; font-size: 1.6rem; color: var(--wp--preset--color--orange); font-weight: 400; }
.tn-faq-item[open] summary::after { content: "–"; }
.tn-faq-item p { margin: 1rem 0 0; font-size: .97rem; }
@media (max-width: 781px) { .tn-faq-grid { grid-template-columns: 1fr; } .tn-faq-box { padding: 28px !important; } }

/* Final CTA */
.tn-cta { background: var(--wp--preset--color--sand); overflow: hidden; }
.tn-cta-cols { gap: 0 !important; align-items: stretch !important; }
.tn-cta-media { display: flex; }
.tn-cta-media > .tn-cta-photo { flex: 1; }
.tn-cta-cols > .wp-block-column { margin: 0; }
.tn-cta-text { padding: 80px clamp(20px, 6vw, 90px) !important; }
.tn-cta-text h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.04em; color: var(--wp--preset--color--green); }
.tn-cta-logo { max-width: 280px; margin: 0 0 2rem !important; }
.tn-cta-photo { margin: 0; height: 100%; }
.tn-cta-photo img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; display: block; }
@media (max-width: 781px) { .tn-cta-photo img { min-height: 280px; } .tn-cta-text { padding: 56px 20px !important; } }

/* Page hero (inner pages) */
.tn-page-hero { background: linear-gradient(135deg, #fbf8f1 0%, #fff 55%, #e8efe7 100%); }
.tn-page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.045em; }

/* Steps (How to apply) */
.tn-steps { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 18px !important; counter-reset: tnstep; }
.tn-steps > * { margin: 0 !important; }
.tn-step { background: #fff; border-radius: 16px; padding: 26px !important; border: 1px solid var(--wp--preset--color--line); counter-increment: tnstep; }
.tn-step::before { content: counter(tnstep); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--wp--preset--color--orange); color: #fff; font-weight: 800; margin-bottom: 1rem; }
.tn-step h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.tn-step p { color: var(--wp--preset--color--muted); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .tn-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tn-steps { grid-template-columns: 1fr; } }

.tn-form-box { background: #fff; border: 2px dashed var(--wp--preset--color--sage-text); border-radius: 20px; padding: 40px !important; }

/* ==========================================================
   Footer
   ========================================================== */
.tn-footer { background: linear-gradient(90deg, var(--wp--preset--color--deep), var(--wp--preset--color--forest)); color: rgba(255,255,255,.88); }
.tn-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.tn-footer a:hover { color: #fff; text-decoration: underline; }
.tn-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 .8rem; }
.tn-footer p { margin: 0 0 .45rem; font-size: .92rem; }
.tn-footer .tn-footer-logo { max-width: 260px; margin: 0 0 1rem; }
.tn-footer .tn-reset { color: #f4b98c; font-weight: 800; }
.tn-copyright { margin-top: 2.5rem !important; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; opacity: .7; }
