* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --graphite: #211f1d;
  --cream: #f4eee3;
  --paper: #fbf8f2;
  --ink: #24211e;
  --muted: #71695f;
  --line: #b8aa98;
  --max: 1120px;
}
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Times New Roman", Times, serif; }
a { color: inherit; }
.site-header { background: var(--graphite); color: var(--cream); min-height: 190px; padding: 22px 5vw 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.brand { display: block; width: min(560px, 72vw); line-height: 0; }
.brand img { width: 100%; height: auto; display: block; }
.main-nav { display: flex; gap: clamp(22px, 5vw, 64px); margin-top: 18px; }
.main-nav a { color: var(--cream); text-decoration: none; font-size: 17px; letter-spacing: .02em; }
.main-nav a:hover, .main-nav a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; }
.section { padding: clamp(68px, 9vw, 124px) 24px; }
.hero { min-height: 570px; display: grid; place-items: center; background: var(--cream); }
.hero-inner { width: min(100%, 900px); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--muted); margin: 0 0 22px; }
.hero h1 { font-size: clamp(42px, 7vw, 82px); line-height: 1.02; font-weight: 400; max-width: 850px; margin: 0 0 24px; }
.quote-original { font-size: clamp(19px, 2.2vw, 26px); font-style: italic; color: #655d54; margin: 0; }
.rule { width: 68px; height: 1px; background: var(--ink); margin: 34px 0 18px; }
.quote-author { font-size: 14px; text-transform: uppercase; letter-spacing: .2em; margin: 0 0 5px; }
.quote-note { font-size: 14px; font-style: italic; color: var(--muted); margin: 0; }
.practice { background: #fffdf9; }
.section-heading { max-width: var(--max); margin: 0 auto 46px; }
.section-heading h2 { font-size: clamp(36px, 5vw, 58px); font-weight: 400; margin: 0 0 18px; }
.section-heading > p:last-child { max-width: 720px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.accordion { max-width: var(--max); margin: 0 auto 34px; border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item h3 { margin: 0; }
.accordion-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 4px; background: none; border: 0; color: var(--ink); text-align: left; font: 700 clamp(20px, 2.5vw, 27px) "Times New Roman", Times, serif; cursor: pointer; }
.chevron { width: 12px; height: 12px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); transition: transform .2s; flex: 0 0 auto; margin-right: 7px; }
.accordion-trigger[aria-expanded="true"] .chevron { transform: rotate(225deg); }
.accordion-panel { max-width: 850px; padding: 0 44px 26px 4px; font-size: 20px; line-height: 1.55; }
.accordion-panel p { margin: 0; }
.outline-link { display: inline-block; margin-left: max(calc((100% - var(--max))/2), 24px); border: 1px solid var(--ink); padding: 12px 22px; text-decoration: none; font-size: 18px; }
.outline-link:hover { background: var(--graphite); color: var(--cream); }
.history { background: var(--cream); }
.history-copy { max-width: var(--max); margin: 0 auto; columns: 2; column-gap: 56px; font-size: 20px; line-height: 1.6; }
.history-copy p { margin: 0 0 18px; break-inside: avoid; }
.historical-figure { max-width: 520px; margin: 56px auto 20px; }
.historical-figure img { display: block; width: 100%; max-height: 620px; object-fit: cover; object-position: center 25%; filter: sepia(.15); }
.historical-figure figcaption, .replace-note { color: var(--muted); font-size: 13px; line-height: 1.45; }
.family-line { max-width: var(--max); margin: 58px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.family-line div { display: flex; flex-direction: column; gap: 9px; }
.family-line span, .contact-details span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.family-line strong { font-size: 19px; font-weight: 400; }
.replace-note { max-width: var(--max); margin: 24px auto 0; }
.contact { background: #fffdf9; }
.contact-details { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.contact-details p { margin: 0; padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 20px; overflow-wrap: anywhere; }
.contact-details a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-footer { background: var(--graphite); color: var(--cream); padding: 34px 24px; text-align: center; font-size: 14px; }
.site-footer img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 10px; }
.site-footer p { margin: 0 0 12px; }
.site-footer a { color: var(--cream); }
:focus-visible { outline: 2px solid #9a7952; outline-offset: 4px; }
@media (max-width: 700px) {
  .site-header { min-height: 126px; padding: 14px 18px; }
  .brand { width: min(340px, 68vw); margin: 0 auto; }
  .hero { min-height: 490px; }
  .history-copy { columns: 1; }
  .family-line { grid-template-columns: 1fr; gap: 18px; }
  .contact-details { grid-template-columns: 1fr; }
  .outline-link { margin-left: 24px; }
}


/* Barra compacta independente: não altera a altura do cabeçalho original. */
.compact-header {
  display: none;
}

@media (max-width: 700px) {
  /* A navegação do cabeçalho inicial não é usada no celular. */
  .site-header .main-nav,
  .site-header .menu-toggle {
    display: none;
  }

  .compact-header {
    display: flex;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    background: var(--graphite);
    color: var(--cream);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -100%, 0);
    -webkit-transform: translate3d(0, -100%, 0);
    transition: transform 180ms ease, opacity 180ms ease, visibility 180ms;
  }

  .compact-header.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }

  .compact-brand {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    line-height: 0;
  }

  .compact-brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .compact-title {
    display: block;
    max-width: calc(100% - 120px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 17px;
    text-align: center;
  }

  .compact-header .menu-toggle {
    display: flex;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 8px 4px;
    border: 0;
    background: none;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
  }

  .compact-header .menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--cream);
  }

  .compact-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
    margin: 0;
    padding: 18px 24px 24px;
    background: var(--graphite);
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .compact-nav.is-open {
    display: flex;
  }

  .compact-nav a {
    color: var(--cream);
    text-decoration: none;
    font-size: 18px;
  }

  .compact-nav a:hover,
  .compact-nav a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .compact-header {
    transition: none;
  }
}
