/* HC Real Estate Services — Development
   Palette + type pulled from the live hcrealestateservices.com site (Playfair
   Display / Outfit / DM Mono, navy ink, warm gold accent) so this subdomain
   reads as the same company, not a different product. */

:root {
	--navy: #0b1628;
	--navy-2: #162847;
	--gold: #c99a3e;
	--gold-bright: #e8b85a;
	--ink: #16202f;
	--muted: #5a6a7e;
	--line: #e2e6ec;
	--bg: #fbfbfb;
	--card: #ffffff;
	--tint: #f3f0e8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.hcd-body {
	background: var(--bg);
	color: var(--ink);
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.hcd-wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.hcd-narrow { max-width: 760px; }

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; margin: 0 0 14px; color: var(--navy); text-wrap: balance; }

/* ---- Nav ---- */
.hcd-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.hcd-nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; flex-wrap: wrap; }
.hcd-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hcd-mark {
	width: 34px; height: 34px; border-radius: 9px; background: var(--navy);
	color: var(--gold-bright); font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14px;
	display: flex; align-items: center; justify-content: center; letter-spacing: 0.5px;
}
.hcd-wordmark { font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 600; color: var(--navy); }
.hcd-nav-links { display: flex; align-items: center; gap: 28px; }
.hcd-nav-links > a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.hcd-nav-links > a:hover { color: var(--navy); }
.hcd-nav-ext { color: var(--gold) !important; }

/* ---- Nav dropdowns (Projects / Services) ---- */
.hcd-nav-item { position: relative; }
.hcd-nav-trigger { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.hcd-nav-item:hover .hcd-nav-trigger, .hcd-nav-item:focus-within .hcd-nav-trigger { color: var(--navy); }
.hcd-dropdown {
	position: absolute; top: 100%; left: 50%; transform: translate(-50%, 4px);
	background: #fff; border: 1px solid var(--line); border-radius: 10px;
	box-shadow: 0 16px 32px rgba(11,22,40,0.12); padding: 8px; min-width: 220px;
	display: flex; flex-direction: column; gap: 2px;
	opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .15s ease, transform .15s ease; z-index: 60;
}
.hcd-nav-item:hover .hcd-dropdown, .hcd-nav-item:focus-within .hcd-dropdown {
	opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 8px);
}
.hcd-dropdown a { padding: 9px 12px; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.hcd-dropdown a:hover { background: var(--tint); color: var(--navy); }

/* ---- Hero (home) ---- */
.hcd-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); padding: 72px 0 56px; color: #fff; }
.hcd-hero h1 { color: #fff; font-size: 44px; line-height: 1.15; max-width: 780px; }
.hcd-hero-sub { font-size: 17px; color: #c6cedb; max-width: 620px; line-height: 1.7; margin: 0 0 32px; }
.hcd-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.hcd-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.hcd-eyebrow-light { color: var(--gold-bright); }

/* ---- Buttons ---- */
.hcd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 13px 24px; border-radius: 8px; font-size: 14.5px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, opacity .15s ease; }
.hcd-btn:hover { transform: translateY(-1px); }
.hcd-btn-primary { background: var(--gold-bright); color: var(--navy); }
.hcd-btn-primary:hover { background: #f0c675; }
.hcd-btn-ghost { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.hcd-btn-ghost:hover { border-color: #fff; }
.hcd-section:not(.hcd-hero) .hcd-btn-ghost,
.hcd-phero + .hcd-section .hcd-btn-ghost { border-color: var(--line); color: var(--navy); }
.hcd-section:not(.hcd-hero) .hcd-btn-ghost:hover { border-color: var(--navy); }

/* ---- Stat tiles (DM Mono) ---- */
.hcd-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hcd-tile { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 16px 18px; }
.hcd-tile-label { font-size: 10.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #9fb0c4; }
.hcd-tile-value { font-family: 'DM Mono', monospace; font-size: 19px; font-weight: 500; color: #fff; margin-top: 8px; }
/* Light-background stat tiles (project detail hero uses the same dark band, so this covers any future light use) */
.hcd-section-tint .hcd-tile, .hcd-section:not(.hcd-hero):not(.hcd-phero) .hcd-tile {
	background: #fff; border-color: var(--line);
}
.hcd-section-tint .hcd-tile-label, .hcd-section:not(.hcd-hero):not(.hcd-phero) .hcd-tile-label { color: var(--muted); }
.hcd-section-tint .hcd-tile-value, .hcd-section:not(.hcd-hero):not(.hcd-phero) .hcd-tile-value { color: var(--navy); }

/* ---- Generic section ---- */
.hcd-section { padding: 64px 0; }
.hcd-section-tint { background: var(--tint); }
.hcd-body-text { font-size: 16px; color: var(--muted); line-height: 1.75; margin: 0 0 16px; }

/* ---- Project cards (home grid) ---- */
.hcd-pcard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.hcd-pcard {
	display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
	text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease;
}
.hcd-pcard:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(11,22,40,0.1); }
.hcd-pcard-art { position: relative; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); padding: 32px; display: flex; justify-content: center; }
.hcd-icon-art { width: 96px; height: 72px; }
.hcd-icon-art rect:not(.hcd-icon-windows rect), .hcd-icon-art polygon { fill: rgba(255,255,255,0.14); stroke: var(--gold-bright); stroke-width: 1.5; }
.hcd-icon-windows rect { fill: var(--gold-bright); opacity: 0.85; }
.hcd-pill { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.hcd-pill-dark { position: static; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.hcd-pcard-body { padding: 24px; }
.hcd-pcard-body h3 { font-size: 22px; margin: 0 0 8px; }
.hcd-pcard-teaser { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.hcd-link-arrow { font-size: 14px; font-weight: 600; color: var(--gold); }

/* ---- Section header row (heading + "All X" link, e.g. home's project section) ---- */
.hcd-section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.hcd-section-head-row h2 { margin-bottom: 0; }
.hcd-link-arrow-block { display: inline-block; margin-top: 22px; text-decoration: none; }

/* ---- Service phase cards (services index + home "How we work") ---- */
.hcd-svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.hcd-svc-card {
	display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
	padding: 26px 22px; text-decoration: none; color: inherit;
	transition: transform .18s ease, box-shadow .18s ease;
}
.hcd-svc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(11,22,40,0.1); }
.hcd-svc-icon {
	width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--gold-bright);
	display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.hcd-svc-icon svg { width: 22px; height: 22px; }
.hcd-svc-card h3 { font-size: 18px; margin: 0 0 8px; }
.hcd-svc-teaser { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }

/* ---- Service phase detail: the four services within a phase + team note ---- */
.hcd-svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 32px 0 8px; }
.hcd-svc-item h3 { font-size: 17px; margin: 0 0 8px; }
.hcd-svc-item .hcd-body-text { margin: 0; }
.hcd-team-note { background: var(--tint); border-radius: 12px; padding: 20px 24px; margin: 28px 0 4px; }
.hcd-team-note .hcd-body-text { margin: 0; }
.hcd-team-note strong { color: var(--navy); }

/* ---- Project detail hero ---- */
.hcd-phero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); padding: 40px 0 52px; color: #fff; }
.hcd-back { display: inline-block; font-size: 13px; color: #9fb0c4; text-decoration: none; margin-bottom: 22px; }
.hcd-back:hover { color: #fff; }
.hcd-phero-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hcd-phero h1 { color: #fff; font-size: 36px; margin: 0; }
.hcd-phero .hcd-hero-sub { margin-top: 14px; }

.hcd-pblock { padding: 28px 0; border-bottom: 1px solid var(--line); }
.hcd-pblock:last-of-type { border-bottom: none; }
.hcd-pblock h2 { font-size: 24px; }

.hcd-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---- Footer ---- */
.hcd-footer { background: var(--navy); color: #c6cedb; padding: 56px 0 28px; margin-top: 8px; }
.hcd-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; }
.hcd-brand-footer .hcd-wordmark { color: #fff; }
.hcd-footer-about { font-size: 13.5px; line-height: 1.7; color: #9fb0c4; margin: 14px 0 0; max-width: 320px; }
.hcd-footer-heading { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #7f91a8; margin: 0 0 14px; }
.hcd-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hcd-footer-links a { font-size: 14px; color: #c6cedb; text-decoration: none; }
.hcd-footer-links a:hover { color: var(--gold-bright); }
.hcd-footer-links li { font-size: 14px; color: #9fb0c4; }
.hcd-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 22px; font-size: 12.5px; color: #7f91a8; }
.hcd-footer-fh { display: flex; align-items: center; gap: 6px; max-width: 560px; }
.hcd-icon-sm { width: 16px; height: 16px; flex-shrink: 0; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
	.hcd-nav-links { gap: 16px; }
	.hcd-nav-links a, .hcd-nav-trigger { font-size: 13px; }
	.hcd-hero h1, .hcd-phero h1 { font-size: 32px; }
	.hcd-tiles { grid-template-columns: 1fr 1fr; }
	.hcd-pcard-grid { grid-template-columns: 1fr; }
	.hcd-svc-grid { grid-template-columns: 1fr 1fr; }
	.hcd-svc-list { grid-template-columns: 1fr; }
	.hcd-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
	.hcd-nav-row { height: auto; padding: 14px 0; }
	.hcd-nav-links { width: 100%; gap: 12px 18px; }
	.hcd-nav-ext { width: 100%; }
	.hcd-tiles { grid-template-columns: 1fr; }
	.hcd-svc-grid { grid-template-columns: 1fr; }
	.hcd-footer-grid { grid-template-columns: 1fr; }
}
