
/* ==================================================
   HISTORIC CITY HOMES — CONTACT PAGE
   Shared header/navigation behavior remains in site.css/site.js.
================================================== */

.contact-page {
  margin: 0;
  color: #24272b;
  background: #fff;
}

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

.contact-page img {
  max-width: 100%;
}

.contact-page a {
  -webkit-tap-highlight-color: transparent;
}

/* ==================================================
   CONTACT HERO
================================================== */

.contact-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 720px;
  padding: 64px 24px 76px;
  overflow: hidden;
  background-color: #252b2d;
  background-image: url("https://images.unsplash.com/photo-1681900619353-92200b6681da?auto=format&fit=crop&w=1080");
  background-position: center 48%;
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-hero-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 25, 27, 0.67),
    rgba(20, 25, 27, 0.74)
  );
}

.contact-hero-content {
  width: min(100%, 760px);
  margin: 0 auto;
}

.contact-intro {
  max-width: 700px;
  margin: 0 auto 34px;
  color: #fff;
  text-align: center;
}

.contact-intro h1 {
  margin: 0 0 14px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.12;
}

.contact-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.7;
}

/* ==================================================
   GOOGLE FORM CARD
================================================== */

.contact-form-card {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 18px 24px 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.google-contact-form {
  display: block;
  width: 100%;
  height: 590px;
  border: 0;
  background: #fff;
}

.form-fallback {
  margin: 10px 0 0;
  color: #62666d;
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
}

.form-fallback a {
  color: #2f4f6e;
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ==================================================
   WHY WORK WITH MAYA
================================================== */

.why-maya-section {
  padding: clamp(72px, 8vw, 108px) 24px;
  background: #fff;
}

.why-maya-container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 84px);
  width: min(100%, 1240px);
  margin: 0 auto;
}

.why-maya-copy {
  min-width: 0;
}

.why-maya-copy h2 {
  margin: 0 0 28px;
  color: #202124;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
}

/* Original-style bullet list */
.why-maya-points {
  margin: 0;
  padding-left: 22px;
  list-style: disc;
}

.why-maya-point {
  display: list-item;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  list-style: disc;
}

.why-maya-point::marker {
  color: #2f4f6e;
  font-size: 0.9em;
}

.why-maya-point h3 {
  margin: 0 0 5px;
  color: #25282c;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.why-maya-point p {
  margin: 0;
  color: #62666d;
  font-size: 0.98rem;
  line-height: 1.7;
}

.why-maya-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 8px;
  padding: 13px 30px;
  border: 1px solid #263b4d;
  border-radius: 999px;
  background: transparent;
  color: #263b4d;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.why-maya-button:hover {
  border-color: #2f4f6e;
  background: #2f4f6e;
  color: #fff;
}

/* ==================================================
   HOUSE IMAGE AND STATISTICS
================================================== */

.why-maya-visual {
  position: relative;
  min-width: 0;
  padding-bottom: 34px;
}

.why-maya-image {
  display: block;
  width: 100%;
  height: 520px;
  border-radius: 16px;
  background: #e7e3da;
  object-fit: cover;
  object-position: center;
}

.why-maya-stats {
  position: absolute;
  right: 14%;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 30px;
  width: min(440px, 94%);
  min-height: 132px;
  padding: 24px 30px;
  background: #2f4f6e;
  color: #fff;
  box-shadow: 0 12px 30px rgba(20, 35, 48, 0.14);
}

.why-maya-stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.why-maya-stat-number {
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.why-maya-stat-number [data-count] {
  display: inline-block;
  min-width: 1ch;
}

.why-maya-stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* ==================================================
   FOOTER
================================================== */

.contact-page .contact-footer {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #101f2b;
  color: #fff;
}

.contact-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr 0.8fr;
  align-items: start;
  gap: 42px;
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 56px 0 42px;
}

.contact-footer-brand img {
  display: block;
  width: min(220px, 100%);
  height: auto;
  padding: 8px;
  background: #fff;
}

.contact-footer-brand p {
  max-width: 270px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.7;
}

.contact-footer-column {
  min-width: 0;
}

.contact-footer-column h2 {
  margin: 0 0 18px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.contact-footer-column ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-footer-column li {
  margin: 0;
  padding: 0;
}

.contact-footer-column p {
  margin: 0 0 12px;
}

.contact-footer-column a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-footer-column a:hover {
  color: #e0c59e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-footer-bottom {
  width: 100%;
  margin: 0;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.contact-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 900px) {
  .contact-hero {
    min-height: auto;
    padding: 58px 22px 68px;
  }

  .why-maya-container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 34px;
  }

  .why-maya-image {
    height: 440px;
  }

  .why-maya-stats {
    right: 4%;
    width: 96%;
    min-height: 112px;
    gap: 20px;
    padding: 20px;
  }

  .contact-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 640px) {
  .contact-hero {
    padding: 44px 16px 52px;
    background-position: center;
  }

  .contact-intro {
    margin-bottom: 26px;
  }

  .contact-intro h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .contact-intro p {
    font-size: 0.98rem;
  }

  .contact-form-card {
    padding: 10px 12px 16px;
    border-radius: 16px;
  }

  .google-contact-form {
    height: 650px;
  }

  .why-maya-section {
    padding: 58px 20px 72px;
  }

  .why-maya-container {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .why-maya-copy h2 {
    margin-bottom: 24px;
    font-size: clamp(2.1rem, 8vw, 2.8rem);
  }

  .why-maya-points {
    padding-left: 21px;
  }

  .why-maya-point {
    margin-bottom: 20px;
  }

  .why-maya-point p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .why-maya-button {
    width: 100%;
    margin-top: 6px;
  }

  .why-maya-visual {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
    padding-bottom: 28px;
  }

  .why-maya-image {
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
  }

  .why-maya-stats {
    right: 4%;
    width: 92%;
    min-height: 100px;
    gap: 20px;
    padding: 18px 20px;
  }

  .why-maya-stat-number {
    font-size: 2rem;
  }

  .why-maya-stat-label {
    font-size: 0.85rem;
  }

  .contact-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    width: calc(100% - 40px);
    padding: 42px 0 32px;
  }

  .contact-footer-brand {
    grid-column: 1 / -1;
  }

  .contact-footer-brand img {
    width: 190px;
  }

  .contact-footer-column h2 {
    margin-bottom: 14px;
  }

  .contact-footer-column a {
    font-size: 0.88rem;
  }
}

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

  .contact-footer-brand {
    grid-column: auto;
  }

  .google-contact-form {
    height: 700px;
  }

  .why-maya-stats {
    gap: 12px;
    padding: 16px;
  }
}

/* ==================================================
   ACCESSIBILITY
================================================== */

@media (prefers-reduced-motion: reduce) {
  .why-maya-button,
  .contact-footer-column a {
    transition: none;
  }
}


/* ==================================================
   Google Forms
================================================== */



/* Larger Google Form */
.contact-form-card {
  width: min(100%, 760px);
  padding: 24px 30px;
}

.google-contact-form {
  width: 100%;
  height: 750px;
  border: none;
}

@media (max-width: 640px) {
  .contact-form-card {
    padding: 12px 14px 18px;
  }

  .google-contact-form {
    height: 850px;
  }
}
