:root {
  --navy: #102440;
  --paper: #fbf8f2;
  --muted: #535966;
  --border: #dbd2c4;
  --gold: #96702f;
}

body { background: var(--paper); }
.header {
  height: 88px;
  padding-inline: clamp(20px, 5vw, 74px);
  background: var(--paper);
}
.header .brand { letter-spacing: -.055em; }
.button { border-radius: 8px; }
.button:focus-visible, .hero-secondary:focus-visible, .service-tabs button:focus-visible {
  outline: 3px solid #9a6628;
  outline-offset: 4px;
}
.eyebrow { font-size: .875rem; letter-spacing: .09em; }

.hero {
  width: calc(100% - 2 * clamp(16px, 4vw, 64px));
  max-width: 1472px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: #102440;
  color: #fdf8ee;
}
.hero-copy { padding: clamp(24px, 4.3vw, 66px); }
.hero-copy .eyebrow { color: #e9c994; margin-bottom: 18px; }
.hero-copy h1 {
  color: inherit;
  font-size: clamp(2.2rem, 4.3vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.hero-copy h1 em { color: #e9c994; font-weight: 400; }
.hero-copy > p:not(.eyebrow) {
  color: #e3e9f0;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  font-weight: 400;
  max-width: 42ch;
  margin: 24px 0;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.hero-copy .button { background: #e9c994; color: #102440; border-color: #e9c994; }
.hero-copy .button:hover { background: #f4deb8; }
.hero-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #fdf8ee;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: .3em;
}
.hero .hero-photo {
  width: auto;
  height: auto;
  min-height: 340px;
  margin: 18px 18px 18px 0;
  border-radius: 14px;
  background-position: 52% 46%;
}
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: auto;
  padding: 0;
  background: #eee4d4;
  color: var(--navy);
}
.hero-features > a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
}
.hero-features > a + a { border-left: 1px solid #cfc1ad; }
.hero-features > a:hover { background: #e4d6c0; }
.hero-features > a:focus-visible { outline: 2px solid var(--navy); outline-offset: -4px; }
.hero-features img { width: 26px; height: 26px; }
.section h2 {
  max-width: 24ch;
  font-size: clamp(1.8rem, 3.3vw, 2.625rem);
  line-height: 1.14;
  text-wrap: balance;
}
.section h3 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.22; }
.section-head > p { font-size: 1rem; }
.arrow-icon { width: 1.125rem; height: 1.125rem; flex-basis: 1.125rem; }
.about-photo { height: clamp(260px, 34vw, 410px); }

.service-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border: 0; margin-bottom: 12px; }
.service-tabs button {
  min-width: 0;
  min-height: 52px;
  padding: 12px 16px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffdf9;
}
.service-tabs button[aria-selected="true"] {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}
.services .service-panel {
  gap: clamp(24px, 5vw, 68px);
  min-height: 0;
  padding: clamp(22px, 4vw, 52px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f1e8db;
}
.services .service-panel h3 { font-size: clamp(1.55rem, 2.5vw, 2.125rem); }
.service-panel li, .steps p { font-size: 1rem; }
.steps { gap: clamp(18px, 3vw, 36px); }
.steps article, .offer-card, .articles > article {
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffdf9;
}
.offer-card:first-child { border-top: 3px solid var(--gold); }
.offer-price strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.insights { border-radius: 20px; }
.articles > article { display: flex; flex-direction: column; min-width: 0; }
.articles .eyebrow { font-size: .875rem; }
.articles h3 { max-width: none; font-size: clamp(1.35rem, 2.1vw, 1.65rem); }
.articles .text-link { align-self: flex-start; margin-top: auto; min-height: 44px; }
.article-art { height: auto; aspect-ratio: 20 / 9; border-radius: 8px; }
.article-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.contact { gap: clamp(24px, 5vw, 70px); align-items: start; }
#contact-form {
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fffdf9;
}
#contact-form label, #contact-form :is(input,select,textarea), .demo-note p { font-size: 1rem; }
#contact-form :is(input,select,textarea) { border-radius: 7px; }

@media (max-width: 800px) {
  .header { height: 72px; }
  .header nav { top: 72px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .hero-photo {
    min-height: 0;
    height: clamp(220px, 53vw, 360px);
    margin: 0 16px 16px;
  }
  .services .service-panel, .contact { grid-template-columns: minmax(0, 1fr); }
  .articles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .hero-features, .service-tabs { grid-template-columns: minmax(0, 1fr); }
  .hero-features > a { min-height: 48px; justify-content: flex-start; padding-inline: 24px; }
  .hero-features > a + a { border-left: 0; border-top: 1px solid #cfc1ad; }
  .steps, .form-row { grid-template-columns: minmax(0, 1fr); }
}

.baptista-demo-contact {
  --demo-contact-bg: #fbf8f2;
  --demo-contact-text: #102440;
  --demo-contact-muted: #535966;
  --demo-contact-accent: #102440;
  --demo-contact-on-accent: #ffffff;
  --demo-contact-border: #c3b397;
  --demo-contact-heading: "Cormorant Garamond", Georgia, serif;
}
