:root {
  --color-white: #ffffff;
  --color-charcoal: #1d2228;
  --color-navy: #0f2340;
  --color-gold: #c8a46b;
  --color-sand: #f4eee2;
  --color-mist: #e8edf2;
  --color-muted: #617186;
  --container: 1160px;
  --radius: 14px;
  --shadow-soft: 0 8px 25px rgba(15, 35, 64, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--color-charcoal);
  background: linear-gradient(180deg, #f9f7f3 0%, #ffffff 32%, #fbfdfd 100%);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.12;
  letter-spacing: 0.2px;
  color: var(--color-navy);
}

a {
  color: var(--color-navy);
  text-decoration: none;
}

a:hover {
  color: var(--color-gold);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

.container {
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e9ecef;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  color: var(--color-navy);
  font-weight: 600;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-muted);
}

.nav-toggle {
  border: 1px solid #dbe2ea;
  background: white;
  color: var(--color-navy);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 0.95rem;
}

.site-nav {
  display: none;
}

.site-nav.open {
  display: block;
  position: absolute;
  top: 74px;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #edf0f2;
}

.site-nav ul {
  margin: 0;
  padding: 16px;
  list-style: none;
  display: grid;
  gap: 12px;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
}

.hero {
  position: relative;
  color: var(--color-white);
  min-height: 76vh;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(10, 28, 52, 0.82), rgba(10, 28, 52, 0.3)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=80") center/cover;
  z-index: -1;
}

.hero .container {
  padding: 96px 0 86px;
}

.hero h1 {
  font-size: clamp(2.1rem, 7vw, 4.2rem);
  color: var(--color-white);
  max-width: 760px;
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.3rem);
  max-width: 700px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-gold);
  color: #1b2735;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.btn-dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: linear-gradient(160deg, #f3f6f9 0%, #ffffff 100%);
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  margin-bottom: 8px;
}

.section-lead {
  color: var(--color-muted);
  margin: 0 0 28px;
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--color-white);
  border: 1px solid #e5eaee;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 1.5rem;
}

.quick-search {
  margin-top: -38px;
  position: relative;
  z-index: 3;
}

.quick-search .card {
  border: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d2d9e1;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #eef3f7;
  color: #3e546a;
}

.cta-band {
  background: linear-gradient(145deg, #0f2340, #173a63 72%, #1d446f);
  color: var(--color-white);
  border-radius: 20px;
  padding: 38px;
}

.cta-band h2,
.cta-band p {
  color: var(--color-white);
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.list-clean li {
  border-bottom: 1px solid #e7edf3;
  padding-bottom: 8px;
}

.footer {
  background: #0f2137;
  color: #dce5ee;
  padding: 56px 0 28px;
  margin-top: 64px;
}

.footer a {
  color: #ffffff;
}

.page-hero,
.editorial-hero {
  position: relative;
  min-height: 62vh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: var(--color-white);
}

.page-hero::before,
.editorial-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(8, 24, 45, 0.84), rgba(8, 24, 45, 0.42));
  z-index: -1;
}

.page-hero::after,
.editorial-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-image) center/cover no-repeat;
  z-index: -2;
  transform: scale(1.02);
}

.page-hero .container,
.editorial-hero .container {
  padding: 120px 0 72px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 6px 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.hero-subtitle {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.8vw, 1.28rem);
  margin-bottom: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-stats .card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: none;
  backdrop-filter: blur(4px);
}

.hero-stats strong {
  display: block;
  font-size: 1.2rem;
}

.home-page .page-hero {
  min-height: 78vh;
}

.home-page .page-hero .container {
  padding: 150px 0 96px;
}

.home-page .page-hero h1 {
  max-width: 860px;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
}

.home-page .hero-subtitle {
  max-width: 820px;
}

.home-page .quick-search {
  margin-top: -54px;
}

.home-page .quick-search .card {
  padding: 30px;
  border: 1px solid rgba(200, 164, 107, 0.22);
  box-shadow: 0 16px 38px rgba(15, 35, 64, 0.12);
}

.home-page .quick-search .section-title {
  margin-bottom: 10px;
}

.home-page .quick-search .section-lead {
  margin-bottom: 22px;
}

.home-page .grid .card {
  height: 100%;
}

.home-page blockquote.card {
  position: relative;
  padding-top: 34px;
}

.home-page blockquote.card::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  left: 22px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(15, 35, 64, 0.15);
}

.home-page blockquote.card p {
  margin-bottom: 14px;
  font-size: 1.02rem;
}

.home-page .section-alt .grid .card h3 {
  font-size: 1.42rem;
}

.home-page .cta-band {
  padding: 44px;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 35, 64, 0.2), transparent);
  margin: 0;
  border: 0;
}

.magazine-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.magazine-columns p {
  margin-top: 0;
}

.property-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.property-chip {
  border: 1px solid #dce4eb;
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f7fafb);
}

.property-chip h3 {
  font-size: 1.25rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.timeline li {
  position: relative;
  padding-left: 18px;
}

.timeline li::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  top: 9px;
  left: 0;
}

.quote-callout {
  border-left: 4px solid var(--color-gold);
  padding: 18px 20px;
  background: #fffdf9;
  border-radius: 10px;
  font-style: italic;
  color: #2f4157;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.faq-grid details {
  border: 1px solid #dde5ed;
  border-radius: 10px;
  background: white;
  padding: 12px 14px;
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-navy);
}

.toc {
  border: 1px solid #e2e9ef;
  border-radius: 12px;
  background: #f9fbfc;
  padding: 18px;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #dbe6f0;
  font-size: 0.93rem;
  margin-bottom: 12px;
}

@media (max-width: 920px) {
  .magazine-columns {
    grid-template-columns: 1fr;
  }
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer small {
  display: block;
  margin-top: 22px;
  color: #9fb2c8;
}

.breadcrumb {
  margin-top: 22px;
  font-size: 0.9rem;
  color: #4f6379;
}

.breadcrumb a {
  color: #4f6379;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    width: auto;
    border: 0;
  }

  .site-nav ul {
    padding: 0;
    display: flex;
    gap: 18px;
    align-items: center;
  }

  .quick-search {
    margin-top: -56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
