:root {
  --ink: #151515;
  --muted: #706a64;
  --paper: #f4efe9;
  --surface: #fffdf9;
  --line: #ddd2c7;
  --burgundy: #7e1f2d;
  --burgundy-light: #a33340;
  --gold: #b69a6c;
  --deep: #171515;
  --shadow: 0 24px 70px rgba(35, 27, 21, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(221, 210, 199, 0.85);
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-property {
  display: grid;
  gap: 2px;
  color: #9b1f16;
  font-size: clamp(15px, 1.45vw, 26px);
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 0.93;
  text-transform: uppercase;
}

.brand-property span {
  display: block;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 2.2vw, 32px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.plan-toolbar a:hover {
  color: var(--burgundy);
}

.header-actions,
.hero-actions,
.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-header-actions {
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--burgundy);
  border-radius: 4px;
  background: var(--burgundy);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--burgundy-light);
  border-color: var(--burgundy-light);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--gold);
  background: #fff;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: clamp(640px, calc(100vh - 156px), 760px);
  display: grid;
  align-items: end;
  padding: clamp(54px, 8vw, 96px) clamp(22px, 5vw, 70px);
  background-image: linear-gradient(90deg, rgba(8, 15, 23, 0.84), rgba(8, 15, 23, 0.34) 44%, rgba(8, 15, 23, 0.08)), url("assets/pc-hero.png");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-content {
  max-width: 680px;
}

.kicker,
.section-number {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before,
.section-number::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 10vw, 138px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.92;
}

.hero-copy {
  max-width: 560px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.68;
}

.hero-panel {
  position: absolute;
  right: clamp(22px, 5vw, 70px);
  bottom: clamp(26px, 5vw, 70px);
  width: min(390px, 32vw);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.12);
  backdrop-filter: blur(12px);
}

.hero-panel strong {
  display: block;
  margin-bottom: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.content-section {
  padding: clamp(52px, 7vw, 86px) clamp(22px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-heading h2,
.lead-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.section-heading p:not(.section-number) {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.content-section .section-number,
.lead-section .section-number {
  color: var(--burgundy);
}

.image-frame {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eee7df;
  box-shadow: var(--shadow);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.section-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f3ee;
}

.section-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.layout-selector {
  display: grid;
  gap: 18px;
}

.unit-selector {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.selector-copy strong {
  display: block;
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0;
}

.selector-copy span {
  color: var(--muted);
  font-size: 13px;
}

.size-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.size-tab {
  min-width: 112px;
  min-height: 50px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.size-tab.active {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: #fff;
}

.size-tab:focus-visible {
  outline: 3px solid rgba(126, 31, 45, 0.25);
  outline-offset: 2px;
}

.size-tab strong {
  display: inline;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
}

.size-tab span {
  margin-left: 4px;
  color: inherit;
  font-size: 12px;
}

.plan-view {
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eee6df;
  box-shadow: var(--shadow);
}

.plan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 6px;
  background: rgba(255, 253, 249, 0.85);
}

.plan-toolbar strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
}

.plan-toolbar a {
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.plan-image-stage {
  display: grid;
  min-height: 520px;
  place-items: center;
}

.plan-view img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.58fr);
  gap: clamp(28px, 5vw, 52px);
  padding: clamp(58px, 7vw, 88px) clamp(22px, 5vw, 70px);
  background: linear-gradient(135deg, #171515, #2b2021);
  color: #fff;
}

.lead-copy p:not(.section-number) {
  max-width: 620px;
  margin: 20px 0 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1.75;
}

.lead-section .button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.92);
}

.lead-form {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.lead-form label {
  display: block;
  margin-bottom: 13px;
}

.lead-form span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 760;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
}

.lead-form input,
.lead-form select {
  height: 48px;
  padding: 0 14px;
}

.lead-form textarea {
  min-height: 100px;
  padding: 14px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 3px solid rgba(182, 154, 108, 0.45);
}

.form-button {
  width: 100%;
  border: 0;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.45;
}

.floating-whatsapp {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: #29b95f;
  color: #fff;
  box-shadow: 0 14px 34px rgba(18, 93, 45, 0.25);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 1100px) {
  .hero-panel {
    position: static;
    width: min(100%, 520px);
    margin-top: 28px;
  }

  .hero {
    align-items: center;
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: 74px;
  }

  .site-header {
    min-height: 66px;
  }

  .site-header {
    gap: 16px;
  }

  .site-nav {
    gap: 14px;
    font-size: 12px;
  }

  .compact-header-actions {
    display: flex;
    margin-left: auto;
  }

  .compact-header-actions .button-secondary {
    display: none;
  }

  .compact-header-actions .button {
    min-height: 40px;
    padding: 0 16px;
    font-size: 11px;
  }

  .hero {
    min-height: 650px;
    padding: 44px 22px 42px;
    background-image: linear-gradient(180deg, rgba(8, 15, 23, 0.16), rgba(8, 15, 23, 0.9)), url("assets/phone-hero.png");
    background-position: center top;
  }

  .hero h1 {
    font-size: clamp(64px, 17vw, 96px);
  }

  .hero-actions {
    display: none;
  }

  .section-heading {
    display: block;
  }

  .section-heading p:not(.section-number) {
    margin-top: 14px;
  }

  .section-cta,
  .unit-selector,
  .lead-section {
    grid-template-columns: 1fr;
  }

  .size-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .size-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .plan-view {
    min-height: 420px;
  }

  .plan-image-stage {
    min-height: 330px;
  }

  .floating-whatsapp {
    display: none;
  }

  .mobile-action-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 249, 0.94);
    backdrop-filter: blur(12px);
  }

  .mobile-action-bar .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .brand-property {
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .hero-copy {
    font-size: 16px;
  }

  .compact-header-actions .button {
    min-width: 96px;
    padding: 0 12px;
  }

  .size-tab {
    min-width: 102px;
  }

  .size-tab strong {
    font-size: 19px;
  }

  .plan-toolbar {
    display: block;
  }

  .plan-toolbar a {
    display: block;
    margin-top: 8px;
  }
}

@media (max-width: 680px) {
  .site-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
