@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Jost:wght@300;400;500&display=swap");

:root {
  --text-light: #f2f2f2;
  --text-soft: #d6d6d6;
  --overlay-dark: rgba(0, 0, 0, 0.54);
  --overlay-blue: rgba(12, 20, 34, 0.62);
  --bg-light: #e7e6e8;
  --body-dark: #292d36;
  --border-soft: #b7b3b3;
  --accent-soft: #868282;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Jost", "Segoe UI", sans-serif;
  background: var(--bg-light);
  color: var(--body-dark);
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 18px 24px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.top-nav a {
  color: var(--text-light);
  text-decoration: none;
  border: 1px solid rgba(242, 242, 242, 0.6);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav a.active {
  background: rgba(242, 242, 242, 0.15);
}

.top-nav-light {
  background: linear-gradient(to bottom, rgba(231, 230, 232, 0.96), rgba(231, 230, 232, 0.76), transparent);
}

.top-nav-light a {
  color: #252b37;
  border-color: rgba(37, 43, 55, 0.45);
}

.top-nav-light a.active {
  background: rgba(37, 43, 55, 0.1);
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-home::before {
  background-image: url("../images/index-bg.jpg");
}

.hero-home::after {
  background: var(--overlay-dark);
}

.hero-about {
  min-height: 64vh;
  justify-content: center;
}

.hero-about::before {
  background-image: url("../images/about-us.jpg");
}

.hero-about::after {
  background: var(--overlay-blue);
}

.hero-brand {
  position: absolute;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  line-height: 1;
  opacity: 0.95;
}

.hero-brand-icon {
  font-size: 48px;
  line-height: 1;
  margin-top: 6px;
}

.hero-brand-text {
  display: inline-block;
  letter-spacing: 0.03em;
  line-height: 0.9;
  text-align: center;
}

.hero-brand-primary {
  font-size: 72px;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.hero-brand-secondary {
  font-size: 72px;
  font-weight: 500;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(92%, 760px);
  margin-right: 9%;
  margin-top: 120px;
  margin-bottom: 0;
  margin-left: 0;
  color: var(--text-light);
}

.tagline {
  margin: 0 0 16px;
  letter-spacing: 0.2em;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-title {
  margin: 0;
  font-size: clamp(44px, 5.2vw, 62px);
  line-height: 1.02;
  font-weight: 400;
}

.hero-btn {
  margin-top: 52px;
  display: inline-block;
  color: var(--text-light);
  text-decoration: none;
  border: 2px solid var(--text-light);
  border-radius: 999px;
  padding: 14px 42px;
  font-size: 26px;
  letter-spacing: 0.06em;
}

.about-center {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  text-align: center;
  width: min(95%, 1020px);
}

.about-title {
  margin: 0 0 6px;
  font-weight: 300;
  letter-spacing: 0.02em;
  font-size: clamp(58px, 9vw, 110px);
  font-family: "Cormorant Garamond", serif;
}

.about-lines {
  margin: 0;
  font-size: clamp(20px, 2vw, 41px);
  line-height: 1.45;
  font-weight: 300;
}

.about-copy {
  background: transparent;
  padding: 80px 24px 110px;
}

.about-copy p {
  margin: 0 auto;
  max-width: 980px;
  text-align: center;
  font-size: clamp(22px, 2vw, 44px);
  line-height: 1.45;
}

body.about-bg-page {
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)),
    url("../images/about-us.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.about-bg-page .hero-about::before,
body.about-bg-page .hero-about::after {
  display: none;
}

body.about-bg-page .about-copy p {
  color: var(--text-light);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.listings-page,
.listing-detail-page {
  min-height: 100vh;
  padding: 110px 24px 80px;
  background: var(--bg-light);
}

.listings-wrap,
.detail-wrap {
  max-width: 1260px;
  margin: 0 auto;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.listing-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-soft);
  background: #e4e3e6;
  transition: transform 0.25s ease;
  overflow: hidden;
  min-height: 100%;
}

.listing-card:hover {
  transform: translateY(-4px);
}

.listing-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.listing-content {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.listing-address {
  margin: 0 0 16px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-name {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 3vw, 52px);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.listing-cta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent-soft);
  letter-spacing: 0.05em;
  font-size: 12px;
  text-transform: uppercase;
}

.listing-cta .arrow {
  font-size: 26px;
  line-height: 1;
}

.detail-name {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 400;
  color: #252b37;
}

.detail-address {
  margin: 10px 0 36px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.detail-grid img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border-soft);
}

.back-link {
  display: inline-block;
  margin-top: 30px;
  color: #252b37;
  text-decoration: none;
  border: 1px solid #252b37;
  border-radius: 999px;
  padding: 10px 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

@media (max-width: 1000px) {
  .listings-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    margin: 110px auto 48px;
    width: min(90%, 700px);
  }

  .tagline {
    font-size: 18px;
    letter-spacing: 0.22em;
  }

  .hero-title {
    font-size: clamp(40px, 10.2vw, 66px);
  }

  .hero-btn {
    margin-top: 34px;
    font-size: 28px;
    padding: 14px 46px;
  }

  .about-lines {
    font-size: clamp(21px, 4.1vw, 33px);
  }

  .about-copy p {
    font-size: clamp(22px, 4.4vw, 34px);
  }
}

.home-page .top-nav {
  justify-content: center;
}

.home-page .hero-content {
  margin: 220px auto 0;
  text-align: center;
}

.home-page .hero {
  justify-content: center;
}

.home-page .tagline,
.home-page .hero-title {
  text-align: center;
}

.home-page .tagline {
  margin-bottom: 6px;
}

.home-page .hero-title {
  line-height: 1;
}

.home-footer {
  padding: 72px 28px 64px;
  background: #f1f1f1;
  color: #232734;
}

.home-footer-brand {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.1;
  margin-bottom: 38px;
}

.home-footer-rule {
  margin: 0 auto 44px;
  border: 0;
  border-top: 2px solid rgba(35, 39, 52, 0.22);
  width: min(96%, 1800px);
}

.home-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
  align-items: start;
  text-align: center;
}

.home-footer-col h2 {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(14px, 1.32vw, 32px);
  font-weight: 500;
}

.home-footer-col p {
  margin: 0;
  font-size: clamp(12px, 1.08vw, 26px);
  line-height: 1.55;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-row span {
  width: clamp(30px, 2.2vw, 52px);
  height: clamp(30px, 2.2vw, 52px);
  border: 2px solid rgba(35, 39, 52, 0.45);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(8px, 0.6vw, 14px);
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  .home-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
