/* ==========================================================================
   Hogar Sonia — editorial components layered on top of Tailwind utilities.
   Palette: forest #064e3b · terracotta #b45309/#c2410c · white + sage.
   ========================================================================== */

:root {
  --forest: #064e3b;
  --forest-deep: #003527;
  --terracotta: #b45309;
  --terracotta-bright: #c2410c;
  --sage: #e7f3ec;
  --sage-soft: #f2f8f4;
  --ink: #1e293b;
  --muted: #52655c;
  --line: rgba(6, 78, 59, 0.12);
  --card-shadow: 0 4px 16px -2px rgba(6, 78, 59, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --card-shadow-lift: 0 12px 28px -4px rgba(6, 78, 59, 0.14), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  --radius: 6px;
}

html { scroll-behavior: smooth; }

body {
  background: #ffffff;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif,
.font-display-hero, .font-headline-xl, .font-headline-lg, .font-headline-md, .font-headline-sm {
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Navigation ---------- */
.hs-nav-link {
  position: relative;
  padding-bottom: 2px;
  transition: color .2s ease;
}
.hs-nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}
.hs-nav-link:hover::after,
.hs-nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.hs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--terracotta);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 1.35rem;
  border-radius: var(--radius);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 2px 8px rgba(180, 83, 9, .22);
}
.hs-btn-primary:hover {
  background: var(--terracotta-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(194, 65, 12, .28);
}

.hs-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--line);
  color: var(--forest);
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 1.35rem;
  border-radius: var(--radius);
  transition: border-color .18s ease, background .18s ease;
}
.hs-btn-outline:hover { border-color: var(--forest); background: var(--sage-soft); }

/* ---------- Cards ---------- */
.hs-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: box-shadow .24s ease, transform .24s ease, border-color .24s ease;
}
.hs-card:hover {
  box-shadow: var(--card-shadow-lift);
  transform: translateY(-2px);
  border-color: rgba(6, 78, 59, .2);
}

.hs-media { overflow: hidden; border-radius: var(--radius); }
.hs-media img { transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.hs-card:hover .hs-media img { transform: scale(1.05); }

.hs-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .3rem .6rem;
  border-radius: 4px;
  background: rgba(6, 78, 59, .08);
  color: var(--forest);
}
.hs-chip--terra { background: rgba(180, 83, 9, .1); color: #8a4107; }

.hs-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ---------- Forms ---------- */
.hs-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  padding: .75rem .9rem;
  font-size: .95rem;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.hs-input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(6, 78, 59, .12);
}
.hs-input::placeholder { color: #8a9a92; }

/* ---------- Newsletter / floating widget ---------- */
#floating-ebook-card {
  box-shadow: 0 18px 40px -12px rgba(6, 78, 59, .35), 0 6px 14px -4px rgba(0,0,0,.08);
  animation: hs-rise .5s cubic-bezier(.2,.7,.3,1) both;
}
#floating-ebook-card.is-hidden { display: none; }

@keyframes hs-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  #floating-ebook-card {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

/* ---------- Editorial article body ---------- */
.hs-prose { color: #24352d; font-size: 1.02rem; line-height: 1.78; }
.hs-prose > * + * { margin-top: 1.1rem; }
.hs-prose h2 {
  font-size: 1.7rem;
  line-height: 1.25;
  color: var(--forest);
  margin-top: 2.6rem;
  margin-bottom: .35rem;
}
.hs-prose h3 {
  font-size: 1.24rem;
  color: var(--forest);
  margin-top: 1.7rem;
  margin-bottom: .25rem;
}
.hs-prose p { margin: 0; }
.hs-prose strong { color: var(--forest); font-weight: 600; }
.hs-prose a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.hs-prose ul, .hs-prose ol { padding-left: 1.25rem; }
.hs-prose ul { list-style: disc; }
.hs-prose ol { list-style: decimal; }
.hs-prose li { margin: .4rem 0; }

/* Numbered editorial steps: "01. ..." */
.hs-prose .steps { list-style: none; padding: 0; margin: 1.6rem 0 0; counter-reset: step; }
.hs-prose .steps > li {
  position: relative;
  counter-increment: step;
  padding: 1.1rem 0 1.1rem 3.6rem;
  border-top: 1px solid var(--line);
}
.hs-prose .steps > li:first-child { border-top: 0; }
.hs-prose .steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1.1rem;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--terracotta);
  line-height: 1;
}
.hs-prose .steps strong { display: block; color: var(--forest); font-size: 1.1rem; margin-bottom: .3rem; }

/* Pull quote */
.hs-prose .pullquote {
  margin: 2.2rem 0;
  padding: 1.6rem 0 1.6rem 1.6rem;
  border-left: 3px solid var(--terracotta);
  background: linear-gradient(90deg, var(--sage-soft), #fff 85%);
  color: var(--forest);
  font-family: Newsreader, Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.45;
  font-style: italic;
}
.hs-prose .pullquote::before {
  content: "“";
  display: block;
  font-size: 2.4rem;
  line-height: .6;
  color: var(--terracotta);
  font-style: normal;
  margin-bottom: .35rem;
}

/* Diagnostic comparison table */
.hs-prose .diag { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .92rem; }
.hs-prose .diag th {
  text-align: left;
  background: var(--forest);
  color: #fff;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .7rem .85rem;
}
.hs-prose .diag td { padding: .75rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.hs-prose .diag tr:nth-child(even) td { background: var(--sage-soft); }
.hs-prose .diag td:first-child { font-weight: 600; color: var(--forest); }

/* Soil blend visual breakdown */
.hs-prose .soil { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.35rem; margin: 1.5rem 0; background: #fff; }
.hs-prose .soil h4 { font-size: 1.02rem; color: var(--forest); margin-bottom: .85rem; }
.hs-prose .soil-row { margin: .55rem 0; }
.hs-prose .soil-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }
.hs-prose .soil-bar { height: 8px; background: #eef4ef; border-radius: 4px; overflow: hidden; }
.hs-prose .soil-bar span { display: block; height: 100%; background: var(--forest); border-radius: 4px; }
.hs-prose .soil-bar span.terra { background: var(--terracotta); }
.hs-prose .soil-bar span.sage { background: #6bbf8f; }
.hs-prose .soil-bar span.clay { background: #d6a15f; }

/* Quick facts */
.hs-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.hs-spec {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sage-soft);
  padding: .6rem .7rem;
}
.hs-spec .k { display: block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hs-spec .v { display: block; font-size: .84rem; color: var(--forest); font-weight: 600; margin-top: .15rem; }

/* Breadcrumbs */
.hs-crumbs { font-size: .8rem; color: var(--muted); }
.hs-crumbs a:hover { color: var(--forest); text-decoration: underline; }
.hs-crumbs .sep { margin: 0 .45rem; color: #b6c4bc; }

/* Footer */
.hs-footer a { color: #d7e8dd; transition: color .18s ease; }
.hs-footer a:hover { color: #fff; }

/* Small utilities */
.hs-line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
