/* Evantis Realty — BPTP Downtown Sector 66 landing */
:root {
  --color-gold: #c29f7b;
  --color-gold-dark: #a8865f;
  --color-text: #181d24;
  --color-muted: #5c636a;
  --color-bg: #faf9f7;
  --color-white: #fff;
  --font: "Jost", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(24, 29, 36, 0.08);
  --max: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-gold-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(194, 159, 123, 0.2);
}

body.nav-open .site-header {
  z-index: 180;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  padding: 0.35rem 0;
  -webkit-tap-highlight-color: transparent;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: clamp(44px, 10vw, 52px);
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 500;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

@media (min-width: 901px) {
  .menu-toggle {
    display: none;
  }
}

/* Nav panel — desktop inline, mobile drawer */
.nav-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.nav-panel a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-panel a:hover {
  color: var(--color-gold-dark);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 29, 36, 0.45);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 900px) {
  /* Roomier tap targets, safe areas, less cramped brand row */
  .site-header .wrap {
    width: 100%;
    max-width: none;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    margin-inline: 0;
  }

  .header-inner {
    gap: 0.5rem;
    padding: 0.5rem 0;
    align-items: center;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    justify-content: center;
  }

  .menu-toggle-bar {
    width: 24px;
  }

  .brand {
    gap: 0.45rem;
    padding: 0.2rem 0;
  }

  .brand img {
    height: 38px;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-name {
    display: block;
    font-size: 0.9375rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-tagline {
    display: none;
  }

  .header-cta .btn-primary {
    padding: 0.55rem 0.8rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 320px);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: max(4.5rem, calc(env(safe-area-inset-top, 0px) + 3rem)) 1.25rem max(2rem, env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--color-white);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    z-index: 160;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }

  .nav-panel.is-open {
    transform: translateX(0);
  }

  .nav-panel a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 1.05rem;
  }

  .header-cta .btn-outline {
    display: none;
  }
}

@media (min-width: 901px) {
  .nav-panel {
    position: static;
    flex: 1;
    height: auto;
    width: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  .nav-backdrop {
    display: none !important;
  }

  .header-inner {
    gap: 1rem;
  }
}

body.nav-open {
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(194, 159, 123, 0.45);
}

.btn-primary:hover {
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-gold);
}

.btn-outline:hover {
  background: rgba(194, 159, 123, 0.1);
  color: var(--color-text);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #1a1d22 url("../assets/images/hero/hero-main.webp") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(24, 29, 36, 0.92) 0%,
    rgba(24, 29, 36, 0.55) 45%,
    rgba(24, 29, 36, 0.35) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  padding: 3rem 0 4rem;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 36ch;
}

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

.hero-actions .btn-primary {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* Lead card */
.lead-card {
  position: relative;
  background: var(--color-white);
  color: var(--color-text);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lead-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.lead-card p.sub {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-muted);
}

.form-group input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(194, 159, 123, 0.2);
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
}

.form-message {
  margin-top: 0.75rem;
  min-height: 1.25rem;
  font-size: 0.9rem;
  text-align: center;
}

.form-message--success {
  color: #1a6b3a;
  font-weight: 600;
}

.form-message--error {
  color: #b42318;
  font-weight: 500;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Sections */
section {
  padding: 3.5rem 0;
}

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

.section-head {
  margin-bottom: 2rem;
}

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

.section-head p {
  margin: 0;
  color: var(--color-muted);
  max-width: 65ch;
}

/* Two column */
.grid-2 {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.rounded-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

ul.check {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

ul.check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

ul.check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-gold-dark);
  font-weight: 700;
}

/* Gallery strip */
.gallery-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  -webkit-overflow-scrolling: touch;
}

.gallery-strip figure {
  flex: 0 0 min(85vw, 320px);
  scroll-snap-align: start;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-strip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-figure {
  margin: 0;
}

.gallery-thumb {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
}

.gallery-thumb:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

.gallery-thumb:hover .gallery-zoom {
  opacity: 1;
}

.gallery-zoom {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 12, 12, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox[hidden] {
  display: none !important;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-inner {
  max-width: min(96vw, 1200px);
  max-height: 85vh;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-caption {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-prev[hidden],
.lightbox-next[hidden] {
  display: none !important;
}

/* Sent / error banner */
.banner-sent {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0d3d22;
  background: #d4f4e2;
  border-bottom: 1px solid #9dd9b8;
}

.banner-sent--error {
  color: #5c1010;
  background: #fde8e8;
  border-bottom-color: #f0b4b4;
}

/* Contact page */
.contact-main {
  padding: 1.5rem 0 3rem;
}

.contact-phone {
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.contact-phone a {
  color: var(--color-text);
  text-decoration: none;
}

.contact-email {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.contact-actions {
  margin-bottom: 1rem;
}

.site-footer--contact {
  margin-top: 2rem;
}

/* FAQ (SEO + UX) */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(194, 159, 123, 0.35);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  background: var(--color-white);
  padding: 0 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-item p a {
  color: var(--color-gold-dark);
  font-weight: 600;
}

/* Feature pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.4rem 0.85rem;
  background: rgba(194, 159, 123, 0.12);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #2a2f36 0%, #181d24 100%);
  color: var(--color-white);
  border-radius: var(--radius);
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.9;
}

/* Video / media block */
.media-block {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.media-block video,
.media-block .media-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.media-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Footer */
.site-footer {
  background: #181d24;
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .site-footer .wrap {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer strong {
  color: var(--color-white);
}

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

.disclaimer {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* Floating quick contact */
.fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fab a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 1.35rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.fab .wa {
  background: #25d366;
}

.fab .ph {
  background: var(--color-gold-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .hero-inner {
    padding: 2rem 0 3rem;
  }

  .hero-actions .btn-lg {
    width: 100%;
    justify-content: center;
  }

  section {
    padding: 2.5rem 0;
  }

  .cta-band .btn-lg {
    width: 100%;
    max-width: 100%;
  }
}
