﻿/* 
  Unrealestate Base Stylesheet 
  Premium, modern, glassmorphic design system
*/

:root {
  /* Color Palette - Premium Dark Blue & Gold */
  --color-bg-light: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-bg-card: #ffffff;
  --color-bg-card-dark: #1e293b;

  --color-primary: #cda434;
  /* Elegant Gold */
  --color-primary-hover: #b08d2c;
  --color-secondary: #1e293b;
  /* Slate Blue */
  --color-text: #334155;
  --color-text-light: #94a3b8;
  --color-text-inverse: #f8fafc;

  --color-border: #e2e8f0;
  --color-border-dark: #334155;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows & Effects */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(205, 164, 52, 0.4);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

ul {
  list-style: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

.d-flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.mt-20 {
  margin-top: 1.25rem;
}

.p-40 {
  padding: 2.5rem;
}

.bg-light {
  background-color: var(--color-bg-light);
}

.dark-section {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 {
  color: var(--color-text-inverse);
}

/* Glassmorphism */
.glassmorphism {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

/* Typography Highlights */
.highlight {
  color: var(--color-primary);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 4px;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-dark) !important;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-inverse) !important;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary) !important;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-dark) !important;
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--color-secondary);
  color: var(--color-secondary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--color-secondary);
  color: var(--color-bg-card) !important;
}

.btn-text {
  padding: 0;
  color: var(--color-primary);
  font-weight: 600;
}

.btn-text:hover {
  text-decoration: underline;
  background: none;
  transform: none;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}

.brand-logo {
  height: 80px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-weight: 400;
  position: relative;
}

.main-nav a:not(.btn-outline)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}

.main-nav a:not(.btn-outline):hover::after {
  width: 100%;
}

/* Mobile Menu Variables */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-primary);
  border-radius: 3px;
  transition: all var(--transition-fast);
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  font-weight: 700;
}

.hero-card {
  padding: 2.5rem;
  border-radius: 8px;
  max-width: 650px;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-focus {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Section Headers */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.text-center .section-desc {
  margin: 0 auto 3rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-bg-card);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid var(--color-border);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Property Grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

/* Sidebar Filter Layout */
.properties-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.filter-sidebar {
  position: sticky;
  top: 120px;
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.filter-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  background: var(--color-bg-light);
  transition: border-color var(--transition-fast);
}

.filter-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-separator {
  color: var(--color-text-light);
}

.filter-radio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  color: var(--color-text);
}

.filter-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  outline: none;
  transition: all var(--transition-fast);
  position: relative;
  background: white;
}

.filter-radio input[type="radio"]:checked {
  border-color: var(--color-primary);
}

.filter-radio input[type="radio"]:checked::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
}

.filter-radio span {
  font-size: 0.95rem;
}

.property-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.property-grid-compact .property-image-wrapper {
  height: 180px;
}

.property-card {
  background: var(--color-bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.property-image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.property-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.property-card:hover .property-image {
  transform: scale(1.08);
}

.property-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-dark);
}

.badge-sold {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.badge-pending {
  background-color: #94a3b8;
  color: #ffffff;
}

.property-content {
  padding: 1.5rem;
}

.property-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.property-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.property-specs {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.spec {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spec-value {
  font-weight: 600;
  color: var(--color-secondary);
}

.spec-label {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
}

/* Founder Section */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.founder-title {
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.divider {
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
  margin-bottom: 2rem;
}

.founder-content p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.founder-quote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-primary) !important;
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 80px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--color-text-inverse);
  margin-bottom: 1.5rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 2rem 0;
}

.compliance-disclaimer {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.compliance-disclaimer strong {
  color: var(--color-primary);
}

.copyright {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* Animations Variables/Classes */
@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-up {
  animation: fadeUp 0.8s ease forwards;
}

.animate-in {
  animation: fadeIn 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-dark);
    padding: 2rem;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav.is-open {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Forms & Contact */
.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-bg-light);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.error-msg {
  background: rgba(255, 0, 0, 0.1);
  color: #ff6b6b;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 0, 0, 0.2);
  margin-bottom: 2rem;
}

.success-msg {
  background: rgba(0, 128, 0, 0.1);
  color: green;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 128, 0, 0.2);
  margin-bottom: 2rem;
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  padding: 4rem;
  border-radius: 12px;
}

/* Global Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.gap-2rem {
  gap: 2rem;
}

.mt-2rem {
  margin-top: 2rem;
}

.mt-3rem {
  margin-top: 3rem;
}

.mb-1rem {
  margin-bottom: 1rem;
}

.mb-3rem {
  margin-bottom: 3rem;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.pt-150 {
  padding-top: 150px;
}

.pb-80 {
  padding-bottom: 80px;
}

.max-w-600 {
  max-width: 600px;
}

.max-w-800 {
  max-width: 800px;
}

.max-w-500 {
  max-width: 500px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-40 {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.text-left {
  text-align: left;
}

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

.hero-fs-35 {
  font-size: 3.5rem;
}

.font-size-1-125 {
  font-size: 1.125rem;
}

.py-3rem {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-2rem {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Brand Identity System */
.brand-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.brand-title {
  color: #e2e8f0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-tagline {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 3px;
}

/* Specific Overrides */
.footer-brand .brand-title {
  font-size: 0.95rem;
}

.footer-brand .brand-tagline {
  font-size: 0.55rem;
}

.contact-link {
  color: white;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

/* Property Carousel Styles */
.property-carousel-container {
  width: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  background: #f1f5f9;
}

.carousel-main {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(15, 23, 42, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-nav:hover {
  background: var(--color-primary);
  color: var(--color-bg-dark);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.carousel-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: white;
  overflow-x: auto;
  scrollbar-width: none;
}

.carousel-thumbs::-webkit-scrollbar {
  display: none;
}

.thumb {
  flex: 0 0 100px;
  height: 65px;
  border-radius: 4px;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.thumb.active {
  border-color: var(--color-primary);
}