/* EOL Counseling - Main Styles */

:root {
  --color-primary: #2d5a47;      /* Deep sage green */
  --color-secondary: #7a9e8e;    /* Soft sage */
  --color-accent: #c4a77d;       /* Warm gold */
  --color-text: #3d3d3d;         /* Soft black */
  --color-text-light: #6b6b6b;
  --color-background: #faf9f7;   /* Warm white */
  --color-white: #ffffff;
  --font-heading: 'Georgia', serif;
  --font-body: 'Segoe UI', 'Arial', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
}

/* Navigation */
.nav {
  background: var(--color-white);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  padding: 6rem 2rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: normal;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text);
}

.btn-primary:hover {
  background: #b8996e;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  margin-left: 1rem;
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* Sections */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 2rem;
  text-align: center;
}

.footer a {
  color: var(--color-accent);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Hamburger Menu Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-text);
  margin: 4px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Grid Utility Classes */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* Hero Title Large (for index.html) */
.hero-title-large {
  font-size: 4.5rem;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1rem 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-container {
    position: relative;
  }

  .hero {
    padding: 4rem 1.5rem;
    min-height: auto !important;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-title-large {
    font-size: 2.5rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .btn-secondary {
    display: block;
    margin: 1rem auto 0;
  }

  .grid-2col {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .grid-3col {
    grid-template-columns: 1fr !important;
  }

  .grid-4col {
    grid-template-columns: 1fr 1fr !important;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  /* Fix inline flex layouts that need to stack */
  [style*="display: flex"][style*="gap: 4rem"],
  [style*="display: flex"][style*="gap: 3rem"] {
    flex-direction: column;
    gap: 2rem !important;
  }

  [style*="display: flex"][style*="gap: 4rem"] img,
  [style*="display: flex"][style*="gap: 3rem"] img {
    width: 200px !important;
    margin: 0 auto;
  }

  /* Reduce section padding on full-width sections */
  [style*="max-width: 100%"][style*="padding: 5rem"] {
    padding: 3rem 1.5rem !important;
  }

  [style*="max-width: 100%"][style*="padding: 4rem"] {
    padding: 3rem 1.5rem !important;
  }

  /* Grid sections that use inline styles */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* About page half-and-half section */
  [style*="padding: 5rem"][style*="display: flex"] {
    padding: 2.5rem 1.5rem !important;
  }

  /* Full-width image panels */
  [style*="min-height: 500px"] {
    min-height: 250px !important;
  }

  [style*="min-height: 400px"] {
    min-height: 200px !important;
  }

  blockquote {
    padding: 1rem 1.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  blockquote[style*="font-size: 1.5rem"] {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-title-large {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .grid-4col {
    grid-template-columns: 1fr !important;
  }

  .card {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  [style*="max-width: 100%"][style*="padding: 5rem"],
  [style*="max-width: 100%"][style*="padding: 4rem"] {
    padding: 2rem 1rem !important;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .pricing-card .price {
    font-size: 2rem;
  }
}
