/* JB's Demolition & Excavation - Styles */
:root {
	--bg: #0f1720;
	--panel: #131c26;
	--muted: #9fb0c3;
	--text: #e7eef6;
	--brand: #f5b400;
	--brand-ink: #1a1200;
	--accent: #2a6f97;
	--ok: #22c55e;
	--danger: #ef4444;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	color: var(--text);
	background: radial-gradient(1200px 600px at 80% -10%, rgba(245, 180, 0, 0.07), transparent 60%), var(--bg);
	line-height: 1.6;
}

/* Animated site background */
.animated-bg {
	position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .18;
	background:
		/* subtle moving gradient glow */
		radial-gradient(800px 400px at 80% -10%, rgba(245, 180, 0, .12), transparent 60%),
		radial-gradient(600px 300px at 10% 110%, rgba(42, 111, 151, .18), transparent 60%),
		var(--bg);
	animation: bg-pan 40s linear infinite;
}

/* demolition "dust" particles in two layers for gentle parallax */
.animated-bg::before,
.animated-bg::after {
	content: "";
	position: absolute; inset: -10%; pointer-events: none;
}

.animated-bg::before { /* near layer - smaller specks */
	opacity: .22;
	background:
		radial-gradient(rgba(255,255,255,0.06) 1px, transparent 2px) 0 0/120px 120px,
		radial-gradient(rgba(255,255,255,0.04) 1px, transparent 2px) 60px 60px/160px 160px;
	filter: blur(.4px);
	animation: dust-drift-1 38s linear infinite;
}

.animated-bg::after { /* far layer - larger, softer specks */
	opacity: .18;
	background:
		radial-gradient(rgba(255,255,255,0.05) 1.5px, transparent 3px) 0 0/200px 200px,
		radial-gradient(rgba(255,255,255,0.035) 1.5px, transparent 3px) 100px 100px/260px 260px;
	filter: blur(.8px);
	animation: dust-drift-2 56s linear infinite;
}

@keyframes bg-pan {
	0% { background-position: 0% 0%, 0% 0%, 0 0; }
	50% { background-position: 40% 10%, -20% 90%, 0 0; }
	100% { background-position: 0% 0%, 0% 0%, 0 0; }
}

@keyframes dust-drift-1 {
	0% { background-position: 0 0, 60px 60px; }
	50% { background-position: 0 40px, 60px 100px; }
	100% { background-position: 0 0, 60px 60px; }
}

@keyframes dust-drift-2 {
	0% { background-position: 0 0, 100px 100px; }
	50% { background-position: -30px 60px, 70px 160px; }
	100% { background-position: 0 0, 100px 100px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.animated-bg, .animated-bg::before, .animated-bg::after { animation: none !important; }
}

/* Tone down on small screens */
@media (max-width: 600px) {
	.animated-bg { opacity: .12; }
	.animated-bg::before { opacity: .15; }
	.animated-bg::after { opacity: .12; }
}

img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }

.container {
	width: min(1100px, 92%);
	margin-inline: auto;
}

.skip-link {
	position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; background: var(--brand); color: var(--brand-ink); padding: .5rem .75rem; border-radius: .5rem; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(15, 23, 32, 0.7);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(159, 176, 195, 0.12);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: .2px; }
.brand .brand-mark { filter: drop-shadow(0 4px 12px rgba(245, 180, 0, .35)); }
.brand.muted { opacity: .9; }
.brand-text strong { color: var(--brand); }

.nav { position: relative; }
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle .bar { display: block; width: 26px; height: 2px; background: var(--text); margin: 6px 0; transition: transform .3s ease, opacity .3s ease; }
.nav-menu { display: flex; gap: 1rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-menu a { padding: .5rem .75rem; border-radius: .5rem; color: var(--text); }
.nav-menu a:hover { background: rgba(159, 176, 195, 0.12); }

/* Subtle icon link in header */

/* Mobile nav */
@media (max-width: 800px) {
	body.nav-open { overflow: hidden; }
	.nav-toggle { display: inline-block; }
	.nav-menu {
		position: absolute; right: 0; top: calc(100% + 8px);
		background: var(--panel);
		border: 1px solid rgba(159,176,195,.2);
		box-shadow: var(--shadow);
		padding: .5rem;
		border-radius: .7rem;
		display: none;
		flex-direction: column;
		gap: .25rem;
		width: min(260px, 92vw);
	}
	.nav-menu.open { display: flex; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.1rem; border-radius: .7rem; border: 1px solid transparent; font-weight: 700; letter-spacing: .2px; cursor: pointer; transition: transform .02s ease, box-shadow .2s ease, background .2s ease; }
.btn.small { padding: .55rem .75rem; font-weight: 700; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #ffd046, var(--brand)); color: var(--brand-ink); box-shadow: 0 6px 16px rgba(245, 180, 0, .25); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(245, 180, 0, .35); }
.btn-ghost { background: transparent; border-color: rgba(159,176,195,.2); color: var(--text); }
.btn-ghost:hover { background: rgba(159,176,195,.12); }

/* Social CTA placeholder (removed) */
.btn-fb { background: linear-gradient(180deg, #3b82f6, #1d4ed8); color: #fff; border-color: rgba(59,130,246,.4); position: relative; }
.btn-fb .fb-icon { width: 16px; height: 16px; filter: drop-shadow(0 3px 8px rgba(59,130,246,.5)); }
.btn.small.btn-fb { padding: .5rem .7rem; }
.btn-fb.icon-only { width: 40px; height: 40px; padding: 0; border-radius: 999px; display: inline-grid; place-items: center; }
.btn-fb.icon-only .fb-icon { width: 18px; height: 18px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,1px,1px); white-space: nowrap; border: 0; }
.btn-fb::after { content: ""; position: absolute; inset: -4px; border-radius: .8rem; pointer-events: none; box-shadow: 0 0 0 0 rgba(59,130,246,.45); animation: fb-pulse 2.2s ease-out infinite; }
.btn-fb.icon-only::after { inset: -6px; border-radius: 999px; }
.btn-fb:hover { box-shadow: 0 10px 22px rgba(59,130,246,.32); }
@keyframes fb-pulse { 0% { box-shadow: 0 0 0 0 rgba(59,130,246,.45); } 70% { box-shadow: 0 0 0 18px rgba(59,130,246,0); } 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); } }
@media (prefers-reduced-motion: reduce) { .btn-fb::after { animation: none; } }

/* Sections */
.section { padding: clamp(3rem, 6vw, 6rem) 0; position: relative; }
.section.alt { background: linear-gradient(180deg, rgba(19,28,38,.7), rgba(19,28,38,.7)), radial-gradient(800px 400px at 20% -10%, rgba(42,111,151,.12), transparent 70%), var(--panel); }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin: 0 0 .5rem; }
.section-head p { color: var(--muted); margin: 0 auto; max-width: 60ch; }
.headline { font-family: 'Outfit', Inter, system-ui, sans-serif; font-weight: 900; letter-spacing: .2px; line-height: 1.12; font-size: clamp(2rem, 5.2vw, 3.5rem); background: linear-gradient(180deg, #ffffff, #ffeaa3 55%, #f5b400); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; display: inline-block; padding-bottom: .12em; overflow: visible; text-shadow:
	0 1px 0 rgba(255,255,255,.22),
	0 2px 2px rgba(0,0,0,.30),
	0 6px 18px rgba(245,180,0,.16); }
.headline::before { content: ""; position: absolute; inset: -8% -10%; z-index: -1; border-radius: 18px; filter: blur(16px); opacity: .38; background:
	radial-gradient(60% 45% at 20% 20%, rgba(255,230,150,.28), transparent 60%),
	radial-gradient(60% 45% at 80% 30%, rgba(245,180,0,.18), transparent 62%),
	radial-gradient(90% 55% at 50% 100%, rgba(255,255,255,.06), transparent 60%);
	pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .headline::before { filter: blur(14px); } }

/* Embossed section title (lighter version for Core Services) */
.title-emboss { position: relative; display: inline-block; line-height: 1.1; padding-bottom: .08em; text-shadow:
	0 1px 0 rgba(255,255,255,.14),
	0 1.5px 1.5px rgba(0,0,0,.22),
	0 4px 14px rgba(245,180,0,.10); }
.title-emboss::before { content: ""; position: absolute; inset: -10% -10%; z-index: -1; border-radius: 14px; filter: blur(12px); opacity: .18; background:
	radial-gradient(50% 40% at 20% 20%, rgba(255,230,150,.18), transparent 60%),
	radial-gradient(55% 42% at 80% 30%, rgba(245,180,0,.12), transparent 62%);
	pointer-events: none; }

/* Lighter variant for the quote section heading */
.title-emboss.is-soft { text-shadow:
	0 1px 0 rgba(255,255,255,.10),
	0 1px 1px rgba(0,0,0,.16),
	0 3px 10px rgba(245,180,0,.08); }
.title-emboss.is-soft::before { opacity: .12; filter: blur(10px); }
.shine { --shine: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.45) 40%, rgba(255,255,255,.8) 50%, transparent 60%); }
.shine::after { content: none; }
@keyframes shine-sweep { 0% { background-position: -140% 0; } 25% { background-position: 140% 0; } 100% { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .shine::after { animation: none; } }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(245, 180, 0, .35), 0 0 0 4px rgba(245,180,0,.12) inset; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1.1fr .9fr; align-items: center; } }

/* Hero */
.hero { padding-top: clamp(4rem, 8vw, 8rem); }
.hero .lead { color: var(--muted); }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1rem 0 1.2rem; }
.trust-points { display: flex; gap: 1rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; color: var(--muted); }
.hero-card { background: linear-gradient(180deg, rgba(255, 208, 70, .12), rgba(21, 29, 39, .9)); border: 1px solid rgba(245, 180, 0, .25); box-shadow: var(--shadow); padding: 1.2rem; border-radius: 1rem; max-width: 420px; margin-inline: auto; }
.hero-card .badge { display: inline-block; background: var(--brand); color: var(--brand-ink); font-weight: 800; padding: .25rem .6rem; border-radius: .5rem; margin-bottom: .6rem; box-shadow: 0 4px 14px rgba(245,180,0,.35); }
.hero-card .stat { display: grid; grid-template-columns: auto 1fr; gap: .25rem .6rem; align-items: baseline; padding: .5rem 0; border-top: 1px dashed rgba(245, 180, 0, .25); }
.hero-card .stat:first-of-type { border-top: 0; }
.hero-card .stat strong { font-size: 1.4rem; color: #ffd046; }
.hero-bg { position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1596075780750-81249df16a5a?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat; opacity: .18; pointer-events: none; }

/* Hero effects: subtle sparks and debris flecks */
.hero { position: relative; overflow: hidden; }
.hero-effects { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero .container { position: relative; z-index: 1; }

.spark, .fleck { position: absolute; display: block; }

/* Spark visuals */
.spark { width: 2px; height: 18px; background: linear-gradient(180deg, #ffd046, rgba(245,180,0,0)); filter: blur(.4px) drop-shadow(0 0 6px rgba(245,180,0,.45)); opacity: .7; transform-origin: top left; }
.spark.s1 { left: 10%; top: 35%; animation: spark-fall 2.8s linear infinite 1.2s; }
.spark.s2 { left: 55%; top: 25%; animation: spark-fall 3.2s linear infinite; }
.spark.s3 { left: 82%; top: 32%; animation: spark-fall 3.6s linear infinite .6s; }

/* Fleck visuals */
.fleck { width: 3px; height: 3px; background: rgba(231, 238, 246, .4); border-radius: 50%; filter: blur(.8px); opacity: .55; }
.fleck.f1 { left: 22%; top: 42%; animation: fleck-drift 7s ease-in-out infinite; }
.fleck.f2 { left: 66%; top: 30%; animation: fleck-drift 8.5s ease-in-out infinite .8s; }
.fleck.f3 { left: 78%; top: 46%; animation: fleck-drift 9.5s ease-in-out infinite .4s; }

@keyframes spark-fall {
	0% { transform: translate3d(0,0,0) rotate(8deg); opacity: .8; }
	85% { opacity: .2; }
	100% { transform: translate3d(30px, 90px, 0) rotate(18deg); opacity: 0; }
}

@keyframes fleck-drift {
	0% { transform: translate3d(0,0,0); }
	50% { transform: translate3d(-10px, 6px, 0); }
	100% { transform: translate3d(0,0,0); }
}

@media (prefers-reduced-motion: reduce) {
	.spark, .fleck { animation: none !important; }
}

@media (max-width: 700px) {
	.spark { opacity: .45; }
	.fleck { opacity: .4; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: linear-gradient(180deg, rgba(19, 28, 38, .95), rgba(13, 20, 29, .95)); border: 1px solid rgba(159, 176, 195, .12); border-radius: 1rem; padding: 1.1rem; box-shadow: var(--shadow); }
.card .icon { font-size: 1.6rem; filter: drop-shadow(0 6px 14px rgba(245, 180, 0, .25)); }
.card h3 { margin: .6rem 0 .4rem; font-size: 1.1rem; }
.card p { color: var(--muted); margin: 0; }

/* Gallery */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; background: rgba(0,0,0,.25); border-radius: .8rem; overflow: hidden; border: 1px solid rgba(159,176,195,.12); box-shadow: var(--shadow); }
.gallery figure { position: relative; }
.gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35)); opacity: 0; transition: opacity .25s ease; }
.gallery figure:hover::after { opacity: 1; }
.gallery figcaption { position: relative; z-index: 1; }
.hero-bg { will-change: transform; }
.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.45); border-color: rgba(159,176,195,.25); }
.gallery img { width: 100%; height: 240px; object-fit: cover; }
.gallery figcaption { padding: .6rem .8rem; color: var(--muted); font-size: .95rem; }

/* About */
.checks { list-style: none; padding: 0; margin: 1rem 0 0; color: var(--muted); }
.checks li { position: relative; padding-left: 1.2rem; }
.checks li::before { content: '✔'; position: absolute; left: 0; color: var(--ok); }
.about-card { background: linear-gradient(180deg, rgba(42, 111, 151, .12), rgba(21, 29, 39, .9)); border: 1px solid rgba(42, 111, 151, .35); border-radius: 1rem; padding: 1.1rem; box-shadow: var(--shadow); }
.bullets { list-style: none; padding: 0; margin: .6rem 0 1rem; color: var(--muted); }
.bullets li { padding-left: 1rem; position: relative; }
.bullets li::before { content: '•'; position: absolute; left: .15rem; color: #7dd3fc; }

/* Guarantees (uses existing .cards styles) */
.faq { background: linear-gradient(180deg, rgba(19, 28, 38, .95), rgba(13, 20, 29, .95)); border: 1px solid rgba(159,176,195,.12); border-radius: .8rem; padding: .8rem 1rem; margin: .6rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: .6rem 0 0 0; }

/* Testimonials */
.testimonials { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.t-card { background: linear-gradient(180deg, rgba(19, 28, 38, .95), rgba(13, 20, 29, .95)); border: 1px solid rgba(159,176,195,.12); border-radius: 1rem; padding: 1rem; box-shadow: var(--shadow); position: relative; }
.t-card blockquote { margin: 0 0 .6rem; font-size: 1.05rem; }
.t-card.active { border-color: rgba(245,180,0,.45); box-shadow: 0 10px 26px rgba(245,180,0,.12); }

/* Sticky mobile CTA */
.sticky-cta { position: sticky; bottom: 0; z-index: 60; display: flex; gap: .6rem; justify-content: center; padding: .6rem; background: rgba(15,23,32,.6); backdrop-filter: blur(6px); border-top: 1px solid rgba(159,176,195,.12); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* Back to top */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 55; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(159,176,195,.22); background: rgba(19,28,38,.9); color: var(--text); box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease; }
.to-top.visible { opacity: 1; transform: none; }

/* Form */
.form { background: linear-gradient(180deg, rgba(19, 28, 38, .95), rgba(13, 20, 29, .95)); border: 1px solid rgba(159, 176, 195, .12); border-radius: 1rem; padding: 1rem; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 800px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1/-1; } }
.form label { display: grid; gap: .35rem; font-weight: 600; }
.form label.tight { gap: .2rem; }
.form span { color: var(--muted); font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; background: #0b121a; border: 1px solid rgba(159,176,195,.18); padding: .8rem .9rem; color: var(--text); border-radius: .6rem; outline: none; transition: border .2s ease, box-shadow .2s ease; }
	.form .input-compact { padding: .4rem .65rem; font-size: .93rem; line-height: 1.1; min-height: 2.25rem; }
/* Narrow field container to limit width of specific fields like Full name */
	.form label.field-narrow { max-width: 320px; justify-self: start; }
@media (min-width: 800px) { .form .col-span-1 { grid-column: span 1; } .form .field-narrow { grid-column: span 1; } }
.form input:focus, .form select:focus, .form textarea:focus { border-color: #7dd3fc; box-shadow: 0 0 0 3px rgba(125, 211, 252, .15); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .6rem; }
.check {
	display: inline-flex; align-items: center; gap: .6rem; color: var(--muted);
	background: linear-gradient(180deg, rgba(42,111,151,.08), rgba(19,28,38,.6));
	border: 1px solid rgba(42,111,151,.28);
	padding: .6rem .75rem; border-radius: .6rem;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.check:hover { border-color: rgba(42,111,151,.45); }
.check:focus-within { box-shadow: 0 0 0 3px rgba(125,211,252,.18); border-color: #7dd3fc; }

/* Custom checkbox */
.check input[type="checkbox"] {
	appearance: none; width: 18px; height: 18px; border-radius: .35rem;
	border: 1px solid rgba(159,176,195,.4); background: #0b121a; display: grid; place-items: center;
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.check input[type="checkbox"]::after {
	content: '\2713'; /* checkmark */
	font-size: 14px; color: var(--brand-ink); transform: scale(0); transition: transform .12s ease;
}
.check input[type="checkbox"]:checked { background: linear-gradient(180deg, #ffd046, var(--brand)); border-color: rgba(245,180,0,.8); box-shadow: 0 0 0 3px rgba(245,180,0,.15); }
.check input[type="checkbox"]:checked::after { transform: scale(1); }
.check span { color: var(--text); }
.form-status { margin-top: .5rem; font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid rgba(159,176,195,.12); background: radial-gradient(1000px 300px at -10% 110%, rgba(42,111,151,.12), transparent 60%), var(--panel); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; padding: 1.4rem 0; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr .8fr .8fr; align-items: start; } }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-contact { display: grid; gap: .35rem; }
.legal { border-top: 1px solid rgba(159,176,195,.12); padding: .8rem 0 1.6rem; }
.muted { color: var(--muted); }
.small { font-size: .95rem; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

/* Header shrink on scroll */
.shrink .nav-bar { padding: .4rem 0; }

/* Utilities */
.alt a.btn-primary { color: var(--brand-ink); }

/* Utility */
.hidden { display: none !important; }

/* Desktop Mobile Preview Toggle */
.preview-toggle { position: fixed; left: 1rem; bottom: 1rem; z-index: 70; padding: .55rem .8rem; border-radius: .6rem; border: 1px solid rgba(159,176,195,.25); background: rgba(19,28,38,.92); color: var(--text); cursor: pointer; box-shadow: var(--shadow); }
@media (max-width: 900px) { .preview-toggle { display: none; } }

/* Mobile preview mode: constrain width and add phone-like frame */
.mobile-preview .site-root { width: 390px; margin: 0 auto; border: 2px solid rgba(245,180,0,.35); border-radius: 1rem; overflow: hidden; box-shadow: 0 30px 100px rgba(0,0,0,.55), 0 0 0 2px rgba(245,180,0,.12) inset; background: var(--bg); }
.mobile-preview .site-header { position: sticky; }
.mobile-preview .sticky-cta { position: fixed; width: 390px; left: 50%; transform: translateX(-50%); }

/* Desktop site frame to match theme */
@media (min-width: 1000px) {
	.site-root {
		border: 1px solid rgba(245,180,0,.16);
		border-radius: 12px;
		box-shadow: 0 0 0 1px rgba(245,180,0,.06) inset;
	}
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal[aria-hidden="false"] { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.modal-dialog { position: relative; margin: 6vh auto; width: min(720px, 92%); max-height: 86vh; background: linear-gradient(180deg, rgba(19, 28, 38, .98), rgba(13, 20, 29, .98)); border: 1px solid rgba(159,176,195,.2); border-radius: 1rem; padding: .9rem; box-shadow: 0 30px 80px rgba(0,0,0,.6); display: flex; flex-direction: column; }
.modal-content-scroll { overflow: auto; padding-right: .25rem; }
.modal-close { position: absolute; top: .6rem; right: .6rem; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); color: var(--text); cursor: pointer; }
.modal-close:hover { background: rgba(255,255,255,.12); }

/* Modal drag handle (desktop + mobile) */
.modal-handle {
	position: absolute; left: 50%; transform: translateX(-50%);
	top: .4rem; width: 64px; height: 6px; border-radius: 999px;
	background: rgba(255,255,255,.18);
}
.modal-handle:hover { background: rgba(255,255,255,.26); }
.modal-handle:active { background: rgba(255,255,255,.34); }

/* Mobile-optimized modal sheet */
@media (max-width: 700px) {
	.modal-dialog {
		margin: 0; width: 100%;
		height: 100dvh; /* dynamic viewport for mobile */
		min-height: 100vh; /* fallback */
		border-radius: 0; padding: .75rem;
		display: flex; flex-direction: column;
		box-shadow: 0 10px 40px rgba(0,0,0,.6);
		border-color: rgba(159,176,195,.25);
		padding-bottom: max(.75rem, env(safe-area-inset-bottom));
	}
			.modal-close { width: 40px; height: 40px; top: .35rem; right: .35rem; }
			.modal-handle { top: .35rem; width: 48px; height: 5px; }
		.modal .section-head { margin-bottom: .25rem; }
		.modal .section-head h2 { font-size: 1.15rem; }
		.modal .section-head p { font-size: .95rem; }
		.modal .form { background: transparent; border: 0; box-shadow: none; padding: 0; flex: 1; display: flex; flex-direction: column; }
		.modal .form-grid { flex: 1; overflow: auto; padding-right: .25rem; }
		.modal .form label span { font-size: .95rem; }
		.modal .form input, .modal .form select, .modal .form textarea { padding: .65rem .75rem; font-size: 1rem; }
		.modal .form textarea { min-height: 110px; }
	.modal .form-foot {
		position: sticky; bottom: 0;
		background: linear-gradient(180deg, rgba(19,28,38,.4), rgba(19,28,38,.9));
		backdrop-filter: blur(4px);
		border-top: 1px solid rgba(159,176,195,.18);
			margin-top: .35rem; padding-top: .45rem;
			padding-bottom: max(.45rem, env(safe-area-inset-bottom));
	}
}

/* Noticeable scrollbar styling */
/* WebKit-based browsers */
.modal-content-scroll::-webkit-scrollbar { width: 10px; }
.modal-content-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 8px; }
.modal-content-scroll::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ffd046, var(--brand)); border-radius: 8px; border: 2px solid rgba(0,0,0,.35); }
.modal-content-scroll::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffdb70, #ffc233); }

/* Firefox */
.modal-content-scroll { scrollbar-color: var(--brand) rgba(255,255,255,.08); scrollbar-width: thin; }

/* Global scrollbar styling (site-wide) */
/* WebKit */
html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: rgba(255,255,255,.06); }
html::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ffd046, var(--brand)); border-radius: 10px; border: 3px solid rgba(0,0,0,.35); }
html::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffdb70, #ffc233); }

/* Firefox */
html { scrollbar-color: var(--brand) rgba(255,255,255,.08); scrollbar-width: thin; }

