/* ============================================================
   RoofMango theme — original design system.
   Tokens are declared once below; change colors/fonts there.
   ============================================================ */

:root {
	--ink: #15231F;
	--paper: #F7F5F0;
	--slate: #44564E;
	--forest: #1F5C4A;
	--forest-deep: #163F33;
	--copper: #B5651D;
	--copper-deep: #944F16;
	--mist: #E7E3D8;
	--line: #D8D3C6;

	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Work Sans', system-ui, Arial, sans-serif;

	--container: 1200px;
	--edge: 48px; /* roofline diagonal depth */
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 0.5em;
	color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.rm-skip {
	position: absolute; left: -999px; top: 0;
	background: var(--forest); color: #fff; padding: 12px 20px; z-index: 999;
}
.rm-skip:focus { left: 12px; top: 12px; }

.rm-container {
	width: min(100% - 40px, var(--container));
	margin-inline: auto;
}
.rm-container--narrow {
	width: min(100% - 40px, 760px);
	margin-inline: auto;
}

/* ─── Topbar / header ─── */

.rm-topbar {
	background: var(--ink);
	color: rgba(247, 245, 240, 0.75);
	font-size: 13px;
}
.rm-topbar__inner {
	display: flex;
	justify-content: space-between;
	padding-block: 8px;
	gap: 16px;
}
.rm-topbar__license { color: rgba(247, 245, 240, 0.75); }
.rm-topbar__license:hover { color: var(--copper); }

.rm-header {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 40;
}
.rm-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 84px;
}
.rm-logo__text {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 22px;
	color: var(--ink);
}
.rm-nav { flex: 1; display: flex; justify-content: center; }
.rm-nav__list {
	display: flex;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.rm-nav__list a {
	font-weight: 500;
	font-size: 15px;
	padding-block: 6px;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}
.rm-nav__list a:hover { border-color: var(--copper); color: var(--forest); }

.rm-header__actions { display: flex; }

.rm-burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	cursor: pointer;
}
.rm-burger span { width: 22px; height: 2px; background: var(--ink); }

.rm-mobile-nav {
	display: none;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	padding: 20px;
}
.rm-mobile-nav.is-open { display: block; }
.rm-mobile-nav__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.rm-mobile-nav__list a { font-weight: 500; font-size: 16px; }

@media (max-width: 880px) {
	.rm-nav, .rm-header__actions { display: none; }
	.rm-burger { display: flex; }
}

/* ─── Buttons ─── */

.rm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	font-weight: 600;
	font-size: 15px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.rm-btn--solid { background: var(--forest); color: #fff; }
.rm-btn--solid:hover { background: var(--forest-deep); }
.rm-btn--copper { background: var(--copper); color: #fff; }
.rm-btn--copper:hover { background: var(--copper-deep); }
.rm-btn--outline { border-color: var(--ink); color: var(--ink); }
.rm-btn--outline:hover { background: var(--ink); color: #fff; }
.rm-btn--lg { padding: 16px 32px; font-size: 16px; }

.rm-link {
	font-weight: 600;
	color: var(--forest);
	border-bottom: 1px solid transparent;
}
.rm-link:hover { border-color: var(--forest); }

/* ─── Hero ─── */

.rm-hero {
	position: relative;
	background: var(--mist);
	padding-block: 100px calc(100px + var(--edge));
	overflow: hidden;
}
.rm-hero__inner { max-width: 760px; }
.rm-hero__content {
	opacity: 0;
	animation: rmHeroIn 0.7s ease 0.1s forwards;
}
@keyframes rmHeroIn {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}
.rm-hero h1 { max-width: 14ch; }
.rm-hero__lead {
	font-size: 19px;
	color: var(--slate);
	max-width: 52ch;
	margin-bottom: 32px;
}
.rm-hero__actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 36px;
}
.rm-hero__trust {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	font-weight: 600;
	font-size: 14px;
	color: var(--forest-deep);
}
.rm-hero__trust li::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	background: var(--copper);
	margin-right: 8px;
	transform: rotate(45deg);
}

/* Signature roofline edge: a single angled cut at the hero's base. */
.rm-hero__edge {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: var(--edge);
	background: var(--paper);
	clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ─── Stats ─── */

.rm-stats { background: var(--paper); padding-block: 56px; }
.rm-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}
.rm-stat { border-left: 2px solid var(--copper); padding-left: 18px; }
.rm-stat__num {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(2rem, 3vw, 2.6rem);
	font-weight: 600;
	color: var(--forest);
	line-height: 1;
	margin-bottom: 6px;
}
.rm-stat__label { font-size: 14px; color: var(--slate); font-weight: 500; }

@media (max-width: 760px) {
	.rm-stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

/* ─── Sections ─── */

.rm-section { padding-block: 96px; }
.rm-section--alt { background: var(--mist); }
.rm-section--dark { background: var(--ink); color: rgba(247,245,240,0.86); }
.rm-section--dark h2 { color: #fff; }

.rm-section__head { max-width: 640px; margin-bottom: 48px; }
.rm-section__head p { color: var(--slate); font-size: 17px; }
.rm-section__head--light p { color: rgba(247,245,240,0.72); }

/* ─── Services ─── */

.rm-services {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}
.rm-service-card {
	background: var(--paper);
	padding: 32px 28px;
	transition: background 0.25s ease;
	border-left: 3px solid transparent;
}
.rm-service-card:hover {
	background: #fff;
	border-left-color: var(--forest);
}
.rm-service-card h3 { margin-bottom: 10px; }
.rm-service-card p { color: var(--slate); font-size: 15px; margin-bottom: 16px; }

@media (max-width: 900px) {
	.rm-services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.rm-services { grid-template-columns: 1fr; }
}

/* ─── Split (why choose us) ─── */

.rm-split {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 64px;
	align-items: center;
}
.rm-split__lead { font-size: 18px; color: var(--slate); margin-bottom: 32px; max-width: 48ch; }
.rm-feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 26px;
}
.rm-feature-list h3 { font-size: 18px; margin-bottom: 6px; }
.rm-feature-list p { color: var(--slate); font-size: 15px; margin: 0; }

.rm-media-placeholder {
	aspect-ratio: 4 / 3;
	background: repeating-linear-gradient(135deg, var(--forest) 0 2px, transparent 2px 14px), var(--forest-deep);
	color: rgba(255,255,255,0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	font-size: 14px;
	font-weight: 500;
}

@media (max-width: 880px) {
	.rm-split { grid-template-columns: 1fr; }
	.rm-split__media { order: -1; }
}

/* ─── Service areas ─── */

.rm-area-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}
.rm-area-list a {
	display: block;
	background: var(--paper);
	padding: 18px 22px;
	font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease;
}
.rm-area-list a:hover { background: var(--forest); color: #fff; }

@media (max-width: 760px) {
	.rm-area-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.rm-area-list { grid-template-columns: 1fr; }
}

/* ─── Testimonials ─── */

.rm-testimonials {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.rm-testimonial {
	margin: 0;
	padding: 28px 26px;
	background: rgba(247,245,240,0.05);
	border-top: 2px solid var(--copper);
}
.rm-testimonial p { font-size: 15.5px; line-height: 1.7; margin-bottom: 16px; }
.rm-testimonial footer { font-size: 13px; color: rgba(247,245,240,0.6); font-weight: 600; }

@media (max-width: 880px) {
	.rm-testimonials { grid-template-columns: 1fr; }
}

/* ─── FAQ (native details/summary) ─── */

.rm-faq { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rm-faq details { background: var(--paper); }
.rm-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 20px 22px;
	font-weight: 600;
	font-size: 16px;
	position: relative;
	padding-right: 48px;
}
.rm-faq summary::-webkit-details-marker { display: none; }
.rm-faq summary::after {
	content: "+";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	color: var(--copper);
	font-weight: 400;
}
.rm-faq details[open] summary::after { content: "\2212"; }
.rm-faq details > p { padding: 0 22px 22px; color: var(--slate); margin: 0; }

/* ─── Form ─── */

.rm-form { display: grid; gap: 18px; }
.rm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rm-form label { display: grid; gap: 8px; font-weight: 600; font-size: 14px; }
.rm-form input, .rm-form textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
}
.rm-form input:focus, .rm-form textarea:focus {
	outline: 2px solid var(--forest);
	outline-offset: 1px;
}
.rm-form .rm-btn { justify-self: start; }

@media (max-width: 600px) {
	.rm-form__row { grid-template-columns: 1fr; }
}

/* ─── Final CTA ─── */

.rm-finalcta {
	position: relative;
	background: var(--forest-deep);
	color: #fff;
	padding-block: 72px;
}
.rm-finalcta::before {
	content: "";
	position: absolute;
	top: calc(-1 * var(--edge));
	left: 0; right: 0;
	height: var(--edge);
	background: var(--forest-deep);
	clip-path: polygon(0 0, 100% 100%, 100% 0);
}
.rm-finalcta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}
.rm-finalcta h2 { color: #fff; margin-bottom: 8px; }
.rm-finalcta p { color: rgba(255,255,255,0.78); margin: 0; }

/* ─── Footer ─── */

.rm-footer { background: var(--ink); color: rgba(247,245,240,0.7); }
.rm-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
	padding-block: 64px;
}
.rm-footer__brand { color: #fff; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.rm-footer__about p { font-size: 14px; margin-top: 14px; }
.rm-footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.rm-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.rm-footer__col a:hover { color: var(--copper); }
.rm-footer__bottom {
	border-top: 1px solid rgba(247,245,240,0.1);
	padding-block: 22px;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
}

@media (max-width: 880px) {
	.rm-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.rm-footer__grid { grid-template-columns: 1fr; }
}

/* ─── Inner page hero / prose ─── */

.rm-page-hero { background: var(--mist); padding-block: 64px; }
.rm-prose { font-size: 17px; }
.rm-prose h2 { margin-top: 1.6em; }

/* ─── Reduced motion ─── */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.rm-hero__content { animation: none; opacity: 1; }
}

/* ─── Focus visibility ─── */

a:focus-visible, button:focus-visible, summary:focus-visible {
	outline: 2px solid var(--forest);
	outline-offset: 2px;
}
