:root {
  --cream: #fbf6ea;
  --cream-deep: #f4ead5;
  --gold: #c9932f;
  --gold-dark: #a97920;
  --charcoal: #24211d;
  --muted: #6d675f;
  --white: #ffffff;
  --line: #e9dcc7;
  --shadow: 0 24px 60px rgba(69, 52, 26, 0.11);
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.header-top {
  background: var(--charcoal);
  color: #fff7e7;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}
.header-top-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.site-header {
  background: rgba(251, 246, 234, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}
.navbar {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 88px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { width: 235px; height: auto; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 1.7rem; cursor: pointer; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  list-style: none;
  white-space: nowrap;
}
.nav-links a {
  padding: 11px 14px;
  border-radius: 999px;
  color: #3e3932;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-dark); background: #fffaf0; }
.nav-links .request-link { background: var(--gold); color: #fff; box-shadow: 0 10px 22px rgba(201, 147, 47, 0.25); }
.nav-links .request-link:hover { background: var(--gold-dark); color: #fff; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hero { padding: 64px 0 76px; position: relative; overflow: hidden; }
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 10%, rgba(201,147,47,.16), transparent 32%), linear-gradient(135deg, rgba(255,255,255,.9), rgba(244,234,213,.65));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  align-items: center;
  gap: 46px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gold-dark);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.eyebrow:before { content: none; }
h1, h2, h3 { line-height: 1.12; }
h1 { font-size: clamp(2.75rem, 6vw, 5.35rem); letter-spacing: -0.055em; margin-bottom: 22px; }
.hero-copy { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin-bottom: 30px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.84rem;
  transition: .2s ease;
}
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 14px 30px rgba(201,147,47,.25); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-secondary { background: #fff; border: 1px solid var(--line); color: var(--charcoal); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-1px); }
.hero-panel { background: #fff; border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); padding: 22px; }
.hero-card-image {
  min-height: 385px;
  border-radius: 22px;
  background:
    linear-gradient(rgba(36,33,29,.1), rgba(36,33,29,.18)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 620"><rect width="900" height="620" fill="%23f4ead5"/><rect x="70" y="72" width="320" height="470" rx="24" fill="%2324211d"/><rect x="112" y="120" width="236" height="92" rx="12" fill="%23c9932f"/><rect x="125" y="248" width="210" height="34" rx="8" fill="%23fff7e7"/><rect x="125" y="310" width="210" height="34" rx="8" fill="%23fff7e7"/><rect x="125" y="372" width="92" height="34" rx="8" fill="%23fff7e7"/><circle cx="575" cy="246" r="112" fill="%23ffffff"/><path d="M575 138v108l74 46" stroke="%23c9932f" stroke-width="18" stroke-linecap="round" fill="none"/><rect x="495" y="390" width="285" height="86" rx="18" fill="%23ffffff"/><rect x="522" y="421" width="190" height="10" rx="5" fill="%23a97920"/><rect x="522" y="445" width="225" height="10" rx="5" fill="%23e9dcc7"/></svg>') center/cover no-repeat;
}
.hero-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.stat { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-align: center; }
.stat strong { display: block; font-size: 1.5rem; color: var(--gold-dark); line-height: 1; }
.stat span { color: var(--muted); font-size: .88rem; }

.section { padding: 82px 0; }
.section.alt { background: #fffaf0; }
.section-heading { max-width: 720px; margin-bottom: 34px; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.035em; margin-bottom: 16px; }
.lead { color: var(--muted); font-size: 1.06rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 16px 38px rgba(69,52,26,.07); }
.card-number { color: var(--gold); font-weight: 900; font-size: .86rem; margin-bottom: 14px; letter-spacing: .08em; text-transform: uppercase; }
.card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.card p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 44px; }
.feature-box { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 34px; box-shadow: var(--shadow); }
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { padding-left: 32px; position: relative; color: var(--muted); }
.check-list li:before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold-dark); font-weight: 900; }

.page-hero { padding: 62px 0; background: linear-gradient(135deg, #fffaf0, var(--cream-deep)); border-bottom: 1px solid var(--line); }
.page-hero-inner { max-width: 850px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.65rem); }
.page-content { padding: 72px 0; }
.cta { background: var(--charcoal); color: #fff; border-radius: 34px; padding: 46px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta p { color: #efe6d8; max-width: 640px; }

.form-shell { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 38px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
label { font-weight: 800; color: #3e3932; }
input, select, textarea {
  border: 1px solid #dfd0b8;
  background: #fffdf8;
  border-radius: 14px;
  padding: 14px 14px;
  font: inherit;
  color: var(--charcoal);
  outline: none;
}
textarea { min-height: 135px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,147,47,.12); }
.footer { background: #fff; border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer img { width: 170px; }

@media (max-width: 980px) {
  .header-top-inner { flex-direction: column; gap: 4px; }
  .navbar { min-height: 78px; }
  .logo img { width: 190px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 24px; right: 24px; top: 80px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; text-align: center; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .hero { padding: 42px 0 54px; }
  .hero-panel { padding: 14px; }
  .hero-card-image { min-height: 285px; }
  .hero-stat-row { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-shell { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Final alignment refinements */
.eyebrow { gap: 0; }
.cta .btn { white-space: nowrap; min-width: 154px; }
.hidden-field { display: none; }
.hidden-field.visible { display: flex; }

/* v4 cleanup: remove decorative title lines, fix CTA button wrapping, and hide conditional fields by default */
.eyebrow::before,
.eyebrow:before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.eyebrow {
  padding-left: 0 !important;
  border-left: 0 !important;
  background-image: none !important;
}

.cta .btn,
.btn.btn-primary {
  white-space: nowrap !important;
}

.cta .btn {
  min-width: 190px;
  padding-left: 28px;
  padding-right: 28px;
}

.nav-links .request-link {
  white-space: nowrap !important;
}

.hidden-field,
.hidden-field[hidden] {
  display: none !important;
}

.hidden-field.visible {
  display: flex !important;
}
