/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #e8720c;
  --primary-dark: #c45c00;
  --primary-light:#fff3e8;
  --accent:       #ffb347;
  --text:         #2a1f0e;
  --muted:        #7a5c3a;
  --border:       #f0d9c0;
  --bg-light:     #fffaf5;
  --bg-section:   #fff;
  --radius:       8px;
  --shadow:       0 2px 14px rgba(232,114,12,.10);
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ── Header / Nav ── */
header {
  background: #fff;
  border-bottom: 2px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(232,114,12,.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  gap: 16px;
}
.header-spacer { display: none; }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
}
.logo-text h1 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.3px;
  line-height: 1.2;
}
.logo-text .tagline {
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .2px;
  line-height: 1.3;
  max-width: 240px;
  display: none;
}
@media (min-width: 700px) {
  .logo-text .tagline { display: block; }
}

nav { display: flex; gap: 6px; }
nav a {
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  padding: 7px 14px;
  border-radius: 20px;
  transition: background .18s, color .18s;
}
nav a:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
nav a.active { background: var(--primary); color: #fff; }

/* ── Open House Banner ── */
.open-house-banner {
  background: linear-gradient(90deg, #e8720c, #f5930a);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: .88rem;
  line-height: 1.6;
}
.open-house-banner a { color: #fff; text-decoration: underline; }
.open-house-banner a:hover { opacity: .85; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #fff8f0 0%, #ffe5c2 100%);
  padding: 80px 20px 90px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,179,71,.18);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(232,114,12,.10);
}
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero h2 { font-size: 2.4rem; margin-bottom: 16px; color: var(--text); font-weight: 800; }
.hero h2 span { color: var(--primary); }
.hero p  { font-size: 1.1rem; color: var(--muted); margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(232,114,12,.25); text-decoration: none; }
.btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-secondary{ background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-submit   { background: var(--primary); color: #fff; border-color: var(--primary); width: 100%; padding: 14px; font-size: 1rem; margin-top: 8px; border-radius: var(--radius); }
.btn-submit:hover { background: var(--primary-dark); transform: none; box-shadow: none; }

/* ── Features ── */
.features { padding: 64px 20px; background: var(--bg-section); }
.section-title { text-align: center; font-size: 1.7rem; margin-bottom: 8px; color: var(--text); font-weight: 800; }
.section-subtitle { text-align: center; color: var(--muted); margin-bottom: 40px; font-size: .95rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(232,114,12,.14); }
.feature-icon { font-size: 2.4rem; margin-bottom: 14px; }
.feature-card h3 { color: var(--primary); margin-bottom: 8px; font-size: 1rem; }
.feature-card p  { font-size: .875rem; color: var(--muted); }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #f5930a 100%);
  color: #fff;
  text-align: center;
  padding: 64px 20px;
}
.cta-section h2 { font-size: 1.9rem; margin-bottom: 12px; font-weight: 800; }
.cta-section p  { opacity: .9; margin-bottom: 28px; font-size: 1.05rem; }
.cta-section .btn-primary { background: #fff; color: var(--primary); border-color: #fff; }

/* ── Page Header (interior pages) ── */
.page-header {
  background: linear-gradient(135deg, #fff8f0 0%, #ffe5c2 100%);
  border-bottom: 1px solid var(--border);
  padding: 44px 20px;
  text-align: center;
}
.page-header h2 { font-size: 2rem; margin-bottom: 8px; color: var(--text); font-weight: 800; }
.page-header h2 span { color: var(--primary); }
.page-header p  { color: var(--muted); font-size: 1rem; }

/* ── Form Page ── */
.form-wrapper { max-width: 960px; margin: 40px auto; padding: 0 32px 60px; }

.form-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.form-section h3 {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.form-section .section-note {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
  font-style: italic;
}

.form-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.form-group { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 5px; }
.form-group.full { flex: 0 0 100%; }

label { font-size: .875rem; font-weight: 600; color: var(--text); }
.required { color: #d9380f; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e0cdb8;
  border-radius: 6px;
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,114,12,.15);
}
textarea { resize: vertical; min-height: 90px; }

/* Radio / Checkbox groups */
.radio-group, .check-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
  align-items: center;
}
.radio-group label, .check-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  cursor: pointer;
}
input[type="radio"], input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Consent box */
.consent-box {
  background: #fff8f0;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.6;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}
.consent-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }

/* Mini signature pad (used in multiple sections) */
.sig-pad-wrap {
  margin-top: 16px;
}
.sig-pad-wrap .sig-pad-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.sig-pad-wrap .sig-canvas-wrap {
  margin-top: 4px;
}
.sig-pair {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 16px;
  align-items: end;
}
@media(max-width:500px) { .sig-pair { grid-template-columns: 1fr; } }
.sig-date-field label { font-size:.875rem; font-weight:600; color:var(--text); }

/* Signature */
.sig-canvas-wrap {
  border: 1.5px solid #e0cdb8;
  border-radius: 6px;
  background: #fafafa;
  position: relative;
  margin-top: 6px;
}
#sig-canvas { display: block; touch-action: none; cursor: crosshair; }
.sig-actions { display: flex; gap: 10px; margin-top: 8px; }
.btn-clear { background: #f5ece3; border: 1px solid var(--border); padding: 6px 14px; border-radius: 5px; cursor: pointer; font-size: .85rem; color: var(--muted); }
.btn-clear:hover { background: #eed9c4; }

/* Success banner */
.success-banner {
  display: none;
  background: #fff3e8;
  border: 1px solid var(--primary);
  color: var(--primary-dark);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: .95rem;
  line-height: 1.6;
}

/* ── Contact Page ── */
.contact-wrapper {
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 640px) { .contact-wrapper { grid-template-columns: 1fr; } }

.contact-form-card, .contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-form-card h3, .contact-info-card h3 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.social-links { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  transition: background .2s, border-color .2s;
}
.social-link:hover { text-decoration: none; background: var(--primary-light); border-color: var(--accent); }
.social-link .social-icon { font-size: 1.4rem; }

.contact-detail { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.contact-detail .icon { font-size: 1.2rem; margin-top: 2px; }
.contact-detail p { font-size: .9rem; color: var(--muted); }

/* ── Footer ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,.85);
  padding: 24px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.7); }
.footer-links a:hover { color: var(--accent); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero h2 { font-size: 1.6rem; }
  .header-inner { flex-direction: column; gap: 10px; padding: 12px 0; }
  nav { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .form-row { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}
