/* ==========================================================================
   Grupo Prosperus — institutional site
   Design tokens follow the Prosperus logotype (navy + gray) and the real
   Samsung Brand Store interiors (neutral, premium, uncluttered).
   ========================================================================== */

:root {
  --color-navy: #2e465d;
  --color-navy-dark: #1e2f3f;
  --color-navy-darker: #17242f;
  --color-gray: #7d8489;
  --color-gray-light: #98a0a6;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f5f6;
  --color-bg-dark: #1e2f3f;
  --color-text: #202a31;
  --color-text-muted: #5b6670;
  --color-border: #e2e5e7;
  --color-accent: #c7ccd0;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container-w: 1160px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(23, 36, 47, 0.06), 0 1px 1px rgba(23, 36, 47, 0.04);
  --shadow-md: 0 8px 24px rgba(23, 36, 47, 0.10);
  --transition: 180ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

html, body {
  height: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

main { flex: 1 0 auto; }

/* ---------- Focus visibility (a11y) ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-navy);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 4.5rem;
}
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-navy-dark);
  color: #fff;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}
.section--dark .eyebrow { color: var(--color-gray-light); }

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--color-navy-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { color: var(--color-text-muted); }
.section--dark p { color: rgba(255, 255, 255, 0.78); }

.lede {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-navy);
  color: #fff;
}
.btn--primary:hover { background: var(--color-navy-dark); }
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--outline {
  border-color: var(--color-border);
  color: var(--color-navy-dark);
}
.btn--outline:hover { border-color: var(--color-navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  /* Intentionally no backdrop-filter/transform here: those properties make
     this element a positioning "containing block" for fixed descendants,
     which would trap the fixed-position mobile .main-nav inside the
     header's own (small) box instead of the full viewport. */
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  height: 26px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  color: var(--color-navy-dark);
}
.nav-toggle svg { width: 26px; height: 26px; }

.main-nav__list {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.main-nav__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.main-nav__link:hover,
.main-nav__link[aria-current="page"] {
  color: var(--color-navy-dark);
  border-color: var(--color-navy);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding-block: 6rem 5rem;
  background: linear-gradient(155deg, rgba(23, 36, 47, 0.94) 10%, rgba(46, 70, 93, 0.86) 100%), var(--color-navy-dark);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 36, 47, 0) 40%, rgba(23, 36, 47, 0.55) 100%);
  z-index: -1;
}
.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gray-light);
  margin-bottom: 1rem;
}
.hero__title { max-width: 760px; margin-bottom: 1.25rem; color: #fff; }
.hero__lede {
  max-width: 560px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2.25rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero--page {
  padding-block: 3.75rem 3.25rem;
}
.hero--page .hero__title { margin-bottom: 0.6rem; }
.hero--page .hero__lede { margin-bottom: 0; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.stat__num {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.25rem;
}

/* ---------- Grid / cards ---------- */
.grid {
  display: grid;
  gap: 1.75rem;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; margin: 0; }

/* ---------- Partnership / badge strip ---------- */
.partner-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.partner-strip img { height: 22px; width: auto; }
.partner-strip__divider {
  width: 1px;
  height: 34px;
  background: var(--color-border);
}
.partner-strip__text {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0;
}
.partner-strip__text strong { color: var(--color-navy-dark); }

/* ---------- Photo + text split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.split__body p + p { margin-top: 1rem; }
.check-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; }
.check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--color-text);
}
.check-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-navy);
  margin-top: 2px;
}

.placeholder-note {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
  background: #fff6e0;
  border: 1px solid #f0dca0;
  border-radius: 6px;
  color: #7a5c00;
}

/* ---------- Store list (Nossas Lojas) ---------- */
.state-group { margin-bottom: 3.25rem; }
.state-group:last-child { margin-bottom: 0; }
.state-group__title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.state-group__count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.store-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.store-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.store-card__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  cursor: pointer;
  list-style: none;
}
.store-card__summary::-webkit-details-marker { display: none; }
.store-card__name {
  font-weight: 700;
  color: var(--color-navy-dark);
  font-size: 1.05rem;
}
.store-card__address {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}
.store-card__toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  transition: transform var(--transition);
}
.store-card[open] .store-card__toggle { transform: rotate(45deg); }
.store-card__map {
  border-top: 1px solid var(--color-border);
}
.store-card__map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}
.store-card__map-link {
  display: block;
  padding: 0.85rem 1.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-bg-alt);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-darker);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 3rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}
.footer-brand img { height: 24px; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; max-width: 320px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a, .footer-col address {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 5rem;
}
.error-page__code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    z-index: 100;
    background: #fff;
    padding: 1.5rem 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    overflow-y: auto;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .main-nav__link {
    display: block;
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }
  .main-nav__link[aria-current="page"] { border-color: var(--color-border); }

  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split__media { order: -1; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .section { padding-block: 3.25rem; }
  .hero { padding-block: 4rem 3rem; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .store-card__summary { flex-direction: column; }
  .store-card__toggle { align-self: flex-end; margin-top: -28px; }
  .partner-strip { flex-direction: column; align-items: flex-start; }
  .partner-strip__divider { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .hero__actions, .nav-toggle { display: none; }
}
