/* ===========================================================
   Calm Sloth Spanish — shared styles
   Brand: cream / coral / teal · Poppins + Nunito
   =========================================================== */

:root {
  --cream: #f3e9dd;
  --cream-deep: #ece0d1;
  --coral: #e08a76;
  --coral-dark: #d27460;
  --teal: #6f9b8f;
  --teal-dark: #5a847a;
  --ink: #2e2a28;
  --muted: #6b635d;
  --white: #fffaf4;
  --maxw: 1080px;
  --readw: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand { font-family: 'Poppins', sans-serif; line-height: 1.18; }

a { color: var(--teal-dark); }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--readw); margin-left: auto; margin-right: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Decorative coral blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border: none;
  border-radius: 12px;
  background: var(--coral);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--teal-dark);
  border: 1.5px solid var(--teal);
}
.btn-ghost:hover { background: var(--teal); color: var(--white); }

/* ---------- Site nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 233, 221, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(46, 42, 40, 0.06);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-lockup .mark {
  width: 42px; height: 42px;
  display: block;
  flex: none;
}
.brand-lockup .brand { font-weight: 700; font-size: 1.2rem; letter-spacing: 0.4px; }
.brand-lockup .brand span { color: var(--teal-dark); }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-links a:hover { color: var(--teal-dark); }
.nav-links .btn { color: var(--white); }

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

/* ---------- Page header (interior pages) ---------- */
.page-header {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 56px 0 40px;
}
.page-header .blob-a { width: 180px; height: 180px; top: -60px; left: -70px; opacity: 0.55; }
.page-header .blob-b { width: 120px; height: 120px; bottom: -50px; right: -40px; opacity: 0.45; }
.page-header .inner { position: relative; z-index: 2; }
.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 12px; }
.page-header p { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal-dark); }

/* ---------- Long-form article ---------- */
.article { padding: 8px 0 56px; }
.article .read > * + * { margin-top: 1.1rem; }
.article h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.article h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.article p, .article li { font-size: 1.06rem; color: #3a3531; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li + li { margin-top: 0.5rem; }
.article .meta { color: var(--muted); font-size: 0.92rem; }

/* TL;DR / key takeaways box (GEO-friendly, extractable) */
.callout {
  background: var(--white);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 8px 22px rgba(46, 42, 40, 0.05);
}
.callout h2, .callout h3 { margin-top: 0; font-size: 1.1rem; color: var(--teal-dark); }
.callout ul { margin-top: 10px; }

/* ---------- Blog listing cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 8px 0 56px;
}
.post-card {
  background: var(--white);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 10px 26px rgba(46, 42, 40, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(46, 42, 40, 0.10); }
.post-card .tag {
  align-self: flex-start;
  background: var(--cream-deep);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.post-card h2 { font-size: 1.25rem; margin-bottom: 8px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--teal-dark); }
.post-card p { color: var(--muted); font-size: 0.98rem; flex-grow: 1; }
.post-card .read-more { margin-top: 14px; font-weight: 700; color: var(--coral-dark); text-decoration: none; }
.post-card .read-more:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 8px 20px rgba(46, 42, 40, 0.05);
}
.faq-item + .faq-item { margin-top: 16px; }
.faq-item h3 { font-size: 1.12rem; margin-bottom: 6px; }
.faq-item p { color: #3a3531; }

/* ---------- Inline signup (reusable) ---------- */
.signup {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 24px;
  max-width: 540px;
  margin: 0 auto;
  padding: 34px 32px;
  box-shadow: 0 18px 44px rgba(46, 42, 40, 0.10);
  text-align: left;
}
.signup .gift {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream-deep); color: var(--teal-dark);
  font-weight: 700; font-size: 0.85rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.signup h2 { font-size: 1.45rem; margin-bottom: 8px; }
.signup > p { color: var(--muted); font-size: 0.98rem; margin-bottom: 20px; }
.ck-form { display: flex; flex-direction: column; gap: 12px; }
.ck-form input[type="email"] {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid #e3d7c8; border-radius: 12px;
  font: inherit; background: var(--cream); color: var(--ink);
}
.ck-form input[type="email"]:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(111, 155, 143, 0.18);
}
.ck-form button { width: 100%; }
.ck-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ConvertKit / Kit field wrapper + alerts (brand-styled) */
.ck-form [data-element="fields"] { display: flex; flex-direction: column; gap: 12px; }
.ck-form .formkit-spinner { display: none; }
.ck-form .formkit-alert {
  list-style: none; margin: 0 0 12px; padding: 12px 14px;
  border-radius: 10px; font-size: 0.92rem; text-align: center;
}
.ck-form .formkit-alert:empty { display: none; }
.ck-form .formkit-alert-error { background: #fde8e2; border: 1px solid #f2c2b3; color: #b23b16; }
.ck-form .formkit-alert-success,
.formkit-alert-success {
  background: var(--cream-deep); border: 1px solid var(--teal);
  border-radius: 12px; padding: 16px; color: var(--teal-dark); font-weight: 600; text-align: center;
}

/* Section to wrap a signup on interior pages */
.signup-section { padding: 16px 0 64px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream-deep);
  padding: 40px 0 30px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .brand { color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--teal-dark); }
.footer-bottom { margin-top: 28px; font-size: 0.84rem; }

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(46, 42, 40, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
