/* ============================================================
   Ridgeline Cabin Care — styles
   Palette: pine green, cedar amber, warm cream, charcoal
   ============================================================ */

:root {
  --pine: #1f3a2d;
  --pine-deep: #16291f;
  --cedar: #b5622f;
  --cedar-soft: #c9803f;
  --cream: #f7f3ec;
  --cream-dark: #efe8dc;
  --ink: #2b2925;
  --ink-soft: #5c564d;
  --line: #ddd3c4;
  --white: #fffdf9;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(34, 32, 28, 0.10);
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16.5px;
}

img, svg { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--pine-deep); }

h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 12px; }

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cedar);
  margin-bottom: 10px;
}

.section { padding: 84px 0; }
.section-lead { max-width: 640px; color: var(--ink-soft); margin-bottom: 44px; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34,32,28,0.18); }
.btn-primary { background: var(--cedar); color: #fff; }
.btn-primary:hover { background: #a5581f; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); box-shadow: none; }
.btn-dark { background: var(--pine); color: #fff; }
.btn-dark:hover { background: var(--pine-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 41, 31, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.brand-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d8b98a;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--cedar); padding: 9px 18px; border-radius: 7px; color: #fff !important; }
.nav-cta:hover { background: #a5581f; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--pine-deep);
  color: #fff;
  overflow: hidden;
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art svg { width: 100%; height: 100%; object-fit: cover; }
.hero-inner {
  position: relative;
  padding: 110px 0 130px;
  max-width: 640px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero h1 em { font-style: normal; color: #e9b877; }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 30px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
  max-width: 540px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.hero-points span { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; flex: none; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--pine); color: #e9e2d4; padding: 18px 0; }
.trust-bar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 600;
}
.trust-bar span { display: flex; align-items: center; gap: 9px; }
.trust-bar svg { width: 20px; height: 20px; color: #d8b98a; flex: none; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 4px 14px rgba(34,32,28,0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--pine), #2d5442);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; color: #e9b877; }
.service-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.service-card p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 14px; }
.service-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cedar);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

/* ---------- Before / After ---------- */
.gallery { background: var(--pine-deep); color: #fff; }
.gallery h2, .gallery h3 { color: #fff; }
.gallery .section-lead { color: rgba(255,255,255,0.75); }
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.ba-card { border-radius: var(--radius); overflow: hidden; background: #21372b; border: 1px solid rgba(255,255,255,0.1); }
.ba-slider {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}
.ba-img { position: absolute; inset: 0; }
.ba-img img, .ba-img svg { width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
  pointer-events: none;
}
.ba-handle::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--pine-deep);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.ba-tag {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-tag-before { left: 12px; background: rgba(30,28,25,0.75); color: #fff; }
.ba-tag-after { right: 12px; background: var(--cedar); color: #fff; }
.ba-caption { padding: 16px 18px 18px; }
.ba-caption h3 { font-size: 1.05rem; margin-bottom: 4px; }
.ba-caption p { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--cream-dark);
  position: absolute;
  top: 14px;
  right: 20px;
  line-height: 1;
}
.process-step h3 { font-size: 1.12rem; margin-bottom: 8px; padding-right: 56px; }
.process-step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Pricing ---------- */
.pricing { background: var(--cream-dark); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 22px;
  margin-bottom: 44px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border: 2px solid var(--cedar); position: relative; }
.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -13px;
  left: 22px;
  background: var(--cedar);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
}
.price-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.price-freq { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 16px; }
.price-amount { font-family: var(--font-display); font-size: 2rem; color: var(--pine-deep); line-height: 1; }
.price-amount small { font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; color: var(--ink-soft); }
.price-note { font-size: 0.82rem; color: var(--ink-soft); margin: 6px 0 18px; }
.price-card ul { list-style: none; margin-bottom: 22px; flex: 1; }
.price-card li {
  font-size: 0.9rem;
  padding: 7px 0 7px 26px;
  position: relative;
  border-bottom: 1px dashed var(--cream-dark);
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 15px;
  height: 15px;
  background: var(--cedar);
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
}
.price-card .btn { text-align: center; }

.travel-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.travel-box h3 { font-size: 1.3rem; margin-bottom: 6px; }
.travel-box > p { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 22px; max-width: 700px; }
.zone-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.zone-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-bottom: 2px solid var(--line);
}
.zone-table td { padding: 13px 14px; border-bottom: 1px solid var(--cream-dark); vertical-align: top; }
.zone-table tr:last-child td { border-bottom: none; }
.zone-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.zone-1 { background: #e3efe7; color: #1f5c38; }
.zone-2 { background: #fdeeda; color: #9a5c1a; }
.zone-3 { background: #f3e3da; color: #8c3f1d; }
.zone-fee { font-weight: 700; color: var(--pine-deep); white-space: nowrap; }
.materials-note {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--cream);
  border-left: 4px solid var(--cedar);
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.table-scroll { overflow-x: auto; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.stars { color: var(--cedar); font-size: 1rem; letter-spacing: 3px; margin-bottom: 12px; }
.testimonial blockquote { font-size: 0.96rem; color: var(--ink); margin-bottom: 16px; font-style: italic; }
.testimonial cite { font-style: normal; font-size: 0.85rem; font-weight: 700; color: var(--pine-deep); }
.testimonial cite span { display: block; font-weight: 500; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--pine-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--cedar); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 22px 20px; font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- Quote form ---------- */
.quote { background: var(--pine-deep); color: #fff; }
.quote-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.quote h2 { color: #fff; }
.quote-info p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.quote-contacts { list-style: none; margin-top: 8px; }
.quote-contacts li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 0.95rem; }
.quote-contacts svg { width: 20px; height: 20px; color: #d8b98a; flex: none; }
.quote-contacts a { color: #fff; text-decoration: none; font-weight: 600; }
.quote-contacts a:hover { text-decoration: underline; }

.quote-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cedar);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 96px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 0.92rem; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #1f5c38; }
.form-status.err { display: block; color: #a03a1d; }
.form-disclaimer { font-size: 0.78rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #12211a; color: rgba(255,255,255,0.7); padding: 46px 0 30px; font-size: 0.88rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.footer-grid .brand-name { font-size: 1.05rem; }
.footer-links { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.8rem; color: rgba(255,255,255,0.45); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .quote-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 64px 0; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--pine-deep);
    flex-direction: column;
    padding: 18px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-inner { padding: 80px 0 96px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
