:root {
  --ink: #172033;
  --text: #304156;
  --muted: #657184;
  --line: #dce3df;
  --paper: #f5f7f4;
  --white: #ffffff;
  --navy: #123c54;
  --teal: #0f6b68;
  --wine: #7a2f40;
  --gold: #c4964a;
  --shadow: 0 20px 60px rgba(20, 32, 46, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: rgba(248, 250, 247, 0.9);
  border-bottom: 1px solid rgba(220, 227, 223, 0.78);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(18, 60, 84, 0.12);
}

.brand,
.nav {
  align-items: center;
  display: flex;
}

.brand {
  color: var(--ink);
  font-weight: 750;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: var(--wine);
  color: var(--white);
  display: inline-flex;
  font-size: 0.85rem;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  width: 34px;
}

.nav {
  color: var(--ink);
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav a {
  opacity: 0.82;
}

.nav a:hover,
.nav a:focus {
  opacity: 1;
}

.nav-cta {
  border: 1px solid var(--wine);
  color: var(--wine);
  padding: 9px 13px;
}

.hero {
  color: var(--white);
  min-height: 82svh;
  overflow: hidden;
  padding: 126px clamp(18px, 5vw, 72px) 70px;
  position: relative;
}

.hero-media,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-media {
  background-image: url("assets/hero-biblioteca.jpg");
  background-position: 46% 45%;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 24, 32, 0.92), rgba(12, 45, 59, 0.72) 45%, rgba(20, 48, 55, 0.14)),
    linear-gradient(0deg, rgba(7, 18, 24, 0.5), rgba(7, 18, 24, 0.08));
}

.hero-inner {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 15px;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--wine);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
}

.hero h1 {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 7vw, 6.6rem);
  font-weight: 700;
  margin-bottom: 22px;
  max-width: 920px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  margin-bottom: 32px;
  max-width: 760px;
}

.hero-actions,
.button {
  align-items: center;
  display: flex;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: #1a2230;
}

.button-primary:hover,
.button-primary:focus {
  background: #d6a957;
  box-shadow: 0 14px 32px rgba(196, 150, 74, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: var(--white);
}

.snapshot {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.snapshot article {
  border-left: 1px solid var(--line);
  padding: 26px clamp(18px, 2.4vw, 32px);
}

.snapshot article:last-child {
  border-right: 1px solid var(--line);
}

.snapshot span {
  color: var(--wine);
  display: block;
  font-size: 0.75rem;
  font-weight: 850;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.snapshot strong {
  color: var(--ink);
  display: block;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.25;
}

.section {
  padding: clamp(68px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.section-grid,
.section-heading,
.impact-grid,
.program-list,
.instructor-layout,
.reference-grid,
.cta-band,
.workshop {
  margin: 0 auto;
  max-width: 1180px;
}

.section-grid {
  display: grid;
  gap: clamp(32px, 7vw, 96px);
  grid-template-columns: 0.9fr 1.1fr;
}

.section h2,
.cta-band h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  margin-bottom: 22px;
}

.lead-stack {
  color: var(--text);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
}

.lead-stack p:last-child,
.workshop-content p:last-child,
.instructor-copy p:last-child {
  margin-bottom: 0;
}

.muted {
  background: #eef4f1;
}

.section-heading {
  margin-bottom: clamp(30px, 5vw, 56px);
  max-width: 880px;
}

.audience-grid,
.impact-grid,
.reference-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.audience-grid article,
.reference-grid article,
.impact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(32, 50, 60, 0.06);
}

.audience-grid article,
.reference-grid article {
  color: var(--ink);
  font-weight: 750;
  min-height: 92px;
  padding: 22px;
}

.impact {
  background: var(--white);
}

.impact-card {
  min-height: 286px;
  padding: 26px;
}

.impact-card span {
  color: var(--teal);
  display: inline-block;
  font-weight: 850;
  margin-bottom: 42px;
}

.impact-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.impact-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.program {
  background: #f7f8f5;
}

.program-list {
  display: grid;
  gap: 12px;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(32, 50, 60, 0.05);
  overflow: hidden;
}

summary {
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  font-weight: 800;
  gap: 10px;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  list-style: none;
  padding: 24px 26px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  color: var(--teal);
  content: "+";
  font-size: 1.45rem;
  grid-column: 3;
  justify-self: end;
}

details[open] summary::after {
  content: "−";
}

summary span {
  color: var(--wine);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.details-body {
  border-top: 1px solid var(--line);
  color: var(--text);
  padding: 0 26px 26px 138px;
}

.details-body p {
  max-width: 860px;
}

.details-body ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.workshop {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 76px);
  grid-template-columns: 0.82fr 1.18fr;
}

.workshop-photo {
  aspect-ratio: 4 / 5;
  background: #dfe8e4;
  overflow: hidden;
}

.workshop-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  width: 100%;
}

.workshop-content p {
  font-size: 1.08rem;
}

.method-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.method-grid span {
  background: #e8f0ee;
  border-left: 4px solid var(--teal);
  color: var(--ink);
  font-weight: 780;
  padding: 16px;
}

.instructor {
  background: var(--white);
}

.instructor-layout {
  align-items: center;
  display: grid;
  gap: clamp(32px, 6vw, 84px);
  grid-template-columns: 1.03fr 0.97fr;
}

.instructor-copy p {
  font-size: 1.02rem;
}

.portrait-stack {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.15fr 0.85fr;
}

.portrait-stack img {
  box-shadow: var(--shadow);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.portrait-main {
  aspect-ratio: 4 / 5;
  object-position: center 18%;
}

.portrait-small {
  align-self: end;
  aspect-ratio: 4 / 5.8;
  max-height: 520px;
  object-position: center 20%;
}

.references {
  background: #eef4f1;
}

.reference-grid article {
  min-height: 108px;
}

.cta-band {
  align-items: start;
  background:
    linear-gradient(135deg, rgba(18, 60, 84, 0.97), rgba(15, 107, 104, 0.9)),
    url("assets/instrutor-poltrona.jpg");
  background-position: center;
  background-size: cover;
  color: var(--white);
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: 0.88fr 1.12fr;
  max-width: none;
  padding: clamp(68px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.cta-copy {
  margin-left: auto;
  max-width: 520px;
}

.cta-copy h2,
.cta-copy p {
  color: var(--white);
}

.contact-form {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-right: auto;
  max-width: 680px;
  padding: clamp(22px, 4vw, 34px);
  width: 100%;
}

label {
  color: var(--ink);
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 8px;
}

input,
select,
textarea {
  background: #fbfcfb;
  border: 1px solid #cbd6d2;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 107, 104, 0.16);
}

.full {
  grid-column: 1 / -1;
}

.form-note {
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 750;
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.4em;
}

.footer {
  align-items: center;
  background: #111b24;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 24px clamp(18px, 5vw, 72px);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--gold);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    position: absolute;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 78svh;
    padding-top: 160px;
  }

  .snapshot-grid,
  .section-grid,
  .audience-grid,
  .impact-grid,
  .workshop,
  .instructor-layout,
  .reference-grid,
  .cta-band {
    grid-template-columns: 1fr 1fr;
  }

  .section-grid,
  .workshop,
  .instructor-layout,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-copy,
  .contact-form {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .brand {
    font-size: 0.95rem;
  }

  .nav {
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding-bottom: 58px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10, 24, 32, 0.92), rgba(12, 45, 59, 0.7)),
      linear-gradient(0deg, rgba(7, 18, 24, 0.48), rgba(7, 18, 24, 0.1));
  }

  .snapshot-grid,
  .audience-grid,
  .impact-grid,
  .reference-grid,
  .method-grid,
  .contact-form,
  .portrait-stack {
    grid-template-columns: 1fr;
  }

  .snapshot article,
  .snapshot article:last-child {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  summary {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  summary::after {
    grid-column: 1;
    justify-self: start;
  }

  .details-body {
    padding: 0 20px 22px;
  }

  .cta-band {
    padding-bottom: 64px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
