/* Redesign styles for Elementor pages built with md-* classes. Palette: red #E71C02, ink #150502, blush #F9E8E5. */

/* ---------- Sections ---------- */
.e-con.md-sec {
	--padding-top: clamp(56px, 8vw, 104px);
	--padding-bottom: clamp(56px, 8vw, 104px);
	--padding-left: 20px;
	--padding-right: 20px;
	--gap: 28px 28px;
	--row-gap: 28px;
}
.md-sec .e-con-inner { max-width: 1180px; }
.e-con.md-sec { background: #fff; }
.e-con.md-sec.md-dark { background: #150502; color: #e9dcd9; }
.md-dark .elementor-heading-title { color: #fff; }
.e-con.md-sec.md-soft { background: #f9e8e5; }
.md-sec.md-tight { --padding-top: 28px; --padding-bottom: 28px; }

/* ---------- Typography ---------- */
.md-eyebrow .elementor-heading-title {
	font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e71c02;
}
.md-dark .md-eyebrow .elementor-heading-title { color: #ff6a52; }
.md-h1 .elementor-heading-title { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.md-h2 .elementor-heading-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.md-center, .md-center .elementor-heading-title, .md-center .elementor-widget-container { text-align: center; }
.md-lead .elementor-widget-container, .md-lead p { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.md-maxw .elementor-widget-container { max-width: 680px; margin-left: auto; margin-right: auto; }
.md-text p:last-child { margin-bottom: 0; }

/* ---------- Buttons (Elementor button widget) ---------- */
.md-btn-primary .elementor-button, .md-btn-ghost .elementor-button, .md-btn-light .elementor-button {
	border-radius: 999px; padding: 17px 30px; font-size: 17px; font-weight: 700; line-height: 1;
	transition: background .15s, color .15s, transform .1s, border-color .15s;
}
.md-btn-primary .elementor-button { background: #e71c02; color: #fff; border: 2px solid #e71c02; box-shadow: 0 10px 24px rgba(231, 28, 2, .28); }
.md-btn-primary .elementor-button:hover { background: #a82413; border-color: #a82413; }
.md-btn-ghost .elementor-button { background: transparent; color: #150502; border: 2px solid #150502; }
.md-btn-ghost .elementor-button:hover { background: #150502; color: #fff; }
.md-dark .md-btn-ghost .elementor-button { color: #fff; border-color: rgba(255, 255, 255, .5); }
.md-dark .md-btn-ghost .elementor-button:hover { background: #fff; color: #150502; }
.md-btn-light .elementor-button { background: #fff; color: #150502; border: 2px solid #fff; }
.md-btn-light .elementor-button:hover { background: #150502; color: #fff; border-color: #150502; }
.elementor-button:active { transform: translateY(1px); }
.e-con.md-btns {
	--flex-direction: row; --flex-wrap: wrap; --justify-content: flex-start; --align-items: center;
	--gap: 12px 12px; --row-gap: 12px; --column-gap: 12px;
	--padding-top: 8px; --padding-bottom: 8px; --padding-left: 0; --padding-right: 0;
}
.md-center .e-con.md-btns, .e-con.md-btns.md-center { --justify-content: center; }
.md-btns > .elementor-widget, .md-btns > .e-con-inner > .elementor-widget { width: auto; }

/* ---------- Hero ---------- */
.md-hero { position: relative; overflow: hidden; }
.md-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(60% 80% at 85% 20%, rgba(231, 28, 2, .35), transparent 60%);
}
.md-hero .md-hero__img img { border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.md-trust .elementor-icon-list-items { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.md-trust .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
.md-trust .elementor-icon-list-text { color: #e9dcd9; font-weight: 600; font-size: 15px; }
.md-trust .elementor-icon-list-icon { display: none !important; }
.md-trust .elementor-icon-list-items, .md-trust .elementor-icon-list-item { margin-left: 0 !important; margin-right: 0 !important; inset-inline-start: 0 !important; }
.md-trust .elementor-icon-list-item::after { display: none !important; } /* Elementor's inline dividers */
.md-trust .elementor-icon-list-text { padding-left: 0 !important; }
.md-trust .elementor-icon-list-text::before { content: "✓"; color: #ff6a52; font-weight: 800; margin-right: 6px; }

/* ---------- Layout helpers ---------- */
.md-split > .e-con-inner { display: grid !important; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(28px, 5vw, 64px); }
.md-split--rev > .e-con-inner { grid-template-columns: .9fr 1.1fr; }
.md-grid > .e-con-inner, .md-grid.e-con-full { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.md-grid--3 > .e-con-inner { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.md-split > .e-con-inner > .e-con, .md-grid > .e-con-inner > .e-con { --width: auto; width: auto; max-width: none; min-width: 0; }
/* Never let a section be wider than the screen on phones. */
.md-sec, .md-sec .e-con { min-width: 0; }
.md-sec .e-con-inner { min-width: 0; width: 100%; }
.md-sec .elementor-widget, .md-sec .elementor-heading-title, .md-sec p { overflow-wrap: break-word; min-width: 0; }
.md-btns .elementor-button { white-space: normal; text-align: center; }

/* ---------- Cards ---------- */
.e-con.md-card {
	--padding-top: 0; --padding-bottom: 24px; --padding-left: 0; --padding-right: 0; --gap: 10px; --row-gap: 10px;
	background: #fff; color: #4c4c4c; border-radius: 18px; overflow: hidden; border: 1px solid #f1d3ce;
	box-shadow: 0 10px 30px rgba(21, 5, 2, .06); transition: transform .2s, box-shadow .2s;
}
.md-dark .md-card .elementor-heading-title { color: #150502; }
.md-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(21, 5, 2, .12); }
.md-card > .elementor-widget:not(.elementor-widget-image) { padding-left: 24px; padding-right: 24px; }
.md-card .elementor-widget-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.md-card .elementor-heading-title { font-size: 22px; font-weight: 800; }
.md-card .elementor-button { background: none !important; color: #e71c02 !important; padding: 0 !important; font-weight: 700; box-shadow: none !important; border: 0 !important; }
.md-card .elementor-button:hover { color: #a82413 !important; text-decoration: underline; }
.md-card .elementor-button .elementor-button-text::after { content: " →"; }

.e-con.md-card--text { --padding-top: 26px; border-top: 4px solid #e71c02; }

/* Branded panel used until a real photo is added */
.md-photo-brand .elementor-widget-container {
	display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; overflow: hidden; aspect-ratio: 16 / 10; padding: 22px;
	background: radial-gradient(80% 90% at 85% 15%, rgba(255, 106, 82, .55), transparent 60%), linear-gradient(135deg, #150502, #6e1307);
	color: #fff; font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: -.01em;
}
.md-sec .md-photo-brand .elementor-widget-container { border-radius: 24px; aspect-ratio: 4 / 3; font-size: clamp(28px, 4vw, 44px); padding: 32px; }
.md-card > .elementor-widget.md-photo-brand { padding-left: 0 !important; padding-right: 0 !important; }
.md-sec .md-card .md-photo-brand .elementor-widget-container { border-radius: 0; aspect-ratio: 16 / 10; font-size: 22px; padding: 18px 20px; }
.md-card .md-photo-brand small { font-size: 11px; margin-bottom: 6px; }
.md-photo-brand small { display: block; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #ffb4a8; margin-bottom: 8px; }

/* Placeholder photo spot (replace with a real photo in Elementor) */
.md-photo-needed .elementor-widget-container {
	display: flex; align-items: center; justify-content: center; text-align: center; aspect-ratio: 16 / 10;
	background: repeating-linear-gradient(45deg, #fbeeeb, #fbeeeb 12px, #f6dcd7 12px, #f6dcd7 24px);
	color: #a82413; font-weight: 700; font-size: 14px; padding: 16px;
}

/* ---------- Steps ---------- */
.e-con.md-step { --padding-top: 28px; --padding-bottom: 28px; --padding-left: 28px; --padding-right: 28px; background: #fff; border-radius: 18px; border: 1px solid #f1d3ce; counter-increment: mdstep; position: relative; }
.md-steps { counter-reset: mdstep; }
/* Number badge on the step heading (Elementor reserves the container's ::before for background overlays). */
.md-step .elementor-heading-title::before {
	content: counter(mdstep); display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%; background: #e71c02; color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 14px;
}
.md-step .elementor-heading-title { font-size: 21px; font-weight: 800; }

/* ---------- Offer band ---------- */
.e-con.md-sec.md-offer { background: linear-gradient(100deg, #e71c02, #a82413); color: #fff; }
.md-offer .elementor-heading-title { color: #fff; }
.md-offer .md-text, .md-offer .elementor-widget-text-editor { color: #ffe9e5; }

/* ---------- About block ---------- */
.md-photo img { border-radius: 24px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.md-photo--wide img { aspect-ratio: 4 / 3; object-position: 50% 40%; }
.md-sec .md-photo-needed .elementor-widget-container { border-radius: 24px; aspect-ratio: 4 / 3; }

/* Jump links on the Services hero */
.md-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 0; }
.md-jump a { padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .35); color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: 15px; }
.md-jump a:hover { background: #e71c02; border-color: #e71c02; }
html { scroll-behavior: smooth; }
.md-sec[id] { scroll-margin-top: 90px; }
.md-checks .elementor-icon-list-text { font-size: 17px; font-weight: 600; color: #150502; }
.md-checks .elementor-icon-list-icon svg, .md-checks .elementor-icon-list-icon i { fill: #e71c02; color: #e71c02; }
.md-checks .elementor-icon-list-item { padding-bottom: 8px !important; }

/* ---------- Testimonials ---------- */
.e-con.md-quote { --padding-top: 28px; --padding-bottom: 28px; --padding-left: 28px; --padding-right: 28px; background: #fff; border-radius: 18px; border: 1px solid #f1d3ce; }
.md-quote .elementor-widget-text-editor { font-size: 17px; line-height: 1.6; color: #150502; }
.md-quote .elementor-heading-title { font-size: 15px; font-weight: 700; color: #6b5f5d; }
.md-stars .elementor-widget-container { color: #f2a51a; letter-spacing: 2px; font-size: 18px; }
.md-placeholder { outline: 2px dashed #e71c02; outline-offset: 4px; }
.md-placeholder-note .elementor-widget-container { background: #fff3cd; color: #6b4b00; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; }

/* ---------- FAQ (native <details>, no JavaScript needed) ---------- */
.md-faq { max-width: 820px; margin: 0 auto; }
.md-faq details { border-bottom: 1px solid #f1d3ce; }
.md-faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-size: 19px; font-weight: 700; color: #150502; }
.md-faq summary::-webkit-details-marker { display: none; }
.md-faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; color: #e71c02; transition: transform .2s; }
.md-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.md-faq details > div { padding: 0 0 22px; font-size: 17px; line-height: 1.65; }
.md-faq a { color: #e71c02; font-weight: 600; }

/* ---------- Location ---------- */
.md-map iframe { width: 100%; height: 360px; border: 0; border-radius: 18px; display: block; }
.md-dark a { color: #fff; }

/* ---------- Newsletter / shortcode blocks inside dark sections ---------- */
.md-sec .mdt-news { margin-bottom: 0; }

/* ---------- Mobile sticky bar ---------- */
.md-mbar { display: none; }
@media (max-width: 900px) {
	.md-mbar {
		display: flex; gap: 8px; position: fixed; z-index: 9999; left: 0; right: 0; bottom: 0;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(21, 5, 2, .96);
		box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
	}
	.md-mbar a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none !important; font-size: 16px; }
	.md-mbar__text { color: #fff !important; border: 2px solid rgba(255, 255, 255, .45); }
	.md-mbar__cta { color: #fff !important; background: #e71c02; }
	body { padding-bottom: 72px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.md-split > .e-con-inner, .md-split--rev > .e-con-inner { grid-template-columns: 1fr; }
	.md-hero .md-hero__img { order: -1; }
	.md-hero .md-hero__img img { aspect-ratio: 4 / 3; max-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
	.md-card, .elementor-button { transition: none !important; }
}
