:root {
  --bg: #090705;
  --bg-soft: #16110d;
  --paper: #120e0a;
  --paper-soft: #1a140f;
  --ink: #f4ead8;
  --ink-soft: #d2c2ab;
  --muted: #a9967b;
  --line: rgba(201, 160, 86, 0.22);
  --gold: #d2ad55;
  --gold-bright: #f4dc97;
  --gold-deep: #9b7428;
  --accent: #2b2118;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(8, 6, 5, 0.94), rgba(8, 6, 5, 0.98)),
    url("/public/images/bg_content.gif"),
    #070605;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--gold-bright);
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  background:
    linear-gradient(180deg, rgba(26, 20, 14, 0.98), rgba(13, 10, 8, 0.98)),
    url("/public/images/bg_top.gif") repeat-x top;
  border-bottom: 1px solid rgba(210, 173, 85, 0.16);
}

.topline {
  border-bottom: 1px solid rgba(210, 173, 85, 0.12);
  background: rgba(0, 0, 0, 0.32);
}

.topline-inner {
  padding: 0.45rem 0;
}

.topline p {
  margin: 0;
  color: var(--gold);
  text-align: center;
  font-size: 0.82rem;
}

.masthead {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0 1.15rem;
}

.brand-plaque {
  display: grid;
  align-content: center;
  gap: 0.2rem;
  min-height: 124px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--gold-bright);
  background:
    linear-gradient(135deg, rgba(49, 37, 24, 0.95), rgba(15, 11, 8, 0.95)),
    url("/public/images/bg_top.gif");
  border: 1px solid rgba(210, 173, 85, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 235, 180, 0.06);
}

.brand-plaque-big,
.brand-plaque-small,
.hero-title,
.content-section h2,
.panel h2,
.hero-display {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.brand-plaque-big {
  font-size: 4.1rem;
  letter-spacing: 0.08em;
  line-height: 0.88;
}

.brand-plaque-small {
  font-size: 1.28rem;
  letter-spacing: 0.34em;
}

.brand-copy-kicker {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand-copy-text {
  margin: 0;
  max-width: 55ch;
  color: var(--ink-soft);
  line-height: 1.7;
}

.masthead-quote {
  padding: 1rem 1rem 0.9rem;
  background:
    linear-gradient(180deg, rgba(17, 12, 9, 0.96), rgba(24, 18, 13, 0.96)),
    url("/public/images/quotbg.gif");
  border: 1px solid rgba(210, 173, 85, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 235, 180, 0.05);
}

.nav-band {
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.98), rgba(8, 6, 5, 0.98)),
    url("/public/images/bg_nav.jpg") repeat-x top;
  border-top: 1px solid rgba(210, 173, 85, 0.14);
  border-bottom: 1px solid rgba(210, 173, 85, 0.14);
}

.shell-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

.site-nav a {
  padding: 1rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-left: 1px solid rgba(210, 173, 85, 0.08);
}

.site-nav a:last-child {
  border-right: 1px solid rgba(210, 173, 85, 0.08);
}

.site-nav a.is-current,
.site-nav a:hover {
  color: var(--gold-bright);
  background: rgba(210, 173, 85, 0.08);
}

.site-main {
  padding-bottom: 4rem;
}

.hero {
  padding: 2rem 0 2rem;
}

.hero-stage {
  border: 1px solid rgba(210, 173, 85, 0.14);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(15, 11, 8, 0.98), rgba(8, 6, 5, 0.98));
}

.hero-image {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 7, 5, 0.3) 0%, rgba(10, 7, 5, 0.1) 36%, rgba(10, 7, 5, 0.78) 100%),
    linear-gradient(180deg, rgba(10, 7, 5, 0.08), rgba(10, 7, 5, 0.28));
}

.hero-image img {
  display: block;
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04) brightness(0.86);
}

.hero-overlay-copy {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  z-index: 1;
  max-width: 28rem;
}

.hero-display {
  margin: 0;
  color: #fff7e9;
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  line-height: 0.92;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.hero-display-sub {
  margin: 0.5rem 0 0;
  color: var(--gold-bright);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  line-height: 1.1;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
}

.hero-copy,
.content,
.panel {
  background:
    linear-gradient(180deg, rgba(15, 11, 8, 0.97), rgba(11, 8, 6, 0.97)),
    url("/public/images/bg_content.gif");
  border: 1px solid rgba(210, 173, 85, 0.14);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 1.5rem 1.7rem 1.7rem;
  border-top: 1px solid rgba(210, 173, 85, 0.12);
}

.kicker,
.panel-label {
  margin: 0 0 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 0.95;
  color: #fff7e9;
}

.hero-intro {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 64ch;
}

.highlight-list,
.content-list,
.related-list {
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
}

.highlight-list li,
.content-list li,
.related-list li {
  margin-bottom: 0.7rem;
  line-height: 1.6;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.75fr);
  gap: 1.5rem;
  align-items: start;
}

.content {
  padding: 2rem;
}

.content-section + .content-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.content-section h2,
.panel h2 {
  margin: 0 0 0.8rem;
  font-size: 1.7rem;
  color: var(--gold-bright);
}

.content p,
.faq-item p,
.panel p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  line-height: 1.82;
}

.breadcrumbs {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs span,
.breadcrumbs a {
  margin-right: 0.35rem;
}

.sidebar {
  display: grid;
  gap: 1rem;
}

.panel {
  padding: 1.4rem;
}

.quote-reference {
  margin: -0.35rem 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}

.quote-grid div {
  padding: 0.8rem;
  background: rgba(255, 244, 219, 0.03);
  border: 1px solid rgba(210, 173, 85, 0.14);
}

.quote-grid span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.quote-grid strong {
  font-size: 1.08rem;
  color: #fff2ca;
}

.quote-note,
.quote-time,
.quote-range,
.quote-fallback {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.button-link,
.calculator button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(135deg, #8f6925, #d6b25a);
  color: #1f1b17;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.calculator {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.calculator label {
  display: grid;
  gap: 0.45rem;
}

.calculator span {
  font-size: 0.92rem;
  color: var(--muted);
}

.calculator input,
.calculator select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: #1b1713;
  font: inherit;
}

.calculator-result {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem 1.1rem;
  background: rgba(210, 173, 85, 0.12);
  border: 1px solid rgba(210, 173, 85, 0.22);
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  background: rgba(255, 244, 219, 0.03);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff0c8;
}

.compare-table {
  display: grid;
  gap: 0.9rem;
}

.compare-table div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-left: 4px solid var(--gold);
  background: rgba(210, 173, 85, 0.08);
}

.site-footer {
  border-top: 1px solid rgba(210, 173, 85, 0.14);
  background: rgba(7, 6, 5, 0.96);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.whatsapp-bubble {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 30px rgba(13, 56, 29, 0.28);
}

.whatsapp-bubble svg {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
}

.whatsapp-bubble span {
  font-size: 0.95rem;
  font-weight: 700;
}

@media (max-width: 960px) {
  .masthead,
  .layout {
    grid-template-columns: 1fr;
  }

  .masthead {
    padding-bottom: 0.8rem;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 1.2rem;
  }

  .masthead {
    gap: 0.75rem;
  }

  .shell {
    width: min(100% - 1rem, 1120px);
  }

  .shell-header {
    justify-content: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .content,
  .hero-copy,
  .panel,
  .masthead-quote,
  .brand-plaque {
    padding: 1.25rem;
  }

  .masthead-quote {
    padding: 0.95rem;
  }

  .masthead-quote .quote-note,
  .masthead-quote .quote-range {
    display: none;
  }

  .quote-grid {
    gap: 0.5rem;
    margin: 0.7rem 0;
  }

  .quote-grid div {
    padding: 0.65rem;
  }

  .quote-grid strong {
    font-size: 1rem;
  }

  .quote-reference,
  .quote-time,
  .quote-fallback {
    font-size: 0.82rem;
  }

  .button-link,
  .calculator button {
    padding: 0.72rem 0.95rem;
  }

  .brand-plaque-big {
    font-size: 3rem;
  }

  .brand-plaque-small {
    font-size: 1rem;
    letter-spacing: 0.22em;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
  }

  .hero-image,
  .hero-image img {
    min-height: 270px;
  }

  .hero-overlay-copy {
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.1rem;
  }

  .calculator {
    grid-template-columns: 1fr;
  }

  .whatsapp-bubble {
    left: auto;
    right: 0.85rem;
    bottom: 0.85rem;
    width: 3.4rem;
    height: 3.4rem;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .whatsapp-bubble span {
    display: none;
  }

  .whatsapp-bubble svg {
    width: 1.65rem;
    height: 1.65rem;
  }
}
