/* ============================================ */
/* Custom CSS - 3 Views Property Services       */
/* ============================================ */

/* ============================================ */
/* Typography System                            */
/* ============================================ */

/* Headings — Barlow */
.t-h1 { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 64px; line-height: 1em; letter-spacing: -0.02em; text-transform: uppercase; }
.t-h2 { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 48px; line-height: 1em; letter-spacing: -0.02em; text-transform: uppercase; }
.t-h3 { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.2em; letter-spacing: 0; }
.t-h4 { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 32px; line-height: 1.1em; letter-spacing: 0; text-transform: uppercase; }
.t-h5 { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 32px; line-height: 120%; letter-spacing: -0.02em; text-transform: uppercase; }
.t-h6 { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.4em; letter-spacing: -0.02em; text-transform: uppercase; }

/* Paragraphs — Mixed */
.t-p1 { font-family: 'Barlow', sans-serif; font-weight: 400; font-size: 20px; line-height: 1.2em; letter-spacing: 0; }
.t-p1-bold { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 20px; line-height: 1.5em; letter-spacing: 0; }
.t-p2 { font-family: 'Barlow', sans-serif; font-weight: 400; font-size: 16px; line-height: 1.5em; letter-spacing: 0; }
.t-p2-bold { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 18px; line-height: 1.2em; letter-spacing: 0.5px; text-transform: uppercase; }
.t-p2-bu { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.5em; letter-spacing: 0; text-transform: uppercase; }
.t-p3 { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 12px; line-height: 1.5em; letter-spacing: 0; }
.t-p3-bold { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; line-height: 1.5em; letter-spacing: 0; }

/* Buttons */
.t-btn-l { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.2em; letter-spacing: -0.01em; }
.t-btn-s { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; line-height: 1.2em; letter-spacing: -0.01em; }

/* UI / Utility */
.t-nav { font-family: 'Open Sans', sans-serif; font-weight: 600; font-size: 15px; line-height: 1.4em; letter-spacing: 0; }
.t-faq { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 20px; line-height: 1.3em; letter-spacing: -0.03em; }
.t-trust { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.5em; letter-spacing: 0; text-transform: uppercase; }
.t-dropdown { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 14px; line-height: 1.5em; letter-spacing: 0; text-transform: uppercase; }
.t-filters { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.5em; letter-spacing: -0.02em; text-transform: uppercase; }

/* Responsive heading overrides */
@media (max-width: 1024px) {
  .t-h1 { font-size: 48px; }
  .t-h2 { font-size: 36px; }
  .t-h6 { font-size: 20px; }
}
@media (max-width: 768px) {
  .t-h1 { font-size: 42px; }
  .t-h2 { font-size: 32px; }
  .t-h3 { font-size: 22px; }
  .t-h5 { font-size: 24px; }
}
@media (max-width: 640px) {
  .t-h1 { font-size: 40px; }
  .t-h2 { font-size: 28px; }
  .t-h3 { font-size: 20px; }
  .t-h4 { font-size: 22px; }
  .t-h5 { font-size: 20px; }
  .t-h6 { font-size: 20px; }
  .t-p2-bold { font-size: 16px; }
  .t-trust { font-size: 12px; }
  .t-faq { font-size: 16px; }
  .area-pill { font-size: 12px; padding: 6px 14px; }
}

/* About & Why Choose — restore desktop order */
@media (min-width: 1024px) {
  #about .grid > div:first-child,
  #why-choose .grid > div:first-child { order: 1 !important; }
  #about .grid > div:last-child,
  #why-choose .grid > div:last-child { order: 2 !important; }
}

/* Smooth scrolling — Lenis */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
html {
  scroll-padding-top: 80px;
}

/* Nav shadow on scroll */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(8, 27, 51, 0.08);
}

/* Mobile menu transition */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open {
  max-height: 400px;
  display: block;
}

/* FAQ Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-icon {
  transition: transform 0.3s ease;
}

/* Mobile process progress bar */
.process-dot.reached {
  background: #b4c2d4;
}
.process-bar-fill {
  transition: height 0.3s ease;
}

/* Timeline connector line */
.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%);
  z-index: 0;
}

/* File upload hover */
#file-upload-area:hover,
#file-upload-area-2:hover {
  border-color: #778da9;
  background-color: rgba(119, 141, 169, 0.04);
}
#file-upload-area.dragover,
#file-upload-area-2.dragover {
  border-color: #778da9;
  background-color: rgba(119, 141, 169, 0.08);
}

/* Form success/error states */
.form-success {
  animation: fadeIn 0.4s ease;
}
.form-error {
  animation: shake 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Loading spinner for submit button */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success {
  background: #042f54;
  color: white;
}
.toast.error {
  background: #dc2626;
  color: white;
}

/* Bento grid for project gallery */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery image hover */
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
}
.gallery-item img {
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Service area pills */
.area-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}
.area-pill:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
  .faq-trigger { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  button, a[href] { min-height: 44px; }
}

/* Stacked buttons fill width on mobile */
@media (max-width: 640px) {
  .flex-col > a, .flex-col > button { width: 100%; }
}

/* Prevent horizontal overflow on mobile */
@media (max-width: 640px) {
  section { overflow-x: hidden; }
}

/* Mobile review badges — vertical, no box, match 165px width */
@media (max-width: 639px) {
  .backdrop-blur-\[2\.5px\] {
    flex-direction: column;
    align-items: flex-start;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 16px;
  }
  .backdrop-blur-\[2\.5px\] > .w-px {
    display: none;
  }
  .backdrop-blur-\[2\.5px\] > a.flex {
    width: 165px;
    height: 44px;
    gap: 10px;
  }
  .backdrop-blur-\[2\.5px\] > a.flex > svg,
  .backdrop-blur-\[2\.5px\] > a.flex > img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .backdrop-blur-\[2\.5px\] > a.flex > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
  }
  .backdrop-blur-\[2\.5px\] > a.flex > div span.font-bold {
    font-size: 18px;
  }
  .backdrop-blur-\[2\.5px\] > a.flex > div span.text-yellow-400 {
    font-size: 14px;
  }
  .backdrop-blur-\[2\.5px\] > a.flex > div .text-white\/60 {
    font-size: 14px;
  }
}

/* Selection color */
::selection {
  background: #778da9;
  color: white;
}
