/* Chocolatepeque - Clean multi-page redesign */
:root {
  --orange: #e67e22;
  --orange-dark: #d35400;
  --brown: #3c2a21;
  --brown-light: #5c4033;
  --cream: #faf6f1;
  --cream-dark: #f0e6d8;
  --text: #2c2118;
  --text-muted: #6b5b4f;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(60, 42, 33, 0.12);
  --max: 1100px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brown);
  letter-spacing: 0.02em;
}
.logo img { height: 42px; width: auto; }
.logo span { display: none; }
@media (min-width: 480px) { .logo span { display: inline; } }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  color: var(--brown);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
}
.nav a:hover,
.nav a.active { background: var(--cream-dark); color: var(--orange-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brown);
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 0.75rem;
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; text-align: center; padding: 0.75rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover { background: var(--orange); color: var(--white); }

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1da851; color: var(--white); }

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

.section {
  padding: 3.5rem 0;
}
.section-sm { padding: 2.5rem 0; }

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 0.5rem;
  text-align: center;
}
.section-sub {
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: var(--brown) center/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,20,15,0.55), rgba(30,20,15,0.7));
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem;
  max-width: 700px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}
.hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}
.hero-logo {
  width: 90px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Cards / Grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-3px); }
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body { padding: 1.25rem; }
.card h3 {
  font-size: 1.15rem;
  color: var(--brown);
  margin-bottom: 0.4rem;
}
.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ---------- Feature row ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  background: var(--cream-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.feature h3 { font-size: 1.05rem; color: var(--brown); margin-bottom: 0.3rem; }
.feature p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Store cards ---------- */
.store-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.store-card h3 {
  color: var(--brown);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.store-card address {
  font-style: normal;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.store-card .meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  text-align: center;
}
.step {
  padding: 1rem 0.5rem;
}
.step-num {
  width: 36px;
  height: 36px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 0.6rem;
  font-size: 0.95rem;
}
.step h4 { font-size: 0.95rem; color: var(--brown); margin-bottom: 0.25rem; }
.step p { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brown);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.25rem;
}
.cta-band h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.cta-band p { opacity: 0.9; margin-bottom: 1.25rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: var(--orange); }
.cta-band .btn-primary:hover { background: var(--orange-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown);
  color: rgba(255,255,255,0.85);
  margin-top: auto;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-inner h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}
.footer-inner a {
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 0.4rem;
}
.footer-inner a:hover { color: var(--orange); }
.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1.5rem; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); color: white; }

/* Simple page hero (inner pages) */
.page-hero {
  background: var(--brown);
  color: white;
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.page-hero h1 {
  font-size: 1.9rem;
  margin-bottom: 0.35rem;
}
.page-hero p {
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto;
}

/* Product list compact */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.product-item {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.product-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.product-item .info {
  padding: 1rem;
}
.product-item h3 {
  font-size: 1.05rem;
  color: var(--brown);
  margin-bottom: 0.3rem;
}
.product-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .section { padding: 2.5rem 0; }
  .hero { min-height: 360px; }
}