/* Avant Garde Property Management — landing styles · brand #53B717 */
:root {
  --brand: #53b717;
  --brand-hover: #449914;
  --brand-soft: rgba(83, 183, 23, 0.12);
  --bg: #f6f7f4;
  --bg-alt: #eef1ea;
  --surface: #ffffff;
  --ink: #1a1f1a;
  --ink-muted: #4a5248;
  --line: rgba(26, 31, 26, 0.12);
  --primary: #1e2d16;
  --primary-hover: #141f0f;
  --header-h: 5rem;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26, 46, 18, 0.08);
  --shadow-lg: 0 24px 48px rgba(26, 46, 18, 0.1);
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-display: "Montserrat", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: #fff;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Sticky shell: top bar + main nav */
.site-head {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Top bar — layout 1 (wide): emergency left, actions right · layout 2 (narrow): stacked */
.top-bar {
  background: linear-gradient(90deg, #3d8a12 0%, var(--brand) 50%, #3d8a12 100%);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 3.25rem;
}
.top-bar-emergency {
  text-align: left;
  flex: 1 1 auto;
  min-width: min(100%, 220px);
}
.top-bar-emergency strong {
  font-weight: 600;
  font-size: 1em;
}
.top-bar-emergency a[href^="tel"] {
  font-size: 1.05em;
}
.top-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex: 0 1 auto;
}
.top-bar a {
  color: #fff;
  font-weight: 700;
}
.top-bar .btn-top {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  white-space: nowrap;
  min-height: 2.25rem;
}
.top-bar .btn-outline.btn-top {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.top-bar .btn-outline.btn-top:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.top-bar .btn-primary.btn-top {
  background: #fff;
  color: #1a2612;
}
.top-bar .btn-primary.btn-top:hover {
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

@media (max-width: 640px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .top-bar-emergency {
    text-align: center;
  }
  .top-bar-actions {
    justify-content: center;
  }
}

/* Header */
.site-header {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.35rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.logo:hover {
  text-decoration: none;
}
.logo-img {
  height: clamp(46px, 8.5vw, 60px);
  width: auto;
  max-width: min(300px, 62vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-mark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-top: 0.2rem;
  max-width: 14rem;
}

/* Nav desktop */
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--primary);
  background: var(--brand-soft);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-hover);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--line);
}
.btn-outline:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }
  .nav {
    position: fixed;
    /* Below sticky site-head (top bar + header); value covers stacked top bar on small screens */
    top: clamp(7rem, 24vw, 10rem);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 2rem;
    gap: 0;
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  body.nav-open .nav {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links {
    flex-direction: column;
    gap: 0.25rem;
  }
  .nav-links a {
    padding: 0.85rem 1rem;
    font-size: 1.0625rem;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #1a2612 0%, #243818 40%, #2d4a1c 100%);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 90% 70% at 80% 10%,
      rgba(83, 183, 23, 0.22),
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 50% at 10% 90%,
      rgba(83, 183, 23, 0.12),
      transparent 45%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: center;
  min-height: min(28rem, 70vh);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-card-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.85rem 0;
  }
  .hero-card-row strong {
    text-align: left;
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.85rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}
.hero-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin: 0 0 1.65rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-ctas .btn {
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
}
.hero-ctas .btn-primary {
  background: var(--brand);
}
.hero-ctas .btn-primary:hover {
  background: var(--brand-hover);
}
.hero-ctas .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.hero-ctas .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.65rem 1.75rem;
  box-shadow: var(--shadow-lg);
}
.hero-card h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1rem;
  font-weight: 700;
}
.hero-card-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9375rem;
}
.hero-card-row:last-child {
  border-bottom: none;
}
.hero-card-row span:first-child {
  color: rgba(255, 255, 255, 0.6);
}
.hero-card-row strong {
  font-weight: 600;
  text-align: right;
}

/* Featured properties */
.featured {
  padding: clamp(3rem, 6vw, 4rem) 1.25rem;
}
.featured-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.featured-head {
  text-align: center;
  margin-bottom: 2rem;
}
.featured-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
}
.featured-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

.property-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  border-color: rgba(83, 183, 23, 0.35);
  box-shadow: 0 8px 32px rgba(83, 183, 23, 0.12);
}
.property-card-media {
  position: relative;
  width: 100%;
  height: 205px;
  overflow: hidden;
  background: var(--bg-alt);
}
.property-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.property-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.property-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
}
.property-card .address {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}
.property-card .meta {
  font-size: 0.875rem;
  color: var(--ink);
  margin: 0 0 1rem;
}
.property-card a {
  font-weight: 700;
  font-size: 0.8125rem;
  margin-top: auto;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5rem) 1.25rem;
}
.section.alt {
  background: var(--bg-alt);
}
.section-inner {
  max-width: 900px;
  margin: 0 auto;
}
.section-inner.wide {
  max-width: 1200px;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2rem;
}
.section-kicker {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  margin: 0 0 0.5rem;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--primary);
}
.section p.lead {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

/* Mission grid */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }
}

.mission-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mission-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-weight: 700;
}
.mission-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: rgba(83, 183, 23, 0.25);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--brand);
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--primary);
}
.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* About */
.about-prose {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.75;
}
.about-prose p {
  margin: 0 0 1.1rem;
}
.about-prose h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
  font-weight: 700;
}
.about-prose h3:first-child {
  margin-top: 0;
}
.about-prose ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}
.about-prose li {
  margin-bottom: 0.35rem;
}

/* Video */
.video-section {
  padding: clamp(3rem, 6vw, 4rem) 1.25rem;
}
.video-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Areas */
.areas-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.area-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Portals */
.portals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .portals {
    grid-template-columns: repeat(4, 1fr);
  }
}

.portal-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.15rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.portal-link:hover {
  background: var(--brand-soft);
  border-color: rgba(83, 183, 23, 0.35);
  text-decoration: none;
}
.portal-link span {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-card dl {
  margin: 0;
}
.contact-card dt {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-top: 1.25rem;
}
.contact-card dt:first-child {
  margin-top: 0;
}
.contact-card dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
  font-size: 1rem;
}
.contact-card a {
  font-weight: 600;
}

.brand-line {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.emergency-banner {
  background: linear-gradient(135deg, #1e3514 0%, var(--brand) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
}
.emergency-banner strong {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.95;
  margin-bottom: 0.25rem;
}

.contact-form-note {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 500px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.contact-card label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
}
.contact-card label .req {
  color: var(--brand);
}
.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  margin-top: 0.25rem;
}
.contact-card textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-card input:focus,
.contact-card textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 0;
}

.recaptcha-note {
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-top: 0.25rem;
}
.recaptcha-note a {
  color: var(--ink-muted);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #141c10;
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 1.25rem 2rem;
  font-size: 0.875rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.site-footer h3 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1rem;
  font-weight: 700;
}
.footer-logo {
  margin-bottom: 0.25rem;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  max-width: min(260px, 85vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}
.site-footer p {
  margin: 0.25rem 0 0;
  line-height: 1.6;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}
.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.social-links a {
  display: block;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.social-links a:hover {
  background: rgba(83, 183, 23, 0.35);
  text-decoration: none;
}
.social-links svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.cta-center {
  margin-top: 2rem;
  text-align: center;
}
