@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #1f2d3d;
  --ink-soft: #425466;
  --navy: #0f2135;
  --blue: #2d6fb5;
  --gold: #b7955d;
  --line: #dbe1e7;
  --radius: 16px;
  --shadow: 0 18px 38px rgba(15, 33, 53, 0.12);
  --container: min(1140px, 92vw);
  --header-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 0% 0%, rgba(45, 111, 181, 0.12), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(183, 149, 93, 0.1), transparent 28%), var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  min-height: calc(100vh - 240px);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-title {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 2.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.section-subtitle {
  margin: 0 0 28px;
  max-width: 760px;
  color: var(--ink-soft);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.87);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219, 225, 231, 0.85);
}

.topbar-inner {
  width: var(--container);
  height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand span {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.cta-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.cta-btn {
  background: linear-gradient(110deg, var(--navy), #17395d);
  color: #fff;
  box-shadow: 0 14px 26px rgba(15, 33, 53, 0.22);
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.outline-btn {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.outline-btn.dark {
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--surface);
}

.hero {
  min-height: 90vh;
  margin-top: var(--header-height);
  color: #fff;
  position: relative;
  display: grid;
  align-items: end;
  background-image: linear-gradient(120deg, rgba(11, 27, 44, 0.85), rgba(11, 27, 44, 0.22)),
    url("https://images.unsplash.com/photo-1600607687644-c7f34b5e53f1?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(183, 149, 93, 0.32), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 90px 0 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
}

.hero h1 {
  margin: 18px 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: 0.025em;
  max-width: 780px;
}

.hero p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stats {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-width: 760px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(10px);
}

.stat-card strong {
  font-size: 1.6rem;
  display: block;
  font-family: "Cormorant Garamond", serif;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
}

.property-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(219, 225, 231, 0.65);
  transform: translateY(18px);
  opacity: 0;
  animation: rise 0.6s ease forwards;
}

.property-card:nth-child(2) {
  animation-delay: 0.1s;
}

.property-card:nth-child(3) {
  animation-delay: 0.2s;
}

.property-card:nth-child(4) {
  animation-delay: 0.3s;
}

.property-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.property-card:hover .property-media img {
  transform: scale(1.06);
}

.property-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 33, 53, 0.92);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.property-content {
  padding: 18px;
}

.property-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.property-head h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.property-price {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.property-meta {
  margin: 12px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.text-link {
  color: var(--navy);
  font-weight: 700;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.why-card h3 {
  margin: 10px 0;
  font-size: 1.1rem;
}

.why-index {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.callout {
  background: linear-gradient(128deg, #10243a, #132f4d);
  color: #fff;
  border-radius: 28px;
  padding: clamp(28px, 4vw, 54px);
  display: grid;
  gap: 20px;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
}

.callout p {
  color: rgba(255, 255, 255, 0.83);
  margin: 0;
}

.footer {
  margin-top: 100px;
  padding: 38px 0;
  background: #121f30;
  color: rgba(255, 255, 255, 0.9);
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 26px;
}

.footer h4 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
}

.footer p,
.footer a {
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.76);
}

.footer-bottom {
  width: var(--container);
  margin: 22px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.page-hero {
  margin-top: var(--header-height);
  padding: 82px 0 56px;
  background: linear-gradient(120deg, #0f2135, #17395d);
  color: #fff;
}

.page-hero h1 {
  margin: 14px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.field,
select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 520px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.thumb {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumb.active {
  border-color: var(--blue);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.tech-list {
  margin: 0;
  padding-left: 20px;
}

.tech-list li {
  margin: 8px 0;
}

.map-frame {
  border: 0;
  width: 100%;
  border-radius: var(--radius);
  min-height: 300px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full {
  grid-column: span 2;
}

.notice {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.fade-up {
  transform: translateY(18px);
  opacity: 0;
  animation: rise 0.7s ease forwards;
}

@keyframes rise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .callout,
  .detail-layout,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    padding: 72px 0 64px;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    padding: 16px 4vw 26px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 12px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .section {
    padding: 72px 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .full {
    grid-column: span 1;
  }
}
