/* =====================================================================
   Save Ya Roofing — homepage (front-page.php). Loaded only on is_front_page().
   Matches the approved design at saveyadws.netlify.app.
   ===================================================================== */

/* ---------------- Hero (reference-exact) ---------------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(11, 11, 12, .96) 0%, rgba(11, 11, 12, .82) 45%, rgba(11, 11, 12, .45) 100%),
		linear-gradient(0deg, rgba(11, 11, 12, 1) 0%, rgba(11, 11, 12, 0) 35%);
}
.hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
	gap: 56px;
	align-items: center;
	padding-top: 110px;
	padding-bottom: 120px;
}
.hero-inner > div, .hero h1 { min-width: 0; overflow-wrap: break-word; }
.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 8px 8px;
	border: 1px solid var(--line-dark);
	border-radius: 999px;
	font-size: 13.5px;
	color: #e4e4df;
	background: rgba(255, 255, 255, .04);
}
.hero-badge b {
	background: var(--brand);
	color: var(--ink);
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-family: var(--body);
	font-weight: 700;
}
.hero h1 {
	color: #fff;
	font-size: clamp(50px, 6.6vw, 96px);
	font-weight: 800;
	line-height: 1.02;
	text-transform: uppercase;
	margin: 22px 0;
}
.hero h1 .hl { display: block; color: var(--brand); }
.hero-sub { font-size: 21px; line-height: 1.6; color: #e9e9e4; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Quote form card */
.form-card {
	background: #fff;
	color: var(--text-color);
	border-radius: 20px;
	padding: 34px;
	box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
	position: relative;
}
.form-card::before {
	content: "";
	position: absolute;
	left: 34px; right: 34px; top: 0;
	height: 4px;
	background: var(--brand);
	border-radius: 0 0 4px 4px;
}
.form-card h3 { font-size: 34px; text-transform: uppercase; margin-bottom: 8px; }
.form-card .small { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.form-card .call { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--paper-2); border-radius: 12px; margin-bottom: 20px; }
.form-card .call .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: var(--brand); display: grid; place-items: center; flex: none; }
.form-card .call .ic .icon { width: 18px; height: 18px; }
.form-card .call small { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.form-card .call strong { font-family: var(--display); font-size: 26px; letter-spacing: .02em; color: var(--ink); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field input, .field textarea {
	font: inherit;
	font-size: 15.5px;
	padding: 13px 14px;
	border: 1.5px solid var(--border-color);
	border-radius: 10px;
	background: #fff;
	color: var(--text-color);
	outline: none;
	transition: border-color .2s, box-shadow .2s;
	width: 100%;
	min-width: 0;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(247, 198, 0, .35); }
.form-card .btn { width: 100%; margin-top: 16px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; min-height: 1em; }
.sp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sp-form-status { margin-top: .6rem; font-size: .88rem; }
.sp-form-status[data-state="error"] { color: #b91c1c; }

/* ---------------- Benefits strip ---------------- */
.strip { position: relative; z-index: 2; margin-top: -1px; background: var(--ink); padding-bottom: 90px; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.strip-item { display: flex; gap: 18px; align-items: center; padding: 30px 32px; color: #fff; background: var(--ink-2); }
.strip-item + .strip-item { border-left: 1px solid var(--line-dark); }
.strip-item .ic { width: 54px; height: 54px; border-radius: 14px; background: var(--brand); color: var(--ink); display: grid; place-items: center; flex: none; }
.strip-item .ic .icon { width: 26px; height: 26px; }
.strip-item h4 { font-size: 24px; line-height: 1.05; color: #fff; text-transform: uppercase; margin: 0; }

@media (max-width: 991.98px) {
	.hero-inner { grid-template-columns: 1fr; gap: 50px; padding-top: 90px; padding-bottom: 80px; }
	.form-card { max-width: 640px; }
	.strip-grid { grid-template-columns: 1fr; }
	.strip-item + .strip-item { border-left: 0; border-top: 1px solid var(--line-dark); }
}
@media (max-width: 575.98px) {
	.hero-inner { padding-top: 64px; padding-bottom: 60px; gap: 40px; }
	.hero h1 { font-size: clamp(46px, 13vw, 64px); }
	.hero-sub { font-size: 18px; }
	.hero-actions .btn { flex: 1 1 100%; }
	.hero-badge { font-size: 12.5px; }
	.form-card { padding: 26px 20px; }
	.form-card::before { left: 20px; right: 20px; }
	.fgrid { grid-template-columns: 1fr; }
	.strip { padding-bottom: 64px; }
	.strip-item { padding: 22px; }
}

/* ---------------- Intro ---------------- */
.home-collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-auto-rows: 1fr; gap: 1rem; min-height: 420px; }
.home-collage__main { position: relative; grid-row: span 2; border-radius: var(--radius); overflow: hidden; }
.home-collage__side { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }
.home-collage__side .home-media { border-radius: var(--radius); overflow: hidden; }
.home-collage__tag {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	z-index: 2;
	padding: .5rem .9rem;
	font-family: var(--display);
	font-weight: 800;
	text-transform: uppercase;
	font-size: .85rem;
	color: var(--ink);
	background: var(--brand);
	border-radius: 8px;
}
.home-points { margin-top: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; }
.home-points__item { display: flex; align-items: center; gap: .6rem; font-weight: 500; color: var(--ink); font-size: .95rem; }
.home-points__item .icon { color: var(--ink); background: var(--brand); border-radius: 50%; padding: 3px; flex: none; box-sizing: content-box; }
.home-textlink { display: inline-block; margin-top: 1.4rem; font-family: var(--display); font-weight: 700; text-transform: uppercase; color: var(--brand-dark); }
@media (max-width: 575.98px) { .home-points { grid-template-columns: 1fr; } }

/* ---------------- Services (dark) ---------------- */
.home-services {
	color: #fff;
	background:
		repeating-linear-gradient(135deg, rgba(247, 198, 0, .05) 0 18px, transparent 18px 36px),
		var(--ink);
}
.home-services__head { margin-bottom: 2.5rem; }
.home-services .section-heading__title { color: #fff; }
.home-services .eyebrow { color: var(--brand); }
.home-services__lead { color: rgba(255, 255, 255, .72); font-size: 1rem; line-height: 1.7; margin: 0; }
.home-service-card {
	position: relative;
	display: block;
	height: 320px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--ink-2) center / cover no-repeat;
	color: #fff;
	transition: transform .25s ease;
}
.home-service-card:hover { transform: translateY(-5px); }
.home-service-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 10, 12, .9) 10%, rgba(10, 10, 12, .35) 60%, rgba(10, 10, 12, .2) 100%);
}
.home-service-card__body {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.4rem;
}
.home-service-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: auto;
	color: var(--ink);
	background: var(--brand);
	border-radius: 10px;
}
.home-service-card__title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; color: #fff; margin-top: 1rem; }
.home-service-card__more {
	margin-top: .6rem;
	font-family: var(--display);
	font-weight: 700;
	font-size: .85rem;
	text-transform: uppercase;
	color: var(--brand);
}
.home-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.home-notes__item { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: #fff; }
.home-notes__item .icon { color: var(--brand); }

/* ---------------- Why us ---------------- */
.home-why { background: var(--paper-2); }
.home-reason {
	position: relative;
	height: 100%;
	padding: 1.5rem 1.4rem;
	background: var(--paper);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
}
.home-reason--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.home-reason__num { position: absolute; top: 1.1rem; right: 1.3rem; font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--brand); }
.home-reason__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: .9rem;
	color: var(--ink);
	background: var(--brand);
	border-radius: 10px;
}
.home-reason__title { font-size: 1.1rem; text-transform: uppercase; margin-bottom: .45rem; }
.home-reason--dark .home-reason__title { color: #fff; }
.home-reason__text { font-size: .9rem; line-height: 1.55; margin: 0; color: var(--text-color); }
.home-reason--dark .home-reason__text { color: rgba(255, 255, 255, .72); }

/* ---------------- Compliance (yellow band) ---------------- */
.home-compliance { background: var(--brand); }
.home-compliance__inner {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	padding-block: clamp(2.2rem, 4vw, 3.2rem);
}
.home-compliance__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	flex: none;
	color: var(--brand);
	background: var(--ink);
	border-radius: 14px;
}
.home-compliance__text-wrap { flex: 1; }
.home-compliance .eyebrow { color: rgba(28, 28, 31, .7); }
.home-compliance__title { color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; margin-bottom: .5rem; }
.home-compliance__text { color: rgba(28, 28, 31, .85); font-size: .98rem; line-height: 1.6; margin: 0; max-width: 60ch; }
.home-compliance__btn { flex: none; white-space: nowrap; }
@media (max-width: 767.98px) {
	.home-compliance__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------------- Expertise (tabs) ---------------- */
.home-expertise__head { margin-bottom: 2.5rem; }
.home-expertise__lead { color: var(--text-color); font-size: 1.05rem; line-height: 1.7; margin: 0; }
.home-tabs { position: relative; min-height: 440px; }
.home-tabs__list { display: flex; flex-direction: column; gap: .5rem; width: 42%; }
.home-tabs__radio { position: absolute; opacity: 0; pointer-events: none; }
.home-tabs__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.3rem;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.15rem;
	text-transform: uppercase;
	color: var(--ink);
	background: var(--paper-2);
	border-radius: 10px;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.home-tabs__label .icon { opacity: 0; color: var(--ink); }
.home-tabs__radio:checked + .home-tabs__label { background: var(--brand); color: var(--ink); }
.home-tabs__radio:checked + .home-tabs__label .icon { opacity: 1; }
.home-tabs__label:hover { background: var(--border-color); }
.home-tabs__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 54%;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease;
}
.home-tabs__radio:checked + .home-tabs__label + .home-tabs__panel { opacity: 1; visibility: visible; }
.home-tabs__media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.2rem; }
.home-tabs__title { font-size: 1.4rem; text-transform: uppercase; margin-bottom: .6rem; }
.home-tabs__text { font-size: .96rem; line-height: 1.7; margin: 0; color: var(--text-color); }
@media (max-width: 767.98px) {
	.home-tabs { min-height: 0; }
	.home-tabs__list { width: 100%; }
	.home-tabs__panel { position: static; width: 100%; height: 0; overflow: hidden; margin: 0; }
	.home-tabs__radio:checked + .home-tabs__label + .home-tabs__panel { height: auto; margin: .6rem 0 1rem; }
	.home-tabs__media { aspect-ratio: 16 / 10; }
}

/* ---------------- Projects ---------------- */
.home-projects { background: var(--paper-2); }
.home-projects__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.home-projects__grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.home-projects__tile { border-radius: var(--radius); overflow: hidden; }
.home-projects__tile:nth-child(1) { grid-column: span 2; }
.home-projects__tile:nth-child(2) { grid-column: span 2; }
.home-projects__tile:nth-child(3) { grid-column: span 2; }
.home-projects__tile:nth-child(4) { grid-column: span 3; }
.home-projects__tile:nth-child(5) { grid-column: span 3; }
@media (max-width: 767.98px) {
	.home-projects__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
	.home-projects__tile:nth-child(n) { grid-column: span 1; }
	.home-projects__tile:nth-child(5) { grid-column: span 2; }
}

/* ---------------- FAQ ---------------- */
.home-faq__item { background: var(--paper); border: 1px solid var(--border-color); border-radius: var(--radius); margin-bottom: .9rem; overflow: hidden; }
.home-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); list-style: none; }
.home-faq__q::-webkit-details-marker { display: none; }
.home-faq__q::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand-dark); flex: none; }
.home-faq__item[open] .home-faq__q::after { content: "\2013"; }
.home-faq__a { padding: 0 1.3rem 1.2rem; }
.home-faq__a p { margin: 0; line-height: 1.7; }

/* ---------------- CTA ---------------- */
.home-cta__card {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: clamp(2.2rem, 4vw, 3.5rem);
	border-radius: calc(var(--radius) + 6px);
	color: #fff;
	overflow: hidden;
	background:
		radial-gradient(circle at 92% 50%, rgba(247, 198, 0, .16) 0, rgba(247, 198, 0, 0) 32%),
		linear-gradient(150deg, var(--ink-2) 0%, var(--ink) 100%);
}
.home-cta__content { flex: 1 1 24rem; }
.home-cta__title { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.6rem); text-transform: uppercase; line-height: 1.08; margin-bottom: .8rem; }
.home-cta__text { color: rgba(255, 255, 255, .78); font-size: 1rem; line-height: 1.6; margin: 0; max-width: 42rem; }
.home-cta__actions { display: flex; flex-direction: column; gap: .8rem; flex: none; }
.home-cta__actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
@media (max-width: 575.98px) { .home-cta__actions { width: 100%; } }
