/* HammrBack — Workshop-grade design for contractors */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Outfit:wght@600;800;900&display=swap');

:root {
  --amber: #b45309;
  --amber-light: #d97706;
  --amber-glow: rgba(180, 83, 9, 0.08);
  --copper: #92400e;

  --dark: #292019;
  --dark-warm: #3d3328;
  --dark-card: #44392d;

  --cream: #faf6f1;
  --cream-mid: #f0e9df;
  --cream-muted: #78716c;
  --cream-dim: #a8a29e;

  --border-warm: rgba(41, 32, 25, 0.10);
  --border-amber: rgba(180, 83, 9, 0.20);

  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1080px;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--copper); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ============================================
   NAV
   ============================================ */

.nav {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-warm);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 241, 0.92);
}
.nav .container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.nav-brand:hover { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--cream-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--dark); background: rgba(0,0,0,0.04); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border-warm);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 1rem; }
  .nav { position: sticky; }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--amber);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.btn:hover {
  background: var(--copper);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(180, 83, 9, 0.25);
}
.btn-nav {
  padding: 8px 20px;
  font-size: 0.9rem;
  color: #fff !important;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(180, 83, 9, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid var(--border-amber);
  border-radius: 100px;
  background: var(--amber-glow);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.035em;
  color: var(--dark);
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
}
.hero p {
  font-size: 1.2rem;
  color: var(--cream-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 0.85rem;
  color: var(--cream-dim);
  margin-top: 16px;
}

/* ============================================
   PHONE MOCKUP — SMS conversation preview
   ============================================ */

.hero-demo {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}
.phone-mockup {
  background: #000;
  border-radius: 32px;
  padding: 0;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25), 0 0 0 3px #333;
  overflow: hidden;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
}
.phone-status-bar .time { font-size: 0.8rem; }
.phone-status-bar .icons { display: flex; gap: 4px; font-size: 0.65rem; }
.phone-contact-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 8px 16px 12px;
  border-bottom: 1px solid #2a2a2a;
}
.phone-contact-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3a3a3c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #8e8e93;
  margin-bottom: 4px;
}
.phone-contact-name {
  font-size: 0.7rem;
  color: #8e8e93;
}
.phone-messages {
  padding: 12px 12px 16px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}
.sms-time {
  clear: both;
  text-align: center;
  font-size: 0.6rem;
  color: #6e6e73;
  margin: 8px 0;
}
.sms-bubble {
  padding: 9px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  line-height: 1.35;
  margin-bottom: 3px;
  width: fit-content;
  max-width: 66%;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  animation: fadeInUp 0.35s ease both;
}
.sms-bubble:nth-child(3) { animation-delay: 0.5s; }
.sms-bubble:nth-child(4) { animation-delay: 1.0s; }
.sms-bubble:nth-child(5) { animation-delay: 1.5s; }
.sms-bubble:nth-child(6) { animation-delay: 2.0s; }
.sms-bubble:nth-child(7) { animation-delay: 2.5s; }
.sms-out {
  background: #34c759;
  color: #fff;
  align-self: flex-end;
}
.sms-in {
  background: #2c2c2e;
  color: #fff;
  align-self: flex-start;
}
.sms-spacer {
  clear: both;
  height: 6px;
}
.phone-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 14px;
  border-top: 1px solid #2a2a2a;
}
.phone-input-field {
  flex: 1;
  height: 32px;
  border-radius: 16px;
  border: 1px solid #3a3a3c;
  background: transparent;
  padding: 0 12px;
  font-size: 0.75rem;
  color: #6e6e73;
}
.phone-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #34c759;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTIONS — shared
   ============================================ */

section { padding: 80px 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 12px;
}

section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--dark);
}

section > .container > p {
  color: var(--cream-muted);
  max-width: 520px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.steps { background: var(--cream-mid); border-top: 1px solid var(--border-warm); border-bottom: 1px solid var(--border-warm); }
.steps .container > * { text-align: center; }
.steps .container > p { margin: 0 auto 48px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
.step { text-align: center; }
.step-number {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 2px solid var(--amber);
  color: var(--amber-light);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 20px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}
.step p { color: var(--cream-muted); font-size: 0.95rem; max-width: 300px; margin: 0 auto; }

/* connector lines on desktop */
@media (min-width: 768px) {
  .steps-grid { position: relative; }
  .step { position: relative; }
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: var(--border-amber);
  }
}

/* ============================================
   FEATURES
   ============================================ */

.features h2, .features .section-label { text-align: center; }
.features .container > p { text-align: center; margin: 0 auto 48px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 28px 24px;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  border-color: var(--border-amber);
  box-shadow: 0 8px 30px var(--amber-glow);
}
.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
  display: inline-block;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  background: var(--amber-glow);
  border-radius: 10px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.feature-card p { color: var(--cream-muted); font-size: 0.9rem; line-height: 1.6; }

/* ============================================
   PRICING
   ============================================ */

.pricing {
  background: var(--cream-mid);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
  text-align: center;
}
.pricing .container > p { margin: 0 auto 32px; }
.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 40px 32px;
  background: #fff;
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--amber-light), var(--copper));
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--dark);
}
.pricing-period { color: var(--cream-dim); font-size: 1.1rem; }
.pricing-features {
  list-style: none;
  margin: 28px 0;
  text-align: left;
}
.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-warm);
  color: var(--cream-muted);
  font-size: 0.95rem;
}
.pricing-features li::before {
  content: "✓";
  color: var(--amber);
  font-weight: 700;
  margin-right: 10px;
}
.pricing-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials h2, .testimonials .section-label { text-align: center; }
.testimonials .container > p { text-align: center; margin: 0 auto 48px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial {
  padding: 28px 24px;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius);
  background: #fff;
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--amber);
  opacity: 0.3;
  position: absolute;
  top: 8px;
  left: 18px;
  line-height: 1;
}
.testimonial p {
  font-style: italic;
  margin-bottom: 16px;
  color: var(--dark-warm);
  font-size: 0.95rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--amber);
}

/* ============================================
   FAQ
   ============================================ */

.faq {
  background: var(--cream-mid);
  border-top: 1px solid var(--border-warm);
}
.faq h2 { text-align: center; }
.faq .container > p { text-align: center; margin: 0 auto 48px; }
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-warm); }
.faq-question {
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--amber); }
.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--amber);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--cream-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 250px; padding-bottom: 20px; }

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
  padding: 80px 0;
  text-align: center;
  position: relative;
}
.cta-banner::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(180, 83, 9, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { margin: 0 auto 32px; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-warm);
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.85rem;
}
.footer a {
  color: var(--cream-dim);
  margin: 0 12px;
  transition: color 0.2s;
}
.footer a:hover { color: var(--amber); }

/* ============================================
   FORMS (signup page)
   ============================================ */

.form-page { padding: 60px 0; }
.form-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 36px 32px;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  background: #fff;
}
.form-card h2 {
  font-family: var(--font-display);
  text-align: center;
  margin-bottom: 28px;
  color: var(--dark);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--cream-muted);
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border-warm);
  border-radius: 8px;
  background: var(--cream);
  color: var(--dark);
  transition: border-color 0.2s;
}
.form-group input::placeholder { color: var(--cream-dim); }
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}
.form-error { color: #ef4444; font-size: 0.85rem; margin-top: 6px; }
.form-submit { width: 100%; margin-top: 8px; font-size: 1.05rem; padding: 16px; }

/* ============================================
   LEGAL PAGES
   ============================================ */

.legal { padding: 60px 0; max-width: 700px; margin: 0 auto; }
.legal h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 24px;
  color: var(--dark);
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--dark);
}
.legal p { margin-bottom: 14px; color: var(--cream-muted); }
.legal ul { margin-left: 20px; margin-bottom: 14px; color: var(--cream-muted); }

/* ============================================
   ANIMATIONS
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
