/* =================================================================
   NEUSENSE CDC — styles.css
   Edit the color palette below to rebrand the whole site at once.
   ================================================================= */

:root {
  /* ---- COLOR PALETTE (edit here) ---- */
  --teal:        #0d9488;
  --teal-dark:   #0f766e;
  --teal-soft:   #cdeae6;
  --tint:        #f1f8f7;   /* alternating section background */
  --ink:         #1f2d2b;   /* main text */
  --muted:       #5b6b68;   /* secondary text */
  --white:       #ffffff;
  --whatsapp:    #25d366;
  --line:        #e2ece9;

  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 10px 30px rgba(13, 148, 136, 0.10);
  --shadow-sm:   0 4px 14px rgba(13, 148, 136, 0.08);
  --maxw:        1120px;

  --font-body:   "Nunito", system-ui, -apple-system, sans-serif;
  --font-head:   "Poppins", system-ui, -apple-system, sans-serif;
}

/* ---- RESET / BASE ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 760px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--teal-dark); border-color: var(--teal-soft); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #1da851; color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ---- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo-mark { color: var(--teal); flex-shrink: 0; }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > a { font-family: var(--font-head); font-weight: 500; color: var(--ink); font-size: 16px; }
.nav > a:hover { color: var(--teal); text-decoration: none; }
.nav .nav-cta { color: var(--white); }
.nav .nav-cta:hover { color: var(--white); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---- SECTIONS ---- */
.section { padding: 84px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.section-sub { color: var(--muted); margin-top: 10px; }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; font-size: 13px; color: var(--teal); margin-bottom: 8px;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(160deg, var(--tint) 0%, #ffffff 70%);
  padding: 60px 0 70px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-copy h1 { font-size: clamp(32px, 5vw, 52px); margin: 6px 0 18px; }
.lead { font-size: 19px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-image img { width: 100%; box-shadow: var(--shadow); }

/* ---- HERO SLIDER (auto-sliding carousel, horizontal slide) ---- */
.slider {
  position: relative; width: 100%; aspect-ratio: 640 / 520;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.slider-track {
  display: flex; height: 100%;
  transition: transform .7s cubic-bezier(.45, .05, .25, 1);
}
.slider .slide {
  flex: 0 0 100%; width: 100%; height: 100%;
  object-fit: cover; border-radius: 0; box-shadow: none;
}
.slider-dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
  display: flex; gap: 8px; justify-content: center;
}
.slider-dots button {
  width: 22px; height: 4px; padding: 0; border: 0; border-radius: 3px;
  background: rgba(255,255,255,.55); cursor: pointer; transition: all .25s ease;
}
.slider-dots button.active { background: #fff; width: 34px; }

/* ---- STATS STRIP (under hero) ---- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px 20px; margin-top: 44px;
}
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 34px; color: var(--teal); line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---- PILLARS (vision / mission / values) ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); position: relative;
}
.pillar-num { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: var(--teal-soft); }
.pillar h3 { font-size: 21px; margin: 4px 0 10px; }
.pillar p { color: var(--muted); }

/* ---- STEPS (how it works) ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-sm); text-align: center;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-dark);
  font-family: var(--font-head); font-weight: 700; font-size: 20px; margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---- ABOUT ---- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: center; }
.about-photo img { width: 100%; box-shadow: var(--shadow); }
.about-copy h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 4px; }
.credentials { font-family: var(--font-head); font-weight: 600; color: var(--teal-dark); margin-bottom: 16px; }
.about-copy p { margin-bottom: 14px; color: var(--muted); }
.about-copy .btn { margin-top: 8px; }

/* ---- SERVICE CARDS ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-icon { font-size: 38px; display: inline-block; margin-bottom: 12px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }

/* ---- CONDITIONS TAGS ---- */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.tags li {
  background: var(--teal-soft); color: var(--teal-dark);
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 10px 20px; border-radius: 999px;
}

/* ---- WHY CHOOSE / FEATURES ---- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { text-align: center; padding: 10px; }
.feature-icon { font-size: 40px; display: inline-block; margin-bottom: 10px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---- GALLERY ---- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.gallery img:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ---- TESTIMONIALS ---- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--teal);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
}
.quote p { font-style: italic; color: var(--ink); margin-bottom: 14px; }
.quote footer { font-family: var(--font-head); font-weight: 600; color: var(--teal-dark); }
.quote footer span { font-weight: 400; color: var(--muted); }

/* ---- FAQ ---- */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 14px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 22px 20px; color: var(--muted); }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; margin-bottom: 22px; }
.contact-list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 16px; }
.contact-list li span:first-child { font-size: 20px; flex-shrink: 0; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.map iframe { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.contact-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
}
.contact-form label {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 15px; margin-bottom: 16px;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--tint); transition: border .15s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--teal); background: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { margin-top: 12px; font-weight: 600; font-size: 15px; }
.form-status.ok { color: var(--teal-dark); }
.form-status.err { color: #c0392b; }

/* ---- FOOTER ---- */
.site-footer { background: var(--ink); color: #cdd6d4; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--white); font-size: 16px; margin-bottom: 14px; }
.site-footer a { color: #cdd6d4; display: inline-block; margin-bottom: 6px; }
.site-footer a:hover { color: var(--white); }
.logo-footer { color: var(--white); }
.logo-footer .logo-mark { color: var(--teal-soft); }
.footer-note { margin-top: 10px; font-size: 15px; max-width: 260px; }
.socials { display: flex; gap: 12px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08);
  margin: 0;
}
.socials a:hover { background: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 20px; text-align: center; font-size: 14px; }

/* ---- FLOATING BUTTONS ---- */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.22); transition: transform .15s;
}
.float-btn:hover { transform: scale(1.08); text-decoration: none; }
.float-whatsapp { background: var(--whatsapp); }
.float-call { background: var(--teal); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-image, .about-photo { order: -1; }
  .cards, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 10px 22px 18px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 12px; border-bottom: 0; text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .cards, .testimonials, .features, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn, .contact-buttons .btn { flex: 1; justify-content: center; }
}

/* ---- ACCESSIBILITY ---- */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
