/* ============================================================
   CST Academy — Homepage v1 ("Emotional Trust-First")
   Loads AFTER /home1/cst-home-base.css (the self-contained component
   library) and adds/overrides only home1-specific styles.
   ============================================================ */

/* ---------- Hero (split: copy + form card) ---------- */
.cst-home-page .home1-hero { background: var(--navy); color: #fff; padding: 72px 0; }
.cst-home-page .home1-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: stretch; }
.cst-home-page .home1-hero-content h1 { color: #fff; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.2; font-weight: 400; }
.cst-home-page .home1-hero-content h1 strong { font-weight: 800; }
.cst-home-page .home1-hero-sub { color: rgba(255,255,255,1); font-size: 17px; line-height: 1.6; margin: 18px 0 0; max-width: 60ch; }
.cst-home-page .home1-hero-card { background: var(--blue); color: #fff; border-radius: var(--radius-card); box-shadow: var(--card-shadow); padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.cst-home-page .home1-hero-card h2 { color: #fff; font-size: 22px; margin: 0 0 14px; }
.cst-home-page .home1-hero-note { color: rgba(255,255,255,0.85); font-size: 15px; margin: 12px 0 0; }
.cst-home-page .home1-hero-foot { text-align: left; color: rgba(255,255,255,1); font-size: 16px; margin: 22px 0 0; }
.cst-home-page .home1-hero-foot a { color: #fff; text-decoration: underline; font-weight: 600; }
.gfield_required.gfield_required_asterisk {
	color: #fff !important;
}
/* Hero Gravity Form (white card: dark labels, light inputs, navy button) */
.cst-home-page .home1-hero-gf .gform_fields { gap: 18px !important; row-gap: 18px !important; }
.cst-home-page .home1-hero-gf .gfield { margin-bottom: 0px !important; }
.cst-home-page .home1-hero-gf .gfield_label, .cst-home-page .home1-hero-gf legend,
.cst-home-page .home1-hero-gf label, .cst-home-page .home1-hero-gf .gform-field-label { color: #fff !important; margin-bottom: 4px !important; }
.cst-home-page .home1-hero-gf input[type=text], .cst-home-page .home1-hero-gf input[type=email],
.cst-home-page .home1-hero-gf input[type=tel], .cst-home-page .home1-hero-gf select, .cst-home-page .home1-hero-gf textarea {
	background: var(--pale) !important; border: 1px solid var(--powder) !important; border-radius: 10px !important;
	padding: 11px 14px !important; font-size: 16px; color: var(--body); font-family: inherit;
}
.cst-home-page .home1-hero-gf input::placeholder,
.cst-home-page .home1-hero-gf textarea::placeholder { color: var(--body) !important; opacity: 0.5 !important; }
.cst-home-page .home1-hero-gf input:focus, .cst-home-page .home1-hero-gf select:focus, .cst-home-page .home1-hero-gf textarea:focus { outline: none; border-color: var(--navy) !important; box-shadow: 0 0 0 3px rgba(59,126,171,0.15) !important; }
.cst-home-page .home1-hero-gf .gform_footer { margin-top: 26px; padding: 0; }
.cst-home-page .home1-hero-gf input[type=submit], .cst-home-page .home1-hero-gf .gform_button {
	background: var(--navy) !important; color: #fff !important; border: none !important; border-radius: var(--radius-btn) !important;
	padding: 14px 24px !important; font-weight: 700 !important; font-size: 16px !important; width: 100% !important; cursor: pointer;
}
.cst-home-page .home1-hero-gf input[type=submit]:hover, .cst-home-page .home1-hero-gf .gform_button:hover { background: var(--navy-deep) !important; }

/* ---------- Trust badge bar ---------- */
.cst-home-page .trust-bar { background: var(--pale-deep); padding: 20px 0; }
.cst-home-page .trust-bar .wrap { width: 96%; max-width: 1440px; }
.cst-home-page .trust-bar-row { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 18px; }
.cst-home-page .trust-bar-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; color: var(--navy); }
.cst-home-page .trust-bar-item .tb-ico { display: inline-flex; width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.cst-home-page .trust-bar-item .tb-ico svg { width: 100%; height: 100%; }
#gform_submit_button_20 {margin-top: 15px;}

/* ---------- Social proof strip ---------- */
.cst-home-page .proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cst-home-page .proof-card { margin: 0; background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius-card); box-shadow: var(--card-shadow); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.cst-home-page .proof-google { height: 32px; width: auto; display: block;max-width: fit-content; }
.cst-home-page .proof-card blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.cst-home-page .proof-card figcaption { margin-top: auto; font-weight: 700; color: var(--navy); font-size: 16px; }
.cst-home-page .proof-card figcaption span { font-weight: 400; color: var(--muted); }

/* ---------- Journey (horizontal 5-step timeline) ---------- */
.cst-home-page .journey { max-width: 1120px; margin: 0 auto; }
.cst-home-page .journey .hiw-steps { flex-direction: row; gap: 16px; align-items: flex-start; }
.cst-home-page .journey .hiw-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; position: relative; }
.cst-home-page .journey .hiw-step:not(:last-child)::before { display: none; }
.cst-home-page .journey .hiw-step:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 50%; width: calc(100% + 16px); height: 2px; background: var(--powder); z-index: 0; }
.cst-home-page .journey .hiw-num { position: relative; z-index: 1; width: 100%; max-width: 190px; height: 44px; background: var(--purple); border-radius: 999px; }
.cst-home-page .journey .hiw-text h3 { font-size: 16px;color: var(--purple); }
.cst-home-page .journey .hiw-text p { font-size: 16px; }
@media (max-width: 900px) {
	.cst-home-page .journey .hiw-steps { flex-direction: column; gap: 22px; }
	.cst-home-page .journey .hiw-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; }
	.cst-home-page .journey .hiw-step:not(:last-child)::after { display: none; }
	.cst-home-page .journey .hiw-num { width: 120px; max-width: 120px; }
}

/* ---------- Comparison: At Most Providers vs CST Academy (two cards + VS) ---------- */
.cst-home-page .cmp-wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; overflow: visible; max-width: 1100px; margin: 0 auto; }
.cst-home-page .cmp-col { display: flex; flex-direction: column; }
.cst-home-page .vs-badge { position: absolute; top: -20px; left: 50%; transform: translate(-50%, 0); width: 96px; height: 96px; background: var(--blue-age); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; color: #fff; z-index: 10; border: 2px solid #fff; }
.cst-home-page .cmp-cell { padding: 16px 40px; font-size: 16px; line-height: 1.55; display: flex; align-items: center; gap: 12px; flex: 1; }
.cst-home-page .cmp-cell-left { background: #fff; color: var(--body); justify-content: flex-end; text-align: right; }
.cst-home-page .cmp-cell-right { background: var(--navy); color: #fff; font-weight: 600; }
.cst-home-page .cmp-cell-head { padding: 40px 40px 0; align-items: center; }
.cst-home-page .cmp-cell-head.cmp-cell-left { border-radius: 20px 20px 0 0; min-height: 92px; padding-top: 34px; }
.cst-home-page .cmp-cell-head.cmp-cell-right { border-radius: 20px 20px 0 0; padding-top: 30px; }
.cst-home-page .cmp-cell-last.cmp-cell-left { border-radius: 0 0 20px 20px; padding-bottom: 26px; }
.cst-home-page .cmp-cell-last.cmp-cell-right { border-radius: 0 0 20px 20px; padding-bottom: 26px; }
.cst-home-page .cmp-head { font-size: 22px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.cst-home-page .cmp-head-left { color: var(--navy); }
.cst-home-page .cmp-head-right { color: #fff; }
.cst-home-page .cmp-right-head { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 16px; }
.cst-home-page .cmp-right-head img { width: 70px; height: auto; }
.cst-home-page .cmp-check { width: 20px; height: 20px; color: #fff; flex-shrink: 0; }
@media (max-width: 860px) {
	.cst-home-page .cmp-wrap { grid-template-columns: 1fr; column-gap: 0; }
	.cst-home-page .vs-badge { position: relative; top: auto; left: auto; transform: none; margin: -20px auto; width: 52px; height: 52px; font-size: 16px; order: 2; }
	.cst-home-page .cmp-col-left { order: 1; }
	.cst-home-page .cmp-col-right { order: 3; }
	.cst-home-page .cmp-cell-left { justify-content: flex-start; text-align: left; }
	.cst-home-page .cmp-cell-head.cmp-cell-left { border-radius: 20px 20px 0 0; padding: 30px 28px 14px; min-height: 0; }
	.cst-home-page .cmp-cell-head.cmp-cell-right { border-radius: 20px 20px 0 0; padding: 30px 28px 0; }
	.cst-home-page .cmp-cell { padding: 14px 28px; }
}

/* ---------- Grid overrides for reused components ---------- */
.cst-home-page .room-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Reviews summary block (4th testimonials cell — matches home2) */
.cst-home-page .t-summary { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 24px; background: url('https://cstacademy.com/wp-content/uploads/2025/09/3.svg') center center / contain no-repeat; }
.cst-home-page .t-summary-stars { width: 150px; height: auto; margin-bottom: 6px; }
.cst-home-page .t-summary-num { font-weight: 800; font-size: 64px; line-height: 1; color: var(--navy); }
.cst-home-page .t-summary-label { font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--navy); }
.cst-home-page .t-summary-btn { margin-top: 20px; }

/* ---------- Insurance (two stacked cards + photo) ---------- */
.cst-home-page .ins1-wrap { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius-card); box-shadow: var(--card-shadow); padding: 24px; max-width: 1100px; margin: 0 auto; }
.cst-home-page .ins1-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.cst-home-page .ins1-cards { display: flex; flex-direction: column; gap: 20px; }
.cst-home-page .ins1-card { border-radius: 14px; padding: 26px 28px; }
.cst-home-page .ins1-card h3 { font-size: 24px; margin: 0 0 10px; }
.cst-home-page .ins1-card p { margin: 0 0 12px; color: var(--body); font-size: 20px; line-height: 1.6; }
.cst-home-page .ins1-card p:last-child { margin-bottom: 0; }
.cst-home-page .ins1-card-blue { background: var(--pale); }
.cst-home-page .ins1-card-blue h3 { color: var(--blue); }
.cst-home-page .ins1-card-gray { background: #F1EEF3; }
.cst-home-page .ins1-card-gray h3 { color: var(--purple); }
.cst-home-page .ins1-photo { border-radius: 14px; overflow: hidden; box-shadow: var(--card-shadow); min-height: 320px; }
.cst-home-page .ins1-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
	.cst-home-page .ins1-grid { grid-template-columns: 1fr; }
	.cst-home-page .ins1-photo { min-height: 240px; }
}

/* ---------- Closing brand section (last section, purple) ---------- */
.cst-home-page .home-closing { background: var(--purple); color: #fff; padding: 52px 0; }
.cst-home-page .home-closing h2 { color: #fff; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; margin: 0; }
.cst-home-page .home-closing .home-closing-sub { color: rgba(255,255,255,0.9); font-size: 18px; margin: 12px 0 0; }
.cst-home-page .home-closing .final-cta-btns { margin-top: 26px; }
.cst-home-page .home-closing .btn-white-on-dark { color: var(--purple); }
.cst-home-page .home-closing .btn-white-on-dark:hover { background: var(--gold); color: var(--purple); }
.cst-home-page .home-closing .btn-white-on-dark .btn-ico { color: var(--purple); }
.cst-home-page .home-closing .hours { color: rgba(255,255,255,0.9); font-size: 16px; margin: 24px 0 0; }
.cst-home-page .home-closing .hours strong { color: #fff; }
.cst-home-page .home-closing .home-closing-disclaimer { color: rgba(255,255,255,0.68); font-size: 16px; line-height: 1.6; max-width: 820px; margin: 30px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.cst-home-page .home1-hero-grid { grid-template-columns: 1fr; gap: 32px; }
	.cst-home-page .trust-bar-row { flex-wrap: wrap; justify-content: center; gap: 14px 26px; }
	.cst-home-page .room-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.cst-home-page .proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.cst-home-page .home1-hero { padding: 48px 0; }
	.cst-home-page .room-grid-3 { grid-template-columns: 1fr; }
	.cst-home-page .vs-grid { grid-template-columns: 1fr; }
	.cst-home-page .vs-head-bad { order: 0; }
}
