/* ==========================================================================
   IMAGO PROPERTY MANAGEMENT — Design System
   Signature motif: the "roofline" — a gradient chevron (navy > slate > mist)
   pulled directly from the mark, used as a recurring divider / underline /
   ambient watermark throughout the site.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --navy: #1F2D3D;
  --navy-deep: #16212D;
  --slate: #5B7A99;
  --slate-light: #8FA6BC;
  --mist: #C7D5E0;

  /* Neutrals */
  --paper: #FFFFFF;
  --fog: #F1F4F7;
  --ink: #1B2530;
  --ink-soft: #4B5A68;

  /* Accent — warm brass, used sparingly for CTAs / highlights */
  --brass: #A9803F;
  --brass-deep: #8C6A32;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --header-h: 118px;
  --max: 1240px;
  --section-pad: clamp(64px, 9vw, 128px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

/* --- Signature roofline divider --- */
.roofline {
  width: 72px;
  height: 3px;
  margin: 18px 0 28px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--slate) 55%, var(--slate-light) 100%);
  border-radius: 2px;
}
.roofline.center { margin-left: auto; margin-right: auto; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(31, 45, 61, 0.94);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.3s ease, height 0.3s ease;
}
.site-header.scrolled {
  height: 92px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-left: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 92px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a.nav-link {
  display: block;
  padding: 10px 14px;
  color: #EAF0F5;
  font-size: 1.02rem;
  font-weight: 500;
  border-radius: 6px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a.nav-link:hover,
.main-nav li.has-dropdown:hover > a.nav-link,
.main-nav a.nav-link[aria-current="page"] {
  color: #FFFFFF;
  background: rgba(255,255,255,0.08);
}
.main-nav a.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 2px;
  background: linear-gradient(90deg, var(--slate-light), var(--brass));
  border-radius: 2px;
}

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--navy-deep);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: #DCE6EE;
  font-size: 0.92rem;
}
.dropdown a:hover { background: rgba(255,255,255,0.08); color: #fff; }

.btn-pay {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  background: #FFFFFF;
  padding: 12px 22px;
  border-radius: 8px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.btn-pay:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  width: 40px; height: 40px;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-deep); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(169,128,63,0.32); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-deep); transform: translateY(-2px); }

/* ==========================================================================
   HERO (shared skeleton — each page sets its own background image)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  will-change: transform;
}
/* Temporary stand-in until real property photography is dropped in —
   swap background-image via inline style or a new class, same markup. */
.hero-media.parallax {
  animation: kenburns 11s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media.parallax { animation: none; }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,33,45,0.55) 0%, rgba(22,33,45,0.35) 40%, rgba(22,33,45,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
  animation: heroRise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-logo { height: 96px; width: auto; margin: 0 auto 24px; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35)); }
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.2vw, 3.7rem);
  margin-bottom: 12px;
}
.hero-tagline {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--mist);
  margin-bottom: 32px;
}
.hero-content .btn { margin-top: 8px; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-display);
  animation: floatCue 2.4s ease-in-out infinite;
}
.scroll-cue span.line { width: 1px; height: 34px; background: linear-gradient(180deg, rgba(255,255,255,0.9), transparent); }
@keyframes floatCue { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

.hero-small {
  min-height: 56vh;
}
.hero-small .hero-content { max-width: 640px; }
.hero-small.hero-lg { min-height: 68vh; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section { padding: var(--section-pad) 0; }
.section-alt { background: var(--fog); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: var(--mist); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.15rem; }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* --- Intro / dedication --- */
.intro-block { text-align: center; max-width: 760px; margin: 0 auto; }
.intro-block h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }

/* --- Two-column value props --- */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 48px;
}
.value-col h3 { font-size: 1.65rem; }
.value-col .btn { margin-top: 12px; }

/* --- Photo spotlight --- */
.spotlight {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.spotlight figure { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(22,33,45,0.35); }
.spotlight figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.spotlight figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}
.spotlight-copy .eyebrow { display: block; margin-bottom: 10px; }

/* ==========================================================================
   DEVICE MOCKUPS (stylized stand-ins until real app screenshots are available)
   ========================================================================== */
.portal-features {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.device-mock { display: flex; flex-direction: column; align-items: center; }
.device-laptop {
  width: 100%;
  max-width: 460px;
  background: var(--navy);
  border-radius: 14px;
  padding: 14px 14px 20px;
  box-shadow: 0 40px 70px -30px rgba(22,33,45,0.45);
}
.device-laptop .device-screen {
  aspect-ratio: 16/10;
  border-radius: 6px;
}
.device-laptop-base {
  width: 112%;
  margin-left: -6%;
  height: 12px;
  background: var(--navy-deep);
  border-radius: 0 0 8px 8px;
  margin-top: -2px;
}
.device-phone {
  position: relative;
  width: 100%;
  max-width: 260px;
  background: linear-gradient(155deg, #2a3746, #12191F);
  border-radius: 42px;
  padding: 14px;
  box-shadow: 0 40px 80px -30px rgba(22,33,45,0.5), inset 0 0 0 2px rgba(255,255,255,0.06);
}
.device-phone::before {
  content: '';
  position: absolute;
  top: 26px; left: -2px;
  width: 3px; height: 32px;
  background: #0d1216;
  border-radius: 2px 0 0 2px;
}
.device-phone::after {
  content: '';
  position: absolute;
  top: 74px; left: -2px;
  width: 3px; height: 54px;
  background: #0d1216;
  border-radius: 2px 0 0 2px;
}
.device-phone .device-screen {
  aspect-ratio: 9/19.5;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}
.device-phone .notch {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 40%; height: 22px;
  background: #12191F;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.device-tablet {
  width: 100%;
  max-width: 340px;
  background: var(--navy);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 40px 70px -30px rgba(22,33,45,0.45);
}
.device-tablet .device-screen {
  aspect-ratio: 3/4;
  border-radius: 10px;
  align-items: flex-end;
  padding: 0;
}
.estimate-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px -20px rgba(22,33,45,0.35);
  padding: 18px;
  margin: 0 12px 20px;
  width: calc(100% - 24px);
}
.estimate-card .status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--navy);
  margin-bottom: 10px;
}
.estimate-card .status .dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: #2FAE7A; color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.estimate-card .status .dot svg { width: 12px; height: 12px; }
.estimate-card .row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--ink-soft); padding: 5px 0; border-top: 1px solid #EEF1F4; }
.estimate-card .row:first-of-type { border-top: none; }
.estimate-card .row strong { color: var(--ink); }
.device-screen {
  background: var(--fog);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.device-screen img { width: 46%; opacity: 0.9; }

.app-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.app-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 10px;
  font-family: var(--font-body); font-size: 0.85rem;
  transition: background 0.2s ease;
}
.app-badge:hover { background: var(--navy-deep); }
.app-badge svg { width: 20px; height: 20px; flex-shrink: 0; }
.app-badge .badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.app-badge .badge-text small { font-size: 0.65rem; opacity: 0.8; }
.app-badge .badge-text strong { font-size: 0.92rem; }

.portal-way {
  background: var(--navy);
  border-radius: 20px;
  padding: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
  color: #fff;
}
.portal-way .eyebrow { color: var(--slate-light); }
.portal-way h2 { color: #fff; }
.portal-way p { color: var(--mist); }

@media (max-width: 860px) {
  .portal-features { grid-template-columns: 1fr; }
  .portal-way { grid-template-columns: 1fr; text-align: center; }
  .portal-way .app-badges { justify-content: center; }
}


.quicklink-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border-radius: 18px;
  overflow: hidden;
}
.quicklink-tile {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.quicklink-tile .tile-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.5s ease;
}
.quicklink-tile:hover .tile-bg { transform: scale(1.14); }
.quicklink-tile .tile-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,33,45,0.1) 0%, rgba(22,33,45,0.55) 100%);
  transition: background 0.35s ease;
}
.quicklink-tile:hover .tile-scrim {
  background: linear-gradient(180deg, rgba(22,33,45,0.2) 0%, rgba(22,33,45,0.9) 100%);
}
.quicklink-tile .tile-content { position: relative; z-index: 2; padding: 28px 22px; width: 100%; }
.quicklink-tile .tile-eyebrow {
  display: block; font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-light); margin-bottom: 8px;
}
.quicklink-tile h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0; transition: margin-bottom 0.3s ease; }
.quicklink-tile p, .quicklink-tile .btn {
  opacity: 0; max-height: 0; overflow: hidden; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
  margin: 0;
}
.quicklink-tile p { color: var(--mist); font-size: 0.96rem; }
.quicklink-tile .btn { width: 100%; justify-content: center; font-size: 0.85rem; padding: 12px 16px; }
.quicklink-tile:hover h3 { margin-bottom: 8px; }
.quicklink-tile:hover p { opacity: 1; max-height: 60px; transform: translateY(0); margin-bottom: 16px; }
.quicklink-tile:hover .btn { opacity: 1; max-height: 60px; transform: translateY(0); }
@media (hover: none) {
  .quicklink-tile p, .quicklink-tile .btn { opacity: 1; max-height: none; transform: none; }
  .quicklink-tile p { margin-bottom: 16px; }
  .quicklink-tile h3 { margin-bottom: 8px; }
}

.home-contact { display: grid; grid-template-columns: 1fr 0.9fr; gap: 48px; align-items: start; }
.home-contact .form-panel h2 { font-size: 1.5rem; }
.home-contact .big-map { margin-top: 0; height: 100%; min-height: 380px; }
.home-contact .big-map iframe { height: 100%; min-height: 380px; }

@media (max-width: 980px) { .quicklink-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .quicklink-grid { grid-template-columns: 1fr; }
  .home-contact { grid-template-columns: 1fr; }
  .home-contact .big-map, .home-contact .big-map iframe { min-height: 240px; }
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.property-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid #E4E9EE;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px -28px rgba(22,33,45,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.property-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -26px rgba(22,33,45,0.32); }
.property-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.property-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.property-card-body .tag {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.property-card-body h4 { margin: 4px 0 0; font-size: 1.12rem; }

.listing-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}
.listing-detail-photo img { width: 100%; border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; }
.listing-detail-photo-placeholder {
  width: 100%; aspect-ratio: 4/3; border-radius: 14px; background: var(--fog);
  display: flex; align-items: center; justify-content: center;
}
.listing-detail-stats { display: flex; gap: 20px; margin-top: 16px; font-weight: 600; color: var(--navy); }
.listing-detail-map iframe { width: 100%; height: 360px; border: 0; border-radius: 14px; display: block; }
@media (max-width: 860px) {
  .listing-detail-grid { grid-template-columns: 1fr; }
}

.listing-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--navy);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 32px;
}
.filter-dropdown { position: relative; flex: 1 1 0; min-width: 130px; }
.filter-trigger {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: none; border-radius: 8px;
  padding: 10px 16px;
  color: #fff;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.filter-trigger:hover { background: rgba(255,255,255,0.15); }
.filter-trigger i { font-style: normal; opacity: 0.7; font-size: 0.85em; }
.filter-trigger b { font-weight: normal; opacity: 0.6; font-size: 0.75em; }
.filter-popover {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--navy-deep);
  border-radius: 10px;
  padding: 16px;
  min-width: 220px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5);
  z-index: 50;
}
.filter-popover.open { display: block; }
.filter-popover label {
  display: block; color: var(--mist); font-size: 0.82rem; font-weight: 600; margin: 0 0 6px;
}
.filter-popover label:not(:first-child) { margin-top: 12px; }
.filter-popover select, .filter-popover input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; font-family: var(--font-body); font-size: 0.92rem;
  background: rgba(255,255,255,0.95); color: var(--ink); box-sizing: border-box;
}
@media (max-width: 640px) {
  .listing-filters { flex-direction: column; }
  .filter-dropdown, .filter-trigger { width: 100%; }
  .filter-popover { left: 0; right: 0; width: auto; }
}
@media (max-width: 900px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .property-grid { grid-template-columns: 1fr; }
}

/* --- Mission --- */
.mission-panel {
  position: relative;
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}
.mission-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(91,122,153,0.25) 60%, transparent 78%);
  pointer-events: none;
}
.mission-panel .eyebrow { color: var(--slate-light); font-size: 1.3rem; }
.mission-panel blockquote {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  font-weight: 500;
  max-width: 900px;
  margin: 18px auto 0;
  line-height: 1.5;
}

/* --- Core values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.value-card {
  background: var(--paper);
  border: 1px solid #E4E9EE;
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -16px rgba(31,45,61,0.22); }
.value-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.value-card p { font-size: 1.02rem; margin: 0; }

/* --- Closing CTA --- */
.cta-band {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.cta-band .roofline { background: linear-gradient(90deg, var(--slate-light), var(--brass)); }
.cta-band.cta-photo {
  background-image: linear-gradient(rgba(22,33,45,0.42), rgba(22,33,45,0.58)), url('../img/san-antonio-skyline.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 900px) {
  .cta-band.cta-photo { background-attachment: scroll; }
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; max-width: 520px; font-size: clamp(1.8rem, 3.2vw, 2.4rem); }

/* --- Service grid (icons) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 40px;
  margin-top: 40px;
}
.service-item .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--fog);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate);
  margin-bottom: 18px;
}
.service-item .icon svg { width: 26px; height: 26px; }
.service-item h3 { font-size: 1.22rem; }
.service-item p { font-size: 1.02rem; }

.confirm-flag {
  display: inline-block;
  margin-top: 40px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--fog);
  border: 1px dashed var(--slate-light);
  border-radius: 8px;
  padding: 10px 16px;
}

/* --- Availability page specifics --- */
.filter-note {
  background: var(--fog);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 40px;
}
.filter-note .icon-badge {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brass);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}
.filter-note h3 { font-size: 1.08rem; margin-bottom: 6px; }
.filter-note p { font-size: 1rem; margin: 0; }

.iframe-frame {
  border: 1px solid #E4E9EE;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(22,33,45,0.3);
  background: var(--fog);
}
.iframe-frame .iframe-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
}
.iframe-frame .iframe-bar a { text-decoration: underline; color: var(--mist); }
.iframe-frame iframe {
  width: 100%;
  height: 1200px;
  border: none;
  display: block;
}
.iframe-fallback {
  padding: 60px 24px;
  text-align: center;
  display: none;
}
.iframe-fallback.show { display: block; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: var(--mist);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 64px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.98rem; color: var(--mist); max-width: 280px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 1rem; color: var(--mist); transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; font-size: 1rem; }
.footer-map {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.footer-map iframe { width: 100%; height: 140px; border: 0; display: block; filter: grayscale(0.3); }
.social-row { display: flex; gap: 14px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.social-row a:hover { background: var(--slate); }
.social-row svg { width: 17px; height: 17px; fill: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 56px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(199,213,224,0.7);
}

/* ==========================================================================
   RESIDENTS — quick-action cards + accordion
   ========================================================================== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.action-card {
  background: var(--paper);
  border: 1px solid #E4E9EE;
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.action-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -20px rgba(31,45,61,0.24); }
.action-card.featured { background: var(--navy); color: #fff; }
.action-card.featured h3 { color: #fff; }
.action-card.featured p { color: var(--mist); }
.action-card .icon {
  width: 56px; height: 56px; margin: 0 auto 18px;
  border-radius: 14px;
  background: var(--fog);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate);
}
.action-card.featured .icon { background: rgba(255,255,255,0.12); color: #fff; }
.action-card .icon svg { width: 28px; height: 28px; }
.action-card .btn { margin-top: 8px; width: 100%; justify-content: center; }

.accordion { max-width: 820px; margin: 48px auto 0; }
.accordion-item {
  border-bottom: 1px solid #E4E9EE;
}
.accordion-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
}
.accordion-item summary .summary-label { display: flex; align-items: center; gap: 14px; }
.accordion-item summary .summary-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--fog); color: var(--slate); flex-shrink: 0;
}
.accordion-item summary .summary-icon svg { width: 17px; height: 17px; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .plus {
  flex-shrink: 0;
  width: 24px; height: 24px;
  position: relative;
}
.accordion-item summary .plus::before,
.accordion-item summary .plus::after {
  content: ''; position: absolute; background: var(--slate);
  transition: transform 0.2s ease;
}
.accordion-item summary .plus::before { top: 50%; left: 2px; right: 2px; height: 2px; margin-top: -1px; }
.accordion-item summary .plus::after { left: 50%; top: 2px; bottom: 2px; width: 2px; margin-left: -1px; }
.accordion-item[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.accordion-item .accordion-body { padding: 0 4px 22px; }
.accordion-item .accordion-body p { margin: 0; }

/* ==========================================================================
   FORMS — Owners inquiry / Contact form
   ========================================================================== */
.form-panel {
  background: var(--paper);
  border: 1px solid #E4E9EE;
  border-radius: 18px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 30px 60px -30px rgba(22,33,45,0.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #D5DDE4;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--ink);
  background: var(--fog);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--slate);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }

.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 22px;
}
.field-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--slate);
}
.field-consent label {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.owners-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.owners-copy .roofline { margin-top: 4px; }
.why-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-list .check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--fog); color: var(--slate);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.why-list .check svg { width: 14px; height: 14px; }

/* ==========================================================================
   ABOUT — bio layout
   ========================================================================== */
.bio-block {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.bio-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(22,33,45,0.3);
}
.bio-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.bio-copy h3 { font-size: 1.75rem; margin-bottom: 4px; }
.bio-role { font-family: var(--font-display); color: var(--slate); font-weight: 600; font-size: 1.02rem; margin-bottom: 18px; display: block; }
.bio-contact { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 1rem; }
.bio-contact a { color: var(--navy); font-weight: 500; }
.bio-contact a:hover { color: var(--slate); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-info-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-info-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-list .icon-sm {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
  background: var(--fog); color: var(--slate);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-list .icon-sm svg { width: 20px; height: 20px; }
.contact-info-list a { font-weight: 500; color: var(--navy); }
.big-map { border-radius: 16px; overflow: hidden; margin-top: 32px; border: 1px solid #E4E9EE; }
.big-map iframe { width: 100%; height: 260px; border: 0; display: block; }

@media (max-width: 900px) {
  .owners-split, .bio-block, .contact-grid { grid-template-columns: 1fr; }
  .bio-photo { max-width: 320px; margin: 0 auto; }
  .quick-actions { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: var(--navy-deep); display: flex; flex-direction: column; align-items: stretch;
    padding: 20px; transform: translateX(100%); transition: transform 0.3s ease, visibility 0s linear 0.3s;
    overflow-y: auto; visibility: hidden; pointer-events: none; z-index: 400; }
  .main-nav.open { transform: translateX(0); visibility: visible; pointer-events: auto; transition: transform 0.3s ease, visibility 0s linear 0s; }
  .main-nav ul { display: flex; flex-direction: column; gap: 2px; width: 100%; }
  .main-nav ul li { width: 100%; }
  .main-nav a.nav-link { width: 100%; box-sizing: border-box; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,0.04); display: none; margin: 4px 0 4px 14px; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .value-grid, .spotlight, .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --section-pad: 56px; --header-h: 72px; }
  .site-header.scrolled { height: 64px; }
  .brand img { height: 52px; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-logo { height: 72px; }
  .iframe-frame iframe { height: 900px; }
}
