/* =========================================================
   AndroidCare — Mobile-First Styles
   Base = mobile. Breakpoints at 768px (tablet) and 1024px (desktop).
   ========================================================= */

:root {
  --green: #2E8B3E;
  --green-dark: #226B30;
  --green-light: #5BC25F;
  --blue: #1E5BB5;
  --blue-dark: #154083;
  --whatsapp: #25D366;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #F0F5FA;
  --bg-section: #f8fafc;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  overflow-wrap: break-word;
}

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

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

button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.hidden { display: none !important; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.header-actions {
  display: flex;
  align-items: center;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(46, 139, 62, 0.25);
  transition: background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-cta:hover { background: var(--green-dark); }
.header-cta:active { transform: scale(0.97); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
  padding: 24px 0 32px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-text {
  text-align: center;
  order: 1;
}
.hero-title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--blue-dark);
}
.hero-title .accent { color: var(--green); }
.hero-sub {
  margin: 0;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-image {
  order: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 480px;
  margin: 0 auto;
}
.hero-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-form-wrap {
  order: 3;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
  text-align: center;
  color: var(--blue-dark);
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--text);
}
.req { color: #e11d48; }

.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

select,
input[type="text"],
input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px; /* prevents iOS zoom */
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
select { padding-right: 40px; }
select:focus,
input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 139, 62, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 12px rgba(46, 139, 62, 0.25);
  width: 100%;
  margin-top: 18px;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost {
  background: #f1f5f9;
  color: var(--text);
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  margin-top: 12px;
  width: 100%;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.btn-row .btn { margin-top: 0; flex: 1; }
.btn-row .btn-ghost { flex: 0 0 35%; }

.form-note {
  text-align: center;
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.success-icon {
  display: flex;
  justify-content: center;
  color: var(--green);
  margin: 8px 0;
}
.success-title {
  text-align: center;
  font-size: 20px;
  margin: 4px 0;
  color: var(--blue-dark);
}
.success-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 4px 0 8px;
}

/* =========================================================
   WHY ANDROIDCARE
   ========================================================= */
.why {
  padding: 40px 0;
  background: var(--bg-soft);
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px;
  color: var(--blue-dark);
}
.why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.why-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: #fff;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  color: #fff;
}
.why-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* =========================================================
   TRUST COUNTERS
   ========================================================= */
.trust {
  padding: 40px 0;
  background: #fff;
}
.counter-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.counter {
  text-align: center;
  padding: 16px 8px;
}
.counter-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -1px;
}
.counter-plus {
  font-size: 24px;
  font-weight: 700;
  color: var(--green);
}
.counter-label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  padding: 40px 0 48px;
  background: var(--bg-soft);
}
.testi-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 16px;
  margin: 0 -4px;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }

.testi-card {
  flex: 0 0 88%;
  scroll-snap-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.testi-quote-mark {
  font-size: 64px;
  line-height: 0.5;
  color: var(--green-light);
  font-family: Georgia, serif;
  margin-bottom: 8px;
}
.testi-text {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 14px;
  color: var(--text);
}
.testi-stars {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.testi-author strong {
  display: block;
  font-size: 15px;
  color: var(--blue-dark);
}
.testi-author span {
  font-size: 13px;
  color: var(--text-muted);
}

.testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.testi-dot.active {
  background: var(--green);
  transform: scale(1.3);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 32px 0 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-brand img {
  height: 80px;
  width: auto;
  margin-bottom: 16px;
  display: block;
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.footer-brand p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
}
.footer-cta-lead {
  margin: 0 0 8px;
  font-weight: 600;
  color: #fff;
  font-size: 16px;
}
.footer-policies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
}
.footer-policies a {
  font-size: 13px;
  color: #94a3b8;
  transition: color .15s;
}
.footer-policies a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  margin-top: 20px;
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}
.footer-bottom p { margin: 0; }
.footer-disclaimer {
  max-width: 720px;
  margin: 0 auto 12px !important;
  font-size: 11px;
  line-height: 1.5;
  color: #475569;
}
.footer-credit {
  color: var(--green-light);
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}
.footer-credit:hover { color: #fff; text-decoration: underline; }

/* =========================================================
   TABLET — 768px and up
   ========================================================= */
@media (min-width: 768px) {
  .container { padding: 0 24px; }

  .header-cta {
    min-height: 48px;
    padding: 0 24px;
    font-size: 15px;
  }

  .hero-title { font-size: 36px; }
  .form-title { font-size: 24px; }
  .section-title { font-size: 32px; margin-bottom: 32px; }

  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-tile { padding: 24px 16px; }

  .counter-num { font-size: 44px; }
  .counter-plus { font-size: 32px; }
  .counter-label { font-size: 15px; }

  .testi-card { flex-basis: 48%; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer-brand { flex: 1; max-width: 400px; }
  .footer-cta { text-align: right; }
  .btn-block { width: auto; min-width: 240px; }
}

/* =========================================================
   DESKTOP — 1024px and up
   ========================================================= */
@media (min-width: 1024px) {
  .hero { padding: 56px 0 64px; }

  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "form text"
      "form image";
    gap: 32px 48px;
    align-items: start;
  }
  .hero-text {
    grid-area: text;
    text-align: left;
    order: unset;
  }
  .hero-title { font-size: 44px; }
  .hero-image {
    grid-area: image;
    order: unset;
    max-width: 100%;
  }
  .hero-form-wrap {
    grid-area: form;
    order: unset;
    padding: 28px;
    align-self: start;
    position: sticky;
    top: 80px;
  }

  .why-grid { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .why-tile { padding: 28px 12px; }
  .why-icon { width: 64px; height: 64px; }

  .testi-card { flex-basis: 31%; }

  .hero-title { font-size: 48px; }
  .section-title { font-size: 36px; }
}

/* =========================================================
   LARGE DESKTOP — 1280px and up
   ========================================================= */
@media (min-width: 1280px) {
  .hero-title { font-size: 52px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
