/* Apex Field Property — Landing Page */

:root {
  --color-bg: #faf9f7;
  --color-bg-alt: #f0ede8;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-accent: #2d4a3e;
  --color-accent-light: #3d6354;
  --color-accent-dark: #1e3329;
  --color-gold: #c4a35a;
  --color-border: #e5e0d8;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
  --header-height: 72px;
  --container: min(1120px, 100% - 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-light);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&q=80&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 51, 41, 0.82) 0%,
    rgba(45, 74, 62, 0.65) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 4rem;
  max-width: 680px;
  color: #fff;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions .btn-primary {
  background: var(--color-gold);
  color: var(--color-accent-dark);
}

.hero-actions .btn-primary:hover {
  background: #d4b36a;
}

/* Sections */
.section {
  padding-block: 5rem;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Property grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.property-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.property-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.property-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.property-body p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.property-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(45, 74, 62, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

/* Features */
.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.features-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.features-content .section-desc {
  margin-bottom: 2rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.features-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  margin-top: 2px;
}

.features-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.features-list p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.features-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.features-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* CTA / Contact */
.cta-section {
  padding-bottom: 6rem;
}

.cta-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.cta-card--centered {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.cta-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cta-card .section-desc {
  margin-bottom: 1.5rem;
}

.contact-info {
  margin-top: 0.5rem;
}

.contact-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--color-accent-light);
}

/* Footer */
.footer {
  background: var(--color-accent-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 1.5rem 2rem;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.75;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-self: start;
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-credit,
.footer-copy {
  font-size: 0.8rem;
  opacity: 0.55;
  grid-column: 1 / -1;
}

.footer-credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .features-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .features-image {
    order: -1;
    max-height: 400px;
  }

  .features-image img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.5rem;
  }

  .section {
    padding-block: 3.5rem;
  }

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

  .cta-card {
    padding: 2rem 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --container: min(1120px, 100% - 1.25rem);
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .logo {
    font-size: 0.95rem;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}
