:root {
  --navy: #013E8D;
  --navy-dark: #022B61;
  --navy-deep: #011D43;
  --sky: #E8F0FA;
  --sky-soft: #F4F8FD;
  --ink: #1C2530;
  --muted: #5B6B7C;
  --line: #DDE5EF;
  --white: #FFFFFF;
  --green: #1E7B3C;
  --green-bg: #E6F4EA;
  --red: #A03030;
  --red-bg: #FBEAEA;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(1, 29, 67, 0.10);
  --shadow-soft: 0 4px 14px rgba(1, 29, 67, 0.07);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background-color: var(--white);
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main {
  flex: 1;
}

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

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy-deep);
  line-height: 1.2;
}

.shell {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(1, 29, 67, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo img {
  width: 140px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: var(--sky);
  color: var(--navy-deep);
}

.main-nav a.active {
  color: var(--navy);
}

.main-nav .nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 1.2rem;
}

.main-nav .nav-cta:hover {
  background: var(--navy-dark);
  color: var(--white);
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 62%, #1565C0 100%);
  color: var(--white);
  padding: 4.5rem 0 5rem;
}

.hero .eyebrow {
  color: #BBD3F0;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 15ch;
  margin: 0.6rem 0 1rem;
}

.hero h1 em {
  font-style: italic;
  color: #A8C8F0;
}

.hero p.hero-lede {
  max-width: 52ch;
  color: #DCE7F5;
  font-size: 1.05rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Page intro (interior pages) */
.page-head {
  background: var(--sky-soft);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
}

.page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-top: 0.4rem;
}

.page-head p {
  color: var(--muted);
  max-width: 60ch;
  margin-top: 0.6rem;
}

/* Properties */
.section {
  padding: 3.5rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-head p {
  color: var(--muted);
  font-size: 0.95rem;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}

.property {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.property-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sky);
}

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

.status {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.status-available {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid #BCE0C6;
}

.status-rented {
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  border: 1px solid var(--line);
}

.property-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.property-body h3 {
  font-size: 1.15rem;
}

.property-body h3 a {
  color: inherit;
  text-decoration: none;
}

.property-body h3 a:hover {
  color: var(--navy);
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.specs span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--sky-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

/* CTA band */
.cta-band {
  background: var(--sky-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-inner {
  text-align: center;
  padding: 3.2rem 0;
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-inner p {
  color: var(--muted);
  margin: 0.6rem auto 1.6rem;
  max-width: 55ch;
}

.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.8rem 1.8rem;
  transition: background-color 0.2s, color 0.2s;
}

.button-primary {
  background: var(--navy);
  color: var(--white);
}

.button-primary:hover {
  background: var(--navy-dark);
}

.button-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.team-member {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.5rem;
  text-align: center;
}

.team-member img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--sky);
}

.team-member h3 {
  font-size: 1.2rem;
}

.team-member .role {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.team-member p {
  color: var(--muted);
  font-size: 0.95rem;
}

.team-member a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.team-member a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #C9D8EC;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0 2.2rem;
}

.footer-brand img {
  width: 120px;
  height: auto;
  background: var(--white);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 34ch;
}

.footer-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: #C9D8EC;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--white);
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.footer-legal a {
  color: #C9D8EC;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 5rem 0 6rem;
}

.error-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.4rem 0 0.8rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 1.8rem;
}

/* Responsive */
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.8rem 0;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 3.2rem 0 3.6rem;
  }

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

  .footer-legal {
    justify-content: center;
    text-align: center;
  }
}
