/* ==========================================================================
   BASE.CSS — Global Reset & Typography Foundation
   Scrapwala Hyderabad — Premium Home Service Redesign
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-dark);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-ui);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-ui);
  font-size: var(--text-base);
}

::selection {
  background: var(--green-soft);
  color: var(--green);
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display); /* Poppins */
  font-weight: var(--weight-bold);
  color: var(--charcoal);
  line-height: var(--leading-tight);
  text-wrap: balance;
}

/* These must never inherit Lora */
nav, header, footer,
.btn, .badge, .section-label,
.breadcrumb, .area-pill, .nearby-pill,
.booking-form, .booking-perk, .booking-perks,
.form-label, .form-error,
.step__title, .step__num,
.trust-stat__value, .trust-stat__label,
.experience-block__title,
.service-row__label, .service-row__title,
.service-card__title, .service-card__tag,
.solution-line h4,
.why-benefit h4,
.footer__col-title, .footer__links,
.footer__logo, .footer__bottom,
.contact-item__label, .contact-item__value,
.faq-item__question,
.g-author-name, .g-date, .g-stars,
.price-row, .price-row__mat,
.calc-box__title, .calc-result__label, .calc-result__note,
.eco-stat__label,
.page-hero__sub,
.hero__eyebrow, .hero__trust-item,
.wa-widget h4, .wa-widget p,
.wa-widget__btn, .wa-widget__msg,
.sticky-cta .btn,
.section-sub {
  font-family: var(--font-ui); /* Always Poppins */
}

/* Body copy: Lora only for paragraphs and testimonials */
p, .g-text, .booking-left__sub, .hero__sub,
.service-row__desc, .why-benefit p,
.problem-copy > p,
.experience-block__desc, .step__desc,
.faq-item__answer, .footer__tagline {
  font-family: var(--font-body); /* Lora */
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

strong { font-weight: var(--weight-semi); color: var(--text-dark); }

/* ---- Utility ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.icon-sm  { width: 16px; height: 16px; flex-shrink: 0; }
.icon-md  { width: 22px; height: 22px; flex-shrink: 0; }
.icon-lg  { width: 30px; height: 30px; flex-shrink: 0; }

/* ---- Reveal Animations (Fade In) ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---- Section Labels ---- */
.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: var(--space-4);
}

.section-label--gold {
  color: var(--gold-accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: var(--weight-bold);
  color: var(--charcoal);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.section-sub {
  font-size: var(--text-md);
  color: var(--text-mid);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin-bottom: var(--space-12);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-bottom: var(--space-6);
}

.breadcrumb a { color: var(--green-accent); }
.breadcrumb__sep { opacity: 0.4; }
