/* ==========================================================================
   BASE & RESET STYLES — Bright & Bell Cleaning Co.
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-neutral-900);
  background-color: var(--color-neutral-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-neutral-900);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: 2.125rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.35;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.3rem; }
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-neutral-700);
}

p.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-neutral-600);
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

/* Media Elements */
img, svg, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  image-rendering: -webkit-optimize-contrast;
}

/* Lists */
ul, ol {
  list-style: none;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* Scrim & Overlay Helpers */
.photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  pointer-events: none;
}

.photo-scrim-light {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.95) 100%);
  pointer-events: none;
}

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12) auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

@media (max-width: 639px) {
  .section-badge {
    font-size: 0.725rem;
    padding: 5px 12px;
    letter-spacing: 0.04em;
  }
}

.section-badge.teal {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
}

.section-badge.gold {
  background-color: var(--color-accent-light);
  color: var(--color-accent-hover);
}

.section-title {
  color: var(--color-neutral-900);
  margin-bottom: var(--space-3);
  word-break: break-word;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-neutral-600);
  word-break: break-word;
}
