/* ============================================================
   VIRIATO IDENTITY SYSTEM — /css/styles.css
   Coimbra, Portugal · Handmade Cold-Process Soap
   Plain CSS · No External Requests · System Serif Stack
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS & RESET
   ------------------------------------------------------------ */
:root {
  /* Brand Core Colors */
  --v-preto: #111111;
  --v-branco: #FFFFFF;
  --v-ouro: #F2C230;
  --v-vermelho: #C8102E;

  /* Quiet Neutrals */
  --v-papel: #F7F4EE;
  --v-cinza: #6E6862;

  /* Spacing Scale */
  --v-s1: 4px;
  --v-s2: 8px;
  --v-s3: 12px;
  --v-s4: 16px;
  --v-s5: 24px;
  --v-s6: 32px;
  --v-s7: 48px;
  --v-s8: 64px;
  --v-s9: 96px;

  /* Typography */
  --v-font: Georgia, 'Times New Roman', serif;
}

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

html {
  font-size: 17px;
  line-height: 1.65;
  color: var(--v-preto);
  background-color: var(--v-branco);
  font-family: var(--v-font);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--v-branco);
  color: var(--v-preto);
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--v-preto);
  text-decoration: underline;
  text-decoration-color: var(--v-ouro);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--v-preto);
  text-decoration-color: var(--v-preto);
}

:focus-visible {
  outline: 2px solid var(--v-ouro);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   2. TYPOGRAPHY & COMMON ELEMENTS
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--v-font);
  font-weight: 700;
  line-height: 1.15;
  color: var(--v-preto);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

.v-kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--v-ouro);
  margin-bottom: var(--v-s2);
}

.hl-ouro {
  text-decoration: underline;
  text-decoration-color: var(--v-ouro);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------
   3. LAYOUT & CONTAINERS
   ------------------------------------------------------------ */
.v-container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--v-s4);
  padding-right: var(--v-s4);
}

@media (min-width: 640px) {
  .v-container {
    padding-left: var(--v-s5);
    padding-right: var(--v-s5);
  }
}

/* ------------------------------------------------------------
   4. THIN STRIPS (SIGNATURE ACCENTS)
   ------------------------------------------------------------ */
.v-strip {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--v-ouro);
  border: none;
  margin: var(--v-s4) 0;
}

.v-strip--red {
  background-color: var(--v-vermelho);
}

.v-strip--duo {
  display: block;
  width: 100%;
  height: 8px;
  background: linear-gradient(
    to bottom,
    var(--v-ouro) 0px,
    var(--v-ouro) 3px,
    transparent 3px,
    transparent 5px,
    var(--v-vermelho) 5px,
    var(--v-vermelho) 8px
  );
  border: none;
}

/* ------------------------------------------------------------
   5. HEADER & NAVIGATION
   ------------------------------------------------------------ */
.v-skip-link {
  position: absolute;
  top: -999px;
  left: var(--v-s4);
  background: var(--v-preto);
  color: var(--v-branco);
  padding: var(--v-s2) var(--v-s4);
  font-size: 14px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 700;
}

.v-skip-link:focus-visible {
  top: var(--v-s4);
}

.v-header {
  position: sticky;
  top: 0;
  background: var(--v-branco);
  border-bottom: 1px solid var(--v-preto);
  z-index: 1000;
}

.v-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--v-s3);
  padding-bottom: var(--v-s3);
  gap: var(--v-s4);
}

.v-header__brand {
  display: flex;
  align-items: center;
  gap: var(--v-s3);
  text-decoration: none;
  color: var(--v-preto);
}

.v-header__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--v-preto);
  object-fit: cover;
}

.v-header__wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-variant: small-caps;
}

/* Desktop Navigation */
.v-nav {
  display: none;
}

@media (min-width: 960px) {
  .v-nav {
    display: flex;
    align-items: center;
    gap: var(--v-s5);
  }
}

.v-nav a {
  text-decoration: none;
  color: var(--v-preto);
  font-variant: small-caps;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: var(--v-s1) 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.v-nav a:hover {
  border-bottom-color: var(--v-ouro);
}

.v-nav a.v-active {
  border-bottom: 2px solid var(--v-ouro);
}

/* Mobile Navigation Accordion */
.v-nav-mobile {
  display: block;
}

@media (min-width: 960px) {
  .v-nav-mobile {
    display: none;
  }
}

.v-nav-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: var(--v-s2) var(--v-s3);
  font-variant: small-caps;
  font-weight: 700;
  border: 1px solid var(--v-preto);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.v-nav-mobile summary::-webkit-details-marker {
  display: none;
}

.v-nav-mobile[open] summary {
  background: var(--v-papel);
}

.v-nav-mobile__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--v-branco);
  border-bottom: 1px solid var(--v-preto);
  padding: var(--v-s4);
  display: flex;
  flex-direction: column;
  gap: var(--v-s3);
}

.v-nav-mobile__menu a {
  font-variant: small-caps;
  text-decoration: none;
  font-size: 1.05rem;
  padding: var(--v-s1) 0;
}

.v-nav-mobile__menu a.v-active {
  font-weight: 700;
  border-left: 3px solid var(--v-ouro);
  padding-left: var(--v-s2);
}

/* ------------------------------------------------------------
   6. BUTTONS & CTAS
   ------------------------------------------------------------ */
.v-btn,
.v-cta-btn {
  display: inline-block;
  background-color: var(--v-preto);
  color: var(--v-branco);
  text-decoration: none;
  padding: var(--v-s3) var(--v-s5);
  font-family: var(--v-font);
  font-size: 0.95rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-radius: 0;
  border: 1px solid var(--v-preto);
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.v-btn:hover,
.v-cta-btn:hover {
  background-color: var(--v-ouro);
  color: var(--v-preto);
  border-color: var(--v-ouro);
  text-decoration: none;
}

.v-btn--outline {
  background-color: transparent;
  color: var(--v-preto);
  border: 1px solid var(--v-preto);
}

.v-btn--outline:hover {
  background-color: var(--v-preto);
  color: var(--v-branco);
  border-color: var(--v-preto);
}

.v-btn--small {
  padding: var(--v-s1) var(--v-s3);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------
   7. BREADCRUMBS
   ------------------------------------------------------------ */
.v-breadcrumb {
  font-size: 13px;
  color: var(--v-cinza);
  padding: var(--v-s3) 0;
}

.v-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--v-s2);
}

.v-breadcrumb li + li::before {
  content: "›";
  margin-right: var(--v-s2);
  color: var(--v-cinza);
}

.v-breadcrumb a {
  color: var(--v-cinza);
  text-decoration: none;
}

.v-breadcrumb a:hover {
  color: var(--v-preto);
  text-decoration: underline;
  text-decoration-color: var(--v-ouro);
}

.v-breadcrumb [aria-current="page"] {
  color: var(--v-preto);
  font-weight: 400;
}

/* ------------------------------------------------------------
   8. HERO SECTIONS
   ------------------------------------------------------------ */
.v-hero {
  position: relative;
  background-color: var(--v-preto);
  color: var(--v-branco);
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--v-s8) var(--v-s4);
}

.v-hero h1 {
  color: var(--v-branco);
  margin-bottom: var(--v-s4);
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

.v-hero p {
  color: var(--v-papel);
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
}

.v-hero--compact {
  min-height: auto;
  padding: var(--v-s6) var(--v-s4);
}

.v-hero--compact h1 {
  font-size: 1.9rem;
}

/* Pillar Hero */
.v-pillar-hero {
  padding: var(--v-s6) 0 var(--v-s4) 0;
  border-bottom: 1px solid var(--v-preto);
  margin-bottom: var(--v-s6);
}

.v-pillar-hero__promise {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: var(--v-s3) 0 var(--v-s4) 0;
  max-width: 68ch;
}

.v-pillar-hero__meta {
  font-size: 13px;
  color: var(--v-cinza);
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------
   9. CARDS & GRIDS
   ------------------------------------------------------------ */
.v-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--v-s5);
  margin: var(--v-s6) 0;
}

@media (min-width: 640px) {
  .v-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

.v-card {
  position: relative;
  background-color: var(--v-branco);
  border: 1px solid var(--v-preto);
  border-radius: 0;
  box-shadow: none;
  padding: var(--v-s5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--v-preto);
}

.v-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--v-ouro);
  transition: height 0.15s ease;
}

.v-card:hover::before {
  height: 5px;
}

.v-card h2,
.v-card h3 {
  margin-top: var(--v-s2);
  margin-bottom: var(--v-s2);
}

.v-card--soon {
  background-color: var(--v-papel);
}

.v-card--soon::before {
  background-color: var(--v-cinza);
}

.v-card--product .v-card__specs {
  margin-top: var(--v-s4);
  padding-top: var(--v-s3);
  border-top: 1px solid var(--v-papel);
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
}

.v-soon {
  display: inline-block;
  font-size: 12px;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: var(--v-cinza);
  border: 1px solid var(--v-cinza);
  padding: 2px 6px;
  align-self: flex-start;
  margin-bottom: var(--v-s2);
}

/* ------------------------------------------------------------
   10. CHIPS
   ------------------------------------------------------------ */
.v-chip {
  display: inline-block;
  font-size: 12px;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border: 1px solid var(--v-preto);
  background-color: var(--v-branco);
  color: var(--v-preto);
  text-decoration: none;
}

.v-chip--breve {
  border-color: var(--v-cinza);
  color: var(--v-cinza);
}

.v-chip--abertura {
  border-color: var(--v-vermelho);
  color: var(--v-vermelho);
  background-color: var(--v-branco);
  font-weight: 700;
}

/* ------------------------------------------------------------
   11. PROSE & ARTICLE TYPOGRAPHY
   ------------------------------------------------------------ */
.v-prose {
  font-size: 17px;
  line-height: 1.65;
  color: var(--v-preto);
}

.v-prose p {
  max-width: 68ch;
  margin-bottom: var(--v-s4);
}

.v-prose h2 {
  position: relative;
  padding-top: var(--v-s4);
  margin-top: var(--v-s7);
  margin-bottom: var(--v-s4);
}

.v-prose h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background-color: var(--v-ouro);
}

.v-prose h3 {
  margin-top: var(--v-s5);
  margin-bottom: var(--v-s3);
}

.v-prose blockquote {
  font-style: italic;
  border-left: 3px solid var(--v-ouro);
  padding-left: var(--v-s4);
  margin: var(--v-s5) 0;
  color: var(--v-preto);
}

.v-prose ul,
.v-prose ol {
  margin-bottom: var(--v-s4);
  padding-left: var(--v-s5);
  max-width: 68ch;
}

.v-prose li {
  margin-bottom: var(--v-s2);
}

.v-sources {
  list-style-type: decimal;
  padding-left: var(--v-s5);
  font-size: 0.9rem;
  color: var(--v-cinza);
  margin-top: var(--v-s6);
  border-top: 1px solid var(--v-papel);
  padding-top: var(--v-s4);
}

/* ------------------------------------------------------------
   12. TABLE OF CONTENTS
   ------------------------------------------------------------ */
.v-toc {
  background-color: var(--v-papel);
  border: 1px solid var(--v-preto);
  padding: var(--v-s4);
  margin: var(--v-s5) 0;
  max-width: 68ch;
}

.v-toc summary {
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.v-toc ol,
.v-toc ul {
  margin-top: var(--v-s3);
  padding-left: var(--v-s4);
  list-style: none;
}

.v-toc li {
  margin-bottom: var(--v-s2);
}

/* ------------------------------------------------------------
   13. PROMO BOXES & NEWSLETTER
   ------------------------------------------------------------ */
.v-cta {
  background-color: var(--v-papel);
  border-left: 3px solid var(--v-ouro);
  padding: var(--v-s5);
  margin: var(--v-s6) 0;
}

.v-cta--money {
  border-left-color: var(--v-vermelho);
}

.v-email {
  margin: var(--v-s6) 0;
  padding: var(--v-s5);
  background-color: var(--v-papel);
  border: 1px solid var(--v-preto);
}

.v-email h3 {
  margin-bottom: var(--v-s3);
}

.v-email__form {
  display: flex;
  flex-direction: column;
  gap: var(--v-s3);
}

@media (min-width: 640px) {
  .v-email__form {
    flex-direction: row;
  }
}

.v-email__input {
  flex: 1;
  padding: var(--v-s3);
  border: 1px solid var(--v-preto);
  border-radius: 0;
  font-family: var(--v-font);
  font-size: 1rem;
  background: var(--v-branco);
}

.v-email__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.v-email__gdpr {
  font-size: 12px;
  color: var(--v-cinza);
  margin-top: var(--v-s2);
}

/* ------------------------------------------------------------
   14. TABLES
   ------------------------------------------------------------ */
.v-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: var(--v-s5) 0;
}

.v-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

.v-table th,
.v-table td {
  padding: var(--v-s3);
  border-bottom: 1px solid var(--v-preto);
}

.v-table thead tr {
  border-top: 3px solid var(--v-ouro);
}

.v-table th {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 700;
  background-color: var(--v-papel);
}

/* ------------------------------------------------------------
   15. FAQ ACCORDIONS
   ------------------------------------------------------------ */
details.v-faq {
  border-top: 1px solid var(--v-preto);
  padding: var(--v-s4) 0;
}

details.v-faq:last-of-type {
  border-bottom: 1px solid var(--v-preto);
}

details.v-faq summary {
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.v-faq summary::-webkit-details-marker {
  display: none;
}

details.v-faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--v-preto);
}

details.v-faq[open] summary::after {
  content: "–";
}

details.v-faq p {
  margin-top: var(--v-s3);
  max-width: 68ch;
}

/* ------------------------------------------------------------
   16. QUOTES, BANNERS, AUTHORS & RELATED
   ------------------------------------------------------------ */
.v-quote {
  font-size: 1.35rem;
  font-style: italic;
  border-left: 3px solid var(--v-ouro);
  padding-left: var(--v-s5);
  margin: var(--v-s6) 0;
  color: var(--v-preto);
}

.v-status-banner {
  width: 100%;
  border: 1px solid var(--v-preto);
  background-color: var(--v-papel);
  padding: var(--v-s3) var(--v-s4);
  text-align: center;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.v-author {
  display: flex;
  align-items: center;
  gap: var(--v-s3);
  margin: var(--v-s5) 0;
  padding: var(--v-s4);
  background-color: var(--v-papel);
  border: 1px solid var(--v-preto);
}

.v-author__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--v-preto);
  object-fit: cover;
  flex-shrink: 0;
}

.v-author__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.v-author__bio {
  font-size: 0.85rem;
  color: var(--v-cinza);
}

.v-related {
  margin-top: var(--v-s7);
  padding-top: var(--v-s6);
  border-top: 1px solid var(--v-preto);
}

/* ------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------ */
.v-footer {
  background-color: var(--v-preto);
  color: var(--v-branco);
  padding-bottom: var(--v-s7);
  margin-top: auto;
}

.v-footer a {
  color: var(--v-branco);
  text-decoration-color: var(--v-cinza);
}

.v-footer a:hover {
  color: var(--v-ouro);
  text-decoration-color: var(--v-ouro);
}

.v-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--v-s6);
  padding-top: var(--v-s6);
}

@media (min-width: 640px) {
  .v-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .v-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.v-footer__col h4 {
  color: var(--v-ouro);
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  margin-bottom: var(--v-s3);
  border-bottom: 1px solid var(--v-cinza);
  padding-bottom: var(--v-s1);
}

.v-footer__col ul {
  list-style: none;
}

.v-footer__col li {
  margin-bottom: var(--v-s2);
  font-size: 0.9rem;
}

.v-footer__bottom {
  margin-top: var(--v-s6);
  padding-top: var(--v-s4);
  border-top: 1px solid var(--v-cinza);
  font-size: 0.8rem;
  color: var(--v-cinza);
  text-align: center;
}

/* ------------------------------------------------------------
   18. ACCESSIBILITY & MOTION PREFERENCES
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   VIRIATO-SYSTEM v2.0 — component index
   Every class below is defined in this file. Future sessions extend via /css/base.css.
   - .v-skip-link: Accessible skip navigation link positioned offscreen, visible on focus.
   - .v-header: Sticky white top banner with black bottom border containing brand and nav mount.
   - .v-nav: Desktop navigation horizontal link row with small-caps typography.
   - .v-active: Active page link state with a 2px gold underline.
   - .v-nav-mobile: Accordion navigation dropdown for screens under 960px using details/summary.
   - .v-cta-btn: Primary rectangular order button with black fill, white text, and gold hover state.
   - .v-btn: Generic rectangular button following the Viriato solid aesthetic.
   - .v-btn--outline: Hollow variant with a thin black border and white/transparent body.
   - .v-btn--small: Compact padding and font size button variant.
   - .v-breadcrumb: Hierarchical navigation path with warm grey chevrons and plain terminal text.
   - .v-hero: Full-width dark hero section with min-height 60vh, white copy, and gold kicker.
   - .v-hero--compact: Reduced-height dark banner for interior pages.
   - .hl-ouro: Gold underline highlight for emphasizing a single keyword within a title.
   - .v-card: Unrounded white container with a 1px black border and a 3px gold top strip.
   - .v-card-grid: Responsive CSS Grid container with auto-fill minmax 260px columns.
   - .v-card--soon: Neutral paper card variation for upcoming, unlinked topics.
   - .v-card--product: Product display card variant featuring price and weight metadata rows.
   - .v-soon: Small caps muted badge signaling an unreleased article or recipe.
   - .v-chip: Small caps bordered tag for classification and metadata chips.
   - .v-chip--breve: Muted warm grey tag for future/upcoming topics.
   - .v-chip--abertura: Launch tag with red border and red text on a white background.
   - .v-pillar-hero: Longform pillar article header containing H1, promise statement, and author meta.
   - .v-toc: Collapsible Table of Contents callout box on warm paper.
   - .v-prose: Editorial typography wrapper enforcing 68ch reading measure and heading accents.
   - .v-sources: Numbered citation and reference list with muted styling.
   - .v-cta: Contextual callout container with warm paper background and a 3px gold left border.
   - .v-cta--money: Commercial callout variation with a 3px red left border for shop routes.
   - .v-email: Newsletter signup card with inline layout, hidden honeypot, and GDPR notice.
   - .v-table: Structured data table with thin black cell borders and a 3px gold header rule.
   - .v-faq: Editorial accordion toggle with bold summary, plus-minus indicator, and thin borders.
   - .v-quote: Editorial pull-quote with 3px gold left border and large italic serif type.
   - .v-status-banner: Full-width notification bar with 1px black border on warm paper.
   - .v-author: Bylaw box showing circular 40px avatar, author name, and craft credential.
   - .v-related: Cross-silo related content section hosting a 3-card grid.
   - .v-footer: Near-black multi-column footer topped with the signature duo-strip.
   - .v-strip: Signature 3px gold horizontal accent rule.
   - .v-strip--red: Signature 3px red horizontal accent rule.
   - .v-strip--duo: Double accent rule with 3px gold over 3px red separated by a 2px gap.
   ============================================================ */