@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ==========================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ========================================== */
:root {
  /* Colors */
  --primary-orange: #F97316;
  --primary-orange-hover: #EA580C;
  --secondary-orange-light: #FFF7ED;
  --background-light: #F4F8FA;
  --white: #FFFFFF;
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-light: #E2E8F0;
  --shadow-color: rgba(0, 0, 0, 0.06);
  --icon-green: #10B981;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;
  --radius-circle: 50%;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  /* Shadows */
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-large: 0 16px 48px rgba(0, 0, 0, 0.12);

  /* Layout */
  --container-max-width: 1200px;
  --section-padding-y: 80px;
  --grid-gap: 24px;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ==========================================
   TYPOGRAPHY SPECIFICATION CLASSES
   ========================================== */
.h1-title {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-primary);
}

.h2-title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

.h3-title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-primary);
}

.h4-title {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-primary);
}

.text-large {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-secondary);
}

.text-default {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-secondary);
}

.text-small {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-muted);
}

.caption-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-orange);
}

/* ==========================================
   LAYOUT STRUCTURES
   ========================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl) auto;
}

.section-header .h2-title {
  margin-bottom: var(--space-sm);
}

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

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

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

.flex-row {
  display: flex;
  flex-direction: row;
}

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

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

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

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

/* ==========================================
   NAVBAR COMPONENT
   ========================================== */
.navbar {
  background-color: var(--white);
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-light);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
}

.navbar-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
}

.logo-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--primary-orange);
}

.nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-orange);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-orange);
  border-radius: var(--radius-sm);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-overlay {
  display: none;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-orange);
  color: var(--white);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
}

.btn-outline:hover {
  background-color: var(--secondary-orange-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.btn-full-radius {
  border-radius: var(--radius-full);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  background-color: var(--background-light);
  padding: 80px 0;
  overflow: hidden;
}

.hero-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-2xl);
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-content .h1-title {
  margin-top: var(--space-xs);
}

.hero-stats {
  display: flex;
  flex-direction: row;
  gap: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  width: 100%;
  max-width: 500px;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-large);
}

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

/* ==========================================
   CARDS & GRIDS
   ========================================== */
/* Generic Card Base */
.card-base {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.card-base:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

/* Sustainable Card */
.sustainable-card {
  display: flex;
  flex-direction: row;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--white);
}

.sustainable-card-image {
  width: 120px;
  height: 100px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.sustainable-card-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Category Card */
.category-card {
  background-color: var(--primary-orange);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 220px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.category-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  transition: transform 0.5s ease;
  z-index: 1;
}

.category-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  z-index: 2;
}

.category-card-title {
  color: var(--white);
  position: relative;
  z-index: 3;
  font-size: 20px;
  font-weight: 600;
}

.category-card-btn {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background-color: var(--white);
  color: var(--primary-orange);
  border: none;
  border-radius: var(--radius-circle);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.category-card:hover .category-card-bg {
  transform: scale(1.08);
}

.category-card:hover .category-card-btn {
  background-color: var(--primary-orange);
  color: var(--white);
}

/* Property / Review Card */
.property-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all 0.3s ease;
}

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

.property-image-container {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.property-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--white);
  color: var(--primary-orange);
  border: none;
  border-radius: var(--radius-circle);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  cursor: pointer;
  transition: all 0.2s ease;
}

.property-favorite:hover {
  transform: scale(1.1);
}

.property-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.property-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
}

.property-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.property-badge {
  background-color: var(--secondary-orange-light);
  color: var(--primary-orange);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.property-stats {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 14px;
}

.property-stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-md);
  margin-top: var(--space-xs);
}

.property-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-orange);
}

.property-location {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: 14px;
}

/* Testimonial Card */
.testimonial-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-medium);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-large);
  transform: scale(1.02);
}

.testimonial-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  margin: 0 auto var(--space-md) auto;
  border: 3px solid var(--secondary-orange-light);
}

.testimonial-name {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.testimonial-role {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.testimonial-rating {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  color: var(--icon-green);
  margin-bottom: var(--space-md);
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
}

/* ==========================================
   FAQ ACCORDIONS
   ========================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-accordion {
  background-color: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: border-left 0.2s ease;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  user-select: none;
  background-color: var(--white);
  transition: background-color 0.2s ease;
}

.faq-header:hover {
  background-color: var(--background-light);
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-icon {
  color: var(--primary-orange);
  font-size: 20px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  padding: 0 var(--space-lg) var(--space-md) var(--space-lg);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid transparent;
}

/* Accordion expanded state classes */
.faq-accordion.expanded {
  border-left: 4px solid var(--primary-orange);
}

.faq-accordion.expanded .faq-icon {
  transform: rotate(45deg);
}

.faq-accordion.expanded .faq-answer {
  display: block;
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-md);
}

/* ==========================================
   FORMS & INPUTS
   ========================================== */
.form-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--background-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

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

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
  background-color: var(--background-light);
  padding: 60px 0 20px 0;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary-orange);
}

.footer-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.footer-gallery-img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copy {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-identity {
  font-size: 12px;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: var(--space-md);
  line-height: 1.5;
}

/* ==========================================
   UTILITY & STRUCTURAL COMPONENTS
   ========================================== */
.divider {
  height: 1px;
  background-color: var(--border-light);
  margin: var(--space-lg) 0;
}

.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--secondary-orange-light);
  color: var(--primary-orange);
  font-size: 24px;
  flex-shrink: 0;
}

.icon-wrapper-green {
  background-color: #E6FBF3;
  color: var(--icon-green);
}

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

.mobile-menu-overlay,
.mobile-menu {
  display: none;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

/* Tablet Viewports */
@media (max-width: 992px) {
  :root {
    --section-padding-y: 60px;
  }

  .h1-title {
    font-size: 36px;
  }

  .h2-title {
    font-size: 28px;
  }

  .hero-container {
    flex-direction: column-reverse;
    gap: var(--space-xl);
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-stats {
    width: 100%;
    justify-content: center;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar-actions .btn {
    display: none; /* Hide primary button on tablet/mobile header */
  }

  .nav-menu {
    display: none; /* Hide standard nav list */
  }

  .menu-toggle {
    display: block; /* Show hamburger button */
  }

  /* Mobile menu drawer logic */
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu {
    position: fixed;
    top: 76px;
    right: -280px;
    width: 280px;
    bottom: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-large);
    z-index: 1000;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-menu.active {
    right: 0;
  }

  .mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  .mobile-nav-link {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    color: var(--primary-orange);
  }
}

/* Mobile Viewports */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .sustainable-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .sustainable-card-image {
    width: 100%;
    height: 180px;
  }

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

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

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Specifically for game review column override in reviews page: stack to single column */
  .reviews-grid-override {
    grid-template-columns: 1fr !important;
  }
}
