/* =====================================
   HANDIGO — THEME STYLES
   ===================================== */

:root {
  --cream: #FAF8F5;
  --cream-dark: #F0EBE3;
  --sage: #3D5A47;
  --sage-dark: #2E4536;
  --sage-light: #E8EDE9;
  --amber: #D4A853;
  --amber-dark: #B8923F;
  --charcoal: #2A2A2A;
  --warm-gray: #6B6560;
  --light-gray: #E5E0D8;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-w: 1100px;
  --section-pad: 80px 24px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-gray);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--charcoal);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--sage);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--charcoal);
}

.nav-tagline {
  font-size: 14px;
  color: var(--warm-gray);
  font-style: italic;
  font-family: var(--font-display);
}

/* HERO */
.hero {
  padding: 100px 24px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 18px;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-valueprops {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
}

.value-icon {
  width: 20px;
  height: 20px;
  background: var(--sage-light);
  color: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* HERO CARD STACK */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.hero-card-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 380px;
}

.task-card {
  background: var(--white);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid var(--light-gray);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.task-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.task-card-1 { transform: translateX(0); }
.task-card-2 { transform: translateX(8px); }
.task-card-3 { transform: translateX(16px); }
.task-card-4 { transform: translateX(24px); }

.task-card:hover { transform: none; }
.task-card-1:hover { transform: translateX(4px); }
.task-card-2:hover { transform: translateX(12px); }
.task-card-3:hover { transform: translateX(20px); }
.task-card-4:hover { transform: translateX(28px); }

.task-emoji { font-size: 22px; }
.task-card span:nth-child(2) { flex: 1; font-size: 15px; font-weight: 500; }

.task-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--sage-light);
  color: var(--sage);
}

.task-status.active {
  background: var(--amber);
  color: var(--white);
}

/* SECTION SHARED */
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--warm-gray);
  line-height: 1.7;
  max-width: 560px;
}

/* HOW IT WORKS */
.hiw {
  background: var(--sage);
  padding: var(--section-pad);
}

.hiw .section-eyebrow { color: rgba(255,255,255,0.6); }
.hiw .section-heading { color: var(--white); }

.hiw-inner { max-width: var(--max-w); margin: 0 auto; }

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.hiw-step {}

.step-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: rgba(255,255,255,0.12);
  margin-bottom: 16px;
  line-height: 1;
}

.hiw-step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.hiw-step p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

/* SERVICES */
.services {
  padding: var(--section-pad);
  background: var(--cream);
}

.services-inner { max-width: var(--max-w); margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.service-item {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-item:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 20px rgba(61,90,71,0.08);
}

.service-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.service-item p {
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.6;
}

.services-exclusions {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--light-gray);
  text-align: center;
}

.exclusions-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.exclusions-list {
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.8;
}

/* PRICING */
.pricing {
  padding: var(--section-pad);
  background: var(--cream-dark);
}

.pricing-inner { max-width: var(--max-w); margin: 0 auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  align-items: start;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
}

.plan-card.featured {
  border-color: var(--sage);
  box-shadow: 0 8px 32px rgba(61,90,71,0.15);
}

/* Task status badges */
.task-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  flex-shrink: 0;
}
.status-submitted  { background: #e5e7eb; color: #374151; }
.status-assigned   { background: #dbeafe; color: #1e40af; }
.status-in_progress { background: #fef9c3; color: #854d0e; }
.status-completed  { background: #dcfce7; color: #166534; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }

/* Admin badge styles (used in /admin views) */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.s-submitted  { background: #e5e7eb; color: #374151; }
.s-assigned   { background: #dbeafe; color: #1e40af; }
.s-in_progress { background: #fef9c3; color: #854d0e; }
.s-completed  { background: #dcfce7; color: #166534; }
.s-cancelled  { background: #fee2e2; color: #991b1b; }

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-tier {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 24px;
}

.plan-price span {
  font-size: 20px;
  font-weight: 400;
  color: var(--warm-gray);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.plan-features li {
  font-size: 14px;
  color: var(--warm-gray);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-features li::before {
  content: '✓';
  color: var(--sage);
  font-weight: 700;
  flex-shrink: 0;
}

.plan-note {
  font-size: 13px;
  color: var(--warm-gray);
  border-top: 1px solid var(--light-gray);
  padding-top: 16px;
  font-style: italic;
}

.plan-tagline {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--sage);
  margin-bottom: 6px;
  margin-top: 4px;
}

.plan-desc {
  font-size: 13px;
  color: var(--warm-gray);
  margin-bottom: 16px;
  line-height: 1.5;
}

.btn-claim {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 12px 24px;
  background: var(--sage);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-claim:hover {
  background: var(--sage-dark);
}

.pricing-cta {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--warm-gray);
}

/* LOCAL */
.local {
  padding: var(--section-pad);
  background: var(--cream);
}

.local-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.service-area {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.area-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area-list span {
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
}

.local-proof {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.proof-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 14px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
  min-width: 80px;
}

.stat-label {
  font-size: 15px;
  color: var(--warm-gray);
}

/* CLOSING */
.closing {
  padding: 100px 24px;
  background: var(--charcoal);
}

.closing-inner { max-width: 700px; margin: 0 auto; text-align: center; }

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 32px;
}

.closing-cta {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

/* FOOTER */
.footer {
  background: var(--cream-dark);
  border-top: 1px solid var(--light-gray);
  padding: 40px 24px;
}

.footer-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo .logo-text { font-size: 18px; }

.footer-tagline {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--warm-gray);
  margin-bottom: 8px;
}

.footer-note { font-size: 13px; color: var(--warm-gray); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .hiw-steps { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .local-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 600px) {
  :root { --section-pad: 60px 20px; }
  .hero { padding: 60px 20px 48px; }
  .hero-headline { font-size: 40px; }
  .services-grid { grid-template-columns: 1fr; }

/* Brand voice — helpers note */
.helpers-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--warm-gray);
  background: var(--sage-light);
  padding: 12px 16px;
  border-radius: 8px;
  line-height: 1.6;
}

/* Brand voice — How It Works helpers note */
.hiw-helpers-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--warm-gray);
  font-style: italic;
}

/* Brand voice — services exclusions */
.services-exclusions { margin-top: 48px; padding: 32px; background: var(--cream-dark); border-radius: 16px; }
.exclusions-heading { font-family: var(--font-display); font-size: 1.25rem; color: var(--charcoal); margin-bottom: 16px; font-weight: 600; }
.exclusions-body { font-size: 0.95rem; color: var(--warm-gray); margin-bottom: 16px; line-height: 1.7; }
.exclusions-why { font-size: 0.88rem; color: var(--sage); font-weight: 500; margin-bottom: 20px; }
.exclusions-list { font-size: 0.85rem; color: var(--warm-gray); line-height: 2; }
  .nav-tagline { display: none; }
}