:root {
  --forest: #173b2b;
  --forest-deep: #102c20;
  --paper: #f2eee5;
  --paper-light: #faf8f2;
  --ink: #1e2a23;
  --muted: #6d756e;
  --clay: #ba6f45;
  --line: rgba(30, 42, 35, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 10px clamp(22px, 5vw, 74px);
  color: white;
  background: rgba(16, 53, 38, .96);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 76px; height: 66px; object-fit: contain; }
.header-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); margin-left: auto; margin-right: 34px; }
.header-nav a { color: rgba(255,255,255,.76); font-size: 13px; text-decoration: none; transition: color .2s; }
.header-nav a:hover { color: #e7c58c; }
.header-action { padding: 12px 24px; border-radius: 999px; color: var(--forest-deep); background: #d4ad6b; font-size: 12px; font-weight: 600; text-decoration: none; transition: transform .2s, background .2s; }
.header-action:hover { transform: translateY(-2px); background: #e0bf83; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; color: white; }
.hero-photo { position: absolute; inset: 0; background: url("/images/cabana-real-capa-completa-20260803.jpg") center / cover no-repeat; animation: settle 1.6s cubic-bezier(.2,.8,.2,1) both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,35,24,.9) 0%, rgba(9,35,24,.48) 47%, rgba(9,35,24,.15) 76%), linear-gradient(0deg, rgba(8,28,19,.62), transparent 52%); }
.hero-copy { position: relative; z-index: 2; width: min(760px, 90%); padding: 160px clamp(22px, 8vw, 120px) 10vh; animation: rise .9s .25s both; }
.eyebrow { margin: 0 0 24px; color: #efd4b7; font-size: 11px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.eyebrow.dark { color: var(--clay); }
h1, h2 { font-family: "Italiana", serif; font-weight: 400; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(68px, 9.2vw, 142px); line-height: .78; }
h1 em, h2 em { color: #e4ad82; font-style: italic; }
.hero-intro { max-width: 460px; margin: 42px 0 34px; color: rgba(255,255,255,.74); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; }
.scroll-cue { display: inline-flex; gap: 28px; align-items: center; color: white; text-decoration: none; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; transition: transform .25s, background .25s; }
.scroll-cue:hover span { transform: translateY(4px); background: rgba(255,255,255,.12); }
.hero-index { position: absolute; right: clamp(22px, 5vw, 74px); bottom: 8vh; z-index: 2; font-size: 11px; letter-spacing: .18em; writing-mode: vertical-rl; }

.estimator { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(420px, 1.35fr) minmax(310px, .85fr); gap: clamp(35px, 5vw, 85px); padding: clamp(90px, 12vw, 180px) clamp(22px, 5vw, 74px); background: var(--paper-light); }
.estimator-heading { align-self: start; position: sticky; top: 50px; }
.estimator-heading h2, .process h2 { margin: 0 0 30px; font-size: clamp(48px, 5.2vw, 78px); line-height: .92; }
.estimator-heading > p:last-child { max-width: 360px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.estimator-form { min-width: 0; }
.form-block { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 34px 0 52px; }
.form-block legend { width: 100%; padding: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.form-block legend span { display: inline-block; margin-right: 16px; color: var(--clay); }
.range-readout { display: flex; align-items: baseline; gap: 12px; margin: 38px 0 20px; }
.range-readout output { font-family: "Italiana", serif; font-size: 54px; }
.range-readout span, .range-labels { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
input[type="range"] { width: 100%; height: 2px; appearance: none; background: linear-gradient(to right, var(--clay) 0 21.7%, #d4d0c7 21.7% 100%); outline: none; }
input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; appearance: none; border: 6px solid var(--paper-light); border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 1px var(--clay); cursor: grab; }
.range-labels { display: flex; justify-content: space-between; margin-top: 12px; }
.choice-grid { display: grid; gap: 12px; margin-top: 28px; }
.finish-options { grid-template-columns: repeat(3, 1fr); }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-content { position: relative; display: flex; min-height: 190px; flex-direction: column; padding: 23px 20px; border: 1px solid var(--line); transition: transform .2s, border .2s, background .2s; }
.choice-content strong { font-family: "Italiana", serif; font-size: 23px; font-weight: 400; }
.choice-content small { margin: 12px 0 auto; color: var(--muted); line-height: 1.5; }
.choice-content b { margin-top: 20px; color: var(--clay); font-size: 12px; font-weight: 600; }
.choice-content i { position: absolute; right: -1px; top: -22px; padding: 5px 9px; background: var(--clay); color: white; font-size: 8px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.choice input:checked + .choice-content { transform: translateY(-4px); border-color: var(--forest); background: #fff; box-shadow: 0 16px 32px rgba(30,42,35,.08); }
.choice input:focus-visible + .choice-content, .extra-choice input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 3px; }
.extras-options { grid-template-columns: 1fr 1fr; }
.extra-choice { cursor: pointer; }
.extra-choice input { position: absolute; opacity: 0; }
.extra-choice > span { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 16px 18px 16px 48px; border-bottom: 1px solid var(--line); position: relative; }
.extra-choice > span::before { content: "+"; position: absolute; left: 12px; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #aaa; border-radius: 50%; color: #888; }
.extra-choice input:checked + span::before { content: "✓"; border-color: var(--forest); background: var(--forest); color: white; }
.extra-choice strong { font-size: 13px; font-weight: 500; }
.extra-choice small { color: var(--muted); font-size: 10px; white-space: nowrap; }

.estimate-card { align-self: start; position: sticky; top: 36px; padding: 30px; color: white; background: var(--forest); box-shadow: 24px 24px 0 #ded8cc; }
.estimate-topline { display: flex; justify-content: space-between; color: rgba(255,255,255,.55); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.estimate-value { margin: 42px 0 8px; font-family: "Italiana", serif; font-size: clamp(42px, 4vw, 60px); white-space: nowrap; }
.estimate-range { margin: 0 0 36px; color: #e6c4a6; font-size: 11px; }
.summary-list { border-top: 1px solid rgba(255,255,255,.18); }
.summary-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 11px; }
.summary-list span { color: rgba(255,255,255,.55); }
.summary-list strong { font-weight: 500; text-align: right; }
.primary-action { display: flex; justify-content: space-between; width: 100%; margin-top: 30px; padding: 17px 18px; border: 0; color: var(--forest-deep); background: #e9c7a8; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s, transform .2s; }
.primary-action:hover { transform: translateY(-2px); background: #f3d7bd; }
.secondary-action { display: block; margin: 18px auto 0; color: rgba(255,255,255,.75); font-size: 11px; text-align: center; text-underline-offset: 4px; }
.fine-print { margin: 28px 0 0; color: rgba(255,255,255,.42); font-size: 9px; line-height: 1.6; }

.process { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; padding: clamp(90px, 12vw, 170px) clamp(22px, 8vw, 120px); color: white; background: var(--forest-deep); }
.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li { display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.16); }
.process-list li > span { color: #d5a47c; font-size: 11px; }
.process-list strong { font-family: "Italiana", serif; font-size: 26px; font-weight: 400; }
.process-list p { max-width: 480px; margin: 10px 0 0; color: rgba(255,255,255,.54); font-size: 13px; line-height: 1.65; }
footer { display: flex; justify-content: space-between; padding: 24px clamp(22px, 5vw, 74px); color: rgba(255,255,255,.55); background: #0b2117; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }

@media (max-width: 1100px) {
  .header-nav { display: none; }
  .estimator { grid-template-columns: .8fr 1.2fr; }
  .estimate-card { grid-column: 2; position: static; }
}
@media (max-width: 760px) {
  .header-action, .hero-index { display: none; }
  .site-header { padding-top: 14px; }
  .hero-copy { padding-bottom: 8vh; }
  h1 { font-size: clamp(62px, 20vw, 92px); }
  .hero-photo { background-image: url("/images/cabana-real-mobile-20260803.jpg"); background-position: center; }
  .estimator { grid-template-columns: 1fr; padding-bottom: 110px; }
  .estimator-heading, .estimate-card { position: static; }
  .estimate-card { grid-column: 1; box-shadow: 12px 12px 0 #ded8cc; }
  .finish-options, .extras-options { grid-template-columns: 1fr; }
  .choice-content { min-height: 150px; }
  .process { grid-template-columns: 1fr; gap: 45px; }
  footer { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
