/* Warm champagne, antique gold and bronze, sampled to complement the sunset artwork. */
:root {
  /* Keep the agreed light palette when the browser supports auto-dark opt-out. */
  color-scheme: only light;
  --deep-bronze: #5d3e24;
  --antique-gold: #aa7b3b;
  --champagne: #f3ddb4;
  --champagne-ink: #69491f;
  --ink: var(--champagne-ink);
  --navy: var(--deep-bronze);
  --bronze: #91612c;
  --gold: #bf9455;
  --paper: #fbf1df;
  --cream: #f1dfbf;
  --white: #fff7e8;
  --tint: #ebd4ae;
  --line: #d2b58c;
  --muted: var(--ink);
  accent-color: var(--antique-gold);
}
body, button, input, select, textarea { color: var(--ink); }
body { background: var(--paper); }
input::placeholder, textarea::placeholder { color: var(--ink); opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--antique-gold); }
:focus-visible { outline-color: var(--antique-gold); }
.site-header { background: var(--paper); border-color: var(--line); }
.preview-note { background: #e8d0a8; }
.nav, .mobile-action { background: var(--paper); }

.site-footer, .choice-card.dark, .cta-band, .calc-result, .skip,
.admin-tabs a[aria-current="page"], .crm-sidebar a[aria-current="page"] {
  --ink: var(--champagne);
  --bronze: var(--champagne);
  --muted: var(--champagne);
  color: var(--ink);
  background: linear-gradient(135deg, #70502d, #4a301b);
}
.footer-brand-link { --ink: var(--champagne-ink); background: var(--paper); }

/* One gold treatment across public pages, forms and the management screens. */
.btn, .btn.outline, .btn.light, .btn.dark, .cms-actions .btn:last-child,
.menu-toggle, .filter-btn, .filter-btn[aria-pressed="true"],
.crm-pager button, .crm-detail-tabs button, .crm-detail-tabs button[aria-pressed="true"],
.crm-priority, .crm-priority[aria-pressed="true"],
.crm-priority.overdue:not([aria-pressed="true"]),
.crm-priority.today:not([aria-pressed="true"]), .crm-close {
  --ink: #3e2815;
  background: linear-gradient(135deg, #e4c185, #c09550);
  border-color: #aa7b3b;
  color: var(--ink);
  box-shadow: inset 0 1px 0 #fff0cd80, 0 3px 10px #69491f12;
}
.btn:hover, .btn.outline:hover, .btn.light:hover, .btn.dark:hover,
.cms-actions .btn:last-child:hover, .menu-toggle:hover, .filter-btn:hover,
.crm-pager button:hover, .crm-detail-tabs button:hover, .crm-priority:hover,
.crm-priority.overdue:not([aria-pressed="true"]):hover,
.crm-priority.today:not([aria-pressed="true"]):hover, .crm-close:hover {
  background: linear-gradient(135deg, #efd39e, #d0a35e);
  border-color: #91612c;
}
.choice-card.dark .btn, .cta-band .btn, .calc-result .btn { border-color: #dfbd7f; }
.filter-btn[aria-pressed="true"], .crm-detail-tabs button[aria-pressed="true"],
.crm-priority[aria-pressed="true"] {
  border-color: #69491f;
  box-shadow: inset 0 0 0 1px #69491f;
}
.choice-radios input:checked + span,
.form-progress li[aria-current="step"] span, .form-progress li.is-complete span {
  --ink: #3e2815;
  background: #e4c185;
  border-color: #91612c;
  color: var(--ink);
}

/* The wordmark and signature form one compact, responsive brand lockup. */
html { scroll-padding-top: 150px; }
.header-inner { min-height: 126px; }
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 172px;
  height: auto;
  padding: 9px 0;
}
.brand img { width: 132px; height: 66px; }
.brand-signature {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .025em;
  text-align: center;
  color: var(--ink);
}
.brand-signature span { display: block; white-space: nowrap; }
.footer-brand-link {
  flex-direction: column;
  align-items: center;
  padding: 12px 19px 14px;
}
.footer-brand-link .brand-signature { font-size: 13px; margin-top: 8px; }
.contact-copy { top: 150px; }
@media (max-width: 950px) {
  html { scroll-padding-top: 132px; }
  .header-inner { min-height: 112px; }
  .brand { width: 154px; height: auto; padding: 8px 0; }
  .brand img { width: 112px; height: 56px; }
  .brand-signature { font-size: 12px; }
  .nav { top: 100%; }
  .contact-copy { position: static; }
}
@media (max-width: 650px) {
  .header-inner { min-height: 106px; }
  .brand { width: 150px; height: auto; }
  .brand img { width: 104px; height: 52px; }
  .nav { top: 100%; }
}

/* The photograph spans the entire opening block behind the copy. */
.hero {
  display: flex;
  align-items: center;
  min-height: clamp(610px, 52vw, 800px);
  padding: 0;
  background: #c49a60;
}
.hero .hero-image, .page-hero.has-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  z-index: -2;
}
/* Keep the four icon captions inside the homepage photograph's visible crop. */
.hero .hero-image { object-position: center 85%; }
.hero:after, .page-hero.has-photo:after {
  display: block;
  background: linear-gradient(90deg, rgba(249,225,184,.96) 0%, rgba(249,225,184,.90) 28%, rgba(249,225,184,.62) 44%, rgba(249,225,184,.12) 64%, transparent 78%);
}
.hero-copy { --ink: #533718; width: 46%; padding-block: 76px; }
.hero-copy h1 { color: #533718; }
.hero .hero-copy h1 {
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.16;
  max-width: 340px;
  margin-bottom: 72px;
}
.hero-title-line { display: block; white-space: nowrap; }
.hero-copy .actions {
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, 270px);
}
.hero-copy .actions .btn { width: 100%; justify-content: space-between; }
.hero { align-items: flex-start; }
.hero:after {
  background: linear-gradient(90deg, rgba(249,225,184,.95) 0%, rgba(249,225,184,.84) 18%, rgba(249,225,184,.38) 32%, rgba(249,225,184,.08) 50%, transparent 68%);
}
.hero-copy p:not(.eyebrow) { max-width: 430px; }
.hero .photo-caption { background: rgba(251,241,223,.91); color: #533718; }
.page-hero.has-photo { display: block; min-height: 450px; padding: 48px 0 65px; }
.page-hero.has-photo > img { object-position: center 58%; }
.page-hero.has-photo h1, .page-hero.has-photo .lead { max-width: 49%; }
.story-visual { height: auto; }
.story-visual img { width: 100%; height: auto; object-fit: contain; }
.story-visual .visual-caption { position: static; margin: 0; background: var(--paper); }
@media (max-width: 950px) {
  .hero-copy { width: 57%; }
  .hero:after, .page-hero.has-photo:after {
    background: linear-gradient(90deg, rgba(249,225,184,.97) 0%, rgba(249,225,184,.90) 35%, rgba(249,225,184,.45) 66%, rgba(249,225,184,.04));
  }
  .page-hero.has-photo h1, .page-hero.has-photo .lead { max-width: 64%; }
  .hero:after {
    background: linear-gradient(90deg, rgba(249,225,184,.96) 0%, rgba(249,225,184,.86) 22%, rgba(249,225,184,.36) 44%, rgba(249,225,184,.04) 68%, transparent);
  }
}
@media (max-width: 650px) {
  .hero { display: block; min-height: 760px; padding: 0; }
  .hero-copy { width: 100%; padding: 42px 0 290px; }
  .hero .hero-copy h1 { margin-bottom: 28px; }
  .hero .hero-image { inset: 0; width: 100%; height: 100%; object-position: 52% 85%; }
  .hero:after, .page-hero.has-photo:after {
    background: linear-gradient(180deg, rgba(249,225,184,.98) 0%, rgba(249,225,184,.94) 32%, rgba(249,225,184,.72) 52%, rgba(249,225,184,.08) 78%);
  }
  .hero .photo-caption { right: 12px; bottom: 12px; }
  .page-hero.has-photo { min-height: 620px; padding: 28px 0 240px; }
  .page-hero.has-photo h1, .page-hero.has-photo .lead { max-width: 100%; }
  .page-hero.has-photo > img { inset: 0; height: 100%; object-position: 63% center; }
}

/* The page hero contains the complete Elyra Lease wordmark in the photo.
   Give the artwork its own space so no viewport crops or covers the name. */
.page-hero.has-photo.full-brand-photo {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  min-height: 0;
  padding: 0;
}
.page-hero.has-photo.full-brand-photo > img {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  z-index: auto;
}
.page-hero.has-photo.full-brand-photo::after { display: none; }
.page-hero.has-photo.full-brand-photo > .container {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  margin: 0;
  padding: clamp(28px, 4vw, 76px);
}
.page-hero.has-photo.full-brand-photo h1,
.page-hero.has-photo.full-brand-photo .lead { max-width: 100%; }
.page-hero.has-photo.full-brand-photo h1 { font-size: clamp(39px, 4.3vw, 63px); }
@media (max-width: 950px) {
  .page-hero.has-photo.full-brand-photo { grid-template-columns: minmax(0, 1fr); }
  .page-hero.has-photo.full-brand-photo > .container { padding: 32px 28px; }
  .page-hero.has-photo.full-brand-photo > img { grid-column: 1; grid-row: 2; }
}
