/* ============================================================
   QuickFix Home Services — Base Styles
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-body);
  background: var(--color-bg);
  line-height: var(--lh-normal);
  overflow-x: hidden;
}

/* Mobile bottom bar spacing */
@media (max-width: 767px) {
  body {
    padding-bottom: 64px;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

/* Focus accessibility */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

h1 { font-size: var(--text-3xl); font-weight: var(--fw-black); }
h2 { font-size: var(--text-2xl); font-weight: var(--fw-bold); }
h3 { font-size: var(--text-xl); font-weight: var(--fw-bold); }
h4 { font-size: var(--text-lg); font-weight: var(--fw-medium); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-2xl); }
}

p { line-height: var(--lh-normal); }

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

.section {
  padding: var(--section-py-mobile) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--section-py-desktop) 0;
  }
}

/* Section headings */
.section-title {
  font-size: var(--text-3xl);
  font-weight: var(--fw-black);
  margin-bottom: var(--space-3);
  line-height: var(--lh-tight);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  line-height: var(--lh-normal);
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-4xl);
  }
  .section-sub {
    font-size: var(--text-lg);
  }
}

/* Image placeholder */
.img-placeholder {
  background: linear-gradient(135deg, var(--color-primary-bg), var(--color-primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-on-teal);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-4);
  gap: var(--space-2);
  flex-direction: column;
}

.img-placeholder span {
  font-size: var(--text-2xl);
}

/* Utility classes */
.text-center { text-align: center; }
.text-white { color: #fff; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 600px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Visually hidden (for screen readers) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
