/* ==========================================================
   4 Sunday Home Tours - Navigation & Hero
   ========================================================== */

:root {
  --green: #8eea8a;
  --green-dark: #74d870;
  --white: #ffffff;
  --dark: #1b1b1b;
  --nav-bg: rgba(20, 20, 20, 0.45);
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden; /* fallback for older browsers */
}

/* clip sideways overflow without turning html/body into a scroll container
   (overflow-x: hidden on both causes janky scrolling on mobile) */
@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

/* soft fade-up used instead of sideways slides on tablet & mobile */
@keyframes fadeUpSoft {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .wow {
    visibility: visible !important;
    animation: none !important;
  }
}

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--nav-bg);
  padding: 14px 0;
  transition: background 0.3s ease, padding 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(20, 20, 20, 0.92);
  padding: 8px 0;
}

.nav-container {
  padding: 0 64px;
}

.site-nav .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.25rem;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.5px;
}

.site-nav .nav-link {
  position: relative;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--white) !important;
  padding: 8px 0 !important;
  margin-left: 60px;
}

.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--green);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.site-nav .nav-link.active::after,
.site-nav .nav-link:hover::after {
  width: 16px;
}

.site-nav .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 6px 10px;
}

.site-nav .navbar-toggler:focus {
  box-shadow: 0 0 0 2px var(--green);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url("../../images/hero-bg.png") center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 70%);
}

.hero-container {
  position: relative;
  z-index: 2;
  padding: 0 110px;
  margin-top: -40px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 5.25rem;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}

.btn-hero {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--green);
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-hero:hover,
.btn-hero:focus {
  background: var(--green-dark);
  color: var(--dark);
  transform: translateY(-2px);
}

/* Bottom wave */
.hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 200px;
  z-index: 1;
}

.wave-green { fill: var(--green); }
.wave-white { fill: var(--white); }

/* ---------- Inner page banner ---------- */
.page-banner {
  position: relative;
  height: 468px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 20px 0;
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
}

.about-banner {
  background-image: url("../../images/about-banner.jpg");
}

.contact-banner {
  background-image: url("../../images/contact-banner.jpg");
}

.page-banner-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 5.25rem;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1;
  margin: -88px 0 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* ---------- Get in Touch (contact page) ---------- */
.contact-info {
  padding: 70px 0 50px;
}

.contact-info-container {
  padding: 0 110px;
}

.contact-intro {
  max-width: 640px;
  margin-bottom: 44px;
}

.contact-intro .section-title {
  margin-bottom: 18px;
}

.contact-card {
  position: relative;
  height: 100%;
  background: #f4f4f4;
  border-bottom: 4px solid var(--green);
  padding: 34px 26px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  background: var(--white);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--green);
  color: #1b1b1b;
  font-size: 1.25rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  margin-bottom: 20px;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2a2a2a;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #666;
  margin: 0;
}

.contact-card a {
  color: #2a2a2a;
  font-weight: 500;
  text-decoration: none;
  word-break: break-word;
}

.contact-card a:hover {
  color: #3a9d36;
}

/* ---------- Our Mission (about page) ---------- */
.our-mission {
  padding-bottom: 30px;
  overflow: hidden;
}

.mission-row {
  display: flex;
}

.mission-row-1 {
  align-items: flex-start;
  padding: 0 105px;
}

.mission-row-2 {
  align-items: center;
  padding-left: 103px;
  margin-top: 36px;
}

.mission-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* flat top, rounded bottom */
.mission-img-1 {
  flex: 0 0 33%;
  max-width: 396px;
  aspect-ratio: 396 / 446;
  border-radius: 0 0 50% 50% / 0 0 41% 41%;
  overflow: hidden;
}

/* rounded left, flush to the right edge of the page */
.mission-img-2 {
  flex: 0 0 36.8%;
  margin-left: auto;
  aspect-ratio: 444 / 397;
  border-radius: 47% 0 0 47% / 50% 0 0 50%;
  overflow: hidden;
}

.mission-row-1 .mission-text {
  flex: 1;
  padding: 62px 0 0 66px;
}

.mission-row-1 .about-lead {
  max-width: 460px;
  margin-bottom: 18px;
}

.mission-row-2 .mission-text {
  flex: 0 0 48%;
  padding-right: 40px;
}

.mission-copy p {
  font-size: 0.8rem;
  line-height: 2.1;
  color: #666;
  margin-bottom: 4px;
}

/* ---------- About ---------- */
.about {
  padding: 40px 0 60px;
  overflow: hidden;
}

.about .container-fluid {
  padding: 0;
}

.about .row {
  margin: 0;
}

.about-content {
  padding: 0 40px 0 110px;
}

.section-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.2;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.6rem;
  text-transform: uppercase;
  color: #2a2a2a;
  line-height: 1.1;
  margin-bottom: 36px;
}

.about-lead {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a4a4a;
  margin-bottom: 18px;
}

.about-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 2;
  color: #666;
  margin-bottom: 44px;
}

.about-media {
  padding: 0;
}

.about-img {
  display: block;
  width: 100%;
  aspect-ratio: 620 / 374;
  object-fit: cover;
  /* elliptical left edge, flush to the right side of the page */
  border-radius: 30% 0 0 30% / 50% 0 0 50%;
}

/* ---------- Let's Talk ---------- */
.lets-talk {
  --lt-overlap: 45px;
  position: relative;
  overflow: hidden;
  border-top: 2px solid #000;
}

.lt-top {
  display: flex;
}

.lt-qr {
  width: 41.5%;
  display: flex;
  justify-content: center;
  padding: 40px 20px calc(var(--lt-overlap) + 40px);
}

.lt-qr img {
  width: 220px;
  max-width: 100%;
  height: auto;
}

.lt-info {
  width: 58.5%;
  background: var(--green);
  padding: 46px 40px calc(var(--lt-overlap) + 34px) 80px;
}

.lt-info-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3rem;
  text-transform: uppercase;
  color: #1f1f1f;
  line-height: 1.1;
  margin-bottom: 20px;
}

.lt-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.lt-list li {
  position: relative;
  font-size: 1.05rem;
  color: #1f1f1f;
  padding-left: 26px;
  margin-bottom: 6px;
}

.lt-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f1f1f;
  transform: translateY(-50%);
}

.lt-note {
  font-size: 1.05rem;
  color: #1f1f1f;
  margin-bottom: 2px;
}

.lt-phone {
  font-weight: 700;
  font-size: 1.4rem;
  color: #1f1f1f;
  text-decoration: none;
}

.lt-phone:hover {
  color: #000;
  text-decoration: underline;
}

/* photo + form card */
.lt-bottom {
  position: relative;
  display: grid;
  grid-template-columns: 46.2% 10.5% 1fr;
  margin-top: calc(var(--lt-overlap) * -1);
}

.lt-photo {
  grid-column: 1 / 3;
  grid-row: 1;
  position: relative;
  z-index: 1;
  min-height: 600px;
  border-radius: 0 140px 140px 0;
  overflow: hidden;
}

.lt-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.lt-form-card {
  grid-column: 2 / 4;
  grid-row: 1;
  position: relative;
  z-index: 2;
  margin: var(--lt-overlap) 0 43px;
  background: #ededed;
  padding: 30px 60px 40px 45px;
}

.lt-form-card .section-title {
  margin-bottom: 26px;
}

.lt-form label {
  display: block;
  font-size: 0.75rem;
  color: #222;
  margin-bottom: 2px;
}

.lt-form input,
.lt-form textarea {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #999;
  border-radius: 0;
  background: transparent;
  font-size: 0.9rem;
  color: #222;
  padding: 2px 0 4px;
  margin-bottom: 22px;
  transition: border-color 0.3s ease;
}

.lt-form textarea {
  resize: vertical;
  min-height: 70px;
}

.lt-form input:focus,
.lt-form textarea:focus {
  outline: none;
  border-bottom-color: var(--green-dark);
  box-shadow: 0 1px 0 var(--green-dark);
}

.lt-form .is-invalid {
  border-bottom-color: #dc3545;
}

/* variant without the QR / green panel (about page) */
.lets-talk--simple {
  --lt-overlap: 57px;
  border-top: 0;
}

.lets-talk--simple .lt-bottom {
  margin-top: 0;
  padding: 30px 0 0;
}

.lt-form-msg {
  font-size: 0.85rem;
  margin: 12px 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: url("../../images/footer-bg.jpg") center / cover no-repeat;
  padding: 26px 0 30px;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(205, 247, 210, 0.88);
}

.footer-container {
  position: relative;
  z-index: 1;
  padding: 0 66px;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.3rem;
  text-transform: uppercase;
  text-align: center;
  color: #1b1b1b;
  margin-bottom: 18px;
}

.footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: rgba(142, 234, 138, 0.6);
  padding: 16px 46px;
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-info-item p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #1b1b1b;
  margin: 0;
}

.footer-info-item a {
  color: inherit;
  text-decoration: none;
}

.footer-info-item a:hover {
  text-decoration: underline;
}

.footer-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--green);
  color: #1b1b1b;
  font-size: 1.25rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 14px 6px 0;
}

.footer-nav {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.footer-nav li + li {
  margin-left: 58px;
}

.footer-nav a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #1b1b1b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #3a9d36;
}

.footer-right {
  text-align: right;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #1b1b1b;
  color: #1b1b1b;
  font-size: 0.65rem;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-social a.active,
.footer-social a:hover {
  background: var(--green);
  border-color: var(--green);
}

.footer-copy {
  font-size: 0.8rem;
  color: #1b1b1b;
  margin: 0;
}

/* ==========================================================
   Responsive
   ========================================================== */

/* Large laptop */
@media (max-width: 1199.98px) {
  .nav-container { padding: 0 40px; }
  .site-nav .nav-link { margin-left: 40px; }
  .hero-container { padding: 0 70px; }
  .hero-title { font-size: 4.5rem; }

  .contact-info-container { padding: 0 60px; }
  .contact-card { padding: 30px 20px 26px; }

  .mission-row-1 { padding: 0 60px; }
  .mission-row-1 .mission-text { padding-left: 44px; padding-top: 40px; }
  .mission-row-2 { padding-left: 60px; }
  .mission-row-2 .mission-text { flex-basis: 55%; }

  .about-content { padding: 0 30px 0 70px; }
  .section-title { font-size: 3rem; margin-bottom: 28px; }

  .lt-info { padding-left: 50px; }
  .lt-info-title { font-size: 2.5rem; }
  .lt-form-card { padding: 28px 40px 36px; }

  .footer-container { padding: 0 40px; }
  .footer-info { padding: 16px 24px; gap: 16px; }
  .footer-icon { width: 52px; height: 52px; font-size: 1.1rem; }
}

/* Tablet (collapsed menu) */
@media (max-width: 991.98px) {
  /* stacked layout: replace sideways slides / zooms with a short fade-up
     so overlapping blocks don't cross each other or widen the page */
  .wow.animate__fadeInLeft,
  .wow.animate__fadeInRight,
  .wow.animate__zoomIn {
    animation-name: fadeUpSoft !important;
    animation-duration: 0.7s !important;
    animation-delay: 0s !important;
  }

  .nav-container { padding: 0 24px; }
  .site-nav .navbar-brand { font-size: 1.75rem; }

  .site-nav .navbar-collapse {
    background: rgba(20, 20, 20, 0.95);
    margin: 12px -24px -14px;
    padding: 10px 24px 20px;
  }

  .site-nav .nav-link {
    margin-left: 0;
    padding: 12px 0 !important;
    display: inline-block;
  }

  .site-nav .nav-link::after { left: 0; transform: none; }

  .hero-container { padding: 0 40px; }
  .hero-title { font-size: 3.75rem; }
  .hero-subtitle { font-size: 1.35rem; }
  .hero-wave { height: 140px; }

  .page-banner { height: 380px; padding-top: 70px; }
  .page-banner-title { font-size: 4rem; margin-top: 0; }

  .contact-info { padding: 50px 0 40px; }
  .contact-info-container { padding: 0 40px; }
  .contact-intro { margin-bottom: 32px; }

  .mission-row { flex-direction: column; }
  .mission-img,
  .mission-text { flex: none !important; }
  .mission-row-1 { padding: 0 40px; }
  .mission-img-1 { width: 55%; max-width: 380px; }
  .mission-row-1 .mission-text { padding: 36px 0 0; }
  .mission-row-1 .about-lead { max-width: none; }
  .mission-row-2 { padding-left: 0; margin-top: 20px; }
  .mission-row-2 .mission-text { padding: 0 40px; }
  .mission-img-2 { width: 70%; margin-top: 30px; }

  .about { padding: 30px 0 50px; }
  .about-content { padding: 0 40px; margin-bottom: 44px; }
  .section-title { font-size: 2.75rem; }
  .about-text { margin-bottom: 32px; }
  .about-media { padding-left: 40px; }

  .lets-talk { --lt-overlap: 0px; }
  .lt-qr { width: 38%; padding: 40px 24px; align-items: center; }
  .lt-qr img { width: 190px; }
  .lt-info { width: 62%; padding: 40px; }
  .lt-info-title { font-size: 2.2rem; }

  .lt-bottom { display: block; }
  .lt-photo {
    width: 85%;
    min-height: 0;
    height: 480px;
    border-radius: 0 120px 120px 0;
  }
  .lt-form-card {
    width: calc(100% - 40px);
    margin: -90px 0 50px auto;
    padding: 30px 40px 36px;
  }

  .footer-title { font-size: 2rem; }
  .footer-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    padding: 24px 30px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 20px;
  }
  .footer-nav { margin-top: 0; }
  .footer-right { text-align: center; }
  .footer-social { justify-content: center; }
}

/* Mobile */
@media (max-width: 575.98px) {
  .nav-container { padding: 0 16px; }
  .site-nav .navbar-brand { font-size: 1.3rem; }
  .site-nav .navbar-collapse { margin: 10px -16px -14px; padding: 6px 16px 16px; }

  .hero { min-height: 90vh; min-height: 90svh; background-position: 35% center; }
  .hero::before { background: rgba(0, 0, 0, 0.4); }
  .hero-container { padding: 0 20px; margin-top: 0; }
  .hero-title { font-size: 2.75rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .btn-hero { padding: 10px 26px; }
  .hero-wave { height: 80px; }

  .page-banner { height: 280px; padding-top: 60px; background-position: 60% bottom; }
  .page-banner-title { font-size: 2.75rem; }

  .contact-info { padding: 36px 0 30px; }
  .contact-info-container { padding: 0 20px; }
  .contact-intro { margin-bottom: 26px; }
  .contact-card { padding: 26px 20px 22px; }
  .contact-card-icon { width: 52px; height: 52px; font-size: 1.1rem; margin-bottom: 16px; }

  .mission-row-1 { padding: 0 20px; }
  .mission-img-1 { width: 80%; }
  .mission-row-1 .mission-text { padding-top: 28px; }
  .mission-row-2 .mission-text { padding: 0 20px; }
  .mission-img-2 { width: 90%; }
  .mission-copy p { font-size: 0.85rem; line-height: 1.9; }

  .about { padding: 20px 0 40px; }
  .about-content { padding: 0 20px; margin-bottom: 36px; }
  .section-label { font-size: 1.25rem; }
  .section-title { font-size: 2.1rem; margin-bottom: 20px; }
  .about-lead { font-size: 1rem; }
  .about-text { font-size: 0.9rem; line-height: 1.85; }
  .about-media { padding-left: 20px; }

  .lt-top { flex-direction: column; }
  .lt-qr,
  .lt-info { width: 100%; }
  .lt-qr { padding: 30px 20px; }
  .lt-qr img { width: 170px; }
  .lt-info { padding: 32px 20px; }
  .lt-info-title { font-size: 1.85rem; margin-bottom: 16px; }
  .lt-list li,
  .lt-note { font-size: 1rem; }
  .lt-phone { font-size: 1.25rem; }

  .lt-photo {
    width: 92%;
    height: 340px;
    border-radius: 0 90px 90px 0;
  }
  .lt-form-card {
    width: calc(100% - 16px);
    margin: -60px 0 40px auto;
    padding: 24px 20px 30px;
  }

  .footer-container { padding: 0 16px; }
  .footer-title { font-size: 1.6rem; }
  .footer-info {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
  .footer-icon { width: 46px; height: 46px; font-size: 1rem; }
  .footer-nav li + li { margin-left: 26px; }
  .footer-nav a { font-size: 0.85rem; letter-spacing: 3px; }
  .footer-copy { font-size: 0.75rem; }
}

/* ==========================================================
   Dynamic CMS additions (logos, dropdowns, AJAX form states)
   ========================================================== */

/* Header / footer logos (uploaded via admin settings) */
.nav-logo { max-height: 73px; width: auto; display: block; }
.footer-logo { max-height: 80px; width: auto; display: inline-block; }

/* Dropdown submenus in the header */
.site-nav .dropdown-menu {
  background: rgba(20, 20, 20, 0.95);
  border: 0;
  border-radius: 6px;
  margin-top: 8px;
  padding: 6px 0;
}
.site-nav .dropdown-item {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--white);
  padding: 8px 20px;
}
.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
  background: var(--green);
  color: var(--dark);
}
.site-nav .nav-link.dropdown-toggle::after { vertical-align: 0.15em; }

/* AJAX form feedback */
.lt-form-msg.is-success { color: #2e7d32; }
.lt-form-msg.is-error { color: #dc3545; }
.lt-form .field-error {
  display: block;
  color: #dc3545;
  font-size: 0.72rem;
  margin: -18px 0 14px;
}
.lt-form button[disabled] { opacity: 0.7; cursor: progress; }
