/* =============================================================
   DUARTE & VEGA — Estudio Contable y Jurídico
   Archetype 09 — Newspaper Editorial (navy + gold palette override)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f3ec;   /* warm paper cream */
  --bg-2:      #ece5d2;
  --paper:     #ffffff;
  --ink:       #12192c;   /* navy-tinted near-black */
  --ink-soft:  #2a3348;
  --ink-mute:  #667088;
  --accent:    #b8902f;   /* muted gold */
  --accent-2:  #1c2b4a;   /* navy */
  --line:      #12192c;   /* hairlines, full strength */

  --display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --serif:   "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:    "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1180px;
  --max-article: 780px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--display); font-weight: 600; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 4px; font-family: var(--sans); font-weight: 600;
  font-size: .9rem; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent); z-index: 9998;
  transition: width .1s linear;
}

.hairline { border-top: 1px solid var(--line); }
.hairline-rule { border-top: 1px solid var(--line); margin-block: 0; }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

.byline-meta {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.deck {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-block: .9rem 1.8rem;
  line-height: 1.5;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: .3rem;
}

.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  border-radius: 2px;
  padding: .18rem .5rem;
  margin-bottom: .55rem;
}

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .85rem 1.6rem;
  border-radius: 2px;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .2s var(--ease-out);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }

/* Repeated mid-page call to action */
.cta-band {
  padding-block: clamp(1.5rem, 4vw, 2.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.cta-band-text {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
}
.cta-band .btn { flex-shrink: 0; }

/* Drop cap */
.dropcap {
  float: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: 5.2rem;
  line-height: .82;
  padding: .05em .07em 0 0;
  color: var(--accent-2);
}

/* Multi-column body */
.multi-column {
  column-count: 1;
  column-gap: 2.4rem;
  max-width: var(--max-article);
  font-size: 1.02rem;
  line-height: 1.7;
}
.multi-column p { margin-bottom: 1.1rem; }
@media (min-width: 720px) {
  .multi-column {
    column-count: 2;
    column-rule: 1px solid var(--line);
    max-width: none;
  }
}

/* Pull quotes */
.pull-quote {
  position: relative;
  max-width: 620px;
  margin: 2.4rem 0 2.6rem;
  padding-left: 1.6rem;
  border-left: 3px solid var(--accent);
}
.pull-quote p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.3;
  color: var(--ink);
  position: relative;
}
.pull-quote p::before {
  content: "\201C";
  font-family: var(--display);
  font-size: 3.2rem;
  color: var(--accent);
  position: absolute;
  left: -1.5rem;
  top: .3rem;
  line-height: 0;
  opacity: .7;
}
.pull-quote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-mute);
  margin-top: .8rem;
}
.pull-quote cite span { font-weight: 400; }

.pull-quote--card {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  padding: 1.6rem 1.6rem 1.5rem;
  margin: 0;
  height: 100%;
}
.pull-quote--card p { font-size: 1.15rem; }
.pull-quote--card p::before { left: -.1rem; top: -.4rem; font-size: 2.6rem; }

/* Placeholder images */
.placeholder-img {
  aspect-ratio: var(--ar, 4/5);
  width: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(18,25,44,.035) 18px 19px),
    linear-gradient(160deg, var(--accent-2) 0%, transparent 62%),
    var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.placeholder-img .mono {
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.8rem, 6vw, 3rem);
  letter-spacing: .02em;
  color: var(--paper);
  opacity: .82;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row label {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink-soft);
}
.form-row .optional { font-weight: 400; color: var(--ink-mute); }
.form-row input,
.form-row textarea {
  font-family: var(--sans);
  font-size: .95rem;
  padding: .75rem .85rem;
  background: var(--paper);
  border: 1px solid var(--ink-mute);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color .2s var(--ease-out);
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--accent-2); }
.form-submit { align-self: flex-start; margin-top: .3rem; }
.form-status {
  font-family: var(--sans);
  font-size: .85rem;
  min-height: 1.2em;
  color: var(--accent-2);
  font-weight: 600;
}
.form-status.is-error { color: #96201f; }

/* =============================================================
   6. Sections
   ============================================================= */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }

/* --- Masthead --- */
.masthead { background: var(--bg); padding-block: .1px; }
.masthead-inner { text-align: center; padding-block: 1.6rem 1.2rem; }
.masthead-issue {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .5rem;
}
.masthead-brand {
  font-size: clamp(2.2rem, 7vw, 4rem);
  letter-spacing: 0;
}
.masthead-brand .amp { font-style: italic; color: var(--accent); font-weight: 400; }
.masthead-sub {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--ink-mute);
  margin-top: .5rem;
}

.site-nav { display: flex; justify-content: center; padding-block: .7rem; }
.nav-toggle { width: 100%; }
.nav-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem 0;
  color: var(--ink);
}
.nav-toggle-btn::-webkit-details-marker { display: none; }
.nav-toggle-btn svg { transition: transform .25s var(--ease-out); }
.nav-toggle[open] .nav-toggle-btn svg { transform: rotate(90deg); }
.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  padding-top: .8rem;
}
.nav-list a {
  display: block;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  padding: .55rem 0;
  color: var(--ink-soft);
  transition: color .2s var(--ease-out);
}
.nav-list a:hover { color: var(--accent-2); }
.nav-list .nav-cta {
  margin-top: .4rem;
  font-weight: 700;
  color: var(--accent-2);
}

/* --- Hero --- */
.hero { padding-block: clamp(2.4rem, 6vw, 4rem) clamp(2.8rem, 6vw, 4.5rem); }
.hero-title {
  font-size: clamp(2.1rem, 5.6vw, 3.6rem);
  max-width: 16ch;
  margin-block: .6rem 1rem;
}
.hero-title em { font-style: italic; color: var(--accent-2); }
.hero-deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2.2rem;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
.hero-copy p {
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
  max-width: 52ch;
}

/* --- Services list --- */
.services-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.service-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ink-mute);
  line-height: 1;
}
.service-body h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.service-body p { max-width: 60ch; color: var(--ink-soft); }

/* --- Team --- */
.team-grid { display: grid; gap: 2.4rem; }
.team-card .team-portrait { margin-bottom: 1.1rem; }
.team-card h3 { font-size: 1.5rem; margin-top: .3rem; }
.team-role { font-family: var(--sans); font-size: .88rem; color: var(--accent-2); font-weight: 600; margin-bottom: .8rem; }
.team-bio { color: var(--ink-soft); margin-bottom: .8rem; }
.team-matricula { font-family: var(--sans); font-size: .74rem; color: var(--ink-mute); letter-spacing: .03em; }

/* --- Plans --- */
.plans-grid { display: grid; gap: 1.6rem; }
.plan-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.plan-card h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.plan-audience { font-family: var(--sans); font-size: .82rem; color: var(--ink-mute); margin-bottom: 1.2rem; }
.plan-price { font-family: var(--display); font-size: 1.7rem; color: var(--accent-2); }
.plan-price span { font-family: var(--sans); font-size: .8rem; font-weight: 500; color: var(--ink-mute); }
.plan-price-note { font-family: var(--sans); font-size: .7rem; color: var(--ink-mute); font-style: italic; margin-bottom: 1.2rem; }
.plan-includes { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.6rem; flex-grow: 1; }
.plan-includes li {
  font-size: .92rem;
  color: var(--ink-soft);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.45;
}
.plan-includes li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.plan-featured { border: 2px solid var(--accent-2); position: relative; }
.plan-badge {
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--paper);
  background: var(--accent-2);
  display: inline-block;
  padding: .25rem .6rem;
  margin-bottom: .8rem;
  align-self: flex-start;
}

/* --- Testimonials --- */
.testimonial-grid { display: grid; gap: 1.4rem; }

/* --- Contact --- */
.contact-grid { display: grid; gap: 2.6rem; }
.info-list { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 1.3rem; }
.info-list dt {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .3rem;
}
.info-list dd { font-size: .98rem; color: var(--ink-soft); }
.info-list dd a { color: var(--accent-2); font-weight: 600; }
.info-list dd a:hover { text-decoration: underline; }
.info-note { font-size: .84rem; color: var(--ink-mute); font-style: italic; }

/* --- Footer --- */
.site-footer { background: var(--bg-2); padding-block: 0; margin-top: clamp(2rem, 5vw, 3rem); }
.footer-inner {
  display: grid;
  gap: 2rem;
  padding-block: 2.6rem;
}
.footer-wordmark { font-size: 1.7rem; }
.footer-wordmark .amp { font-style: italic; color: var(--accent); font-weight: 400; }
.footer-brand .byline-meta { margin-top: .5rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a {
  font-family: var(--sans);
  font-size: .86rem;
  color: var(--ink-soft);
  transition: color .2s var(--ease-out);
}
.footer-nav a:hover { color: var(--accent-2); }
.footer-contact { font-family: var(--sans); font-size: .88rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: .5rem; }
.footer-contact a { color: var(--accent-2); font-weight: 600; }
.footer-legal { padding-block: 1.2rem; font-family: var(--sans); font-size: .74rem; color: var(--ink-mute); }

/* =============================================================
   7. Effects
   Archetype 09 deliberately avoids animation beyond reading
   progress (see reference/02-archetypes.md). The only scroll-tied
   effect is the top progress bar (.reading-progress, section 3).
   Everything else below is a plain, always-visible hover/focus
   transition — never opacity-gated, so content never depends on
   JS to appear.
   ============================================================= */

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .site-nav { justify-content: flex-end; padding-block: 0; position: absolute; top: 1.9rem; right: var(--gutter); }
  .masthead { position: relative; }
  .nav-toggle { width: auto; }
  .nav-toggle-btn { display: none; }
  .nav-toggle .nav-list {
    flex-direction: row;
    padding-top: 0;
    gap: 1.8rem;
  }
  .hero-grid { grid-template-columns: 1.2fr .8fr; gap: 3rem; }
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-featured { transform: translateY(-.6rem); }
  .contact-grid { grid-template-columns: 1.1fr .9fr; }
  .footer-inner { grid-template-columns: 1.1fr .9fr .9fr; }
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .service-item { grid-template-columns: 100px 1fr; }
  .hero-copy p { font-size: 1.08rem; }
}

@media (min-width: 1280px) {
  .multi-column { column-count: 3; }
  .dropcap { font-size: 6.4rem; }
}

/* =============================================================
   9. Reduced motion (only truly intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .reading-progress { transition: none; }
  /* Reveals stay — fades are functional, not intrusive; just shortened */
  .reveal { transition-duration: .01s; }
}
