/* ============================================================
   888 Multi-Service Cleaning LLC
   Reset & Base Styles
   SICGBOR | SIC-DP-007
   ============================================================ */

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

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

body {
  font-family:      var(--font-primary);
  font-size:        var(--text-base);
  font-weight:      var(--font-normal);
  line-height:      var(--leading-normal);
  color:            var(--text-primary);
  background-color: var(--bg-site);        /* #F5FBFE — fondo global del sitio */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family:  var(--font-heading);
  font-weight:  var(--font-bold);
  line-height:  var(--leading-tight);
  color:        var(--text-primary);
}

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

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

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
}

p {
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

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

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

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

ul, ol {
  list-style: none;
}

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

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

/* ── Layout System ── */

/* Cada seccion cubre 100% del width */
.section {
  width: 100%;
  padding: var(--section-padding-y) var(--section-padding-x);
}

/* El contenido interno tiene max-width 1600px centrado */
.container {
  width: 100%;
  max-width: var(--max-width);    /* 1600px */
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Variantes de background de seccion */
.section--white   { background-color: var(--bg-white); }
.section--site    { background-color: var(--bg-site); }
.section--1       { background-color: var(--bg-section-1); }  /* #FFF9F0 */
.section--2       { background-color: var(--bg-section-2); }  /* #EBFCFC */
.section--3       { background-color: var(--bg-section-3); }  /* #E4EFF9 */
.section--dark    { background-color: var(--bg-dark); }

/* Section header pattern */
.section__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: var(--leading-relaxed);
}

.section__header {
  margin-bottom: var(--space-12);
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__subtitle {
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section__title    { font-size: var(--text-3xl); }
  .section__subtitle { font-size: var(--text-base); }
  .section           { padding: 3rem var(--section-padding-x); }
}

/* ── Utility Classes ── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-secondary-color { color: var(--color-secondary); }
.text-muted   { color: var(--text-muted); }
.text-white   { color: var(--text-white); }
.font-bold    { font-weight: var(--font-bold); }
.font-semibold{ font-weight: var(--font-semibold); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-4        { gap: var(--space-4); }
.gap-6        { gap: var(--space-6); }
.gap-8        { gap: var(--space-8); }

.grid         { display: grid; }
.grid-2       { grid-template-columns: repeat(2, 1fr); }
.grid-3       { grid-template-columns: repeat(3, 1fr); }
.grid-4       { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.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;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Lazy animation on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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