/* ==========================================================================
   Mega Cartuchos & Papelaria — Estilos
   ========================================================================== */

:root {
  /* Cores */
  --azul-principal: #1A47A8;
  --azul-escuro: #0D2D6E;
  --ciano: #2196C9;
  --magenta: #9C2B8A;
  --laranja: #F5A623;
  --amarelo-logo: #F5D800;
  --preto: #2D2D2D;
  --branco: #FFFFFF;
  --cinza-claro: #F4F4F4;

  /* Tipografia */
  --font-titulo: 'Oswald', sans-serif;
  --font-corpo: 'Inter', sans-serif;

  /* Layout */
  --container-width: 1180px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(13, 45, 110, 0.08);
  --transition: 0.25s ease;
}

/* ===== Reset básico ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-corpo);
  color: var(--preto);
  line-height: 1.6;
  background-color: var(--branco);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-corpo);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--whatsapp {
  background-color: #25D366;
  color: var(--branco);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover {
  background-color: #1ebe5b;
}

.btn--outline {
  background-color: transparent;
  border-color: var(--azul-principal);
  color: var(--azul-principal);
}

.btn--outline:hover {
  background-color: var(--azul-principal);
  color: var(--branco);
}

.btn--lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
}

/* ===== Cabeçalhos de seção ===== */
.section__tag {
  display: inline-block;
  font-family: var(--font-corpo);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ciano);
  margin-bottom: 0.5rem;
}

.section__title {
  font-family: var(--font-titulo);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--azul-escuro);
  text-transform: uppercase;
  line-height: 1.2;
}

.section__subtitle {
  margin-top: 0.75rem;
  color: #555;
  font-size: 1rem;
  max-width: 560px;
}

.section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__header .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--branco);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.header__logo img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.header__brand {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--azul-escuro);
  line-height: 1.1;
  text-transform: uppercase;
}

.header__brand span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--magenta);
  letter-spacing: 0.05em;
}

.nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background-color: var(--branco);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.nav.is-open {
  max-height: 320px;
}

.nav__list {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1rem;
}

.nav__link {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--preto);
  border-bottom: 1px solid var(--cinza-claro);
  transition: color var(--transition);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ciano);
}

.header__cta {
  display: none;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--azul-escuro);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  margin: 0 auto;
}

.nav__toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(160deg, var(--azul-escuro) 0%, var(--azul-principal) 100%);
  color: var(--branco);
  padding: 3rem 0;
  overflow: hidden;
}

.hero__container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.hero__content {
  text-align: center;
}

.hero__title {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3.2rem);
  text-transform: uppercase;
  line-height: 1.2;
}

.hero__title span {
  color: var(--amarelo-logo);
}

.hero__subtitle {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: #E6ECFB;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}

.hero__actions .btn--outline {
  background-color: transparent;
  border-color: var(--branco);
  color: var(--branco);
}

.hero__actions .btn--outline:hover {
  background-color: var(--branco);
  color: var(--azul-escuro);
}

.hero__image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   Sobre
   ========================================================================== */
.about {
  padding: 4rem 0;
}

.about__container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about__image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about__content p {
  margin-top: 1rem;
  color: #444;
}

.about__content p:first-of-type {
  margin-top: 1.25rem;
}

/* ==========================================================================
   Serviços
   ========================================================================== */
.services {
  background-color: var(--cinza-claro);
  padding: 4rem 0;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background-color: var(--branco);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(13, 45, 110, 0.12);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--branco);
}

.card__icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.card__icon--cyan { background-color: var(--ciano); }
.card__icon--magenta { background-color: var(--magenta); }
.card__icon--orange { background-color: var(--laranja); }
.card__icon--blue { background-color: var(--azul-principal); }
.card__icon--yellow { background-color: var(--amarelo-logo); color: var(--preto); }
.card__icon--dark { background-color: var(--preto); }

.card__title {
  font-family: var(--font-titulo);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--azul-escuro);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card__text {
  color: #555;
  font-size: 0.95rem;
  flex-grow: 1;
}

.card__link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--ciano);
  transition: color var(--transition);
}

.card__link:hover {
  color: var(--magenta);
}

/* ==========================================================================
   Avaliações
   ========================================================================== */
.reviews {
  padding: 4rem 0;
}

.reviews__slider {
  position: relative;
}

.reviews__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.reviews__track::-webkit-scrollbar {
  display: none;
}

.review {
  background-color: var(--cinza-claro);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-left: 4px solid var(--laranja);
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.slider__controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.slider__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--azul-principal);
  background-color: var(--branco);
  color: var(--azul-principal);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.slider__btn:hover {
  background-color: var(--azul-principal);
  color: var(--branco);
  transform: translateY(-2px);
}

.slider__btn .icon {
  width: 22px;
  height: 22px;
}

.review__stars {
  color: var(--laranja);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.review__text {
  color: #444;
  font-size: 0.95rem;
  font-style: italic;
}

.review__author {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--azul-escuro);
  font-family: var(--font-titulo);
}

/* ==========================================================================
   Localização
   ========================================================================== */
.location {
  background-color: var(--cinza-claro);
  padding: 4rem 0;
}

.location__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.location__map iframe {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.location__info {
  background-color: var(--branco);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.location__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-titulo);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--azul-escuro);
  margin-bottom: 0.5rem;
}

.location__heading .icon {
  color: var(--magenta);
}

.location__heading:not(:first-child) {
  margin-top: 1.75rem;
}

.location__info p {
  color: #555;
  margin-bottom: 1rem;
}

.hours-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--cinza-claro);
  font-size: 0.92rem;
  color: #444;
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-list__day {
  font-weight: 600;
  font-family: var(--font-titulo);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--azul-escuro);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--azul-escuro);
  color: #D6E0F7;
  padding: 4rem 0 0;
}

.footer__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.footer__brand img {
  border-radius: 8px;
  margin-bottom: 1rem;
}

.footer__brand h2 {
  font-family: var(--font-titulo);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--branco);
}

.footer__brand h2 span {
  color: var(--amarelo-logo);
}

.footer__brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #AAB9E0;
}

.footer__col h3 {
  font-family: var(--font-titulo);
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--branco);
  margin-bottom: 1rem;
}

.footer__list li {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
}

.footer__list a,
.footer__col > a {
  transition: color var(--transition);
}

.footer__list a:hover,
.footer__col > a:hover {
  color: var(--amarelo-logo);
}

.footer__list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer__list-icon {
  color: var(--amarelo-logo);
  flex-shrink: 0;
}

.footer__address {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer__address .footer__list-icon {
  margin-top: 0.2rem;
}

.footer__directions {
  display: inline-block;
}

.footer__col--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer__col--cta h3 {
  margin-bottom: 0;
}

/* ===== Política de Privacidade (LGPD) ===== */
.privacy {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy__summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-titulo);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--branco);
  padding: 0.25rem 0;
}

.privacy__summary::-webkit-details-marker {
  display: none;
}

.privacy__chevron {
  flex-shrink: 0;
  color: var(--amarelo-logo);
  transition: transform var(--transition);
}

.privacy[open] .privacy__chevron {
  transform: rotate(180deg);
}

.privacy__content {
  padding: 1.25rem 0 0.5rem;
  font-size: 0.9rem;
  color: #C2CFEF;
  max-width: 760px;
}

.privacy__content h4 {
  font-family: var(--font-titulo);
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--branco);
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.privacy__content h4:first-child {
  margin-top: 0;
}

.privacy__content p {
  margin-bottom: 0.75rem;
}

.privacy__content a {
  color: var(--amarelo-logo);
  text-decoration: underline;
}

.footer__bottom {
  margin-top: 1rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #8FA3D6;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Botão WhatsApp flutuante
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform var(--transition);
  animation: pulse 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--branco);
}

@keyframes pulse {
  0% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Responsividade — Tablet e Desktop (mobile-first)
   ========================================================================== */
@media (min-width: 768px) {
  .hero__container {
    flex-direction: row;
    text-align: left;
  }

  .hero__content {
    text-align: left;
    flex: 1;
  }

  .hero__subtitle {
    margin-left: 0;
  }

  .hero__actions {
    flex-direction: row;
    align-items: flex-start;
  }

  .hero__image {
    flex: 1;
  }

  .about__container {
    flex-direction: row;
    align-items: center;
  }

  .about__image,
  .about__content {
    flex: 1;
  }

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

  .review {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }

  .location__grid {
    flex-direction: row;
    align-items: stretch;
  }

  .location__map,
  .location__info {
    flex: 1;
  }

  .location__map iframe {
    height: 100%;
    min-height: 420px;
  }

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

@media (min-width: 1024px) {
  .nav {
    position: static;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    background-color: transparent;
    width: auto;
  }

  .nav__list {
    flex-direction: row;
    padding: 0;
    gap: 1.75rem;
  }

  .nav__link {
    padding: 0;
    border-bottom: none;
  }

  .nav__link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: var(--ciano);
    transition: width var(--transition);
    margin-top: 4px;
  }

  .nav__link:hover::after,
  .nav__link.is-active::after {
    width: 100%;
  }

  .nav__toggle {
    display: none;
  }

  .header__cta {
    display: inline-flex;
  }

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

  .review {
    flex: 0 0 calc((100% - 3rem) / 3);
  }

  .footer__container {
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
  }
}
