:root {
  --ink: #171b18;
  --muted: #68716b;
  --line: #ddd5c9;
  --accent: #8b7857;
  --accent-dark: #6f5f45;
  --deep: #0d302b;
  --deep-2: #17463f;
  --soft: #f4efe7;
  --paper: #fffdf8;
  --gold: #a58d62;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #faf7f1;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(218, 198, 159, 0.24);
  color: #ffffff;
  background: rgba(13, 48, 43, 0.98);
  box-shadow: 0 12px 36px rgba(13, 48, 43, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  padding: 5px;
  border-radius: 8px;
  background: #fffdf8;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

nav a {
  min-height: 40px;
  padding: 11px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

nav a:hover,
.crm-link,
nav a.active-tab {
  color: #ffffff;
  background: rgba(165, 141, 98, 0.22);
}

.tab-section[hidden] {
  display: none;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: clamp(64px, 9vw, 110px) clamp(18px, 5vw, 72px) 72px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(13, 48, 43, 0.99), rgba(19, 67, 60, 0.9)),
    radial-gradient(circle at 78% 18%, rgba(214, 190, 143, 0.18), transparent 34%),
    linear-gradient(90deg, transparent 0, transparent 63%, rgba(165, 141, 98, 0.16) 63%, rgba(165, 141, 98, 0.16) 64%, transparent 64%),
    var(--deep);
}

.hero-panel {
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.feature-band .eyebrow {
  color: #d7c9ad;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 920px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6.4vw, 84px);
  font-weight: 500;
  line-height: 0.98;
}

h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.1vw, 52px);
  font-weight: 500;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-copy {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.primary-action {
  color: #102c29;
  background: var(--accent);
}

.secondary-action {
  color: #ffffff;
  border-color: rgba(218, 198, 159, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.numbers div {
  display: grid;
  gap: 8px;
  padding: 32px clamp(18px, 5vw, 72px);
  border-right: 1px solid var(--line);
}

.numbers div:last-child {
  border-right: 0;
}

.numbers strong {
  color: var(--deep);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
}

.numbers span {
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: 78px clamp(18px, 5vw, 72px);
}

.section-head {
  margin-bottom: 30px;
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}

.split-head p {
  color: var(--muted);
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(42, 36, 27, 0.05);
}

.service-grid article {
  min-height: 250px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.service-grid p,
.feature-list p,
.contact-copy p,
.contact-copy address {
  color: var(--muted);
  line-height: 1.65;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 78px clamp(18px, 5vw, 72px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(13, 48, 43, 0.98), rgba(23, 70, 63, 0.94)),
    var(--deep);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list article {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.feature-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.calculator-section {
  background: #f5f0e8;
}

.calculator-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
}

.loan-card,
.loan-result,
.contact-actions {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 20px 46px rgba(42, 36, 27, 0.08);
}

.loan-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.loan-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.loan-card input,
.loan-card select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 10px;
}

.loan-card button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.loan-result {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 42px);
  color: #ffffff;
  background:
    linear-gradient(135deg, #0d302b, #17463f);
}

.loan-result span,
.loan-result small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.loan-result strong {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-grid div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.result-grid b {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.loan-result p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(240px, 0.42fr);
  gap: 20px;
  padding: 78px clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.contact-copy {
  align-self: start;
}

.contact-copy address {
  margin-top: 20px;
  font-style: normal;
}

.contact-actions {
  display: grid;
  gap: 10px;
  align-self: start;
  padding: 20px;
}

.contact-actions a {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff;
}

.contact-actions .whatsapp {
  color: #ffffff;
  background: #25d366;
}

.map-card {
  grid-column: 1 / -1;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.74);
  background: #0b2925;
}

footer div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
}

footer img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  padding: 4px;
  border-radius: 8px;
  background: var(--paper);
}

footer p {
  margin: 0;
  color: #d7c9ad;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.5vw, 26px);
  text-align: center;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .split-head,
  .feature-band,
  .calculator-wrap,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  nav {
    width: 100%;
  }

  nav a {
    flex: 1 1 auto;
  }

  .hero {
    padding-top: 48px;
  }

  .numbers,
  .service-grid,
  .inline-fields,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .numbers div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-grid article {
    min-height: auto;
  }
}
