/* ==========================================================================
   Savant — the dark page.

   Kept in its own stylesheet rather than appended to cameras.css because the
   .cx/.px component set assumes a light field, and inheriting it here means
   fighting a white background on every block. Nothing in this file is shared;
   every selector is namespaced under .sv.

   The champagne accent is taken from Savant's brass keypad finishes, not
   picked as a generic "luxury gold" — it should read as the metal in the
   photography, which is why it sits between the brass bezel and the lamplight.
   ========================================================================== */

.sv {
  --sv-ink:    #0A0A0B;  /* page ground */
  --sv-raise:  #131316;  /* raised panels, cards */
  --sv-line:   #26262B;  /* hairlines */
  --sv-text:   #F2EFE9;  /* warm off-white */
  --sv-soft:   #9C978E;  /* body copy */
  --sv-gold:   #C6A268;  /* champagne, from the keypad bezel */
  --sv-gold-d: #A8874F;

  background: var(--sv-ink);
  color: var(--sv-text);
}

/* the theme's global rules assume a light field — reassert inside .sv */
.sv h1, .sv h2, .sv h3 { color: var(--sv-text); }
.sv p { color: var(--sv-soft); }
.sv strong { color: var(--sv-text); font-weight: 700; }
.sv a { color: var(--sv-gold); }
.sv a:hover { color: var(--sv-text); }

.sv-eyebrow {
  font: 700 11.5px/1.4 var(--sans);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--sv-gold) !important;
  margin: 0 0 18px;
}
.sv-eyebrow.center { text-align: center; }

/* ---------- hero ---------- */
.sv-hero { position: relative; overflow: hidden; isolation: isolate; }
.sv-hero-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: 50% 46%;
}
.sv-hero-photo::before {
  content: ''; position: absolute; inset: 0;
  /* two scrims: one from the left so the headline never has to compete with
     a pendant or a bright window, one from the bottom to seat the copy */
  background:
    linear-gradient(100deg, rgba(10,10,11,.90) 0%, rgba(10,10,11,.70) 30%, rgba(10,10,11,.22) 62%, rgba(10,10,11,.04) 100%),
    linear-gradient(to top, rgba(10,10,11,.94) 0%, rgba(10,10,11,.40) 32%, rgba(10,10,11,.06) 62%, rgba(10,10,11,.38) 100%);
}
.sv-hero-inner {
  position: relative; z-index: 2;
  min-height: min(82vh, 900px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 132px; padding-bottom: 84px;
}
.sv-hero-mark { width: 168px; height: auto; margin: 0 0 30px; opacity: .96; }
.sv-hero h1 {
  font: 300 clamp(44px, 6.4vw, 88px)/1.02 var(--sans);
  letter-spacing: -.025em; margin: 0 0 24px; text-wrap: balance;
}
.sv-hero h1 em { font-style: normal; color: var(--sv-gold); }
.sv-hero-sub {
  max-width: 616px; font-size: 17px; line-height: 1.72;
  color: #CFCAC1 !important; margin: 0 0 34px;
}
.sv-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- pills ---------- */
.sv-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  background: var(--sv-gold); color: #16120B !important;
  font: 700 14.5px/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; border: 1px solid var(--sv-gold);
  transition: background .25s, border-color .25s, transform .25s;
}
.sv-pill:hover { background: var(--sv-gold-d); border-color: var(--sv-gold-d); color: #16120B !important; transform: translateY(-2px); }
.sv-pill span { transition: transform .25s; }
.sv-pill:hover span { transform: translateX(3px); }
.sv-pill-ghost {
  background: transparent; color: var(--sv-text) !important;
  border-color: rgba(242,239,233,.34);
}
.sv-pill-ghost:hover { background: rgba(242,239,233,.07); border-color: var(--sv-text); color: var(--sv-text) !important; }

/* ---------- subnav ---------- */
.sv-subnav { border-bottom: 1px solid var(--sv-line); background: var(--sv-ink); }
.sv-subnav-row { display: flex; flex-wrap: wrap; gap: 30px; padding-top: 20px; padding-bottom: 20px; }
.sv-subnav-row a {
  font: 600 13.5px/1 var(--sans); letter-spacing: .04em;
  color: var(--sv-soft) !important; text-decoration: none;
  padding-bottom: 4px; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.sv-subnav-row a:hover { color: var(--sv-text) !important; border-color: var(--sv-gold); }

/* ---------- statement ---------- */
.sv-statement { padding: 104px 0 96px; border-bottom: 1px solid var(--sv-line); }
.sv-lede {
  max-width: 880px;
  font: 300 clamp(22px, 2.5vw, 31px)/1.48 var(--sans);
  letter-spacing: -.012em; color: var(--sv-text) !important; margin: 0 0 26px;
}
.sv-lede strong { font-weight: 600; color: var(--sv-text); }
.sv-lede-sub { max-width: 700px; font-size: 16px; line-height: 1.76; margin: 0; }

/* ---------- alternating rows ---------- */
.sv-row { padding: 104px 0; border-bottom: 1px solid var(--sv-line); }
.sv-row-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 74px; align-items: center;
}
.sv-row-fig { margin: 0; }
.sv-row-fig img {
  width: 100%; height: auto; display: block;
  border-radius: 4px; border: 1px solid var(--sv-line);
}
/* the figure is first in the DOM on every row; flip moves it to the right
   visually only, so reading order stays identical row to row */
.sv-row-flip .sv-row-fig { order: 2; }

.sv-row-copy h2 {
  font: 300 clamp(30px, 3.4vw, 44px)/1.12 var(--sans);
  letter-spacing: -.02em; margin: 0 0 22px; text-wrap: balance;
}
.sv-row-copy > p { font-size: 16px; line-height: 1.78; margin: 0 0 24px; }

.sv-list { list-style: none; margin: 0 0 26px; padding: 0; }
.sv-list li {
  position: relative; padding-left: 26px; margin-bottom: 13px;
  font-size: 15.5px; line-height: 1.7; color: var(--sv-soft);
}
.sv-list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 11px; height: 1px; background: var(--sv-gold);
}
.sv-note {
  font-size: 14.5px; line-height: 1.72; color: var(--sv-soft);
  border-left: 1px solid var(--sv-line); padding: 4px 0 4px 20px; margin: 0;
}

/* ---------- systems grid ---------- */
.sv-systems { padding: 104px 0; border-bottom: 1px solid var(--sv-line); }
.sv-h2 {
  font: 300 clamp(30px, 3.4vw, 46px)/1.1 var(--sans);
  letter-spacing: -.02em; text-align: center; margin: 0 0 18px;
}
.sv-h2-left { text-align: left; }
.sv-sub {
  max-width: 640px; margin: 0 auto 52px; text-align: center;
  font-size: 16px; line-height: 1.74;
}
.sv-sys-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--sv-line); border: 1px solid var(--sv-line); }
.sv-sys {
  display: block; text-decoration: none; background: var(--sv-ink);
  padding: 30px 26px 32px; transition: background .25s;
}
.sv-sys:hover { background: var(--sv-raise); }
.sv-sys h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 9px; letter-spacing: -.005em; }
.sv-sys:hover h3 { color: var(--sv-gold); }
.sv-sys p { font-size: 14px; line-height: 1.68; margin: 0; }

/* ---------- dealer ---------- */
.sv-dealer { padding: 104px 0; }
.sv-dealer-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 74px; }
.sv-dealer-lede { font-size: 16.5px; line-height: 1.76; margin: 0; }
.sv-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.sv-steps li {
  position: relative; padding: 0 0 30px 66px; margin: 0 0 30px;
  border-bottom: 1px solid var(--sv-line);
}
.sv-steps li:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.sv-step-n {
  position: absolute; left: 0; top: 1px;
  font: 300 22px/1 var(--sans); color: var(--sv-gold);
  letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.sv-steps h3 { font-size: 18px; font-weight: 700; margin: 0 0 9px; }
.sv-steps p { font-size: 15px; line-height: 1.74; margin: 0; }

/* ---------- cta ---------- */
.sv-cta { padding: 104px 0 112px; border-top: 1px solid var(--sv-line); text-align: center; }
.sv-cta h2 {
  font: 300 clamp(32px, 4vw, 54px)/1.08 var(--sans);
  letter-spacing: -.022em; margin: 0 0 20px;
}
.sv-cta h2 em { font-style: normal; color: var(--sv-gold); }
.sv-cta p { max-width: 592px; margin: 0 auto 32px; font-size: 16px; line-height: 1.76; }
.sv-cta small { display: block; margin-top: 18px; font-size: 13px; color: var(--sv-soft); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .sv-sys-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sv-row-grid, .sv-dealer-grid { grid-template-columns: 1fr; gap: 40px; }
  /* order:2 would drop the image below the copy on flipped rows only,
     which reads as inconsistent once stacked — reset it */
  .sv-row-flip .sv-row-fig { order: 0; }
  .sv-row, .sv-systems, .sv-dealer, .sv-statement { padding: 66px 0; }
  .sv-cta { padding: 66px 0 74px; }
  .sv-hero-inner { min-height: min(74vh, 760px); padding-top: 104px; padding-bottom: 62px; }
}
@media (max-width: 560px) {
  .sv-sys-grid { grid-template-columns: 1fr; }
  .sv-subnav-row { gap: 18px 22px; }
  .sv-hero-mark { width: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-pill, .sv-pill span, .sv-sys { transition: none; }
  .sv-pill:hover { transform: none; }
}
