/* ═══════════════════════════════════════════════
   HELP WITH HOME SERVICE — Hearth Design System
   All pages import this shared stylesheet
   ═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --espresso: #3D2B1F;
  --terracotta: #B5634B;
  --terra-light: #C87A64;
  --honey: #D4A87C;
  --honey-light: #E4C4A0;
  --sage: #7B9A7E;
  --sage-light: #9AB89D;
  --linen: #F7F1EA;
  --linen-dark: #EDE5D8;
  --walnut: #5C5048;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(61,43,31,0.06);
  --shadow-md: 0 4px 24px rgba(61,43,31,0.08);
  --shadow-lg: 0 12px 48px rgba(61,43,31,0.12);
  --r: 12px;
  --r-sm: 8px;
  --r-xs: 4px;
  --transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  background: var(--linen);
  color: var(--walnut);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.7;
}
img { max-width:100%; display:block; }
a { color: var(--terracotta); text-decoration:none; transition: var(--transition); }
a:hover { color: var(--terra-light); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Fraunces', serif; color: var(--espresso); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; letter-spacing: 0.06em; }
.text-center { text-align: center; }
.accent { color: var(--terracotta); }
.sage { color: var(--sage); }

/* ── LAYOUT ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── NAVIGATION ── */
.site-nav {
  background: var(--espresso);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  line-height: 1.15;
}
.nav-logo span { display: block; font-size: 0.65rem; font-weight: 400; color: var(--honey); letter-spacing: 0.08em; font-family: 'Source Sans 3', sans-serif; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-xs);
  transition: var(--transition);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-cta {
  background: var(--terracotta);
  color: var(--white);
  padding: 0.55rem 1.2rem;
  border-radius: var(--r-xs);
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  text-decoration: none;
  transition: var(--transition);
}
.nav-cta:hover { background: var(--terra-light); color: var(--white); }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--espresso);
  z-index: 300;
  flex-direction: column;
  padding: 2rem;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-overlay .nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 2rem;
}
.nav-mobile-overlay a {
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  display: block;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--espresso);
  padding: 3.5rem 2rem 2rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--honey);
  font-style: italic;
  margin-bottom: 1rem;
}
.footer-col h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  padding: 0.25rem 0;
  text-decoration: none;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1120px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.footer-legal a {
  color: rgba(255,255,255,0.4);
  margin-left: 1.5rem;
}
.footer-legal a:hover { color: var(--white); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--r-xs);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terra-light); color: var(--white); transform: translateY(-1px); }
.btn-secondary { background: var(--white); color: var(--espresso); border: 1px solid var(--linen-dark); }
.btn-secondary:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn-sage { background: var(--sage); color: var(--white); }
.btn-sage:hover { background: var(--sage-light); color: var(--white); }
.btn-ghost { background: transparent; color: var(--terracotta); padding: 0.5rem 0; }
.btn-ghost:hover { color: var(--terra-light); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--r);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card-icon-terra { background: rgba(181,99,75,0.1); }
.card-icon-sage { background: rgba(123,154,126,0.1); }
.card-icon-honey { background: rgba(212,168,124,0.15); }

/* ── FORMS ── */
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 0.4rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--linen-dark);
  border-radius: var(--r-xs);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  color: var(--espresso);
  background: var(--white);
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(181,99,75,0.1);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* ── BADGES / PILLS ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-terra { background: rgba(181,99,75,0.1); color: var(--terracotta); }
.badge-sage { background: rgba(123,154,126,0.1); color: var(--sage); }
.badge-honey { background: rgba(212,168,124,0.15); color: #8B6C3C; }
.badge-espresso { background: rgba(61,43,31,0.08); color: var(--espresso); }

/* ── HERO PATTERNS ── */
.hero {
  background: var(--espresso);
  padding: 6rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 40%, rgba(181,99,75,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 80% 20%, rgba(212,168,124,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); }
.hero h1 em { color: var(--honey); font-style: italic; }
.hero p { color: rgba(255,255,255,0.7); }

/* ── SECTION ALTERNATES ── */
.bg-white { background: var(--white); }
.bg-linen { background: var(--linen); }
.bg-espresso { background: var(--espresso); color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta-wrap { display: none; }
  .nav-hamburger { display: block; }
  .site-nav { padding: 0 1rem; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .section { padding: 3rem 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-legal a { margin-left: 0; margin: 0 0.5rem; }
}
