:root {
  --bg: #eef1f7;
  --bg-soft: #f8f7f4;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --ink: #1b2234;
  --ink-soft: #4a536d;
  --line: rgba(27, 34, 52, 0.12);
  --brand: #3a476f;
  --brand-deep: #242f4f;
  --brand-muted: #7987b0;
  --accent: #c8a977;
  --shadow: 0 24px 60px rgba(21, 29, 49, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: min(1180px, calc(100vw - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(121, 135, 176, 0.3), transparent 30%),
    linear-gradient(180deg, #dde4f2 0%, #f6f3ee 35%, #f1f4fa 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  cursor: pointer;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 16px;
  padding: 10px 14px;
  clip: auto;
  white-space: normal;
  z-index: 1000;
  background: var(--brand-deep);
  color: #fff;
  border-radius: 999px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero-eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.hero h1,
.contact-copy h2,
.why-copy h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-heading p:last-child,
.hero-text,
.contact-copy p,
.why-copy p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-dark {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
}

.button-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(238, 241, 247, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(36, 47, 79, 0.2));
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav a,
.footer-links a,
.footer-legal a {
  position: relative;
  color: var(--ink-soft);
}

.site-nav a::after,
.footer-links a::after,
.footer-legal a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.footer-links a:hover::after,
.footer-links a:focus-visible::after,
.footer-legal a:hover::after,
.footer-legal a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  margin-left: auto;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  padding: 72px 0 48px;
  overflow: clip;
}

.hero-backdrop {
  position: absolute;
  inset: 24px 0 auto;
  height: 78%;
  background:
    linear-gradient(135deg, rgba(27, 34, 52, 0.72), rgba(58, 71, 111, 0.42)),
    radial-gradient(circle at top right, rgba(200, 169, 119, 0.35), transparent 24%),
    linear-gradient(180deg, rgba(66, 80, 122, 0.24), rgba(20, 24, 39, 0.74));
  border-radius: 0 0 44px 44px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 34px;
  align-items: start;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: 54px 0 0;
  color: #fff;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  max-width: 12ch;
}

.hero-text {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.search-card,
.comparison-preview,
.metric-card,
.method-card,
.property-card,
.why-panel,
.contact-form,
.contact-points,
.footer-grid {
  backdrop-filter: blur(16px);
}

.search-card,
.comparison-preview,
.property-card,
.why-panel,
.contact-form {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.search-card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.search-label {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.search-card h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 12px;
  margin-top: 24px;
}

.search-form select,
.search-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(58, 71, 111, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.search-form input::placeholder,
.contact-form textarea::placeholder,
.contact-form input::placeholder {
  color: #72809e;
}

.search-note,
.form-note,
.properties-status {
  color: var(--ink-soft);
  line-height: 1.6;
}

.comparison-preview {
  margin-top: 20px;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.comparison-section {
  padding: 24px 0 0;
}

.comparison-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.65fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 24px;
}

.calculator-copy,
.calculator-form,
.calculator-results {
  border-radius: 24px;
}

.calculator-copy {
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(58, 71, 111, 0.08);
}

.calculator-copy strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-deep);
  font-size: 1.1rem;
}

.calculator-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.calculator-form {
  display: grid;
}

.calculator-form input {
  width: 100%;
  min-height: 100%;
  padding: 0 18px;
  border-radius: 24px;
  border: 1px solid rgba(58, 71, 111, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 1.05rem;
}

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

.calculator-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(58, 71, 111, 0.08);
}

.calculator-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.calculator-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-deep);
  font-size: 1.3rem;
}

.calculator-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.calculator-card-brand {
  background: linear-gradient(135deg, rgba(58, 71, 111, 0.96), rgba(121, 135, 176, 0.92));
}

.calculator-card-brand span,
.calculator-card-brand strong,
.calculator-card-brand p {
  color: #fff;
}

.calculator-card-saving {
  background: rgba(200, 169, 119, 0.16);
}

.compact-heading {
  margin-bottom: 24px;
  text-align: left;
}

.compact-heading h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.3rem);
}

.comparison-grid {
  display: grid;
  gap: 14px;
}

.comparison-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.comparison-card > div {
  padding: 18px;
  border-radius: 20px;
}

.comparison-card .comparison-topic {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(58, 71, 111, 0.1);
}

.comparison-card .comparison-opensell {
  background: linear-gradient(135deg, rgba(58, 71, 111, 0.96), rgba(121, 135, 176, 0.92));
  color: #fff;
}

.comparison-card .comparison-traditional {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(27, 34, 52, 0.08);
}

.comparison-card strong,
.method-card strong,
.property-copy strong,
.why-panel h3,
.metric-card strong {
  display: block;
  margin-bottom: 8px;
}

.comparison-card p,
.method-card p,
.property-copy p,
.why-panel p,
.metric-card span {
  margin: 0;
  line-height: 1.65;
  color: inherit;
}

.metrics-section,
.method-section,
.properties-section,
.why-section,
.contact-section {
  padding: 92px 0;
}

.properties-section-featured {
  padding-top: 32px;
}

.metrics-grid,
.method-grid,
.properties-grid {
  display: grid;
  gap: 22px;
}

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

.metric-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.metric-card strong {
  font-size: 1.35rem;
  color: var(--brand-deep);
}

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

.method-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 246, 251, 0.9));
  border: 1px solid rgba(58, 71, 111, 0.08);
}

.method-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: var(--brand-deep);
  background: rgba(200, 169, 119, 0.18);
  font-size: 1.4rem;
}

.method-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 135, 176, 0.14), transparent 68%);
}

.properties-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

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

.property-card {
  overflow: hidden;
  border-radius: 28px;
}

.properties-section-featured .property-card {
  background: rgba(255, 255, 255, 0.82);
}

.property-visual {
  position: relative;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
}

.property-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.property-card:hover .property-visual img,
.property-card:focus-within .property-visual img {
  transform: scale(1.04);
}

.property-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-deep);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.property-copy {
  padding: 22px;
}

.property-copy h3 {
  margin: 0 0 8px;
  font-family: "Iowan Old Style", "Baskerville", serif;
  font-size: 1.5rem;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.property-price {
  font-size: 1.2rem;
  color: var(--brand-deep);
}

.ghost-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand);
}

.empty-state {
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  text-align: center;
  border: 1px solid rgba(58, 71, 111, 0.1);
}

.why-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 28px;
}

.why-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.65;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--brand));
}

.why-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.why-panel article {
  padding: 18px 0;
  border-top: 1px solid rgba(58, 71, 111, 0.08);
}

.why-panel article:first-child {
  padding-top: 0;
  border-top: 0;
}

.why-panel span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand);
  letter-spacing: 0.16em;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  align-items: start;
}

.contact-points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(58, 71, 111, 0.08);
}

.contact-points p {
  margin: 0;
}

.contact-link {
  color: var(--brand-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.contact-form label {
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.contact-form textarea {
  min-height: 150px;
  padding-top: 16px;
  resize: vertical;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.contact-actions .button {
  flex: 1 1 220px;
}

.site-footer {
  padding: 0 0 36px;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: rgba(27, 34, 52, 0.9);
  color: rgba(255, 255, 255, 0.92);
}

.footer-brand .brand-copy span,
.footer-links a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
}

.property-modal {
  width: min(920px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #fbfbfc;
  box-shadow: 0 32px 90px rgba(13, 16, 28, 0.28);
}

.property-modal::backdrop {
  background: rgba(21, 24, 39, 0.58);
  backdrop-filter: blur(6px);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
}

.modal-media {
  aspect-ratio: 16 / 8;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  padding: 28px;
}

.modal-content h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.modal-price {
  margin: 14px 0 18px;
  color: var(--brand-deep);
  font-size: 1.2rem;
}

.modal-data {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
}

.modal-data div {
  padding: 16px;
  border-radius: 18px;
  background: #f0f3fa;
}

.modal-data dt {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.modal-data dd {
  margin: 8px 0 0;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .hero-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .comparison-calculator,
  .calculator-results,
  .metrics-grid,
  .method-grid,
  .properties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    grid-template-columns: 1fr 1fr;
  }

  .search-form button {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .comparison-calculator {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-left: 0;
    padding: 8px 0 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .comparison-card {
    grid-template-columns: 1fr;
  }

  .calculator-results,
  .metrics-grid,
  .method-grid,
  .properties-grid,
  .modal-data {
    grid-template-columns: 1fr;
  }

  .properties-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 42px;
  }

  .hero-backdrop {
    inset: 0;
    height: 64%;
    border-radius: 0 0 28px 28px;
  }

  .hero-copy {
    padding-top: 28px;
  }

  .search-card,
  .comparison-preview,
  .contact-form,
  .why-panel {
    padding: 22px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-form button {
    grid-column: auto;
  }

  .metrics-section,
  .method-section,
  .properties-section,
  .why-section,
  .contact-section {
    padding: 72px 0;
  }

  .contact-actions {
    flex-direction: column;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }
}
