/* ============================================
   Desert Standards — Main Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #3D2B1F;
  --primary-light: #4A3728;
  --accent: #D4842A;
  --accent-hover: #BF7424;
  --accent-green: #4A6B35;
  --accent-green-hover: #3D5A2E;
  --light-bg: #FAF7F2;
  --dark-bg: #3D2B1F;
  --text-dark: #3D2B1F;
  --text-muted: #7A6B5D;
  --white: #ffffff;
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 20px rgba(61, 43, 31, 0.08);
  --shadow-hover: 0 8px 30px rgba(61, 43, 31, 0.15);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* --- Global Styles --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

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

/* --- Section Padding --- */
.section-padding {
  padding: 80px 0;
}

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

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

/* --- Section Titles --- */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.section-dark .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 15px auto 25px;
  border-radius: 2px;
}

.section-divider-light {
  background: var(--accent);
}

/* ============================================
   NAVBAR
   ============================================ */
#mainNav {
  background-color: var(--primary) !important;
  padding: 12px 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#mainNav.navbar-scrolled {
  padding: 8px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#mainNav .navbar-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: 0.5px;
}

#mainNav .navbar-brand i {
  color: var(--accent-green);
}

#mainNav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
  color: var(--white) !important;
}

.nav-link-login {
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link-login:hover {
  color: var(--accent) !important;
}

/* Logo in navbar */
#mainNav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo-icon {
  height: 96px !important;
  width: auto !important;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name-top {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}

.brand-name-bottom {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3px;
}

.brand-tagline {
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  margin-top: 2px;
}


/* --- Proposal Button (Green) --- */
.btn-proposal {
  background-color: var(--accent);
  color: var(--white) !important;
  border: 2px solid var(--accent);
  font-weight: 600;
  border-radius: 5px;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-proposal:hover,
.btn-proposal:focus {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 132, 42, 0.3);
}

/* --- Live Demo Button (Outline) --- */
.btn-demo {
  background-color: transparent;
  color: var(--accent) !important;
  border: 2px solid var(--accent);
  font-weight: 600;
  border-radius: 5px;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-demo:hover,
.btn-demo:focus {
  background-color: var(--accent);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 132, 42, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2A1D14 0%, #3D2B1F 30%, #5A3E2B 60%, #3D2B1F 100%);
  padding-top: 80px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 132, 42, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(74, 107, 53, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(42, 29, 20, 0.4);
  pointer-events: none;
}

.hero-section .container {
  z-index: 2;
}

.hero-title {
  color: var(--white);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-cta .btn {
  padding: 12px 32px;
  font-size: 1rem;
}

.hero-cta .btn-outline-light {
  border-width: 2px;
  font-weight: 600;
}

.hero-cta .btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 600px;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta .btn {
    display: block;
    width: 100%;
    margin-bottom: 12px;
  }

  .hero-cta .btn.me-3 {
    margin-right: 0 !important;
  }
}

/* ============================================
   VALUE PROPOSITIONS
   ============================================ */
.value-props-section {
  background-color: var(--white);
  padding: 80px 0;
}

.value-card {
  padding: 40px 30px;
  border-radius: var(--radius);
  transition: var(--transition);
  background: var(--white);
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--white);
}

.value-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  color: var(--primary);
}

.value-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   PAIN POINTS SECTION
   ============================================ */
.pain-image-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.pain-image-wrapper img {
  width: 100%;
  display: block;
}

.pain-content {
  padding: 10px 0;
}

.pain-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(212, 132, 42, 0.15);
  line-height: 1;
  margin-bottom: -10px;
}

.pain-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.pain-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.pain-text strong {
  color: var(--text-dark);
}

.pain-content .btn-outline-primary {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.pain-content .btn-outline-primary:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 132, 42, 0.3);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 35px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--white);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.service-list li {
  padding: 6px 0;
  color: var(--text-dark);
  font-size: 0.93rem;
}

.service-list li i {
  color: var(--accent);
  font-size: 0.8rem;
}

.licensing-note {
  display: inline-block;
  background: var(--white);
  border: 1px solid rgba(46, 134, 222, 0.2);
  border-radius: var(--radius);
  padding: 16px 28px;
  color: var(--text-dark);
  font-size: 0.9rem;
  max-width: 700px;
}

.licensing-note i {
  color: var(--accent-green);
}

/* ============================================
   TECHNOLOGY SECTION
   ============================================ */
.tech-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
}

.tech-feature i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 3px;
  min-width: 24px;
}

.tech-feature strong {
  color: var(--white);
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.tech-feature span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.5;
}

.software-screenshot {
  text-align: center;
  padding: 20px;
}

.software-screenshot img {
  border-radius: 8px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  max-width: 100%;
  background: var(--primary-light);
  min-height: 300px;
  object-fit: cover;
}

/* ============================================
   CC&R COMPLIANCE SECTION
   ============================================ */
.ccr-category {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.ccr-category:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.ccr-category-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
  color: var(--white);
}

.ccr-category h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.ccr-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ccr-category ul li {
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ccr-category ul li i {
  color: var(--accent);
  font-size: 0.75rem;
  margin-right: 8px;
}

.ccr-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.ccr-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--light-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.ccr-highlight i {
  color: var(--accent);
  font-size: 1.3rem;
  margin-top: 2px;
}

.ccr-highlight-text strong {
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.ccr-highlight-text span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-card {
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.why-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.why-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.2rem;
  color: var(--white);
}

.why-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #5A3E2B 50%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
}

.cta-section .btn-proposal {
  background-color: var(--accent);
  border-color: var(--accent);
  font-size: 1.1rem;
  padding: 14px 40px;
}

.cta-section .btn-proposal:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--primary) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.65);
}

.footer-brand {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  height: 70px !important;
  width: auto !important;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.footer-name-top {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}

.footer-name-bottom {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3.5px;
}

.footer-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2.5px;
  margin-top: 3px;
}

.site-footer h6 {
  color: var(--white);
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.footer-links {
  margin: 0;
  padding: 0;
}

.footer-links li {
  padding: 4px 0;
  font-size: 0.9rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
}

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

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
}

.social-icon:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   FADE-IN ANIMATIONS
   ============================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animations */
.row > .fade-in-up:nth-child(2) {
  transition-delay: 0.1s;
}

.row > .fade-in-up:nth-child(3) {
  transition-delay: 0.2s;
}

.row > .fade-in-up:nth-child(4) {
  transition-delay: 0.3s;
}

.row > .fade-in-up:nth-child(5) {
  transition-delay: 0.35s;
}

.row > .fade-in-up:nth-child(6) {
  transition-delay: 0.4s;
}

.row > .fade-in-up:nth-child(7) {
  transition-delay: 0.45s;
}

.row > .fade-in-up:nth-child(8) {
  transition-delay: 0.5s;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991px) {
  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.7rem;
  }

  #mainNav .navbar-collapse {
    background: var(--primary);
    padding: 15px;
    margin-top: 10px;
    border-radius: var(--radius);
  }

  #mainNav .d-flex {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
  }

  #mainNav .btn-proposal {
    text-align: center;
  }

  .tech-feature {
    padding: 10px 0;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.5rem;
  }

  .service-card {
    padding: 30px 25px;
  }

  .value-card {
    padding: 30px 20px;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }
}

/* ============================================
   UTILITY / MISC
   ============================================ */
::selection {
  background: var(--accent);
  color: var(--white);
}

a {
  color: var(--accent);
  transition: var(--transition);
}

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

.btn:focus,
.btn:active {
  box-shadow: none !important;
}
