/* =========================
   GLOBAL - OPTIMIZED FOR ALL DEVICES
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #444444;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* utility */
.center {
  max-width: 960px;
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   PAGE WRAPPER
   ========================= */
.page {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
}

/* =========================
   HERO AREA (TOP PART)
   ========================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 500px;
  height: auto;
  overflow: hidden;
  padding-bottom: 80px;
}

/* left and right blurred building photo */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/hero-bg.jpg") center center / cover no-repeat;
  filter: blur(2px);
  transform: scale(1.04);
}

/* white card in middle */
.hero-card {
  position: relative;
  max-width: 720px;
  width: 90%;
  margin: 150px auto 0;
  background: #ffffff;
  padding: 60px 60px 32px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

/* logo block at very top */
.hero-logo {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* headline */
.hero-title-top {
  margin: 10px 0 0;
  font-size: clamp(18px, 4vw, 24px);
  letter-spacing: 1px;
  font-weight: 300;
}

.hero-title-main {
  margin: 6px 0 0;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 700;
  line-height: 1.3;
}

.hero-usp {
  margin-top: 8px;
  font-size: clamp(11px, 2vw, 12px);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777777;
}

/* property query section */
.property-query {
  margin-top: 26px;
  padding: 20px 0;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  text-align: left;
}

.query-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.query-tab {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #999999;
  cursor: pointer;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}

.query-tab.active,
.query-tab:hover {
  color: #000000;
  border-bottom-color: #ffd900;
}

/* form row */
.query-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.query-input {
  border: 1px solid #f2f2f2;
  background: #fdfdfd;
  padding: 14px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  min-height: 48px;
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
}

.query-input:focus {
  border-color: #e0e0e0;
  background: #ffffff;
}

.query-input::placeholder {
  color: #bbbbbb;
}

/* yellow button */
.query-btn {
  border: none;
  background: #ffd900;
  color: #000000;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 12px;
  min-height: 48px;
  border-radius: 2px;
  transition: background 0.2s ease;
  touch-action: manipulation;
}

.query-btn:hover,
.query-btn:active {
  background: #ffed4e;
}

/* =========================
   SOLD LINE
   ========================= */
.sold-line {
  margin-top: 26px;
  margin-bottom: 40px;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.5px;
  padding: 0 20px;
}

.sold-line strong {
  font-weight: 700;
}

/* =========================
   GALLERY STRIP
   ========================= */
.gallery-wrap {
  position: relative;
  background: #ffd900;
  padding: 60px 20px;
}

/* grid of photos */
.gallery {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* each thumbnail */
.gallery-item {
  background: #cccccc;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Left and Right Photo Groups */
.gallery-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 120px);
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* Center Video Highlighting */
.gallery-featured {
  position: relative;
  width: 400px;
  flex: 0 0 400px;
  height: 244px;
  border: 4px solid #ffd900;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background: #ffffff;
  z-index: 10;
}

.gallery-featured video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-highlight img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   FOOTER (About, Contact, Connect)
   ========================= */
.footer {
  background: #111111;
  color: #eeeeee;
  padding: 60px 0;
  margin-top: 0;
}

.footer-content {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 80px;
}

/* Alignment Specifics */
.footer-col {
  text-align: center;
}

.footer-col p {
  max-width: 100%;
  margin: 0 auto 20px;
}

/* Ensure the links are centered too */
.footer-col ul {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.footer-col h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a0a0a0;
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid #333;
  display: inline-block;
  padding-bottom: 6px;
}

.footer-col p,
.footer-col li,
.footer-col a {
  font-size: 13px;
  line-height: 1.6;
  color: #cccccc;
  text-decoration: none;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: #ffd900;
}

/* founder profile in footer */
.founder-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.founder-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffd900;
}

.founder-info h4 {
  margin: 0;
  font-size: 14px;
  color: #ffffff;
  font-weight: 700;
}

.founder-info span {
  font-size: 12px;
  color: #999999;
}

/* Modal Popup */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: #4caf50;
  color: #fff;
  font-size: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.modal p {
  color: #666;
  font-size: 14px;
  margin-bottom: 25px;
  line-height: 1.5;
}

.modal-btn {
  background: #ffd900;
  border: none;
  padding: 12px 30px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.5px;
  font-size: 13px;
  min-height: 44px;
  border-radius: 2px;
  touch-action: manipulation;
}

.modal-btn:hover {
  background: #ffed4e;
}

/* =========================
   CHANNEL PARTNERS
   ========================= */
.channel-partners {
  padding: 50px 20px;
  text-align: center;
  background: #f9f9f9;
}

.section-title {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  margin-bottom: 40px;
  color: #333;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.partner-logos img {
  height: 80px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-logos img:hover {
  transform: scale(1.05);
}

/* =========================
   RESPONSIVE DESIGN - OPTIMIZED FOR ALL DEVICES
   ========================= */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
  .hero-card {
    max-width: 800px;
  }

  .gallery {
    max-width: 1400px;
  }

  .footer-content {
    max-width: 1400px;
    padding: 0 100px;
  }
}

/* Large tablets and small laptops (992px to 1199px) */
@media (max-width: 1199px) {
  .hero-card {
    max-width: 680px;
    width: 88%;
  }

  .footer-content {
    padding: 0 60px;
  }

  .gallery {
    max-width: 1000px;
  }
}

/* Medium devices (tablets, 768px to 991px) */
@media (max-width: 991px) {
  .hero-card {
    margin: 100px auto 0;
    padding: 90px 40px 32px;
    width: 90%;
  }

  .gallery {
    flex-direction: column;
    gap: 24px;
    padding: 0 20px;
  }

  .gallery-featured {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: none;
  }

  .gallery-group {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    padding: 0 40px;
    gap: 40px;
  }
}

/* Small tablets and large phones (576px to 767px) */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-card {
    margin: 80px auto 0;
    padding: 80px 24px 24px;
    width: 92%;
  }

  .query-form {
    grid-template-columns: 1fr;
  }

  .query-btn {
    grid-column: span 1;
  }

  .query-input {
    font-size: 16px;
    padding: 16px;
  }

  .query-tabs {
    justify-content: center;
  }

  .sold-line {
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    padding: 0 20px;
  }

  .gallery-wrap {
    padding: 40px 16px;
  }

  .gallery {
    padding: 0;
  }

  .gallery-group {
    grid-template-rows: repeat(2, 140px);
    width: 100%;
  }

  .gallery-featured {
    max-width: 100%;
  }

  .footer {
    padding: 40px 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    padding: 0 24px;
    text-align: center;
    gap: 30px;
  }

  .founder-profile {
    justify-content: center;
  }

  .channel-partners {
    padding: 40px 16px;
  }

  .partner-logos {
    gap: 30px;
  }

  .partner-logos img {
    height: 60px;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
  html {
    font-size: 15px;
  }

  .hero-card {
    margin-top: 70px;
    padding: 70px 20px 20px;
    width: 95%;
  }

  .hero-logo {
    width: 150px;
    top: -85px;
  }

  .query-tabs {
    gap: 12px;
    justify-content: center;
  }

  .query-tab {
    font-size: 12px;
    padding: 6px 10px;
    min-height: 40px;
  }

  .query-input {
    padding: 14px 12px;
    font-size: 15px;
  }

  .sold-line {
    font-size: 13px;
    line-height: 1.6;
  }

  .gallery-group {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 10px;
  }

  .gallery-item {
    min-height: 180px;
  }

  .footer-content {
    padding: 0 20px;
  }

  .footer-col h3 {
    font-size: 13px;
  }

  .footer-col p,
  .footer-col li,
  .footer-col a {
    font-size: 12px;
  }

  .partner-logos {
    gap: 20px;
  }

  .partner-logos img {
    height: 50px;
  }
}

/* Very small devices (less than 400px) */
@media (max-width: 399px) {
  .hero-card {
    padding: 60px 16px 16px;
  }

  .hero-logo {
    width: 130px;
    top: -75px;
  }

  .query-input {
    font-size: 14px;
    padding: 12px 10px;
  }

  .query-btn {
    font-size: 12px;
    padding: 12px 10px;
  }
}

/* Landscape orientation optimization for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-bottom: 20px;
  }

  .hero-card {
    margin-top: 40px;
  }

  .hero-logo {
    width: 120px;
    top: -60px;
  }
}
