/* ==========================================================================
   NealClone theme styles
   Palette driven by CSS vars (overridable from Site Settings ACF options).
   ========================================================================== */

:root {
	--brand-primary: #0d2137;   /* deep navy */
	--brand-primary-2: #12314f;
	--brand-accent: #e8541e;    /* roofing orange */
	--brand-accent-dark: #c8410f;
	--ink: #1a2432;
	--muted: #5b6a7d;
	--line: #e2e8f0;
	--bg: #ffffff;
	--bg-alt: #f5f7fa;
	--star: #f5a623;
	--radius: 12px;
	--maxw: 1180px;
	--font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	line-height: 1.6;
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--brand-primary); }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-cta { text-align: center; margin-top: 40px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-block;
	padding: 13px 26px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid transparent;
	transition: transform .12s ease, background .2s ease;
	text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-accent { background: var(--brand-accent); color: #fff; }
.btn-accent:hover { background: var(--brand-accent-dark); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* Header ----------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--brand-primary);
	color: #fff;
	box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-logo, .footer-logo { max-height: 44px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.2rem; }
.brand-license { font-size: .7rem; opacity: .7; }
.primary-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav-list a { color: #fff; font-weight: 500; font-size: .95rem; }
.nav-list a:hover { color: var(--brand-accent); text-decoration: none; }
.header-phone { white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; }

/* Hero ------------------------------------------------------------------- */
.hero {
	background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
	color: #fff;
	padding: 90px 0;
}
.hero--inner { padding: 64px 0; }
.hero-copy { max-width: 720px; }
.hero h1 { color: #fff; }
.hero-sub { font-size: 1.15rem; opacity: .9; margin-bottom: 28px; }
.hero-quicklinks { display: flex; gap: 12px; flex-wrap: wrap; }

/* Trust bar -------------------------------------------------------------- */
.trust-bar { background: var(--brand-accent); color: #fff; }
.trust-inner { display: flex; justify-content: center; gap: 48px; padding: 16px 20px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.stars { color: #ffe08a; letter-spacing: 2px; }

/* Feature grid ----------------------------------------------------------- */
.features { background: var(--bg-alt); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-icon.inline { font-size: 1.4rem; display: inline-block; margin: 0 8px 0 0; }
.feature-item h3 { font-size: 1.2rem; }
.feature-item p { color: var(--muted); margin: 0; }

/* Service cards ---------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s ease, transform .12s ease; }
.service-card:hover { box-shadow: 0 12px 30px rgba(13,33,55,.12); transform: translateY(-3px); }
.card-media { height: 180px; background: var(--bg-alt) center/cover no-repeat; }
.card-body { padding: 22px; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card-body p { color: var(--muted); margin: 0 0 14px; }
.card-link { font-weight: 600; }

/* Testimonials ----------------------------------------------------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial { margin: 0; background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.testimonial p { font-style: italic; color: var(--ink); }
.testimonial cite { font-weight: 700; font-style: normal; color: var(--brand-primary); }

/* About + split ---------------------------------------------------------- */
.about-grid, .split-grid, .area-grid, .contact-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.about-media img, .split-media img, .area-media img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.split-item { margin-bottom: 22px; }
.split-item h3 { margin-bottom: 4px; }
.split-item p { color: var(--muted); margin: 0; }

/* FAQ -------------------------------------------------------------------- */
.faqs { background: var(--bg-alt); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 14px; overflow: hidden; }
.faq-q {
	width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
	padding: 20px 22px; font-size: 1.05rem; font-weight: 600; color: var(--brand-primary);
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-toggle { font-size: 1.5rem; color: var(--brand-accent); flex-shrink: 0; }
.faq-a { padding: 0 22px 20px; color: var(--muted); }

/* Contact ---------------------------------------------------------------- */
.contact { background: var(--brand-primary); color: #fff; }
.contact .section-title { color: #fff; text-align: left; }
.contact-line { font-size: 1.1rem; margin: 10px 0; }
.contact-line a { color: #fff; }
.contact .ci { margin-right: 8px; }
.contact-form { background: #fff; border-radius: var(--radius); padding: 28px; color: var(--ink); min-height: 200px; }
.form-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; text-align: center; color: var(--muted); }

/* Area map --------------------------------------------------------------- */
.area-map iframe { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: #08182a; color: #c7d2e0; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #c7d2e0; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-license, .footer-address { font-size: .85rem; opacity: .8; }
.footer-social { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.footer-social a { color: var(--brand-accent); font-weight: 600; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { margin: 0; }
.footer-policy a { color: #c7d2e0; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 900px) {
	.feature-grid, .card-grid, .testimonial-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.about-grid, .split-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
	.split-grid .split-media { order: -1; }
}
@media (max-width: 640px) {
	.primary-nav, .header-phone { display: none; }
	.primary-nav.open { display: block; position: absolute; top: 74px; left: 0; right: 0; background: var(--brand-primary); padding: 16px 20px; }
	.primary-nav.open .nav-list { flex-direction: column; gap: 14px; }
	.nav-toggle { display: flex; margin-left: auto; }
	.feature-grid, .card-grid, .testimonial-grid, .footer-grid { grid-template-columns: 1fr; }
	.trust-inner { gap: 20px; }
	.section { padding: 52px 0; }
}
