/* ==========================================================================
   SmartHerCents — Brand Stylesheet
   Teal + warm beige + soft gold, rounded & friendly, Poppins + Inter
   ========================================================================== */

:root {
  --teal: #2E7F86;
  --teal-dark: #1F5C61;
  --teal-light: #E4F0F1;
  --beige: #F1EDE8;
  --beige-dark: #E7E0D6;
  --gold: #D8C99B;
  --gold-dark: #C2AF78;
  --charcoal: #222222;
  --charcoal-soft: #4A4A4A;
  --white: #FFFFFF;

  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-script: "Dancing Script", cursive;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 10px 30px rgba(34, 34, 34, 0.07);
  --shadow-card: 0 6px 20px rgba(46, 127, 134, 0.10);
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 30px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn-secondary:hover { background: var(--charcoal); color: var(--white); }
.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}
.btn-gold:hover { background: var(--gold-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 237, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige-dark);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  font-family: "Playfair Display", serif;
  font-style: normal;
  font-size: 1.7rem;
  color: var(--charcoal);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo .script {
  font-family: var(--font-script);
  color: var(--teal);
  font-size: 1.9rem;
  padding: 0 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a { color: var(--charcoal); }
.nav-links a:hover { color: var(--teal); }
.nav-toggle { display: none; }

@media (max-width: 780px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--beige); flex-direction: column; gap: 0; border-bottom: 1px solid var(--beige-dark); max-height: 0; overflow: hidden; transition: max-height 0.25s ease; box-shadow: var(--shadow-soft); z-index: 10; }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; background: var(--beige); }
  .nav-links a { display: block; padding: 16px 24px; border-top: 1px solid var(--beige-dark); border-radius: 0; }
  .nav-links li:last-child { padding: 14px 24px 20px; }
  .nav-links li:last-child a.btn { width: 100%; justify-content: center; border-top: none; padding: 14px 22px; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--charcoal);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.15rem; color: var(--charcoal-soft); max-width: 46ch; }
.hero-cta { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 36px;
  position: relative;
}
.hero-card .tag {
  display: inline-block;
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.hero-card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.hero-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--beige-dark);
  font-size: 0.98rem;
  color: var(--charcoal-soft);
}
.hero-card li:first-of-type { border-top: none; }
.hero-card .check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Section wrappers ---------- */
section { padding: 70px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head p { color: var(--charcoal-soft); }
.bg-white { background: var(--white); }

/* ---------- Pillars grid ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars-grid { grid-template-columns: 1fr; } }

.pillar-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}
.pillar-card:hover { transform: translateY(-4px); }
.pillar-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.pillar-icon svg { width: 24px; height: 24px; stroke: var(--teal); }
.pillar-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.pillar-card p { color: var(--charcoal-soft); font-size: 0.96rem; margin-bottom: 0; }

/* ---------- Article cards ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.article-card .thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
.article-card .thumb.gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: var(--charcoal); }
.article-card .body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.article-card .cat {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.article-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.article-card p { color: var(--charcoal-soft); font-size: 0.94rem; margin-bottom: 14px; }
.article-card .read-more { margin-top: auto; font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; }
.article-card.static { opacity: 0.75; }
.article-card.static .cat::after { content: " · próximamente"; text-transform: none; letter-spacing: 0; color: var(--charcoal-soft); font-weight: 400; }

/* ---------- Opt-in / freebie banner ---------- */
.optin {
  background: var(--teal);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 800px) { .optin { grid-template-columns: 1fr; padding: 40px 28px; } }
.optin h2 { color: var(--white); }
.optin p { color: rgba(255,255,255,0.85); }
.optin-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.optin-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 100px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.optin-form small { display: block; margin-top: 10px; color: rgba(255,255,255,0.65); font-size: 0.82rem; }

/* ---------- Freebie preview card ---------- */
.freebie-preview {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  color: var(--charcoal);
  box-shadow: var(--shadow-soft);
}
.freebie-preview .mini-doc {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--beige-dark);
}
.freebie-preview .mini-doc .bar { background: var(--teal); color: var(--white); padding: 10px 14px; font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; }
.freebie-preview .mini-doc .rows { padding: 12px 14px; }
.freebie-preview .mini-doc .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--beige-dark); font-size: 0.82rem; color: var(--charcoal-soft); }

/* ---------- Testimonial / quote ---------- */
.quote-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.quote-block p {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--charcoal);
  line-height: 1.5;
}
.quote-block span { font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; color: var(--teal); }

/* ---------- Category pills (blog index) ---------- */
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 46px; }
.cat-pill {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 9px 20px;
  border-radius: 100px;
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--beige-dark);
}
.cat-pill.active { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ---------- Article page ---------- */
.post-hero { padding: 56px 0 20px; }
.post-hero .eyebrow { margin-bottom: 20px; }
.post-meta { color: var(--charcoal-soft); font-size: 0.92rem; margin-bottom: 30px; }
.post-body { max-width: 720px; margin: 0 auto; }
.post-body h2 { margin-top: 1.6em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: 0.5em; }
.callout {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 0.98rem;
}
.callout strong { color: var(--teal); }

/* ---------- Footer ---------- */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.72);
  padding: 56px 0 30px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 10px; }
footer a { color: rgba(255,255,255,0.72); }
footer a:hover { color: var(--gold); }
.footer-logo { font-family: "Playfair Display", serif; font-style: normal; color: var(--white); font-size: 1.4rem; margin-bottom: 12px; }
.footer-logo .script { font-family: var(--font-script); color: var(--gold); font-size: 1.6rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
