/* ==========================================================================
   RealtyForge - Dark Editorial Style Sheet
   Premium coastal real estate brokerage aesthetic
   Base: #0B1120 | Text: #F5F3EF | Primary: #14b8a6 | Secondary: #fbbf24
   ========================================================================== */

/* --- Reset & Base -------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0B1120;
  color: #F5F3EF;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #14b8a6;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #F5F3EF;
}

.section-subtitle {
  font-size: 1.05rem;
  color: rgba(245, 243, 239, 0.6);
  max-width: 600px;
  line-height: 1.6;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: #14b8a6;
  color: #0B1120;
}

.btn-primary:hover {
  background: #0d9488;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.25);
}

.btn-secondary {
  background: transparent;
  color: #F5F3EF;
  border: 1.5px solid rgba(245, 243, 239, 0.25);
}

.btn-secondary:hover {
  border-color: #F5F3EF;
  background: rgba(245, 243, 239, 0.05);
  transform: translateY(-2px);
}

.btn-amber {
  background: #fbbf24;
  color: #0B1120;
}

.btn-amber:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.25);
}

/* --- Navigation ---------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 243, 239, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #F5F3EF;
  letter-spacing: -0.02em;
}

.navbar-brand span {
  color: #14b8a6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(245, 243, 239, 0.7);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #14b8a6;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #F5F3EF;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #F5F3EF;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero Section -------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(11, 17, 32, 0.85) 0%,
    rgba(11, 17, 32, 0.40) 50%,
    rgba(11, 17, 32, 0.70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #14b8a6;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14b8a6;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.08;
  color: #F5F3EF;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-headline em {
  font-style: italic;
  color: #14b8a6;
}

.hero-subheadline {
  font-size: 1.15rem;
  color: rgba(245, 243, 239, 0.6);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245, 243, 239, 0.3);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.hero-scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(245, 243, 239, 0.3), transparent);
}

/* --- Listing Grids ------------------------------------------------------- */
.listing-grid,
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.featured-grid {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}

.listing-card {
  background: rgba(245, 243, 239, 0.03);
  border: 1px solid rgba(245, 243, 239, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: default;
}

.listing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.2);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.listing-card.featured {
  border-color: rgba(20, 184, 166, 0.15);
  background: rgba(20, 184, 166, 0.03);
  position: relative;
}

.listing-card.featured::before {
  content: 'Featured';
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 4px 12px;
  background: #14b8a6;
  color: #0B1120;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
}

.listing-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: rgba(245, 243, 239, 0.04);
}

.listing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.listing-card:hover .listing-card-image img {
  transform: scale(1.05);
}

.listing-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(11, 17, 32, 0.4));
  color: rgba(245, 243, 239, 0.2);
  font-size: 2.5rem;
}

.listing-card-status {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 4px;
}

.listing-card-status.active {
  background: rgba(20, 184, 166, 0.15);
  color: #14b8a6;
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.listing-card-status.pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.listing-card-status.sold {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.listing-card-body {
  padding: 20px 24px 24px;
}

.listing-card-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #F5F3EF;
  margin-bottom: 4px;
}

.listing-card-price .price-status {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(245, 243, 239, 0.4);
  margin-left: 8px;
}

.listing-card-address {
  font-size: 0.85rem;
  color: rgba(245, 243, 239, 0.5);
  margin-bottom: 16px;
  line-height: 1.4;
}

.listing-card-details {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(245, 243, 239, 0.06);
}

.listing-card-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(245, 243, 239, 0.6);
}

.listing-card-detail .detail-icon {
  font-size: 1rem;
  opacity: 0.5;
}

.listing-card-agent {
  font-size: 0.8rem;
  color: rgba(245, 243, 239, 0.35);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(245, 243, 239, 0.04);
}

/* --- Empty State --------------------------------------------------------- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state-text {
  font-size: 1.1rem;
  color: rgba(245, 243, 239, 0.4);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Section Headers ----------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- About Section ------------------------------------------------------- */
#about {
  position: relative;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(20, 184, 166, 0.2), transparent);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-card {
  background: rgba(245, 243, 239, 0.02);
  border: 1px solid rgba(245, 243, 239, 0.06);
  border-radius: 20px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #14b8a6;
}

.about-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(245, 243, 239, 0.75);
}

.about-card .about-signature {
  margin-top: 24px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #14b8a6;
}

/* --- Services Section ---------------------------------------------------- */
#services {
  background: rgba(245, 243, 239, 0.015);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.service-card {
  background: rgba(245, 243, 239, 0.02);
  border: 1px solid rgba(245, 243, 239, 0.06);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #14b8a6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.2);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(20, 184, 166, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #14b8a6;
}

.service-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #F5F3EF;
}

.service-card p {
  font-size: 0.92rem;
  color: rgba(245, 243, 239, 0.55);
  line-height: 1.7;
}

/* --- Agents Section ------------------------------------------------------ */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.agent-card {
  background: rgba(245, 243, 239, 0.02);
  border: 1px solid rgba(245, 243, 239, 0.06);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s ease;
}

.agent-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.agent-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(251, 191, 36, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #14b8a6;
  overflow: hidden;
  border: 2px solid rgba(20, 184, 166, 0.2);
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: #F5F3EF;
}

.agent-card .agent-title {
  font-size: 0.8rem;
  color: #14b8a6;
  font-weight: 500;
  margin-bottom: 12px;
}

.agent-card .agent-bio {
  font-size: 0.85rem;
  color: rgba(245, 243, 239, 0.5);
  line-height: 1.6;
  margin-bottom: 16px;
}

.agent-card .agent-phone {
  font-size: 0.85rem;
  color: rgba(245, 243, 239, 0.4);
}

/* --- Contact Section ----------------------------------------------------- */
#contact {
  background: rgba(245, 243, 239, 0.015);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(245, 243, 239, 0.04);
  border: 1px solid rgba(245, 243, 239, 0.1);
  border-radius: 10px;
  color: #F5F3EF;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #14b8a6;
  background: rgba(20, 184, 166, 0.05);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(245, 243, 239, 0.3);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .form-row {
  display: flex;
  gap: 16px;
}

.contact-form .form-row > * {
  flex: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(245, 243, 239, 0.02);
  border: 1px solid rgba(245, 243, 239, 0.06);
  border-radius: 12px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #14b8a6;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.5);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-item p {
  font-size: 0.95rem;
  color: #F5F3EF;
}

/* --- Footer -------------------------------------------------------------- */
#footer {
  padding: 60px 0 32px;
  border-top: 1px solid rgba(245, 243, 239, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #F5F3EF;
  margin-bottom: 12px;
}

.footer-brand-name span {
  color: #14b8a6;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: rgba(245, 243, 239, 0.4);
  max-width: 320px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.35);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(245, 243, 239, 0.5);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #14b8a6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 243, 239, 0.06);
  font-size: 0.8rem;
  color: rgba(245, 243, 239, 0.3);
}

/* --- Loading State ------------------------------------------------------- */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0B1120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #F5F3EF;
  letter-spacing: -0.02em;
}

.loading-logo span {
  color: #14b8a6;
}

.loading-bar {
  width: 200px;
  height: 2px;
  background: rgba(245, 243, 239, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 0;
  background: #14b8a6;
  border-radius: 2px;
  animation: loading-fill 1.5s ease-in-out infinite;
}

@keyframes loading-fill {
  0% { width: 0; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1000;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .listing-grid,
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-grid,
  .agents-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    padding: 32px 24px;
  }

  .contact-form .form-row {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .listing-card-body {
    padding: 16px 18px 20px;
  }
}
