/* ================================================================
   Junk-Away — Stylesheet
   Mobile-first • Single-page • Business card site
   ================================================================ */

/* --- Custom Properties ----------------------------------------- */
:root {
  --green:     #3A7F0D;
  --green-50:  #eef7e6;
  --green-100: #d9efc9;
  --orange:    #D95D00;
  --orange-20: #fef0e6;
  --blue:      #1a2b3c;
  --blue-90:   #223344;
  --gray-95:   #f2f4f5;
  --gray-80:   #cdd1d4;
  --gray-60:   #8a9299;
  --white:     #ffffff;
  --shadow:    0 2px 12px rgba(0,0,0,0.08);
  --radius:    10px;
  --max-w:     480px;
  --font:      system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Arial Black', Impact, var(--font);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--blue);
  background: var(--gray-95);
  padding-bottom: 72px; /* room for sticky bar */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Hero ------------------------------------------------------ */
#hero {
  background: linear-gradient(160deg, #2a5e0a 0%, var(--green) 50%, #4b9e12 100%);
  color: var(--white);
  text-align: center;
  padding: 40px 0 48px;
  position: relative;
  overflow: hidden;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: var(--white);
  border-radius: 28px 28px 0 0;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}

.logo img { width: 220px; height: auto; }

.logo h1 {
  /* Fallback if SVG doesn't load */
  display: none;
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: 1px;
}

.tagline {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.location {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 10px;
}

.service-alert {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}

.cta-phone {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  padding: 14px 36px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(217,93,0,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-phone:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(217,93,0,0.3);
}

/* --- Sticky Bottom Bar (mobile) --------------------------------- */
.sticky-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-top: 1px solid var(--gray-80);
  padding: 10px 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.sticky-bar .btn-call {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(58,127,13,0.35);
  transition: transform 0.15s;
}

.sticky-bar .btn-call:active { transform: scale(0.97); }

.sticky-bar .btn-quote {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(217,93,0,0.3);
  transition: transform 0.15s;
}

.sticky-bar .btn-quote:active { transform: scale(0.97); }

/* Phone icon inline */
.phone-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* --- Section Headers ------------------------------------------- */
section { padding: 36px 0; }

section h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--green);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* --- Services -------------------------------------------------- */
#services {
  background: var(--white);
}

.service-list {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.service-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid var(--gray-95);
}

.service-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--green);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-top: 2px;
}

.service-note {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--gray-60);
  white-space: nowrap;
}

.all-free {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-60);
  font-weight: 500;
}

/* --- How It Works ---------------------------------------------- */
#how-it-works {
  background: var(--gray-95);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.step-number {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.9rem;
  border-radius: 50%;
}

.steps li strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 3px;
  color: var(--green);
}

.steps li p {
  font-size: 0.85rem;
  color: var(--gray-60);
  line-height: 1.5;
}

/* --- Quote Form ------------------------------------------------ */
#quote {
  background: var(--white);
}

.section-intro {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-60);
  margin-bottom: 24px;
  line-height: 1.5;
}

#quote-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
}

.required { color: var(--orange); }
.optional { font-weight: 400; color: var(--gray-60); font-size: 0.8rem; }

.field input,
.field textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-80);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-50);
}

.field textarea { resize: vertical; min-height: 80px; }

/* Upload zone */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 20px;
  border: 2px dashed var(--gray-80);
  border-radius: var(--radius);
  background: var(--gray-95);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}

.upload-zone:active,
.upload-zone:hover {
  border-color: var(--green);
  background: var(--green-50);
}

.upload-zone p {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
}

.upload-hint {
  font-size: 0.78rem;
  color: var(--gray-60);
}

/* Photo preview */
.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.photo-preview li {
  font-size: 0.8rem;
  color: var(--gray-60);
  background: var(--gray-95);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Submit */
.btn-submit {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
  background: var(--green);
  border: none;
  border-radius: 50px;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(58,127,13,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.btn-submit:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(58,127,13,0.25);
}

.form-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-60);
  margin-top: -4px;
}

/* --- Footer ---------------------------------------------------- */
#footer {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 32px 0;
}

#footer a { color: var(--green-100); }

.footer-phone {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--orange) !important;
  margin-bottom: 6px;
  transition: opacity 0.15s;
}

.footer-phone:active { opacity: 0.7; }

#footer address {
  font-style: normal;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 12px;
}

.copyright {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* --- Tablet/Desktop tweaks ------------------------------------- */
@media (min-width: 640px) {
  body { padding-bottom: 0; }

  #hero {
    padding: 56px 0 64px;
    border-radius: 0 0 40px 40px;
  }

  #hero::after { display: none; }

  .cta-phone { font-size: 1.5rem; }
  .sticky-bar { display: none; }

  section { padding: 48px 0; }
  section h2 { font-size: 1.7rem; }

  .service-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }

  .steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .steps li { flex-direction: column; align-items: center; text-align: center; }
  .steps li strong { font-size: 1rem; }
  .steps li p { font-size: 0.88rem; }
}
