/* ==================================================
   Casa de SAM — Base Styles + Components
   ================================================== */

/* ---------- Brand Palette ---------- */
:root{
  --sam-earth: #C8643B;
  --sam-leaf:  #7FB77E;
  --sam-maize: #F2C94C;
  --sam-paper: #FAF7F2;
  --sam-olive: #4F6F52;

  --sam-ink:   #1F2328;
  --sam-mute:  #5A646E;
  --sam-line:  rgba(31,35,40,0.12);
}

/* ---------- Global Reset ---------- */
*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--sam-paper);
  color: var(--sam-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

/* ---------- Layout ---------- */
.sam-section{
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* ---------- Typography ---------- */
.sam-kicker{
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--sam-olive);
  margin-bottom: 12px;
}

h1, h2, h3{
  color: var(--sam-earth);
  font-weight: 600;
  line-height: 1.25;
}

p{ margin: 0 0 1.25em; }

/* ---------- Dividers ---------- */
.sam-divider{
  width: 48px;
  height: 2px;
  background: var(--sam-earth);
  margin: 32px 0;
}

/* ---------- Cards ---------- */
.sam-card{
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--sam-line);
  border-radius: 18px;
  padding: 28px;
}

/* ---------- Callouts ---------- */
.sam-callout{
  border-left: 4px solid var(--sam-leaf);
  padding: 20px 24px;
  background: rgba(127,183,126,0.08);
  border-radius: 12px;
}

/* ---------- Footer ---------- */
.sam-footer{
  background: rgba(79,111,82,0.08);
  border-top: 1px solid var(--sam-line);
  padding: 60px 20px;
  text-align: center;
  color: var(--sam-olive);
}

/* ---------- Scroll Reveal ---------- */
.reveal{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease-out,
              transform 0.9s ease-out;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.delay-1{ transition-delay: 0.12s; }
.delay-2{ transition-delay: 0.24s; }
.delay-3{ transition-delay: 0.36s; }

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==================================================
   Timeline Components
   ================================================== */

.sam-timeline{
  margin-top: 24px;
}

.sam-timeline-item{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--sam-line);
}

.sam-timeline-item:first-child{
  border-top: 0;
}

.sam-timeline-date{
  color: var(--sam-olive);
  font-weight: 600;
}

.sam-timeline-text{
  color: var(--sam-ink);
}

.sam-timeline-chip{
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid rgba(200,100,59,0.35);
  color: var(--sam-earth);
  background: rgba(200,100,59,0.06);
}

/* Mobile */
@media (max-width: 520px){
  .sam-timeline-item{
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ==================================================
   Navigation
   ================================================== */

.sam-nav{
  border-bottom: 1px solid var(--sam-line);
  background: var(--sam-paper);
}

.sam-nav-inner{
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.sam-brand{
  text-decoration: none;
  color: var(--sam-ink);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.sam-nav-links{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sam-nav-links a{
  text-decoration: none;
  color: var(--sam-olive);
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.sam-nav-links a:hover{
  border-color: rgba(79,111,82,0.25);
  background: rgba(79,111,82,0.06);
}

/* Mobile: keep it calm, wrap naturally */
@media (max-width: 640px){
  .sam-nav-inner{
    align-items: flex-start;
    flex-direction: column;
  }
  .sam-nav-links{
    justify-content: flex-start;
  }
}

/* ==================================================
   Nav: current page state
   ================================================== */
.sam-nav-links a.is-current{
  border-color: rgba(200,100,59,0.35);
  background: rgba(200,100,59,0.06);
  color: var(--sam-earth);
}

/* ==================================================
   Baseline Polish
   ================================================== */

a{
  color: var(--sam-earth);
  text-underline-offset: 3px;
}

a:hover{
  filter: brightness(0.96);
}

/* Comfortable reading */
.sam-section p:last-child{
  margin-bottom: 0;
}

/* Lists (for future cleanup from <br> lists) */
ul.sam-list{
  margin: 14px 0 0;
  padding-left: 18px;
}

ul.sam-list li{
  margin: 8px 0;
  color: var(--sam-ink);
}

/* Small “note” text */
.sam-note{
  color: var(--sam-mute);
  font-size: 0.95rem;
}
