/* ==========================================================================
   HouseCraft — design system
   Warm neutrals, high-contrast serif display, generous whitespace.
   ========================================================================== */

:root {
	/* Ink & surface */
	--ink:          #1b1a17;
	--ink-soft:     #4a4741;
	--ink-muted:    #7c776e;
	--surface:      #fbfaf7;
	--surface-alt:  #f2efe9;
	--stone:        #e4dfd5;
	--line:         #d8d2c6;
	--white:        #ffffff;

	/* Accent — aged brass, used sparingly */
	--accent:       #9a7b4f;
	--accent-dark:  #7d6340;

	/* Type */
	--font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	/* Rhythm */
	--gutter:       clamp(1.25rem, 4vw, 2.5rem);
	--section-y:    clamp(3.5rem, 9vw, 7.5rem);
	--maxw:         1240px;
	--maxw-text:    68ch;

	--radius:       2px;
	--shadow:       0 1px 2px rgba(27,26,23,.05), 0 12px 32px -12px rgba(27,26,23,.18);
	--ease:         cubic-bezier(.16,.84,.44,1);
}

/* --------------------------------------------------------- base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
	margin: 0;
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin: 0 0 1.15em; max-width: var(--maxw-text); }
a { color: inherit; }

.eyebrow {
	font-family: var(--font-body);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 1.1rem;
}

.lede { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--ink-soft); }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--ink); color: var(--white); padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ------------------------------------------------------- layout ---------- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface-alt); }
.section--ink { background: var(--ink); color: var(--surface); }
.section--ink .lede,
.section--ink p { color: rgba(251,250,247,.78); }

.grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 800px) {
	.grid--2 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
	.grid--split { grid-template-columns: 1.05fr .95fr; align-items: center; }
}
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* ------------------------------------------------------ buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font-family: var(--font-body);
	font-size: .86rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
	padding: 1.05rem 2rem;
	border: 1px solid transparent; border-radius: var(--radius);
	text-decoration: none; cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--surface); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn--light { background: var(--surface); color: var(--ink); }
.btn--light:hover { background: var(--accent); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* ------------------------------------------------------- header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251,250,247,.92);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	min-height: 76px;
}
.site-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.site-logo svg, .site-logo img { height: 46px; width: auto; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo__name { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .01em; }
.site-logo__sub { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2rem; }
.nav a {
	text-decoration: none; font-size: .84rem; font-weight: 400;
	letter-spacing: .05em; padding-block: .4rem;
	border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.nav a:hover, .nav .current-menu-item > a { border-bottom-color: var(--accent); }

/* Dropdown */
.nav li { position: relative; }
.nav .sub-menu {
	position: absolute; top: 100%; left: -1rem; min-width: 15rem;
	flex-direction: column; align-items: stretch; gap: 0;
	background: var(--white); border: 1px solid var(--line);
	box-shadow: var(--shadow); padding: .5rem 0;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.nav .sub-menu a { padding: .6rem 1.25rem; border: 0; display: block; }
.nav .sub-menu a:hover { background: var(--surface-alt); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone {
	display: none; text-decoration: none; font-size: .92rem; font-weight: 500;
	letter-spacing: .03em; white-space: nowrap;
}
.header-phone:hover { color: var(--accent); }

.nav-toggle {
	display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
	width: 44px; height: 44px; padding: 0 10px;
	background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 1024px) {
	.nav { display: block; }
	.header-phone { display: inline-block; }
	.nav-toggle { display: none; }
}

/* Mobile drawer */
.mobile-nav {
	display: block; position: fixed; inset: 76px 0 0; z-index: 45;
	background: var(--surface); padding: 2rem var(--gutter) 3rem;
	overflow-y: auto;
	transform: translateX(100%); transition: transform .35s var(--ease);
}
.mobile-nav[data-open="true"] { transform: translateX(0); }
.mobile-nav ul { list-style: none; margin: 0 0 2rem; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav a {
	display: block; padding: 1rem 0; text-decoration: none;
	font-family: var(--font-display); font-size: 1.4rem;
}
.mobile-nav .sub-menu { margin: 0 0 1rem; padding-left: 1rem; }
.mobile-nav .sub-menu a { font-family: var(--font-body); font-size: .95rem; padding: .55rem 0; color: var(--ink-soft); }
@media (min-width: 1024px) { .mobile-nav { display: none; } }

body[data-nav-open="true"] { overflow: hidden; }

/* --------------------------------------------------------- hero ---------- */

.hero { position: relative; display: grid; align-items: end; min-height: clamp(30rem, 78vh, 46rem); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(20,19,17,.42) 0%, rgba(20,19,17,.18) 38%, rgba(20,19,17,.82) 100%);
}
.hero__inner { position: relative; z-index: 1; color: var(--surface); padding-block: clamp(3rem, 8vw, 5.5rem); }
.hero__inner h1 { color: var(--white); max-width: 16ch; }
.hero__inner .lede { color: rgba(255,255,255,.86); max-width: 46ch; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero .eyebrow { color: rgba(255,255,255,.72); }

/* Landing-page hero with an inline form beside the pitch */
.hero--lp .hero__inner { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 980px) {
	.hero--lp .hero__inner { grid-template-columns: 1.1fr minmax(360px, .9fr); align-items: center; }
	.hero--lp { align-items: center; }
}

.form-card {
	background: var(--surface); color: var(--ink);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--radius); box-shadow: var(--shadow);
}
.form-card h2 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); margin-bottom: .35rem; }
.form-card p { font-size: .92rem; color: var(--ink-muted); }
.ghl-form { width: 100%; min-height: 480px; border: 0; }
.form-placeholder {
	border: 1px dashed var(--accent); background: rgba(154,123,79,.06);
	padding: 2rem 1.5rem; text-align: center; color: var(--ink-soft); font-size: .9rem;
}
.form-placeholder p { margin: 0 0 .4rem; max-width: none; }

/* ------------------------------------------------------ content ---------- */

.trust-bar { border-block: 1px solid var(--line); background: var(--white); }
.trust-bar ul {
	list-style: none; margin: 0; padding: 1.5rem 0;
	display: grid; gap: 1rem 2rem; grid-template-columns: repeat(2, 1fr);
	font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft);
}
.trust-bar li { display: flex; align-items: center; gap: .6rem; }
.trust-bar li::before { content: ""; width: 5px; height: 5px; background: var(--accent); flex: none; }
@media (min-width: 800px) { .trust-bar ul { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.5rem 1.5rem 1.75rem; }
.card__body h3 { margin-bottom: .4rem; }
.card__body p { font-size: .94rem; color: var(--ink-soft); margin-bottom: 1rem; }
.card__link {
	font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
	text-decoration: none; color: var(--accent); font-weight: 500;
}
a.card { text-decoration: none; color: inherit; display: block; transition: box-shadow .3s var(--ease); }
a.card:hover { box-shadow: var(--shadow); }

.benefit { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.benefit h3 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
.benefit p { font-size: .94rem; color: var(--ink-soft); margin: 0; }

.steps { counter-reset: step; }
.step { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.step::before {
	content: counter(step, decimal-leading-zero);
	font-family: var(--font-display); font-size: 1.6rem; color: var(--accent);
	display: block; margin-bottom: .5rem;
}
.section--ink .benefit, .section--ink .step { border-color: rgba(251,250,247,.18); }

/* Gallery */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (min-width: 760px) { .gallery figure:first-child { grid-row: span 2; aspect-ratio: auto; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
	cursor: pointer; list-style: none; padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
	font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
	font-size: 1.4rem; color: var(--accent); font-family: var(--font-body); font-weight: 300;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1.5rem; }
.faq p { color: var(--ink-soft); margin: 0; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--surface); text-align: center; }
.cta-band h2 { color: var(--white); margin-inline: auto; max-width: 20ch; }
.cta-band p { margin-inline: auto; color: rgba(251,250,247,.78); }
.cta-band .btn-row { justify-content: center; }

/* Areas served */
.areas { display: grid; gap: 2rem; }
@media (min-width: 700px) { .areas { grid-template-columns: repeat(2, 1fr); } }
.areas h3 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.areas ul { list-style: none; margin: 0; padding: 0; columns: 2; font-size: .92rem; color: var(--ink-soft); }
.areas li { padding: .2rem 0; break-inside: avoid; }

/* ------------------------------------------------------- footer ---------- */

.site-footer { background: var(--ink); color: rgba(251,250,247,.72); padding-block: clamp(3rem, 6vw, 5rem) 0; font-size: .92rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer h3 { color: var(--white); font-family: var(--font-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .28rem 0; }
.site-footer .site-logo__name { color: var(--white); font-size: 1.3rem; }
.footer-brand p { color: rgba(251,250,247,.6); font-size: .9rem; max-width: 32ch; }
.footer-bottom {
	margin-top: clamp(2.5rem, 5vw, 4rem); padding-block: 1.5rem;
	border-top: 1px solid rgba(251,250,247,.14);
	display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
	font-size: .8rem; color: rgba(251,250,247,.5);
}

/* Sticky mobile call bar — primary conversion path on phones */
.call-bar {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
	display: grid; grid-template-columns: 1fr 1fr;
	background: var(--ink); border-top: 1px solid rgba(251,250,247,.15);
}
.call-bar a {
	padding: 1rem .5rem; text-align: center; text-decoration: none;
	color: var(--surface); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.call-bar a + a { border-left: 1px solid rgba(251,250,247,.15); background: var(--accent); color: var(--white); }
@media (min-width: 1024px) { .call-bar { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 54px; } .mobile-nav { bottom: 54px; } }
