/* HardCraft — Earthy, trustworthy, trades-focused */

:root {
  --bg: #f5f0e8;
  --bg-alt: #ece6d8;
  --fg: #1c1a17;
  --fg-muted: #6b6456;
  --accent: #2d5a3d;
  --accent-warm: #c8962e;
  --surface: #ffffff;
  --border: #d4cbb8;
  --stripe: #2d5a3d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.wordmark-sm { font-size: 1.25rem; }
.wordmark-accent { color: var(--accent); }
.site-nav { display: flex; gap: 32px; }
.site-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent); }
.nav-active { color: var(--accent) !important; font-weight: 600 !important; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  background: var(--fg);
  color: var(--bg);
  padding: 80px 24px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40%;
  background: var(--accent);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.4;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  background: rgba(200,150,46,0.15);
  border: 1px solid rgba(200,150,46,0.4);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.hero-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 600px;
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(245,240,232,0.75);
  max-width: 540px;
  margin-bottom: 40px;
}
.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-pill {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bg);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 2px;
}
.hero-stripe {
  height: 6px;
  background: var(--accent-warm);
  margin: 0 -24px;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-cta-sub {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.5);
}
/* .cta-btn is defined in service-page.css with sizing appropriate for service pages;
   for pages that only load theme.css (quote, contact), declare a baseline here */
.cta-btn {
  display: inline-block;
  background: var(--accent-warm);
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.cta-btn:hover { opacity: 0.88; }

/* ── Services ─────────────────────────────────── */
.services {
  padding: 80px 24px;
  background: var(--bg);
}
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 12px;
}
.section-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 56px;
  max-width: 600px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-item {
  background: var(--bg);
  padding: 40px 36px;
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 4px;
}
.service-item h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-item p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── Process ──────────────────────────────────── */
.process {
  padding: 80px 24px;
  background: var(--fg);
  color: var(--bg);
}
.process .section-label { color: var(--accent-warm); }
.process .section-headline { color: var(--bg); }
.process-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 56px;
}
.step {
  flex: 1;
  padding: 40px 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.step-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 3rem;
  color: var(--accent-warm);
  opacity: 0.7;
  margin-bottom: 20px;
  line-height: 1;
}
.step h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.step p {
  font-size: 0.9rem;
  color: rgba(245,240,232,0.65);
  line-height: 1.65;
}
.step-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ── Closing ───────────────────────────────────── */
.closing {
  padding: 80px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.closing-content { max-width: 680px; }
.closing-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.closing-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}
.closing-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.closing-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.badge-icon {
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Footer ───────────────────────────────────── */
.site-footer {
  background: var(--fg);
  color: var(--bg);
  padding: 56px 24px 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.5);
  margin-top: 8px;
  line-height: 1.6;
}
.footer-info { text-align: right; }
.footer-email {
  font-size: 0.875rem;
  color: rgba(245,240,232,0.7);
  margin-bottom: 4px;
}
.footer-location {
  font-size: 0.8rem;
  color: rgba(245,240,232,0.35);
}
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.3);
}

/* ── Inquiry Form ─────────────────────────────── */
.inquiry-form-wrap {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.form-section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.form-field {
  flex: 1;
  min-width: 140px;
}
.form-field--wide {
  flex: 2;
  min-width: 200px;
}
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.optional-label {
  font-weight: 400;
  color: var(--fg-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--fg);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--fg-muted);
  opacity: 0.6;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,90,61,0.12);
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236b6456' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.form-field textarea {
  resize: vertical;
  min-height: 80px;
}
.form-error {
  font-size: 0.85rem;
  color: #c0392b;
  margin: 8px 0 4px;
}
.form-submit {
  display: inline-block;
  background: var(--accent-warm);
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
  margin-top: 4px;
}
.form-submit:hover { opacity: 0.88; }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 8px;
}

/* ── Quote / Contact dark-page form overrides ─── */
.quote-page .form-field label,
.contact-page .form-field label {
  color: rgba(245,240,232,0.85);
}
.quote-page .form-field input,
.quote-page .form-field select,
.quote-page .form-field textarea,
.contact-page .form-field input,
.contact-page .form-field select,
.contact-page .form-field textarea {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  color: var(--bg);
}
.quote-page .form-field input::placeholder,
.quote-page .form-field textarea::placeholder,
.contact-page .form-field input::placeholder,
.contact-page .form-field textarea::placeholder {
  color: rgba(245,240,232,0.3);
  opacity: 1;
}
.quote-page .form-field select option,
.contact-page .form-field select option {
  background: var(--fg);
  color: var(--bg);
}
.quote-page .optional-label,
.contact-page .optional-label {
  color: rgba(245,240,232,0.4);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .hero { padding-top: 60px; }
  .hero-inner { padding-bottom: 60px; }
  .hero::before { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; gap: 16px; }
  .step-divider { width: 40px; height: 1px; }
  .footer-inner { flex-direction: column; }
  .footer-info { text-align: left; }
  .closing-badges { gap: 16px; }
  .form-row { flex-direction: column; }
  .form-field, .form-field--wide { min-width: 100%; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.2rem; }
  .service-item { padding: 28px 24px; }
  .step { padding: 28px 24px; }
}