/* ==========================================================================
   Great Lakes Plumbing Pros — main stylesheet
   Tokens (brief §2) → fonts → base → primitives → sections.
   ========================================================================== */

/* Tokens ----------------------------------------------------------------- */
:root {
	--navy-900: #0A1F2C;  /* emergency bar, footer, dark buttons */
	--navy-800: #0E2A3B;  /* hero, primary text, dark sections */
	--navy-700: #163A4E;  /* image placeholders on dark */
	--teal-600: #1F6E80;  /* eyebrows, ribbon, link hover */
	--teal-300: #7FC4D1;  /* accents on dark, logo second wave */
	--teal-50:  #E3F1F4;  /* check-icon circles */
	--amber:    #F2A541;  /* primary CTA + accent (text on it is --navy-900) */
	--amber-soft: #FFD79A; /* link text on dark */
	--ground:   #F4F7F8;  /* page background */
	--white:    #FFFFFF;
	--line:     #DCE4E7;
	--muted:    #4A5B66;  /* secondary text, passes 4.5:1 on white */
	--body:     #33444F;

	/* From the approved mockups */
	--on-dark:      #D3E3E8; /* body text on navy */
	--footer-text:  #B8CCD3;
	--footer-rule:  #22404F;
	--input-border: #9FB5BE;
	--callout-bg:   #FFF4E2;

	--font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;  /* 600, 700, 800 */
	--font-body: 'Source Sans 3', system-ui, sans-serif;           /* 400, 600, 700 */
	--radius: 6px;        /* buttons */
	--radius-card: 10px;  /* cards */
	--container: 1240px;
	--gutter: 24px;
	--section-pad: 88px;
	--focus: var(--teal-600);
}

@media (max-width: 640px) {
	:root { --section-pad: 56px; }
}

/* Fonts (self-hosted, SIL OFL — see assets/fonts/OFL-*.txt) ---------------
 * Barlow Condensed files are subset (fontTools, unhinted) to Basic Latin
 * U+0020–007E plus U+00A0 00B7 2013 2014 2018 2019 201C 201D 2026 2212 (~7.6 KB
 * each). Adding copy with other characters? Re-subset from the Google Fonts files.
 * Source Sans 3 is the unmodified Google Fonts file: its licence reserves the
 * name "Source", so a subset copy would have to be renamed. Don't subset it. */
@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
}
@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('../fonts/barlow-condensed-800.woff2') format('woff2');
}
@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/source-sans-3-variable.woff2') format('woff2');
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	background: var(--ground);
	color: var(--navy-800);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--navy-800); }
a:hover { color: var(--teal-600); }

h1, h2, h3 {
	margin: 0;
	font-family: var(--font-display);
}
h1 { font-size: 76px; line-height: 0.95; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 54px; line-height: 1; font-weight: 800; }
h3 { font-size: 28px; line-height: 1.1; font-weight: 700; }

@media (max-width: 640px) {
	h1 { font-size: 44px; }
	h2 { font-size: 38px; }
}

p { margin: 0; }

button { font: inherit; cursor: pointer; }

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
	border-radius: 2px;
}
/* On dark backgrounds the teal ring is too low-contrast. */
/* Order matters: an amber button inside a dark section takes the light ring. */
.on-amber :focus-visible,
.btn-amber:focus-visible {
	--focus: var(--navy-900);
}
.on-dark :focus-visible,
.emergency-bar :focus-visible {
	--focus: var(--amber-soft);
}

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--navy-900);
	color: var(--white);
	font-weight: 700;
	border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* Client value not supplied yet. Only rendered outside production. */
.glpp-todo {
	background: #FFF1B8;
	color: #5A3E00;
	outline: 1px dashed #B58100;
	padding: 0 4px;
	border-radius: 3px;
	font-weight: 700;
	font-style: normal;
}

/* Primitives ------------------------------------------------------------- */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.section { padding: var(--section-pad) 0; }

.section-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 640px;
}

.eyebrow {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--teal-600);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn-amber { background: var(--amber); color: var(--navy-900); }
.btn-amber:hover { background: #F5B65F; color: var(--navy-900); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-900); color: var(--white); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-800); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--navy-800); }
.btn-outline-dark { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }

/* Big phone buttons use the display face. */
.btn-phone {
	font-family: var(--font-display);
	font-size: 28px;
	min-height: 56px;
	padding: 8px 26px;
}

/* Emergency bar ---------------------------------------------------------- */
.emergency-bar {
	background: var(--navy-900);
	color: var(--white);
	padding: 10px var(--gutter);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px 12px;
	flex-wrap: wrap;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.02em;
	text-align: center;
}
.emergency-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--amber);
	flex-shrink: 0;
}
.emergency-call {
	color: var(--amber);
	font-weight: 700;
	text-decoration: none;
	/* 44px tap target without changing the bar's height */
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: -12px 0;
}
.emergency-call:hover { color: var(--amber-soft); text-decoration: underline; }

/* Header ----------------------------------------------------------------- */
.site-header {
	background: var(--white);
	border-bottom: 1px solid var(--line);
	position: relative;
	z-index: 50;
}
.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--navy-800);
	flex-shrink: 0;
}
.logo:hover { color: var(--navy-800); }
.logo-words {
	display: flex;
	flex-direction: column;
	line-height: 1;
	font-family: var(--font-display);
}
.logo-line-1 { font-weight: 800; font-size: 28px; letter-spacing: 0.02em; }
.logo-line-2 { font-weight: 600; font-size: 16px; letter-spacing: 0.24em; color: var(--teal-600); }

.site-nav {
	display: flex;
	gap: 28px;
	font-weight: 600;
	font-size: 16px;
}
.site-nav a {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}
.header-phone {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 44px;
	text-decoration: none;
	line-height: 1.1;
}
.header-phone-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.header-phone-number {
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 700;
	color: var(--navy-800);
}
.header-phone:hover .header-phone-number { color: var(--teal-600); }
.header-schedule { padding: 14px 22px; }

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--navy-800);
}

/* Nav collapses to a menu button under 900px; phone + Schedule stay visible. */
@media (max-width: 899.98px) {
	.site-header-inner {
		display: grid;
		grid-template-columns: auto 1fr auto;
		grid-template-areas:
			"logo actions toggle"
			"nav  nav     nav";
		gap: 0 16px;
	}
	.logo { grid-area: logo; }
	.header-actions { grid-area: actions; justify-content: flex-end; }
	.nav-toggle { grid-area: toggle; display: inline-flex; }
	.site-nav {
		grid-area: nav;
		display: none;
		flex-direction: column;
		gap: 0;
		margin-top: 12px;
		border-top: 1px solid var(--line);
	}
	.site-nav.is-open { display: flex; }
	.site-nav a {
		min-height: 52px;
		border-bottom: 1px solid var(--line);
	}
}

/* Small phones: logo + menu on row one, phone + Schedule on row two. */
@media (max-width: 599.98px) {
	.site-header-inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"logo    toggle"
			"actions actions"
			"nav     nav";
		row-gap: 12px;
		padding-top: 12px;
		padding-bottom: 12px;
	}
	.header-actions { justify-content: space-between; }
	.site-nav { margin-top: 0; }
	.logo-mark { width: 44px; height: 44px; }
	.logo-line-1 { font-size: 24px; }
	.logo-line-2 { font-size: 14px; }
	.header-phone-number { font-size: 26px; }
}

/* Shared section bits ---------------------------------------------------- */
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-lg { min-height: 56px; font-size: 18px; }
[role="list"] { list-style: none; margin: 0; padding: 0; }

.eyebrow-on-dark { color: var(--teal-300); font-size: 16px; }

/* Button styled as an inline text link (opens the modal). */
.link-btn {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--navy-800);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.link-btn:hover { color: var(--teal-600); }
.link-btn-light { color: var(--amber-soft); }
.link-btn-light:hover { color: var(--white); }

/* Restoration ribbon ----------------------------------------------------- */
.ribbon {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--teal-600);
	color: var(--white);
	text-align: center;
	font-size: 17px;
	line-height: 1.4;
}
.ribbon:hover { background: #1A6070; }
.ribbon:hover .ribbon-cta { text-decoration: underline; }
.ribbon:focus-visible { --focus: var(--amber-soft); outline-offset: -5px; }
.ribbon-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px 14px;
	flex-wrap: wrap;
	padding-top: 14px;
	padding-bottom: 14px;
}
.ribbon-pill {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.14em;
	background: var(--navy-900);
	padding: 4px 10px;
	border-radius: 4px;
}
.ribbon-text { font-weight: 600; }
/* 19px bold = WCAG "large text": amber-soft on teal-600 (4.28:1) needs 3:1 at this size, 4.5:1 below it. */
.ribbon-cta { font-weight: 700; font-size: 19px; color: var(--amber-soft); white-space: nowrap; }

/* Hero ------------------------------------------------------------------- */
.hero { background: var(--navy-800); color: var(--white); }
.hero-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 56px;
	align-items: center;
	padding-top: 72px;
	padding-bottom: 80px;
}
@media (min-width: 800px) {
	.hero-inner { grid-template-columns: 1fr 1fr; }
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-lede { font-size: 20px; color: var(--on-dark); max-width: 520px; }
.hero-checks {
	display: flex;
	gap: 10px 28px;
	flex-wrap: wrap;
	margin: 0;
	padding: 8px 0 0;
	list-style: none;
	font-weight: 600;
	font-size: 15px;
	color: var(--on-dark);
}
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks .icon { color: var(--teal-300); stroke-width: 2.5; }

.hero-media {
	position: relative;
	height: 460px;
	border-radius: 12px;
	background: var(--navy-700);
}
.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 40% 50%;
	border-radius: 12px;
}
.hero-badge {
	position: absolute;
	left: -20px;
	bottom: 28px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 16px 20px;
	background: var(--white);
	color: var(--navy-800);
	border-radius: var(--radius-card);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.hero-badge-big { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; }
.hero-badge-small { font-size: 14px; font-weight: 600; color: var(--muted); }

@media (max-width: 799.98px) {
	.hero-inner { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
	.hero-badge { left: 16px; bottom: 16px; }
}
@media (max-width: 640px) {
	.hero-media { height: 300px; }
	.hero-lede { font-size: 18px; }
	.hero .btn-row > * { flex: 1 1 100%; }
}

/* Booking strip ---------------------------------------------------------- */
.booking-strip { background: var(--amber); color: var(--navy-900); }
.booking-strip-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 22px;
	padding-bottom: 22px;
}
.booking-strip-text {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 30px;
	line-height: 1.1;
}
@media (max-width: 640px) {
	.booking-strip-text { font-size: 24px; }
	.booking-strip .btn { width: 100%; }
}

/* Offers ----------------------------------------------------------------- */
.coupon-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 20px;
}
.coupon {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 26px 22px;
	background: var(--white);
	border: 2px dashed var(--input-border);
	border-radius: var(--radius-card);
}
.coupon-tag {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.14em;
	color: var(--teal-600);
}
.coupon-amount {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 44px;
	line-height: 1;
}
.coupon-desc { font-size: 16px; color: var(--body); flex-grow: 1; }
.coupon-btn { width: 100%; padding: 12px; }
.fine-print { font-size: 14px; color: var(--muted); }
.fine-print a { color: var(--muted); }

/* Services --------------------------------------------------------------- */
.services { background: var(--white); }
.service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}
.service-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--ground);
	border-radius: var(--radius-card);
}
.service-img {
	width: 100%;
	height: 170px;
	object-fit: cover;
}
.service-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex-grow: 1;
	padding: 24px;
}
.service-body p { flex-grow: 1; color: var(--body); }
.service-card-dark { background: var(--navy-800); color: var(--white); }
.service-card-dark .service-body p { color: var(--on-dark); }
.badge-new {
	align-self: flex-start;
	padding: 3px 8px;
	border-radius: 4px;
	background: var(--amber);
	color: var(--navy-900);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.1em;
}

/* Why us ----------------------------------------------------------------- */
.why-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px 56px;
	align-items: start;
}
@media (min-width: 800px) {
	.why-inner { grid-template-columns: 1fr 1fr; }
}
.why-copy { display: flex; flex-direction: column; gap: 18px; }
.why-copy p { color: var(--body); }
.why-copy .btn { align-self: flex-start; }
.reasons { display: flex; flex-direction: column; gap: 14px; }
.reasons li {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 20px 22px;
	background: var(--white);
	border-radius: var(--radius-card);
}
.check-circle {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--teal-50);
	color: var(--teal-600);
}
.check-circle .icon { stroke-width: 2.8; }
.reason-text { display: flex; flex-direction: column; gap: 2px; }
.reason-text strong { font-size: 18px; line-height: 1.3; }
.reason-text span { color: var(--body); }

/* Around the clock ------------------------------------------------------- */
.around-the-clock { background: var(--navy-800); color: var(--white); padding: 80px 0; }
@media (max-width: 640px) { .around-the-clock { padding: 56px 0; } }
.clock-inner {
	max-width: 900px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}
.clock-inner p { color: var(--on-dark); font-size: 18px; }
.btn-phone-xl { font-size: 30px; min-height: 58px; padding: 8px 30px; }

/* Reviews ---------------------------------------------------------------- */
.reviews { background: var(--white); }
.review-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}
.review {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 26px;
	background: var(--ground);
	border-radius: var(--radius-card);
}
.review-stars { color: #B97A12; font-size: 22px; letter-spacing: 3px; } /* darker amber: 3:1 on --ground */
.review blockquote { margin: 0; color: var(--body); }
.review figcaption { font-weight: 700; }

/* FAQ -------------------------------------------------------------------- */
.faq-inner { max-width: 900px; display: flex; flex-direction: column; gap: 32px; }
.section-head-center { max-width: none; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius-card); }
.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 44px;
	padding: 20px 24px;
	font-weight: 700;
	font-size: 19px;
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
	border-radius: var(--radius-card);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+";
	flex-shrink: 0;
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 600;
	line-height: 1;
	color: var(--teal-600);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline-offset: -3px; }
.faq-item p { padding: 0 24px 20px; margin-top: -8px; color: var(--body); }

/* Final CTA -------------------------------------------------------------- */
.final-cta { background: var(--amber); color: var(--navy-900); padding: 64px 0; }
.final-cta-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}
.final-cta h2 { font-size: 50px; }
@media (max-width: 640px) {
	.final-cta { padding: 48px 0; }
	.final-cta h2 { font-size: 38px; }
	.final-cta .btn-row > * { flex: 1 1 100%; }
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
	background: var(--navy-900);
	color: var(--footer-text);
	padding: 56px 0 40px;
	font-size: 15px;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--amber-soft); }
.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-wordmark {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 26px;
	line-height: 1;
	color: var(--white);
	margin-bottom: 2px;
}
.footer-wordmark span { color: var(--teal-300); font-weight: 600; letter-spacing: 0.1em; }
.footer-phone { font-weight: 700; }
.footer-heading {
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.55;
	color: var(--white);
}
/* 44px tap targets without changing the visual rhythm. */
.footer-col a,
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; }
.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 12px 24px;
	flex-wrap: wrap;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--footer-rule);
	font-size: 13px;
}
.site-footer .footer-bottom a { color: var(--footer-text); }

/* Sticky call bar (under 768px) ------------------------------------------ */
.sticky-call-bar { display: none; }

@media (max-width: 767.98px) {
	.sticky-call-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		display: grid;
		grid-template-columns: 1.6fr 1fr;
		gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
		background: var(--navy-900);
		box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2);
	}
	.sticky-call-bar .btn { min-height: 52px; padding: 8px 12px; font-size: 18px; }
	.sticky-call-bar .sticky-call { font-family: var(--font-display); font-size: 22px; white-space: nowrap; }
	.sticky-call-bar .sticky-schedule { border: 0; }
	/* Keep the footer clear of the bar. */
	body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* Schedule Service modal ------------------------------------------------- */
html.modal-open { overflow: hidden; }

.schedule-modal {
	width: min(720px, calc(100% - 32px));
	max-width: none;
	max-height: calc(100dvh - 48px);
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: var(--white);
	color: var(--navy-800);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	font-size: 16px;
}
.schedule-modal::backdrop { background: rgba(10, 31, 44, 0.55); }
.schedule-modal[open] { display: flex; }

.modal-panel {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.modal-header {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 20px 20px 28px;
	background: var(--navy-800);
	color: var(--white);
}
.modal-header h2 { font-size: 34px; letter-spacing: 0.01em; }
.modal-close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: transparent;
	color: var(--white);
}
.modal-close:hover { background: rgba(255, 255, 255, 0.12); }

.modal-body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px 28px 28px;
}
.modal-intro { color: var(--body); }
.modal-callout {
	padding: 12px 14px;
	background: var(--callout-bg);
	border: 1px solid var(--amber);
	border-radius: 8px;
	font-weight: 700;
}
.modal-callout a { white-space: nowrap; }

@media (max-width: 599.98px) {
	.schedule-modal {
		width: 100%;
		max-height: 100dvh;
		height: 100dvh;
		margin: 0;
		border-radius: 0;
	}
	.modal-panel { max-height: 100dvh; }
	.modal-header { padding: 14px 12px 14px 20px; }
	.modal-header h2 { font-size: 28px; }
	.modal-body { padding: 20px 20px 28px; }
}

/* Gravity Forms inside the modal ('gravity-theme', Orbital off) ----------- */
.schedule-modal .gform_wrapper.gravity-theme { margin: 0; font-family: var(--font-body); font-size: 16px; }
.schedule-modal .gform_wrapper.gravity-theme .gform_required_legend {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--muted);
}
.schedule-modal .gform_wrapper.gravity-theme .gform_fields {
	row-gap: 18px;
	column-gap: 12px;
}
.schedule-modal .gform_wrapper.gravity-theme .gfield_label,
.schedule-modal .gform_wrapper.gravity-theme legend.gfield_label {
	margin-bottom: 6px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--navy-800);
}
.schedule-modal .gform_wrapper.gravity-theme .gfield_required { color: var(--navy-800); }
.schedule-modal .gform_wrapper.gravity-theme .gfield_required_asterisk,
.schedule-modal .gform_wrapper.gravity-theme .gfield_required_text { color: inherit; font-weight: 700; }

.schedule-modal .gform_wrapper.gravity-theme input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.schedule-modal .gform_wrapper.gravity-theme select,
.schedule-modal .gform_wrapper.gravity-theme textarea {
	width: 100%;
	min-height: 46px;
	padding: 0 12px;
	border: 1px solid var(--input-border);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--navy-800);
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming on focus */
	line-height: 1.3;
	box-shadow: none;
}
.schedule-modal .gform_wrapper.gravity-theme select { padding-right: 32px; }
/* GF sizes textareas by .small/.medium/.large; match its specificity to set 4 rows. */
.schedule-modal .gform_wrapper.gravity-theme .gfield textarea.small,
.schedule-modal .gform_wrapper.gravity-theme .gfield textarea.medium,
.schedule-modal .gform_wrapper.gravity-theme .gfield textarea.large {
	min-height: 112px;
	height: 112px;
	padding: 10px 12px;
	resize: vertical;
}
.schedule-modal .gform_wrapper.gravity-theme input:focus,
.schedule-modal .gform_wrapper.gravity-theme select:focus,
.schedule-modal .gform_wrapper.gravity-theme textarea:focus {
	outline: 3px solid var(--teal-600);
	outline-offset: 1px;
	border-color: var(--teal-600);
}

/* Sub-labels (First / Last, Street Address, City…) sit below the inputs, small and muted. */
.schedule-modal .gform_wrapper.gravity-theme .ginput_complex label,
.schedule-modal .gform_wrapper.gravity-theme .gform-field-label--type-sub {
	margin-top: 4px;
	padding: 0;
	font-size: 13px;
	font-weight: 400;
	color: var(--muted);
}

/* Address: Street / Line 2 full width, then City · State · ZIP in three columns. */
.schedule-modal .gform_wrapper.gravity-theme .ginput_container_address {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px 12px;
	margin: 0;
}
.schedule-modal .gform_wrapper.gravity-theme .ginput_container_address > span {
	flex: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0 !important; /* GF's column gutters use high-specificity rules; the grid gap replaces them */
}
.schedule-modal .gform_wrapper.gravity-theme .ginput_container_address .address_line_1,
.schedule-modal .gform_wrapper.gravity-theme .ginput_container_address .address_line_2 {
	grid-column: 1 / -1;
}
.schedule-modal .gform_wrapper.gravity-theme .ginput_container_address .address_country { display: none; }

/* Name: First / Last in two columns. */
.schedule-modal .gform_wrapper.gravity-theme .ginput_container--name {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
}
.schedule-modal .gform_wrapper.gravity-theme .ginput_container--name > span {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0 !important;
}

/* Interim appointment field: marked so nobody mistakes it for the SSA embed. */
.schedule-modal .gform_wrapper.gravity-theme .glpp-ssa-placeholder .ginput_container {
	padding: 14px;
	background: var(--ground);
	border: 1px solid #C3D2D8;
	border-radius: 8px;
}

/* Validation */
.schedule-modal .gform_wrapper.gravity-theme .gform_validation_errors {
	margin: 0 0 16px;
	padding: 12px 14px 12px 48px; /* left room for GF's error icon */
	border: 1px solid #B42318;
	border-radius: 8px;
	background: #FEF3F2;
	box-shadow: none;
}
.schedule-modal .gform_wrapper.gravity-theme .gform_validation_errors h2 {
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	color: #912018;
}
.schedule-modal .gform_wrapper.gravity-theme .gfield_error input,
.schedule-modal .gform_wrapper.gravity-theme .gfield_error select,
.schedule-modal .gform_wrapper.gravity-theme .gfield_error textarea { border-color: #B42318; }
/* The state is pre-filled and locked to Michigan; never flag it red with the rest of the address. */
.schedule-modal .gform_wrapper.gravity-theme .gfield_error .address_state select { border-color: var(--input-border); }
.schedule-modal .gform_wrapper.gravity-theme .gfield_validation_message {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: #912018;
	font-size: 14px;
	font-weight: 600;
}

/* Submit: amber, full width, 56px, display face, uppercase. */
.schedule-modal .gform_wrapper.gravity-theme .gform_footer {
	margin: 20px 0 0;
	padding: 0;
}
.schedule-modal .gform_wrapper.gravity-theme .gform_footer .gform_button,
.schedule-modal .gform_wrapper.gravity-theme .gform_footer input[type="submit"],
.schedule-modal .gform_wrapper.gravity-theme .gform_footer button[type="submit"] {
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: var(--radius);
	background: var(--amber);
	color: var(--navy-900);
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
}
.schedule-modal .gform_wrapper.gravity-theme .gform_footer .gform_button:hover { background: #F5B65F; }
.schedule-modal .gform_wrapper.gravity-theme .gform_footer .gform_button:focus-visible {
	outline: 3px solid var(--navy-900);
	outline-offset: 3px;
}
.schedule-modal .gform_ajax_spinner { margin-left: 8px; }

@media (max-width: 479.98px) {
	.schedule-modal .gform_wrapper.gravity-theme .ginput_container_address { grid-template-columns: 1fr 1fr; }
	.schedule-modal .gform_wrapper.gravity-theme .ginput_container_address .address_city { grid-column: 1 / -1; }
}

.modal-fallback { font-weight: 600; }

/* Thank You page --------------------------------------------------------- */
.thank-you {
	background: var(--navy-800);
	color: var(--white);
	padding: 112px 0 120px;
}
.thank-you-inner {
	max-width: 760px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	text-align: center;
}
.thank-you-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--amber);
	color: var(--navy-900);
}
.thank-you-icon .icon { stroke-width: 3; }
.thank-you-lede { font-size: 20px; color: var(--on-dark); max-width: 560px; }
.thank-you-lede a { color: var(--amber-soft); font-weight: 700; white-space: nowrap; }
.thank-you-lede a:hover { color: var(--white); }
.thank-you .btn-row { justify-content: center; padding-top: 6px; }
@media (max-width: 640px) {
	.thank-you { padding: 64px 0 72px; }
	.thank-you-lede { font-size: 18px; }
	.thank-you .btn-row > * { flex: 1 1 100%; }
}

/* Inner pages (privacy, fallback) ---------------------------------------- */
.prose { max-width: 760px; }
.prose h1 { font-size: 54px; margin-bottom: 24px; }
.prose h2 { font-size: 34px; margin: 40px 0 12px; }
.prose h3 { font-size: 24px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: var(--body); }
@media (max-width: 640px) { .prose h1 { font-size: 40px; } }
.prose .glpp-draft-banner {
	padding: 14px 16px;
	background: #FFF1B8;
	border: 2px dashed #B58100;
	border-radius: 8px;
	color: #5A3E00;
}
