/* Index/Home Page Styles */

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero__background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: var(--space-80);
}

.hero__text {
  max-width: 1000px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  font-style: normal;
  line-height: var(--lh-tight);
  color: var(--color-text-white);
  margin-bottom: var(--space-24);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 1000px;
}

.hero__subtitle {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text-light);
  max-width: 1000px;
  margin-bottom: var(--space-40);
}

/* Search Bar */
.hero__search {
  display: flex;
  align-items: center;
  background-color: var(--color-text-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 1000px;
  box-shadow: var(--shadow-lg);
}

.hero__search-wrapper {
  flex: 1;
  position: relative;
}

.hero__search-input {
  width: 100%;
  border: none;
  background: none;
  padding: var(--space-12) var(--space-16);
  font-size: var(--fs-base);
  color: var(--color-text);
  outline: none;
}

.hero__search-input::placeholder {
  color: #999;
}

.hero__search-btn {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-24);
  background-color: var(--color-dark-green);
  color: var(--color-text-white);
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.hero__search-btn:hover {
  background-color: var(--color-dark-green-hover);
}

/* City Autocomplete Dropdown */
.city-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-top: var(--space-4);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.city-autocomplete.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.city-autocomplete__header {
  padding: var(--space-8) var(--space-16);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.city-autocomplete__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.city-autocomplete__item {
  padding: var(--space-12) var(--space-16);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f0f0f0;
}

.city-autocomplete__item:last-child {
  border-bottom: none;
}

.city-autocomplete__item:hover,
.city-autocomplete__item.is-highlighted {
  background-color: #f5f5f5;
}

.city-autocomplete__item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.city-autocomplete__city-name {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--color-text);
}

.city-autocomplete__city-meta {
  font-size: var(--fs-xs);
  color: #888;
}

.city-autocomplete__property-count {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-dark-green);
  background: var(--color-accent);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.city-autocomplete__loading,
.city-autocomplete__no-results {
  padding: var(--space-16);
  text-align: center;
  color: #888;
  font-size: var(--fs-sm);
}

/* Trust Bar */
.trust-bar {
  background-color: var(--color-accent);
  padding: var(--space-24) 0;
  height: 125px;
  display: flex;
  align-items: center;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-48);
  flex-wrap: wrap;
  width: 100%;
}

.trust-bar__label {
  font-size: var(--fs-sm);
  color: var(--color-text);
  font-weight: 500;
  white-space: nowrap;
}

.trust-bar__logos {
  display: flex;
  align-items: center;
  gap: var(--space-48);
  flex-wrap: wrap;
}

.trust-bar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

a.trust-bar__logo:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.trust-bar__logo-icon {
  width: 200px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-bar__logo-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.trust-bar__logo-icon svg {
  width: 100%;
  height: 100%;
}

/* About Section */
.about {
  position: relative;
  min-height: 700px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.about__inner {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  min-height: 700px;
  display: flex;
  align-items: center;
  padding: 0 var(--container-padding);
}

.about__card {
  position: relative;
  z-index: 2;
  background-color: #fff;
  padding: var(--space-48);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.about__title {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--color-text);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-16);
}

.about__text {
  font-size: var(--fs-sm);
  color: #666;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-24);
}

.about__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-24);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
  background-color: #f9f9f6;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: var(--space-32);
}

.about__btn:hover {
  background-color: #f0f0ed;
  border-color: #ccc;
}

.about__features {
  display: flex;
  flex-direction: column;
}

/* Accordion Styles */
.about__accordion {
  border-bottom: 1px solid var(--color-border);
}

.about__accordion:last-child {
  border-bottom: none;
}

.about__accordion-header {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-20) 0;
  cursor: pointer;
  list-style: none;
}

.about__accordion-header::-webkit-details-marker {
  display: none;
}

.about__accordion-number {
  font-size: var(--fs-xs);
  color: #999;
  font-weight: 500;
  min-width: 24px;
}

.about__accordion-title {
  flex: 1;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-text);
}

.about__accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.about__accordion-icon::before,
.about__accordion-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-text);
  transition: transform 0.3s ease;
}

.about__accordion-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.about__accordion-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.about__accordion[open] .about__accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.about__accordion-content {
  padding: 0 0 var(--space-20) 40px;
}

.about__accordion-content p {
  font-size: var(--fs-xs);
  color: #666;
  line-height: var(--lh-relaxed);
}

.about__image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 32px;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

/* Services Section */
.services {
  padding: var(--space-80) 0;
  background-color: var(--color-bg-light);
}

.services__header {
  text-align: center;
  margin: 0 auto var(--space-48);
}

.services__title {
  font-size: var(--fs-3xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-16);
  width: auto;
}

.services__subtitle {
  font-size: var(--fs-base);
  color: #666;
  line-height: var(--lh-relaxed);
  max-width: 800px;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-32);
}

/* Service Card */
.service-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card__image {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.service-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__arrow {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  width: 44px;
  height: 44px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  z-index: 2;
  justify-content: center;
  color: var(--color-text);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.service-card__arrow:hover {
  background-color: var(--color-text);
  color: #fff;
}

.service-card__arrow svg {
  width: 20px;
  height: 20px;
}

.service-card__label {
  position: absolute;
  bottom: var(--space-20);
  left: var(--space-20);
  display: flex;
  align-items: center;
  gap: var(--space-12);
  z-index: 2;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.service-card__icon--blue {
  background-color: #3B82F6;
}

.service-card__icon--green {
  background-color: var(--color-accent);
  color: var(--color-text);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__label-text {
  display: flex;
  flex-direction: column;
}

.service-card__name {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.service-card__tagline {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.service-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-24);
}

.service-card__heading {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.service-card__desc {
  font-size: var(--fs-sm);
  color: #666;
  line-height: var(--lh-normal);
  margin-bottom: var(--space-20);
  text-align: left;
}

.service-card__text-content {
  margin-bottom: var(--space-24);
}

.service-card__text-content p {
  font-size: var(--fs-sm);
  color: #4b5563;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-16);
  text-align: left;
}

.service-card__text-content p:last-child {
  margin-bottom: 0;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.service-card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
}

.service-card__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #3B82F6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-card__check--green {
  background-color: var(--color-accent);
  color: var(--color-text);
}

.service-card__check svg {
  width: 12px;
  height: 12px;
}

.service-card__list strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
  text-align: left;
}

.service-card__list p {
  font-size: var(--fs-xs);
  color: #666;
  line-height: var(--lh-normal);
}

.service-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  width: 100%;
  padding: var(--space-16) var(--space-24);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all 0.2s ease;
  margin-top: auto;
}

.service-card__btn svg {
  width: 16px;
  height: 16px;
}

.service-card__btn--dark {
  background-color: var(--color-dark-green);
  color: #fff;
}

.service-card__btn--dark:hover {
  background-color: var(--color-dark-green-hover);
}

.service-card__btn--green {
  background-color: var(--color-accent);
  color: var(--color-text);
}

.service-card__btn--green:hover {
  background-color: var(--color-accent-dark);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .hero__title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__title,
  .hero__subtitle,
  .hero__search {
    max-width: 100%;
  }

  .trust-bar {
    height: auto;
    padding: var(--space-24) 0;
  }

  .trust-bar__inner {
    justify-content: center;
    text-align: center;
  }

  .trust-bar__logos {
    justify-content: center;
    gap: var(--space-32);
  }

  /* About Section - Tablet */
  .about {
    min-height: 600px;
  }

  .about__inner {
    min-height: 600px;
  }

  .about__card {
    padding: var(--space-32);
    max-width: 420px;
  }

  .about__title {
    font-size: 1.75rem;
  }

  /* Services Section - Tablet */
  .services {
    padding: var(--space-64) 0;
  }

  .services__title {
    font-size: var(--fs-2xl);
  }

  .service-card__image {
    height: 280px;
  }
}

/* Responsive - Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
  }

  .hero__content {
    padding-top: 100px;
    padding-bottom: var(--space-32);
  }

  .hero__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    margin-bottom: var(--space-16);
  }

  .hero__subtitle {
    font-size: var(--fs-sm);
    margin-bottom: var(--space-24);
  }

  .hero__search {
    flex-direction: column;
    gap: var(--space-8);
    padding: var(--space-12);
  }

  .hero__search-wrapper {
    width: 100%;
  }

  .hero__search-input {
    width: 100%;
    text-align: left;
    padding: var(--space-12);
  }

  .hero__search-btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-16) var(--space-24);
  }

  .city-autocomplete {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 50vh;
  }

  .trust-bar {
    height: auto;
    padding: var(--space-20) 0;
  }

  .trust-bar__inner {
    flex-direction: column;
    gap: var(--space-16);
  }

  .trust-bar__label {
    width: 100%;
    text-align: center;
  }

  .trust-bar__logos {
    width: 100%;
    justify-content: center;
    gap: var(--space-20);
  }

  .trust-bar__logo span {
    display: none;
  }

  .trust-bar__logo-icon {
    width: 120px;
    height: auto;
  }

  /* About Section - Mobile */
  .about {
    min-height: auto;
  }

  .about__inner {
    min-height: auto;
    flex-direction: column;
    padding: var(--space-48) 0;
  }

  .about__card {
    position: relative;
    margin: 0 var(--container-padding);
    padding: var(--space-32);
    max-width: 100%;
    order: 1;
  }

  .about__image {
    position: relative;
    width: calc(100% - var(--container-padding) * 2);
    margin: 0 var(--container-padding);
    margin-bottom: var(--space-24);
    height: 300px;
    order: 0;
  }

  .about__title {
    font-size: 1.5rem;
  }

  .about__btn {
    margin-top: var(--space-24);
  }

  .about__accordion-header {
    padding: var(--space-16) 0;
  }

  .about__accordion-content {
    padding-left: 32px;
  }

  /* Services Section - Mobile */
  .services {
    padding: var(--space-48) 0;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .services__title {
    font-size: 1.5rem;
  }

  .service-card__image {
    height: 260px;
  }

  .service-card__content {
    padding: var(--space-20);
  }
}

/* Responsive - Mobile Portrait */
@media (max-width: 480px) {
  .hero__content {
    padding-top: 90px;
    padding-bottom: var(--space-24);
  }

  .hero__title {
    font-size: 1.625rem;
    line-height: 1.2;
  }

  .hero__subtitle {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .hero__search {
    padding: var(--space-8);
  }

  .hero__search-input {
    font-size: var(--fs-sm);
    padding: var(--space-12) var(--space-8);
  }

  .hero__search-btn {
    font-size: var(--fs-sm);
    padding: var(--space-12) var(--space-16);
  }

  .trust-bar {
    padding: var(--space-16) 0;
  }

  .trust-bar__label {
    font-size: 0.8125rem;
  }

  .trust-bar__logos {
    gap: var(--space-16);
  }

  .trust-bar__logo-icon {
    width: 100px;
    height: auto;
  }

  /* About Section - Small Mobile */
  .about__inner {
    padding: var(--space-32) 0;
  }

  .about__card {
    padding: var(--space-24);
  }

  .about__title {
    font-size: 1.25rem;
  }

  .about__text {
    font-size: 0.8125rem;
  }

  .about__image {
    height: 250px;
  }

  .about__accordion-title {
    font-size: var(--fs-sm);
  }

  .about__accordion-content p {
    font-size: 0.75rem;
  }
}

/* Responsive - Very Small Screens */
@media (max-width: 360px) {
  .hero__title {
    font-size: 1.375rem;
  }

  .hero__subtitle {
    font-size: 0.8125rem;
  }

  .trust-bar__logos {
    gap: var(--space-12);
  }

  .trust-bar__logo-icon {
    width: 80px;
    height: auto;
  }
}

/* ========================================
   About Us Section (50/50 Layout)
   ======================================== */

.about-us {
  padding: var(--space-80) 0;
  background-color: #fff;
}

.about-us__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: stretch;
}

.about-us__content {
  max-width: 100%;
}

.about-us__label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-dark-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-12);
}

.about-us__title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--color-text);
  margin-bottom: var(--space-32);
}

.about-us__text {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: #4b5563;
  margin-bottom: var(--space-20);
}

.about-us__text:last-child {
  margin-bottom: 0;
}

.about-us__text-content p {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: #4b5563;
  margin-bottom: var(--space-20);
}

.about-us__text-content p:last-child {
  margin-bottom: 0;
}

.about-us__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 400px;
}

.about-us__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reversed layout - image on left, content on right */
.about-us--reverse {
  background-color: #fff;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .about-us {
    padding: var(--space-64) 0;
  }

  .about-us__grid {
    gap: var(--space-48);
  }

  .about-us__title {
    font-size: var(--fs-2xl);
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .about-us {
    padding: var(--space-48) 0;
  }

  .about-us__grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .about-us__content {
    max-width: 100%;
    order: 2;
  }

  .about-us__image {
    order: 1;
  }

  .about-us__title {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-24);
  }

  .about-us__text {
    font-size: var(--fs-sm);
  }

  .about-us__text-content p {
    font-size: var(--fs-sm);
  }
}
