@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root{
  /* --- color tokens --- */
  --ridge-dark:   #202E27;   /* deep pine-slate — primary dark ground */
  --ridge-mid:    #3C5245;   /* mid pine — panels on dark */
  --ridge-line:   #52705F;   /* contour line stroke on dark */
  --clay:         #A8462B;   /* brick/clay — primary action color */
  --clay-dark:    #8B3A23;   /* clay hover */
  --ochre:        #C08A2E;   /* warm ochre — secondary accent */
  --bone:         #EEEBE1;   /* warm bone background */
  --bone-panel:   #F7F5EE;   /* lighter panel on bone */
  --ink:          #1B1B17;   /* near-black text */
  --ink-soft:     #4A4A42;   /* secondary text */
  --line:         #DAD5C6;   /* hairline on bone */

  /* --- type tokens --- */
  --display: 'Fraunces', Georgia, serif;
  --body: 'Work Sans', -apple-system, Segoe UI, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 3px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p{ line-height: 1.65; margin: 0 0 1em; color: var(--ink-soft); }
.eyebrow{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-bottom: 1em;
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: var(--clay);
  display: inline-block;
}
.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}
:focus-visible{
  outline: 2.5px solid var(--ochre);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------------- buttons ---------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-clay{ background: var(--clay); color: #fff; }
.btn-clay:hover{ background: var(--clay-dark); }
.btn-ghost-dark{ background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost-dark:hover{ border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-ghost{ background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--bone); }
.btn-lg{ padding: 1.05em 2em; font-size: 1rem; }

/* ---------------- header / nav ---------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark{ width: 34px; height: 34px; flex: none; }
.brand-text{ font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.1; }
.brand-text small{
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--clay);
  text-transform: uppercase;
  margin-top: 3px;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover, .nav-links a.active{ color: var(--ink); border-color: var(--clay); }
.nav-cta{ display:flex; align-items:center; gap:16px; }
.nav-phone{
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span{ display:block; width:20px; height:2px; background:var(--ink); margin:4px 0; }

@media (max-width: 880px){
  .nav-links{
    position: absolute;
    top: 100%; left:0; right:0;
    background: var(--bone);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 28px 20px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ width:100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-phone{ display:none; }
  .nav-toggle{ display:block; }
}

/* ---------------- ridge line divider (signature element) ---------------- */
.ridge-divider{ display:block; width:100%; height:auto; }
.ridge-divider path{ vector-effect: non-scaling-stroke; }

/* ---------------- hero ---------------- */
.hero{
  position: relative;
  background: var(--ridge-dark);
  color: #fff;
  overflow: hidden;
  padding-top: 84px;
}
.hero-inner{
  position: relative;
  z-index: 2;
  padding-bottom: 120px;
  max-width: 660px;
}
.hero h1{
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #fff;
}
.hero .lede{
  color: rgba(255,255,255,0.78);
  font-size: 1.12rem;
  max-width: 520px;
}
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; margin-top: 30px; }
.hero-ridgeart{
  position: absolute;
  left:0; right:0; bottom:-2px;
  z-index: 1;
  line-height: 0;
}
.hero-stats{
  display:flex;
  gap: 42px;
  margin-top: 54px;
  flex-wrap: wrap;
}
.hero-stat b{
  display:block; font-family: var(--display); font-size: 1.5rem; color: var(--ochre);
}
.hero-stat span{
  display:block; font-family: var(--mono); font-size: 0.68rem; letter-spacing:0.08em; text-transform:uppercase; color: rgba(255,255,255,0.6); margin-top:4px;
}

/* ---------------- page hero (interior pages) ---------------- */
.page-hero{
  background: var(--ridge-dark);
  color: #fff;
  padding: 130px 0 70px;
  position: relative;
}
.page-hero h1{ color:#fff; font-size: clamp(2rem, 4vw, 2.8rem); max-width: 700px; }
.page-hero p{ color: rgba(255,255,255,0.75); max-width: 560px; font-size: 1.05rem; }

/* ---------------- sections ---------------- */
section{ padding: 90px 0; }
.section-tight{ padding: 60px 0; }
.section-bone-panel{ background: var(--bone-panel); }
.section-dark{ background: var(--ridge-dark); color:#fff; }
.section-dark h2{ color:#fff; }
.section-dark p{ color: rgba(255,255,255,0.72); }
.section-head{ max-width: 620px; margin-bottom: 50px; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* ---------------- grids / cards ---------------- */
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items:center; }
@media (max-width: 880px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; gap: 36px; }
}
.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.card .num{
  font-family: var(--mono);
  color: var(--clay);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.card h3{ font-size: 1.15rem; margin-top: 10px; }

/* ---------------- trail / process steps ---------------- */
.trail{ position: relative; }
.trail-line{
  position: absolute;
  left: 27px; top: 10px; bottom: 10px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--clay) 0 6px, transparent 6px 12px);
}
.trail-step{
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 26px;
  padding-bottom: 54px;
}
.trail-step:last-child{ padding-bottom: 0; }
.trail-marker{
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ridge-dark);
  color: var(--ochre);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--display); font-weight:700; font-size: 1.2rem;
  position: relative; z-index: 2;
  border: 3px solid var(--bone);
  box-shadow: 0 0 0 1px var(--line);
}
.trail-content h3{ font-size: 1.2rem; margin-bottom: 6px; }
.trail-content .tag{
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 8px; display:inline-block;
}

/* ---------------- stat / feature strips ---------------- */
.strip{
  display:flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip > div{
  flex: 1;
  padding: 30px 26px;
  border-left: 1px solid var(--line);
}
.strip > div:first-child{ border-left: none; }
.strip b{ display:block; font-family: var(--display); font-size: 1.6rem; }
.strip span{ font-size: 0.85rem; color: var(--ink-soft); }
@media (max-width: 700px){
  .strip{ flex-direction: column; }
  .strip > div{ border-left:none; border-top: 1px solid var(--line); }
  .strip > div:first-child{ border-top:none; }
}

/* ---------------- inventory note / model callout ---------------- */
.model-card{
  background: var(--bone-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
@media (max-width: 700px){ .model-card{ grid-template-columns: 1fr; } }

/* ---------------- CTA band ---------------- */
.cta-band{
  background: var(--clay);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-band h2{ color:#fff; margin-bottom: 0.3em; }
.cta-band p{ color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 30px; }
.cta-band .btn-ghost-dark{ border-color: rgba(255,255,255,0.55); }

/* ---------------- financing / apply page ---------------- */
.apply-panel{
  background: var(--ridge-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 54px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.apply-panel h2{ color:#fff; }
.apply-panel p{ color: rgba(255,255,255,0.75); }
.apply-code{
  font-family: var(--mono);
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.85rem;
  color: var(--ochre);
  word-break: break-all;
}
@media (max-width: 880px){ .apply-panel{ grid-template-columns: 1fr; padding: 34px; } }

.checklist{ list-style:none; margin:0; padding:0; }
.checklist li{
  display:flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 0.95rem; color: var(--ink-soft);
}
.checklist li:last-child{ border-bottom:none; }
.checklist svg{ flex:none; margin-top: 3px; }

/* ---------------- footer ---------------- */
.site-footer{
  background: var(--ridge-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 700px){ .footer-grid{ grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h4{
  color: #fff; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; font-weight: 500;
}
.footer-grid a{ text-decoration:none; color: rgba(255,255,255,0.7); }
.footer-grid a:hover{ color: #fff; }
.footer-grid p, .footer-grid div{ font-size: 0.9rem; margin-bottom: 8px; }
.footer-brand p{ max-width: 320px; color: rgba(255,255,255,0.6); }
.footer-bottom{
  padding-top: 24px;
  display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
}

/* ---------------- misc ---------------- */
.badge-row{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.badge{
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: 999px;
}
.badge-light{ border-color: var(--line); color: var(--ink-soft); }

/* Carousel Styles */
.carousel-container {
  width: 100%;
  margin: 20px 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #000;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-item {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.carousel-item.active {
  display: flex;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f9f9f9;
  gap: 12px;
}

.carousel-btn-prev,
.carousel-btn-next {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
  flex: none;
}

.carousel-btn-prev:hover,
.carousel-btn-next:hover {
  background: rgba(0, 0, 0, 0.9);
}

.carousel-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #333;
}

.dot:hover {
  background: #999;
}

.carousel-counter {
  font-size: 13px;
  color: #666;
  flex: none;
  white-space: nowrap;
}