/* Colorado Western Land - Professional Design System */

/* ==================== CSS Variables ==================== */
:root {
  /* Colors - Clean Professional Teal */
  --color-primary: #17a2b8;        /* Teal/turquoise */
  --color-primary-dark: #138496;   /* Darker teal for hover */
  --color-accent: #28a745;         /* Green accent */
  --color-accent-dark: #218838;    /* Darker green */
  
  --color-bg-light: #f8f9fa;       /* Very light gray background */
  --color-bg-white: #ffffff;       /* White background */
  --color-bg-dark: #343a40;        /* Dark footer */
  
  --color-text-primary: #212529;   /* Main text */
  --color-text-secondary: #6c757d; /* Secondary text */
  --color-text-light: #adb5bd;     /* Light text */
  
  --color-border: #dee2e6;         /* Border color */
  --color-shadow: rgba(0, 0, 0, 0.08); /* Subtle shadow */
  
  /* Spacing */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 1rem;      /* 16px */
  --spacing-md: 1.5rem;    /* 24px */
  --spacing-lg: 2rem;      /* 32px */
  --spacing-xl: 3rem;      /* 48px */
  --spacing-2xl: 4rem;     /* 64px */
  --spacing-3xl: 5rem;     /* 80px */
  
  /* Container */
  --container-max: 1200px;
  
  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==================== Base Styles ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-white);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ==================== Navigation ==================== */
.site-header {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-heading);
  white-space: nowrap;
}

.site-logo:hover {
  color: var(--color-primary-dark);
}

.main-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--color-primary-dark);
}

.phone-icon {
  width: 20px;
  height: 20px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary);
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 968px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    gap: 0;
  }
  
  .main-nav.is-open {
    display: flex;
  }
  
  .main-nav li {
    width: 100%;
  }
  
  .main-nav a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
  }
  
  .main-nav a:hover {
    background: var(--color-bg-light);
  }
}

@media (max-width: 640px) {
  .header-content {
    gap: 1rem;
  }
  
  .site-logo {
    font-size: 1.25rem;
  }
  
  .header-phone {
    font-size: 1rem;
  }
  
  .header-phone svg {
    display: none;
  }
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
}

h1 {
  font-size: 2.5rem;        /* 40px */
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;     /* 32px */
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.375rem;      /* 22px */
  margin-bottom: 0.75rem;
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;     /* 18px */
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
  font-size: 1.0625rem;    /* 17px */
  line-height: 1.7;
  color: var(--color-text-primary);
}

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

.text-secondary {
  color: var(--color-text-secondary);
}

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

/* ==================== Buttons ==================== */
.btn {
  display: inline-block;
  padding: 1.125rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: #ff6b35;
  color: white;
}

.btn-primary:hover {
  background: #e85a2a;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

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

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* ==================== Hero Section ==================== */
.hero {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-2xl) 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
  opacity: 0.95;
}

/* ==================== Trust Bar ==================== */
.trust-bar {
  background: #f8f9fa;
  padding: 3rem 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.trust-icon {
  width: 56px;
  height: 56px;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  stroke-width: 1.5;
}

.trust-item h4 {
  color: var(--color-text-primary);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.trust-item p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.5;
}

/* ==================== Section Styles ==================== */
.section {
  padding: 5rem 0;
}

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

.section-gray {
  background: #f8f9fa;
}

.section-heading {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-heading h2 {
  color: var(--color-text-primary);
  margin-bottom: 1.25rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-heading p {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ==================== Two Column Layout ==================== */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}

/* ==================== Process Cards ==================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.process-card {
  background: white;
  padding: var(--spacing-xl);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px var(--color-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px var(--color-shadow);
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.process-card h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
}

.process-card p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ==================== FAQ Accordion ==================== */
.faq-list {
  max-width: 900px;
  margin: var(--spacing-xl) auto 0;
}

.faq-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  margin-bottom: var(--spacing-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--spacing-md) var(--spacing-lg);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

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

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 var(--spacing-lg);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 var(--spacing-lg) var(--spacing-md);
}

.faq-answer p {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ==================== Contact Form ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  background: white;
  padding: var(--spacing-xl);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px var(--color-shadow);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.contact-info {
  background: var(--color-bg-light);
  padding: var(--spacing-xl);
  border-radius: 0.75rem;
  height: fit-content;
}

.contact-info h3 {
  margin-bottom: var(--spacing-md);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.contact-detail svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail div {
  flex: 1;
}

.contact-detail h4 {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.25rem;
}

.contact-detail p {
  font-size: 1rem;
  color: var(--color-text-primary);
  margin: 0;
}

/* ==================== Service Areas Grid ==================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.service-area-link {
  display: block;
  padding: var(--spacing-md);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.service-area-link:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--color-shadow);
}

/* ==================== Footer ==================== */
.footer {
  background: var(--color-bg-dark);
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer h3 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ==================== Utility Classes ==================== */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.list-none {
  list-style: none;
}

.list-disc {
  list-style: disc;
  padding-left: var(--spacing-lg);
}

.list-disc li {
  margin-bottom: var(--spacing-xs);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
  }
  
  .service-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}
