/* Desert Resort Communities — Custom CSS */
/* Framework: Bootstrap 5 | Theme: Warm Desert Luxury */

:root {
  --desert-gold: #c8922a;
  --desert-gold-light: #e5b84a;
  --desert-gold-dark: #a07020;
  --desert-navy: #1a3a5c;
  --desert-navy-dark: #0f2540;
  --desert-navy-light: #2a5482;
  --desert-terracotta: #b54a2a;
  --desert-sand: #f5f0e8;
  --desert-sand-dark: #e8dfc8;
  --desert-stone: #8a7a6a;
  --text-dark: #1e1e1e;
  --text-mid: #444444;
  --text-light: #777777;
  --white: #ffffff;
}

/* ==================== BASE ==================== */
body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  color: var(--desert-navy);
  line-height: 1.25;
}

a {
  color: var(--desert-gold-dark);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--desert-terracotta);
}

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

/* ==================== NAVBAR ==================== */
.navbar-desert {
  background: var(--desert-navy-dark);
  padding: 0;
  border-bottom: 3px solid var(--desert-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.navbar-desert .navbar-brand {
  color: var(--white) !important;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1rem 0;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.navbar-desert .navbar-brand span {
  display: block;
  font-size: 0.75rem;
  font-family: 'Lora', serif;
  font-weight: 400;
  color: var(--desert-gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-desert .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-family: 'Lora', serif;
  font-size: 0.88rem;
  font-weight: 400;
  padding: 1.4rem 0.9rem !important;
  letter-spacing: 0.03em;
  transition: color 0.2s ease, background 0.2s ease;
  text-transform: uppercase;
}

.navbar-desert .nav-link:hover,
.navbar-desert .nav-link.active {
  color: var(--desert-gold-light) !important;
  background: rgba(255,255,255,0.05);
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==================== HERO ==================== */
.site-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--desert-navy-dark);
}

.site-hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.site-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 25, 47, 0.92) 0%,
    rgba(10, 25, 47, 0.5) 50%,
    rgba(10, 25, 47, 0.2) 100%
  );
}

.site-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 3.5rem;
}

.site-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
}

.site-hero .hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 650px;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--desert-gold);
  margin: 1rem 0;
}

/* Page heroes (non-homepage) */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--desert-navy-dark);
}

.page-hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,47,0.88) 0%, rgba(10,25,47,0.35) 100%);
}

.page-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 0 2.5rem;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  margin-bottom: 0.5rem;
}

.page-hero .page-breadcrumb {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.page-hero .page-breadcrumb a {
  color: var(--desert-gold-light);
  text-decoration: none;
}

/* ==================== GOLD ACCENT BAR ==================== */
.gold-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--desert-gold-dark), var(--desert-gold), var(--desert-gold-light));
}

/* ==================== SECTIONS ==================== */
.section-padding {
  padding: 4rem 0;
}

.section-padding-lg {
  padding: 5.5rem 0;
}

.section-sand {
  background-color: var(--desert-sand);
}

.section-navy {
  background-color: var(--desert-navy);
  color: var(--white);
}

.section-navy h2, .section-navy h3 {
  color: var(--desert-gold-light);
}

.section-navy p {
  color: rgba(255,255,255,0.85);
}

/* Section heading style */
.section-heading {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--desert-navy);
  margin-bottom: 0.5rem;
}

.section-heading-light {
  color: var(--white);
}

.section-sub {
  color: var(--desert-stone);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.section-divider {
  width: 50px;
  height: 3px;
  background: var(--desert-gold);
  margin: 0.75rem 0 1.5rem;
}

/* ==================== COMMUNITY CARDS ==================== */
.community-card {
  border: none;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: var(--white);
  height: 100%;
}

.community-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.community-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.community-card .card-body {
  padding: 1.5rem;
}

.community-card .card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--desert-navy);
  margin-bottom: 0.5rem;
}

.community-card .card-text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.community-card .card-footer {
  background: var(--desert-sand);
  border-top: 1px solid var(--desert-sand-dark);
  padding: 0.75rem 1.5rem;
}

/* ==================== INLINE CONTENT IMAGE ==================== */
.content-image {
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  margin: 1.5rem 0;
  width: 100%;
}

.image-caption {
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ==================== FEATURE STRIPS ==================== */
.feature-strip {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--desert-sand-dark);
}

.feature-strip:last-child {
  border-bottom: none;
}

.feature-strip .icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--desert-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

/* ==================== CALLOUT BOX ==================== */
.callout-box {
  background: linear-gradient(135deg, var(--desert-navy) 0%, var(--desert-navy-light) 100%);
  color: var(--white);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.callout-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: var(--desert-gold);
  opacity: 0.1;
  border-radius: 50%;
  transform: translate(40%, -40%);
}

.callout-box h3 {
  color: var(--desert-gold-light);
  margin-bottom: 0.75rem;
}

.callout-box p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 0;
}

/* ==================== BUTTON STYLES ==================== */
.btn-desert {
  background: var(--desert-gold);
  border: none;
  color: var(--white);
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.75rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-desert:hover {
  background: var(--desert-gold-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-desert-outline {
  background: transparent;
  border: 2px solid var(--desert-gold);
  color: var(--desert-gold);
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-desert-outline:hover {
  background: var(--desert-gold);
  color: var(--white);
}

.btn-light-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-light-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

/* ==================== BREADCRUMB ==================== */
.page-breadcrumbs {
  background: var(--desert-sand);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--desert-sand-dark);
}

.page-breadcrumbs .breadcrumb {
  margin: 0;
  font-size: 0.82rem;
}

.page-breadcrumbs .breadcrumb-item a {
  color: var(--desert-gold-dark);
  text-decoration: none;
}

.page-breadcrumbs .breadcrumb-item.active {
  color: var(--text-light);
}

/* ==================== CONTENT BODY ==================== */
.content-body h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--desert-sand-dark);
}

.content-body h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--desert-terracotta);
}

.content-body ul, .content-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.content-body li {
  margin-bottom: 0.5rem;
}

.content-body strong {
  color: var(--desert-navy);
}

.content-body a {
  color: var(--desert-gold-dark);
  text-decoration: underline;
  text-decoration-color: var(--desert-gold);
  text-underline-offset: 2px;
}

.content-body a:hover {
  color: var(--desert-terracotta);
}

/* ==================== SIDEBAR ==================== */
.sidebar-widget {
  background: var(--desert-sand);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--desert-gold);
}

.sidebar-widget h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--desert-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--desert-sand-dark);
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  border-bottom: 1px solid var(--desert-sand-dark);
}

.sidebar-nav li:last-child {
  border-bottom: none;
}

.sidebar-nav a {
  display: block;
  padding: 0.6rem 0.25rem;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding 0.2s;
}

.sidebar-nav a:hover {
  color: var(--desert-gold-dark);
  padding-left: 0.5rem;
}

.sidebar-nav a.active {
  color: var(--desert-gold-dark);
  font-weight: 600;
}

/* ==================== COMMUNITY GRID ==================== */
.community-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  background: var(--desert-navy-dark);
}

.community-grid-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.3s, transform 0.3s;
}

.community-grid-item:hover img {
  opacity: 0.5;
  transform: scale(1.03);
}

.community-grid-item .item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(10,25,47,0.9) 0%, transparent 100%);
  color: var(--white);
}

.community-grid-item .item-label h5 {
  color: var(--white);
  font-size: 1rem;
  margin: 0;
}

.community-grid-item .item-label span {
  font-size: 0.8rem;
  color: var(--desert-gold-light);
}

/* ==================== CONTACT FORM ==================== */
.contact-form .form-control {
  border: 1px solid var(--desert-sand-dark);
  border-radius: 4px;
  padding: 0.7rem 1rem;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
}

.contact-form .form-control:focus {
  border-color: var(--desert-gold);
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.15);
  outline: none;
}

.contact-form .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mid);
}

/* ==================== STATS BAR ==================== */
.stats-bar {
  background: var(--desert-navy);
  padding: 2rem 0;
  color: var(--white);
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--desert-gold-light);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
  display: block;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--desert-navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--desert-gold);
}

.site-footer .footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.site-footer .footer-tagline {
  font-size: 0.85rem;
  color: var(--desert-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}

.site-footer p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

.site-footer h5 {
  color: var(--desert-gold-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-links li {
  margin-bottom: 0.5rem;
}

.site-footer .footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.site-footer .footer-links a:hover {
  color: var(--desert-gold-light);
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 2rem 0;
}

/* ==================== 404 PAGE ==================== */
.error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--desert-sand);
}

.error-404 .error-number {
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  font-weight: 700;
  color: var(--desert-gold);
  line-height: 1;
  text-shadow: 2px 2px 0 var(--desert-gold-dark);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .site-hero {
    min-height: 380px;
  }

  .page-hero {
    min-height: 240px;
  }

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

  .section-padding-lg {
    padding: 3.5rem 0;
  }

  .stats-bar .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .site-hero {
    min-height: 300px;
  }

  .navbar-desert .navbar-brand {
    font-size: 1.15rem;
  }
}
