/* West Virginia Real Estate Investment Website Styles */

/* ===== GLOBAL STYLES ===== */
:root {
  /* Color scheme based on West Virginia landscape and professional real estate colors */
  --primary-color: #2c5282; /* Deep blue representing professionalism */
  --secondary-color: #38a169; /* Green representing growth and investment */
  --accent-color: #ed8936; /* Orange for call-to-action elements */
  --dark-color: #2d3748; /* Dark slate for text */
  --light-color: #f7fafc; /* Light background */
  --gray-color: #a0aec0; /* Neutral gray */
  --border-color: #e2e8f0; /* Light border color */
  
  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

/* Container for page content */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ===== HEADER ===== */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  font-family: var(--heading-font);
}

.logo a {
  color: white;
  text-decoration: none;
}

/* ===== NAVIGATION ===== */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.active {
  border-bottom: 2px solid var(--accent-color);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 5rem 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #dd6b20;
  color: white;
}

/* ===== MAIN CONTENT ===== */
main {
  padding: 3rem 0;
}

.section {
  margin-bottom: 3rem;
}

/* Two-column layout */
.two-column {
  display: flex;
  gap: 2rem;
}

.column {
  flex: 1;
}

/* Card styles */
.card {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card h3 {
  color: var(--primary-color);
  margin-top: 0;
}

/* Feature box */
.feature-box {
  display: flex;
  margin-bottom: 2rem;
}

.feature-icon {
  flex: 0 0 60px;
  font-size: 2rem;
  color: var(--secondary-color);
}

.feature-content {
  flex: 1;
}

/* Image styles */
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

.img-container {
  margin-bottom: 1.5rem;
}

/* ===== DATA VISUALIZATION ===== */
.chart-container {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* ===== CHECKLIST STYLES ===== */
.checklist {
  list-style: none;
  margin-bottom: 2rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.checklist-item input[type="checkbox"] {
  margin-right: 1rem;
  width: 20px;
  height: 20px;
}

.checklist-item label {
  flex: 1;
  cursor: pointer;
}

.checklist-item.completed {
  background-color: #f0fff4;
  border-left: 3px solid var(--secondary-color);
}

/* ===== TABLE STYLES ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--primary-color);
  color: white;
}

tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Highlight savings row in calculator */
.savings-row {
  background-color: #f0fff4;
  color: var(--secondary-color);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  color: white;
  margin-top: 0;
  border-bottom: 1px solid var(--gray-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--gray-color);
}

.footer-section a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--gray-color);
  color: var(--gray-color);
}

/* ===== TAX CALCULATOR STYLES ===== */
.calculator-form {
  background-color: #f8fafc;
  padding: 1.5rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
}

.results {
  background-color: white;
  padding: 1rem;
  border-radius: 5px;
  border-left: 3px solid var(--primary-color);
  margin-top: 1.5rem;
}

.error {
  color: #e53e3e;
  font-weight: 600;
}

/* Note box for important information */
.note-box {
  background-color: #ebf8ff;
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0 5px 5px 0;
}

.note-box p {
  margin-bottom: 0;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  /* Header & Navigation */
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .menu-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    margin: 0;
    text-align: center;
    padding: 0.5rem 0;
  }
  
  /* Two-column layout */
  .two-column {
    flex-direction: column;
  }
  
  /* Hero section */
  .hero h1 {
    font-size: 2rem;
  }
  
  /* Footer */
  .footer-container {
    flex-direction: column;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
}