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

:root {
  --navy: #0d1b2a;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --offwhite: #f5f3ef;
  --gray: #6b7280;
  --light-gray: #e5e7eb;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  color: var(--navy);
  background: var(--white);
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Georgia', serif;
  font-size: 22px;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 2px;
  text-decoration: none;
}

.nav-logo span { color: var(--white); }

.nav-links { display: flex; gap: 36px; list-style: none; }

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* Keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Visually hidden but read by screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 22px;
  font-weight: bold;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy) !important; }

/* HERO */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 50%, #0d1b2a 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 60px 80px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'Arial', sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 28px;
  max-width: 820px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 48px;
  font-family: 'Arial', sans-serif;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 16px 36px;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

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

.btn-outline {
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 16px 36px;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.hero-stats {
  display: flex;
  gap: 60px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}

.stat-item {}

.stat-number {
  font-size: 42px;
  font-weight: bold;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-family: 'Arial', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

/* SECTION BASE */
section { padding: 100px 60px; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-eyebrow {
  font-family: 'Arial', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.2;
  margin-bottom: 24px;
}

.section-body {
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
  max-width: 680px;
}

/* ABOUT */
.about { background: var(--offwhite); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.about-visual {
  background: var(--navy);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-visual-inner {
  text-align: center;
  padding: 48px;
}

.about-visual-quote {
  font-size: 22px;
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 24px;
}

.about-visual-quote em {
  font-style: normal;
  color: var(--gold);
}

.about-visual-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
}

.about-text h2 { margin-bottom: 24px; }

.about-text p {
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 20px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.pillar {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

.pillar-title {
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 6px;
}

.pillar-text {
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

/* PORTFOLIO */
.portfolio { background: var(--white); }

.portfolio-header { margin-bottom: 60px; }

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.property-card {
  border: 1px solid var(--light-gray);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.property-card:hover { box-shadow: 0 12px 48px rgba(13,27,42,0.12); }

.property-banner {
  background: var(--navy);
  height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.property-banner-1 {
  background: linear-gradient(135deg, #1a3a5c 0%, #0d2d47 100%);
}

.property-banner-2 {
  background: linear-gradient(135deg, #2d1a0d 0%, #1a0d05 100%);
}

.property-banner::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 150px; height: 150px;
  background: rgba(201,168,76,0.08);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.property-type-badge {
  font-family: 'Arial', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  padding: 4px 10px;
  font-weight: bold;
  position: absolute;
  top: 20px;
  left: 20px;
}

.property-banner-text { position: relative; z-index: 2; }

.property-name {
  font-size: 22px;
  font-weight: normal;
  color: var(--white);
  margin-bottom: 4px;
}

.property-address {
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.property-body { padding: 28px; }

.property-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.prop-stat-number {
  font-size: 26px;
  font-weight: bold;
  color: var(--navy);
}

.prop-stat-label {
  font-family: 'Arial', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 4px;
}

.property-desc {
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
  padding-top: 20px;
  border-top: 1px solid var(--light-gray);
}

/* INVESTMENT APPROACH */
.approach { background: var(--navy); }

.approach .section-title { color: var(--white); }

.approach .section-body { color: rgba(255,255,255,0.65); }

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.criteria-card {
  background: rgba(255,255,255,0.04);
  padding: 40px 32px;
  border-top: 2px solid var(--gold);
  transition: background 0.2s;
}

.criteria-card:hover { background: rgba(255,255,255,0.07); }

.criteria-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.criteria-title {
  font-size: 18px;
  font-weight: normal;
  color: var(--white);
  margin-bottom: 12px;
}

.criteria-text {
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}

.criteria-detail {
  margin-top: 16px;
  font-family: 'Arial', sans-serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--gold);
}

/* PARTNER */
.partner { background: var(--offwhite); }

.partner-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 60px;
}

.partner-copy .section-body + .section-body { margin-top: 20px; }
.partner-copy .btn-primary { display: inline-block; margin-top: 36px; }

.partner-reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.reason-card {
  background: var(--white);
  padding: 28px;
  border-bottom: 3px solid var(--gold);
}

.reason-num {
  font-size: 36px;
  font-weight: bold;
  color: var(--light-gray);
  line-height: 1;
  margin-bottom: 12px;
}

.reason-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 10px;
}

.reason-text {
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
}

/* TEAM */
.team { background: var(--white); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
  max-width: 760px;
}

.team-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  color: var(--gold);
  font-weight: bold;
}

.team-name {
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 4px;
}

.team-role {
  font-family: 'Arial', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.team-bio {
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
}

/* CONTACT */
.contact { background: var(--navy); }

.contact .section-title { color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
  align-items: start;
}

.contact-info p {
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item-label {
  font-family: 'Arial', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-item-value {
  font-family: 'Arial', sans-serif;
  font-size: 15px;
  color: var(--white);
}

.contact-item-value a { color: var(--white); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.contact-item-value a:hover { color: var(--gold); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status {
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
.form-status:empty { display: none; }
.form-status.is-success { color: #7fd1a8; }
.form-status.is-error { color: #f2a7a0; }

.form-fineprint {
  font-family: 'Arial', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.form-fineprint a { color: rgba(255,255,255,0.6); }
.form-fineprint a:hover { color: var(--gold); }

.contact-form button:disabled { opacity: 0.7; cursor: wait; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 14px 18px;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.contact-form select { color: rgba(255,255,255,0.7); }
.contact-form select option { background: var(--navy); color: var(--white); }

.contact-form textarea { height: 120px; resize: vertical; }

.contact-form button {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 16px;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover { background: var(--gold-light); }

/* FOOTER */
footer {
  background: #07111c;
  padding: 40px 60px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-disclaimer {
  max-width: 1200px;
  margin: 28px auto 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: 'Arial', sans-serif;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255,255,255,0.38);
}

footer .footer-copy { max-width: 1200px; margin: 0 auto; }

.footer-logo {
  font-family: 'Georgia', serif;
  font-size: 18px;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 2px;
}

.footer-logo span { color: rgba(255,255,255,0.5); }

.footer-copy {
  font-family: 'Arial', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-family: 'Arial', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* DIVIDER LINE */
.gold-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 24px 0;
}


/* PHOTO BANNER + GALLERY */
.property-banner-photo {
  background-image: url("../img/sherburne-aerial-800.webp");
  background-size: cover !important;
  background-position: center !important;
  height: 260px;
}
.property-banner-photo::before { display: none; }
.property-banner-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.92) 0%, rgba(13,27,42,0.25) 55%, rgba(13,27,42,0.05) 100%);
}
.property-banner-photo .property-banner-text,
.property-banner-photo .property-type-badge { z-index: 2; }

.gallery { margin-top: 72px; }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.gallery-title { font-size: 26px; }
.gallery-note { font-family: 'Arial', sans-serif; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); }
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px;
}
.gallery-item {
  position: relative; overflow: hidden; cursor: zoom-in; background: var(--navy);
  display: block; width: 100%; padding: 0; border: 0; font: inherit; text-align: left;
}
.gallery-item:focus-visible { outline-offset: 2px; }
.gallery-item:first-child { grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap {
  display: block;
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(to top, rgba(13,27,42,0.85), transparent);
  color: #fff; font-family: 'Arial', sans-serif; font-size: 12px; letter-spacing: 0.5px;
}
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7,17,28,0.95);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
  color: var(--white); font-size: 30px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }
.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-item { height: 240px; }
  .gallery-item:first-child, .gallery-item:nth-child(4) { grid-row: auto; grid-column: auto; }
}

/* MOBILE NAV TOGGLE */
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); transition: transform 0.25s, opacity 0.25s; }
nav.open .nav-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 12px 24px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 8px 24px 24px;
  }
  nav.open .nav-links { display: flex; }
  .nav-links li a { display: block; padding: 14px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links .nav-cta { text-align: center; margin-top: 16px; border-bottom: 0; }
  .hero-eyebrow { letter-spacing: 2.5px; }
  .hero-stats { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 34px; }
  .hero-buttons a { flex: 1 1 200px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .prop-stat-number { font-size: 20px; }
  .property-body { padding: 22px; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; }
  .gallery-head { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
  section { padding: 72px 24px; }
  .hero { padding: 0; }
  .hero-content { padding: 100px 24px 60px; }
  .hero-stats { gap: 32px; }
  .about-grid,
  .partner-intro,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-grid,
  .criteria-grid,
  .about-pillars,
  .partner-reasons { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  footer { padding: 40px 24px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* Respect users who turn off animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* PRIVACY / LEGAL PAGE */
.legal-page { padding: 140px 60px 100px; background: var(--offwhite); }
.legal-page .section-inner { max-width: 760px; }
.legal-page h2 { font-size: 22px; margin: 40px 0 12px; }
.legal-page p,
.legal-page li {
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
}
.legal-page p + p { margin-top: 12px; }
.legal-page ul { padding-left: 22px; margin-top: 8px; }
.legal-page a { color: var(--navy); text-underline-offset: 3px; }
.legal-updated { font-family: 'Arial', sans-serif; font-size: 13px; color: var(--gray); }
@media (max-width: 900px) {
  .legal-page { padding: 110px 24px 72px; }
}
@media (max-width: 900px) {
  .nav-links.legal-nav { display: flex; position: static; padding: 0; background: none; border: 0; }
  .nav-links.legal-nav .nav-cta { margin-top: 0; padding: 10px 16px; font-size: 12px; }
}

/* MOBILE QA FIXES */
/* Size the hero to the visible screen on phones (100vh includes the hidden browser toolbar) */
@supports (min-height: 100svh) {
  .hero { min-height: 100svh; }
}
/* Keep short stat values like "In-House" on one line in the 3-column property stats */
.prop-stat-number { white-space: nowrap; }
@media (max-width: 480px) {
  .property-stats { gap: 10px; }
  .prop-stat-number { font-size: 18px; }
}
