/* =========================================

   Eco Space Realtors - DESIGN SYSTEM

   ========================================= */



@import url('theme.css?v=20260608_v5');
@import url('components.css?v=20260620_v1');


:root {

  /* Colors */

  --c-primary: #C00A27; /* Eco Space Red */

  --c-primary-hover: #A00820;

  --c-bg: #FAFAFA; /* Soft Sand/Off-white for premium feel */

  --c-surface: #FFFFFF;

  --c-text: #1F2937; /* Charcoal */

  --c-text-light: #6B7280;

  --c-border: #E5E7EB;

  

  /* Typography */

  --font-heading: 'Outfit', sans-serif;

  --font-body: 'Inter', sans-serif;

  

  /* Layout */

  --max-w: 1280px;

  --nav-height: 110px;



  /* Shadows & Radius */

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);

  --shadow-md: 0 10px 20px -5px rgba(0,0,0,0.1);

  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

  --shadow-premium: 0 0 40px rgba(192, 10, 39, 0.1);

  --radius-md: 10px;

  --radius-lg: 16px;

  --radius-full: 50px;

  

  /* Glassmorphism */

  --glass-bg: rgba(255, 255, 255, 0.85);

  --glass-border: rgba(255, 255, 255, 0.4);

  --glass-blur: blur(12px);

  

  /* Transitions */

  --t-fast: 0.2s ease;

  --t-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

}



* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}



body {
  font-family: var(--font-body);
  color: var(--c-text);
  background-color: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


p {

  text-align: justify;

}



h1, h2, h3, h4, h5, h6 {

  font-family: var(--font-heading);

  font-weight: 600;

  line-height: 1.2;

}



a {

  text-decoration: none;

  color: inherit;

  transition: color var(--t-fast);

}



img {

  max-width: 100%;

  height: auto;

  display: block;

}



.container {

  width: 100%;

  max-width: var(--max-w);

  margin: 0 auto;

  padding: 0 24px;

}



/* =========================================

   BUTTONS

   ========================================= */

.btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 12px 24px;

  border-radius: var(--radius-md);

  font-family: var(--font-heading);

  font-weight: 500;

  font-size: 1rem;

  cursor: pointer;

  transition: all var(--t-fast);

  border: none;

}



.btn-primary {

  background: linear-gradient(135deg, var(--c-primary) 0%, #E61E3F 100%);

  color: #fff;

  box-shadow: 0 4px 15px rgba(192, 10, 39, 0.3);

  border: 1px solid rgba(255, 255, 255, 0.1);

  position: relative;

  overflow: hidden;

}



.btn-primary::after {

  content: '';

  position: absolute;

  top: -50%;

  left: -50%;

  width: 200%;

  height: 200%;

  background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 55%, transparent 100%);

  transform: rotate(30deg) translateX(-100%);

  transition: transform 0.6s ease;

}



.btn-primary:hover::after {

  transform: rotate(30deg) translateX(100%);

}



.btn-primary:hover {

  background: linear-gradient(135deg, var(--c-primary-hover) 0%, var(--c-primary) 100%);

  transform: translateY(-3px);

  box-shadow: 0 8px 25px rgba(192, 10, 39, 0.4);

}



.btn-outline {

  background: var(--glass-bg);

  backdrop-filter: var(--glass-blur);

  color: var(--c-text);

  border: 1px solid var(--c-border);

  box-shadow: var(--shadow-sm);

}



.btn-outline:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}


.btn-portal {

  background: var(--c-bg);

  color: var(--c-text);

  border: 1px solid var(--c-border);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  transition: all var(--t-smooth);

}



.navbar.scrolled .btn-portal:hover {

  background: var(--c-text);

  color: white;

  border-color: var(--c-text);

}



.btn-icon {
  width: 44px;

  height: 44px;

  min-width: 44px;

  padding: 0;

  border-radius: 50%;

  background: rgba(0, 0, 0, 0.04);

  border: 1px solid rgba(0,0,0,0.05);

  color: var(--c-text);

  display: flex;

  align-items: center;

  justify-content: center;

  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  cursor: pointer;

}



.btn-icon:hover {

  background: var(--c-primary);

  color: white;

  border-color: var(--c-primary);

  transform: translateY(-3px) scale(1.05);

  box-shadow: 0 8px 20px rgba(192, 10, 39, 0.25);

}



.btn-icon i, .btn-icon svg { 

  width: 20px !important; 

  height: 20px !important;

  display: flex !important;

  align-items: center;

  justify-content: center;

  margin: 0;

}



.btn-primary.btn-rounded {

  width: auto;

  min-width: 44px;

  height: 44px;

  border-radius: 50px;

  padding: 0 20px;

}



/* =========================================

   NAVIGATION

   ========================================= */

.navbar {

  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: var(--nav-height);

  background: rgba(255, 255, 255, 0.75);

  backdrop-filter: blur(25px);

  -webkit-backdrop-filter: blur(25px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.4);

  z-index: 1000;

  display: flex;

  align-items: center;

  transition: all var(--t-smooth);

  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);

}



.navbar.scrolled {
  height: 80px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);

  -webkit-backdrop-filter: blur(15px);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

  border-bottom: 1px solid rgba(255, 255, 255, 0.3);

}



.glass-card {

  background: rgba(255, 255, 255, 0.6);

  backdrop-filter: blur(20px);

  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.3);

  border-radius: var(--radius-lg);

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

}



/* Featured Section Grid (Moved from local styles) */

.ecospace-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;

    margin-top: 60px;

}

.ecospace-card {

    background: white;

    border-radius: 24px;

    padding: 40px 30px;

    text-align: center;

    box-shadow: var(--shadow-md);

    transition: all var(--t-smooth);

    border: 1px solid rgba(229, 231, 235, 0.5);

    display: flex;

    flex-direction: column;

    cursor: pointer;

    text-decoration: none;

    color: inherit;

    position: relative;

    overflow: hidden;

}

.ecospace-card::before {

    content: '';

    position: absolute;

    top: 0; left: 0; width: 100%; height: 4px;

    background: var(--c-primary);

    transform: scaleX(0);

    transition: transform 0.4s ease;

    transform-origin: left;

}

.ecospace-card:hover {

    transform: translateY(-12px);

    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.15);

}

.ecospace-card:hover::before {

    transform: scaleX(1);

}

.ecospace-card .icon { font-size: 3rem; margin-bottom: 24px; display: block; color: var(--c-primary); }

.ecospace-card h3 { font-size: 1.5rem; margin-bottom: 15px; font-family: var(--font-heading); }

.ecospace-card p { font-size: 0.95rem; color: var(--c-text-light); margin-bottom: 25px; flex: 1; text-align: center; }



.nav-container {
  display: flex;

  justify-content: space-between;

  align-items: center;

  width: 100%;

}



.logo {

  display: flex;

  align-items: center;

  gap: 14px;

  transition: all var(--t-smooth);

  background: white;

  padding: 8px 12px;

  border-radius: 12px;

  box-shadow: 0 4px 15px rgba(0,0,0,0.1);

}



.logo img {

  height: 60px !important;

  width: auto;

  object-fit: contain;

}

.logo-text {

  font-family: var(--font-heading);

  font-size: 1.4rem;

  font-weight: 700;

  color: var(--c-text);

  letter-spacing: 0.01em;

  white-space: nowrap;

}



.navbar.scrolled .logo {

  padding: 5px 10px;

  background: white;

}



.navbar.scrolled .logo img {

  height: 45px !important;

}

.navbar.scrolled .logo-text {

  font-size: 1.2rem;

}



.logo:hover {

  transform: translateY(-2px);

  box-shadow: 0 8px 25px rgba(0,0,0,0.15);

}



.nav-links {

  display: flex;

  gap: 4px;

  list-style: none;

  background: rgba(0, 0, 0, 0.04);

  padding: 6px;

  border-radius: 50px;

  border: 1px solid rgba(0, 0, 0, 0.06);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  white-space: nowrap;

}



.nav-links a {

  font-weight: 700;

  color: var(--c-text);

  font-size: 0.78rem;

  padding: 10px 20px;

  border-radius: 50px;

  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  letter-spacing: 0.5px;

  text-transform: uppercase;

}



.nav-links a:hover {

  background: rgba(255, 255, 255, 0.5);

  color: var(--c-primary);

}



.nav-links a.active {

  background: var(--c-primary);

  color: white !important;

  box-shadow: 0 8px 20px rgba(192, 10, 39, 0.2);

}



/* Hero Section */

.hero {

    position: relative;

    height: 90vh;

    display: flex;

    align-items: center;

    overflow: hidden;

    background: #000;

}

.hero-bg {

    position: absolute;

    top: 0; left: 0; width: 100%; height: 100%;

    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('../images/heroimages/hero_index.png');

    background-size: cover;

    background-position: center;

    z-index: 1;

}

.hero-content {

    position: relative;

    z-index: 2;

    color: white;

    max-width: 800px;

}

.hero-title {

    font-size: 4.5rem;

    line-height: 1.1;

    margin-bottom: 24px;

    font-weight: 700;

    letter-spacing: -0.03em;

    font-family: var(--font-heading);

}

.hero-title span { color: var(--c-primary); }

.hero-tagline {

    font-size: 1.1rem;

    letter-spacing: 0.2em;

    text-transform: uppercase;

    color: var(--c-primary);

    margin-bottom: 15px;

    font-weight: 600;

}



/* Partners Strip */

.partners-strip {

    padding: 40px 0;

    background: var(--c-surface);

    border-bottom: 1px solid var(--c-border);

    text-align: center;

}

.partners-logos {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 60px;

    flex-wrap: wrap;

    opacity: 0.6;

}



/* Section Headers */

.section-header { margin-bottom: 80px; text-align: center; }

.section-title { font-size: 3rem; margin-bottom: 20px; font-family: var(--font-heading); }



/* Stats Section */

.stats-section {

    background: var(--c-primary);

    color: white;

    padding: 100px 0;

    text-align: center;

}

.stats-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 40px;

}

.stat-item h2 { font-size: 3.5rem; margin-bottom: 10px; }



/* CTA Section */

.cta-section {

    padding: 120px 0;

    background: var(--c-bg);

    text-align: center;

}

.cta-content { max-width: 800px; margin: 0 auto; }

.cta-content h2 { font-size: 3.5rem; margin-bottom: 30px; }



@media (max-width: 1000px) {

    .ecospace-grid { grid-template-columns: 1fr 1fr; }

    .hero-title { font-size: 3.5rem; }

}



@media (max-width: 900px) {

    .nav-links { display: none; }

    .navbar { height: 80px; }

    .logo img { height: 45px !important; }

    .logo-text { display: none; }

    .nav-actions .btn-portal { display: none; }

}



@media (max-width: 600px) {

    .ecospace-grid { grid-template-columns: 1fr; }

    .hero-title { font-size: 2.5rem; }

    .stats-grid { grid-template-columns: 1fr 1fr; }

    .hero { height: 80vh; }

}



.nav-actions {

  display: flex;

  gap: 12px;

  align-items: center;

}



.nav-actions .btn {

  padding: 10px 20px;

  font-size: 0.9rem;

  border-radius: 50px;

}



/* Mobile Nav Toggle */

.mobile-menu-btn {

  display: none;

  background: none;

  border: none;

  font-size: 1.5rem;

  cursor: pointer;

}



/* =========================================

   MAIN LAYOUT

   ========================================= */

main {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height) - 100px); /* rough footer */
}

/* Keep only floating share + WhatsApp on mobile; bottom action bar is deprecated */
.mobile-action-bar {
  display: none !important;
}


/* Form Styles */

.form-group {

  margin-bottom: 20px;

}

.form-control {

  width: 100%;

  padding: 12px 16px;

  border: 1px solid var(--c-border);

  border-radius: var(--radius-md);

  font-family: var(--font-body);

  transition: border-color var(--t-fast);

}

.form-control:focus {

  outline: none;

  border-color: var(--c-primary);

}



/* Footer */

.footer {
  background-color: var(--c-surface);
  padding: 40px 0 20px;
  border-top: 1px solid var(--c-border);
  margin-top: 40px;
}



/* =========================================

   SOCIAL SHARING

   ========================================= */

.share-container {

  position: relative;

  display: inline-block;
  display: flex;

  align-items: center;

  gap: 12px;

  padding: 10px 16px;

  border-radius: 10px;

  font-size: 0.95rem;

  color: var(--c-text);

  transition: all 0.2s ease;

  text-decoration: none;

  cursor: pointer;

  border: none;

  background: none;

  width: 100%;

  text-align: left;

  font-family: var(--font-body);

}



.share-item:hover {

  background: #F8FAFC;

  color: var(--c-primary);

  transform: translateX(4px);

}



.share-item.whatsapp:hover { color: #25D366; background: rgba(37, 211, 102, 0.05); }

.share-item.facebook:hover { color: #1877F2; background: rgba(24, 119, 242, 0.05); }

.share-item.linkedin:hover { color: #0A66C2; background: rgba(10, 102, 194, 0.05); }

.share-item.twitter:hover { color: #1DA1F2; background: rgba(29, 161, 242, 0.05); }



.share-item i {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

/* Global Justify Override per User Request */
p, .page-copy, .hero-description, .content-section p, .feature-panel span, li { text-align: justify !important; }


p { text-align: justify; }


.share-trigger svg, .share-trigger i, .share-item svg, .share-item i { pointer-events: none; }


.share-menu { position: absolute; bottom: calc(100% + 15px); right: 0; z-index: 9999; background: #ffffff; border-radius: 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.18); display: flex; flex-direction: column; padding: 8px; min-width: 200px; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid #e5e7eb; backdrop-filter: none; -webkit-backdrop-filter: none; }
.share-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }


.share-container { position: relative; }

