/* ==========================================================================
   Rockhouse Colorado — Shared Stylesheet
   Property Management & Property Services
   ========================================================================== */

/* ---- Design Tokens ---- */
:root {
  /* Palette — Colorado stone, sandstone, evergreen */
  --stone-900: #1c1a17;
  --stone-800: #2b2723;
  --stone-700: #423c35;
  --stone-500: #6b6157;
  --stone-300: #a89e92;
  --stone-100: #e9e3da;
  --sand-50:   #f7f3ec;
  --paper:     #fbf9f5;
  --white:     #ffffff;

  --pine-700:  #24473a;
  --pine-600:  #2f5b49;
  --pine-500:  #3c6f59;

  --clay-600:  #b4552d;
  --clay-500:  #c9642f;
  --clay-400:  #dd7d42;

  --gold-500:  #d8a531;

  /* Semantic */
  --bg:          var(--paper);
  --bg-alt:      var(--sand-50);
  --text:        var(--stone-800);
  --text-soft:   var(--stone-500);
  --heading:     var(--stone-900);
  --accent:      var(--clay-500);
  --accent-dark: var(--clay-600);
  --brand:       var(--pine-600);
  --brand-dark:  var(--pine-700);
  --line:        #e3dccf;

  /* Type */
  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1160px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(28,26,23,.08), 0 1px 2px rgba(28,26,23,.05);
  --shadow-md: 0 8px 24px rgba(28,26,23,.10);
  --shadow-lg: 0 20px 50px rgba(28,26,23,.16);
  --trans: 180ms cubic-bezier(.4,0,.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.18; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); letter-spacing: -.01em; }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--stone-900); color: var(--stone-100); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--pine { background: var(--brand-dark); color: #e7f0eb; }
.section--pine h2, .section--pine h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}
.section--dark .eyebrow, .section--pine .eyebrow { color: var(--clay-400); }
.lead { font-size: 1.16rem; color: var(--text-soft); max-width: 62ch; }
.center .lead { margin-inline: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85em 1.5em; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); }
.btn--pine { background: var(--brand); color: #fff; }
.btn--pine:hover { background: var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--stone-300); }
.btn--ghost:hover { border-color: var(--heading); background: rgba(0,0,0,.03); }
.btn--light { background: #fff; color: var(--stone-900); }
.btn--light:hover { background: var(--sand-50); }
.btn--lg { padding: 1.05em 2em; font-size: 1.08rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,249,245,.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; color: var(--heading); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 9px; flex: none;
  background: linear-gradient(145deg, var(--clay-500), var(--clay-600));
  display: grid; place-items: center; color: #fff; font-size: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.brand__name { line-height: 1.05; }
.brand__name small { display: block; font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft); }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--stone-700); font-weight: 500; font-size: .98rem; }
.nav__links a:hover, .nav__links a.active { color: var(--accent-dark); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--stone-800); margin: 5px 0; transition: var(--trans); }

@media (max-width: 860px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav.open .nav__links li { width: 100%; }
  .nav.open .nav__links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--stone-900); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(20,18,15,.94) 0%, rgba(20,18,15,.72) 45%, rgba(36,71,58,.55) 100%),
    radial-gradient(1200px 500px at 80% -10%, rgba(201,100,47,.35), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='700'%3E%3Crect fill='%232b2723' width='1200' height='700'/%3E%3Cpath fill='%23423c35' d='M0 520l180-150 160 120 190-210 210 190 150-120 160 130v220H0z'/%3E%3Cpath fill='%2324473a' d='M0 600l220-120 170 90 210-160 180 150 130-90 160 110v120H0z' opacity='.9'/%3E%3C/svg%3E") center/cover;
}
.hero__inner { position: relative; padding: 96px 0 104px; max-width: 720px; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.86); font-size: 1.22rem; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 1.5rem 2.4rem; margin-top: 3rem; }
.hero__badge { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: rgba(255,255,255,.82); }
.hero__badge b { color: #fff; font-size: 1.5rem; font-family: var(--font-head); display: block; line-height: 1; }
.hero__badge span { display: block; }

/* ---- Cards & grids ---- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow-sm); transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--stone-300); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 1rem;
  background: var(--sand-50); border: 1px solid var(--line);
}
.card__icon--pine { background: rgba(47,91,73,.12); color: var(--brand); }
.card__icon--clay { background: rgba(201,100,47,.12); color: var(--accent-dark); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-soft); margin-bottom: 0; font-size: .98rem; }
.card__link { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: .95rem; }
.card__link::after { content: " →"; }

/* Feature list inside cards */
.feature-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.feature-list li { position: relative; padding: 7px 0 7px 30px; font-size: .97rem; color: var(--text); border-top: 1px solid var(--line); }
.feature-list li:first-child { border-top: 0; }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--brand); font-weight: 700;
}

/* ---- Split / About ---- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.stat-row { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 1.5rem; }
.stat b { font-family: var(--font-head); font-size: 2.1rem; color: var(--accent-dark); display: block; line-height: 1; }
.stat span { font-size: .9rem; color: var(--text-soft); }
.media-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; background: linear-gradient(135deg, var(--pine-600), var(--stone-700));
  position: relative;
}
.media-frame::after {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.9); font-family: var(--font-head); font-size: 1.1rem; text-align: center; padding: 24px;
}

/* ---- Process steps ---- */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(4,1fr); }
@media (max-width: 860px){ .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  margin-bottom: .9rem;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-soft); font-size: .95rem; margin: 0; }
.section--pine .step p { color: rgba(255,255,255,.82); }
.section--pine .step::before { background: var(--clay-500); }

/* ---- Pricing / plans ---- */
.plan { display: flex; flex-direction: column; }
.plan--featured { border-color: var(--accent); box-shadow: var(--shadow-md); position: relative; }
.plan__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; }
.plan__price { font-family: var(--font-head); font-size: 2.4rem; color: var(--heading); margin: .3rem 0; }
.plan__price small { font-size: .95rem; color: var(--text-soft); font-family: var(--font-body); }
.plan .btn { margin-top: auto; }

/* ---- Testimonials ---- */
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.quote p { font-size: 1.02rem; color: var(--stone-800); font-style: italic; }
.quote footer { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; font-style: normal; }
.quote .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color:#fff; display: grid; place-items: center; font-weight: 700; }
.quote cite { font-style: normal; font-weight: 700; color: var(--heading); }
.quote cite span { display: block; font-weight: 400; font-size: .85rem; color: var(--text-soft); }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(120deg, var(--clay-600), var(--clay-500)); color: #fff; border-radius: var(--radius-lg); padding: 52px; text-align: center; box-shadow: var(--shadow-md); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 56ch; margin-inline: auto; }

/* ---- Footer ---- */
.site-footer { background: var(--stone-900); color: var(--stone-300); padding: 60px 0 30px; }
.site-footer a { color: var(--stone-100); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: var(--stone-300); font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--stone-700); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--stone-500); }
.footer-brand .brand { color: #fff; margin-bottom: .8rem; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }

/* ---- Page hero (interior pages) ---- */
.page-hero { background: var(--brand-dark); color: #fff; padding: 66px 0 58px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216,165,49,.25), transparent 70%);
}
.page-hero h1 { color: #fff; position: relative; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 60ch; position: relative; margin-bottom: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; position: relative; }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* ==========================================================================
   Forms — Get Started / Lead capture
   ========================================================================== */
.form-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
@media (max-width: 940px){ .form-wrap { grid-template-columns: 1fr; } }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.form-progress { display: flex; background: var(--sand-50); border-bottom: 1px solid var(--line); }
.form-progress li { flex: 1; list-style: none; text-align: center; font-size: .8rem; font-weight: 600; color: var(--text-soft); padding: 14px 6px; position: relative; }
.form-progress li.active { color: var(--accent-dark); }
.form-progress li.active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--accent); }

.fieldset { border: 0; padding: 30px 32px; margin: 0; border-bottom: 1px solid var(--line); }
.fieldset:last-of-type { border-bottom: 0; }
.fieldset > legend {
  font-family: var(--font-head); font-size: 1.25rem; color: var(--heading); font-weight: 700;
  padding: 0; margin-bottom: .3rem; display: flex; align-items: center; gap: .6rem;
}
.fieldset__hint { color: var(--text-soft); font-size: .92rem; margin: 0 0 1.4rem; }
.legend-num { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .95rem; font-family: var(--font-body); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px){ .field-grid, .field-grid--3 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.col-span-2 { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--stone-700); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--text);
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 9px;
  background: var(--paper); transition: border-color var(--trans), box-shadow var(--trans); width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,91,73,.14); background: #fff;
}

/* Choice groups (checkbox / radio grids) */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px){ .choice-grid, .choice-grid--3 { grid-template-columns: 1fr; } }
.choice {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
  cursor: pointer; transition: border-color var(--trans), background var(--trans);
}
.choice:hover { border-color: var(--stone-300); }
.choice input { margin-top: 3px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.choice input:checked ~ .choice__text { color: var(--heading); }
.choice:has(input:checked) { border-color: var(--brand); background: rgba(47,91,73,.06); }
.choice__text { font-size: .93rem; line-height: 1.35; }
.choice__text b { display: block; color: var(--heading); font-weight: 600; }
.choice__text small { color: var(--text-soft); font-size: .82rem; }

.form-footer { padding: 24px 32px 30px; background: var(--sand-50); }
.form-footer .fineprint { font-size: .82rem; color: var(--text-soft); margin: 14px 0 0; }
.form-note { font-size: .82rem; color: var(--text-soft); background: rgba(216,165,49,.12); border: 1px solid rgba(216,165,49,.35); border-radius: 8px; padding: 10px 14px; margin: 0 0 18px; }

/* Sidebar (form aside) */
.form-aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.aside-card { background: var(--brand-dark); color: #e7f0eb; border-radius: var(--radius-lg); padding: 26px; }
.aside-card h3 { color: #fff; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li { padding: 8px 0 8px 26px; position: relative; font-size: .95rem; border-top: 1px solid rgba(255,255,255,.12); }
.aside-card li:first-child { border-top: 0; }
.aside-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-500); font-weight: 700; }
.aside-contact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.aside-contact .row { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.aside-contact .row:last-child { margin-bottom: 0; }
.aside-contact .ic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--sand-50); display: grid; place-items: center; font-size: 1.1rem; }
.aside-contact .row b { display: block; color: var(--heading); font-size: .95rem; }
.aside-contact .row span { font-size: .88rem; color: var(--text-soft); }

/* Success message */
.form-success { display: none; padding: 46px 34px; text-align: center; }
.form-success.show { display: block; }
.form-success .check { width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 2rem; }

/* ---- Utility ---- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-soft { color: var(--text-soft); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.pill { display: inline-block; background: var(--sand-50); border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px; font-size: .8rem; font-weight: 600; color: var(--stone-700); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }
