/* =========================================================
   Drogaria Mega Oferta — design system enxuto
   ========================================================= */

:root {
  --blue-900: #0a1a52;
  --blue-800: #0f2372;
  --blue-700: #142f96;
  --blue-600: #1b3cbd;
  --blue-500: #2548e0;
  --blue-100: #e8ecfd;
  --blue-50: #f4f6fe;
  --yellow-400: #ffcc00;
  --yellow-500: #f0b400;
  --red-600: #d81f28;
  --green-600: #22c55e;
  --green-700: #1aa851;
  --gray-900: #14151c;
  --gray-700: #4b4f5e;
  --gray-500: #767c8f;
  --gray-300: #d8dbe6;
  --gray-200: #e9ebf2;
  --gray-100: #f5f6fa;
  --white: #ffffff;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(10, 26, 82, 0.07);
  --shadow-md: 0 12px 30px rgba(10, 26, 82, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 26, 82, 0.18);

  --container: 1180px;
  --header-h: 108px;

  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-900);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-900);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

section {
  scroll-margin-top: var(--header-h);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  margin-top: 14px;
}
.section-head p {
  color: var(--gray-700);
  margin-top: 14px;
  font-size: 1.05rem;
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-whatsapp {
  background: var(--green-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { background: var(--green-700); box-shadow: var(--shadow-md); }

.btn-phone {
  background: var(--white);
  color: var(--blue-800);
  border-color: var(--blue-100);
  box-shadow: var(--shadow-sm);
}
.btn-phone:hover { border-color: var(--blue-600); box-shadow: var(--shadow-md); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-block { width: 100%; }

/* =========================================================
   Top notice bar
   ========================================================= */
.top-bar {
  background: var(--blue-900);
  color: var(--white);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 9px 16px;
}
.top-bar strong {
  color: var(--yellow-400);
  font-weight: 700;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 12px;
}
.brand {
  display: flex;
  align-items: center;
  flex: none;
}
.brand img {
  height: 52px;
  width: auto;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-actions .btn {
  padding: 12px 20px;
  font-size: 0.9rem;
}
.header-actions .btn-whatsapp span { display: none; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: var(--blue-50);
  border: none;
  border-radius: var(--radius-sm);
  flex: none;
}
.menu-toggle .bar {
  width: 20px;
  height: 2.5px;
  background: var(--blue-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 600;
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav.open {
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 45, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-nav.open .mobile-nav__backdrop { opacity: 1; }

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 84vw);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.mobile-nav.open .mobile-nav__panel { transform: translateX(0); }

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.mobile-nav__top img { height: 34px; }
.mobile-nav__close {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  color: var(--gray-700);
  line-height: 1;
}

.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--blue-900);
  font-size: 1.02rem;
}
.mobile-nav ul li a:hover { background: var(--blue-50); }
.mobile-nav ul li a svg { width: 20px; height: 20px; color: var(--blue-600); flex: none; }

.mobile-nav__footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.88rem;
  color: var(--gray-500);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
  padding-block: 48px 90px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem);
  margin-top: 14px;
}
.hero-copy .lead {
  margin-top: 16px;
  font-size: 1.08rem;
  color: var(--gray-700);
  max-width: 46ch;
}
.hero-copy .lead strong { color: var(--blue-800); }
.hero-copy .delivery-note {
  margin-top: 10px;
  font-size: 0.98rem;
  color: var(--gray-700);
}
.hero-copy .delivery-note strong { color: var(--blue-700); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Carousel */
.hero-media { position: relative; }
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  background: var(--white);
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(.65,0,.35,1);
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 26, 82, 0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: background-color 0.2s ease;
  z-index: 2;
}
.carousel-arrow:hover { background: rgba(10, 26, 82, 0.8); }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.55);
  padding: 0;
  transition: background-color 0.2s ease, width 0.2s ease;
}
.carousel-dots button[aria-current="true"] {
  background: var(--white);
  width: 22px;
  border-radius: var(--radius-pill);
}

/* Services strip */
.services {
  margin-top: -60px;
  position: relative;
  z-index: 3;
}
.services .container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px;
  text-align: center;
  min-width: 0;
}
.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.service-icon img { width: 22px; height: 22px; }
.service-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--blue-900);
}
.service-subtitle {
  font-size: 0.74rem;
  color: var(--gray-500);
  line-height: 1.3;
}

/* =========================================================
   Feature cards ("Como podemos ajudar")
   ========================================================= */
.help {
  padding-block: 100px 80px;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.help-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.help-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.help-card figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue-50);
}
.help-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.help-card-body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.help-card-body .step {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-500);
  text-transform: uppercase;
}
.help-card-body h3 {
  font-size: 1.2rem;
  margin-top: 8px;
}
.help-card-body p {
  color: var(--gray-700);
  margin-top: 10px;
  flex: 1;
  font-size: 0.97rem;
}
.help-card-body .btn { margin-top: 20px; align-self: flex-start; }

/* =========================================================
   Contact / order CTA
   ========================================================= */
.contact-section {
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(255,255,255,0.08), transparent),
    linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  color: var(--white);
  padding-block: 80px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.contact-section .eyebrow {
  background: rgba(255,255,255,0.12);
  color: var(--yellow-400);
}
.contact-section h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  margin-top: 14px;
}
.contact-section .lead {
  color: rgba(255,255,255,0.82);
  margin-top: 12px;
  font-size: 1.05rem;
  max-width: 46ch;
}

.contact-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-weight: 600;
  font-size: 1.02rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.contact-list a:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.3);
}
.contact-list .icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.contact-list svg { width: 19px; height: 19px; }

.contact-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; }

.address-block {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
}
.address-block svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--yellow-400); }

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  line-height: 0;
}
.map-card iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.72);
  padding-block: 56px 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  line-height: 0;
}
.footer-logo img {
  display: block;
  width: 130px;
  height: auto;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.94rem;
  max-width: 40ch;
  color: rgba(255,255,255,0.6);
}
.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; font-size: 0.94rem; }
.footer-col a:hover { color: var(--white); }
.footer-col li { display: flex; align-items: center; gap: 10px; }
.footer-col svg { width: 16px; height: 16px; flex: none; color: var(--yellow-400); }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
}

/* =========================================================
   Floating WhatsApp button
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 700;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.45);
  animation: float-pulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; color: var(--white); }
.whatsapp-float:hover { background: var(--green-700); }

@keyframes float-pulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(34, 197, 94, 0.45); }
  50% { box-shadow: 0 10px 26px rgba(34, 197, 94, 0.7), 0 0 0 10px rgba(34, 197, 94, 0.12); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 480px) {
  .services .container { gap: 12px; padding: 24px 20px; }
  .service {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
  }
  .service-icon { width: 48px; height: 48px; }
  .service-icon img { width: 25px; height: 25px; }
  .service-title { font-size: 0.94rem; }
  .service-subtitle { font-size: 0.8rem; }
}

@media (min-width: 560px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (min-width: 720px) {
  .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services .container { padding: 30px; }
}

@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1.05fr 0.95fr; }
}

@media (min-width: 960px) {
  .header-actions .btn-whatsapp span { display: inline; }
  .hero .container { grid-template-columns: 1fr 0.95fr; }
  .hero-media { order: 2; }
  .hero-copy { order: 1; }
  .help-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
  .top-bar { font-size: 0.92rem; }
  .brand img { height: 58px; }
}

@media (max-width: 959.98px) {
  .header-actions .btn-phone { display: none; }
  .header-actions .btn-whatsapp { padding: 12px; border-radius: 50%; }
  .header-actions .btn-whatsapp svg { margin: 0; }
}

@media (min-width: 960px) {
  .menu-toggle { display: none; }
}
