/*
  The Help Janitorial Service Inc. — Styles
  Mobile-first, responsive layout using pure CSS.
*/

:root {
  --blue: #19A9FF;
  --blue-600: #0E8FD7;
  --blue-50: #f1f9ff;
  --green: #41C784; /* light/clean green accent */
  --text: #1f2d3d;
  --muted: #5b6b7b;
  --bg: #f7fbff;
  --card-bg: #ffffff;
  --shadow: 0 8px 24px rgba(16, 76, 120, 0.12);
  --radius: 14px;
}

/* Global / Reset-ish */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  /* Fondo con fallback: usa la nueva imagen si existe */
  background-color: var(--bg);
  background-image: url('Fondo-the-help-sanitorial.png'), url('Fondo-pagina-lugar-limpio.png');
  background-position: center center, center center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  line-height: 1.6;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(247, 251, 255, 0.05);
  z-index: -1;
  pointer-events: none;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: inline-flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.logo-img { height: 34px; width: auto; }
.logo-sub { font-size: 0.72rem; color: var(--green); letter-spacing: 0.02em; }

/* Nav */
.nav-toggle {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px; height: 36px;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
}
.nav-toggle .bar {
  width: 26px; height: 3px; border-radius: 2px; background: #0d1b2a;
}
.nav { position: fixed; left: 0; right: 0; top: 64px; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.06); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.nav.open { max-height: 360px; }
.nav-list { list-style: none; margin: 0; padding: 0.5rem 1rem 1rem; }
.nav-list li { border-bottom: 1px solid rgba(0,0,0,0.06); }
.nav-list li:last-child { border-bottom: none; }
.nav-link { display: block; padding: 0.9rem 0.25rem; font-weight: 600; color: #0d1b2a; }
.nav-link.active { color: var(--blue-600); border-bottom: 2px solid var(--green); }

/* Sections */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 28px; }
.section-header.left { text-align: left; }
.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;
  margin: 0 0 8px;
}
.section-header p { margin: 0; color: var(--muted); }

/* Hero */
.hero {
  background: transparent;
  position: relative;
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-logo { 
  margin-bottom: 1.5rem; 
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-logo-img { 
  height: 360px; 
  width: auto; 
  margin: 0 auto;
  filter: drop-shadow(0 4px 12px rgba(25, 169, 255, 0.15));
}
.hero-visual-img {
  width: 100%;
  height: auto;
}

/* Mobile: imagen detrás del logo */
@media (max-width: 768px) {
  .hero-visual {
    position: absolute;
    top: 36%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 1;
    width: 21%;
  }
  .hero-text {
    position: relative;
    z-index: 2;
  }
  .hero-logo {
    margin-top: -3rem;
  }
}
.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 10px;
}
.hero-text .accent { color: var(--blue-600); }
.hero-sub { margin: 0 0 16px; color: var(--muted); }

.hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 12px 0 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.8rem 1.1rem; border-radius: 12px; font-weight: 700; border: 2px solid transparent; transition: all .2s ease; text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 16px rgba(25,169,255,0.25); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-secondary { background: #fff; border-color: var(--green); color: #0d1b2a; }
.btn-secondary:hover { background: #f6fff9; transform: translateY(-1px); }
.btn-outline { background: #fff; border-color: var(--blue-600); color: var(--blue-600); }
.btn-outline:hover { background: #f0f9ff; transform: translateY(-1px); }

.hero-highlights { margin: 14px 0 0; padding: 0; list-style: none; color: #0d1b2a; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.hero-highlights li { position: relative; padding-left: 18px; font-size: 0.95rem; }
.hero-highlights li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.hero-visual .visual-card { background: transparent; padding: 0; }

/* Services */
.services .services-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.service-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; transition: transform .2s ease, box-shadow .2s ease; border-top: 4px solid rgba(25,169,255,0.35); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16,76,120,0.18); }
.service-icon { width: 44px; height: 44px; display: grid; place-items: center; background: #f0fbff; border-radius: 10px; margin-bottom: 8px; }
.service-card h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.service-card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.service-card li { margin: 4px 0; }

/* Why choose us */
.why { background: transparent; }
.features-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.feature-card { background: rgba(255, 255, 255, 0.7); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-left: 4px solid var(--green); backdrop-filter: blur(10px); }
.feature-icon { width: 42px; height: 42px; background: #eafff5; display: grid; place-items: center; border-radius: 10px; margin-bottom: 8px; }
.feature-card h3 { margin: 6px 0 6px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); }

/* Gallery */
.gallery-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.gallery-card { margin: 0; }
.placeholder { height: 180px; display: grid; place-items: center; text-align: center; color: #0d1b2a; font-weight: 600; border-radius: var(--radius); background: linear-gradient(135deg, #def3ff, #d0ffe7); box-shadow: var(--shadow); padding: 1rem; }

/* Testimonials */
.testimonials { background: var(--blue-50); }
.testimonials-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.testimonial-card { position: relative; margin: 0; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-left: 4px solid var(--blue); }
.testimonial-card .quote-icon { position: absolute; top: -8px; left: 12px; font-family: Georgia, 'Times New Roman', serif; font-size: 44px; color: rgba(25,169,255,0.25); line-height: 1; }
.testimonial-card p { margin: 8px 0 8px; }
.testimonial-card cite { display: block; color: var(--muted); font-style: normal; font-weight: 600; }

/* Area */
.area-inner { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.area .pin { width: 34px; height: 34px; display: grid; place-items: center; background: #ebfff5; border-radius: 50%; }
.area p { margin: 0; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.info-cards { display: grid; gap: 10px; }
.info-card { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); transition: transform .2s ease; }
.info-card:hover { transform: translateY(-2px); text-decoration: none; }
.info-icon { width: 38px; height: 38px; border-radius: 10px; background: #f0fbff; display: grid; place-items: center; }
.small-label { font-size: 0.8rem; color: var(--muted); }
.info-value { font-weight: 700; color: #0d1b2a; }
.owner-card { background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.owner-label { font-size: 0.8rem; color: var(--muted); }
.owner-name { font-weight: 700; }

.contact-form-wrap { }
.contact-form { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.form-success { display: none; background: #e7fff1; color: #0a8f4b; border: 1px solid #baf2d1; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-weight: 600; }
.form-success.show { display: block; }
.form-row { display: grid; gap: 10px; }
.form-group { display: grid; gap: 6px; }
.form-group label { font-weight: 600; }
.form-group .req { color: var(--green); margin-left: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #d7e6ef;
  background: #fff;
  font: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 3px solid rgba(25,169,255,0.25); border-color: var(--blue-600); }
.form-actions { margin-top: 8px; }
.contact-alt { margin: 10px 0 0; color: var(--muted); }
.contact-alt a { font-weight: 600; }

/* Footer */
.site-footer { background: #eaf6ff; color: #0d1b2a; padding: 18px 0; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.credits { color: var(--muted); font-size: 0.95rem; }

/* Utilities */
.no-scroll { overflow: hidden; }

/* Responsive */
@media (min-width: 640px) {
  .hero-actions { grid-template-columns: auto auto; }
  .services .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 880px) {
  .header-inner { height: 72px; }
  .logo-img { height: 40px; }
  .nav { position: static; background: transparent; box-shadow: none; max-height: none; }
  .nav-list { display: flex; align-items: center; gap: 18px; padding: 0; }
  .nav-list li { border: 0; }
  .nav-link { padding: 0.4rem 0.2rem; border-bottom: 2px solid transparent; }
  .nav-link:hover { border-bottom-color: rgba(65,199,132,0.65); text-decoration: none; }
  .nav-toggle { display: none; }

  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 32px; }
  .hero-text h1 { font-size: 2.4rem; }
  .hero-actions { grid-template-columns: auto auto auto; }

  .services .services-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

/* Business Card */
.business-card {
  margin-top: 2rem;
  text-align: center;
  padding: 1rem;
}
.business-card-img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.business-card-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16, 76, 120, 0.18);
}

@media (min-width: 1140px) {
  .section { padding: 76px 0; }
}
