/* Global Styles */
:root {
  --primary: #0A2463;
  --accent: #FF6B35;
  --light: #FFFFFF;
  --dark: #1A1A1A;
  --gray: #666666;
  --light-gray: #F5F5F5;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background-color: var(--dark);
  color: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 20px;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent);
  color: var(--light);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: #E55C2B;
}

.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--light);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: var(--transition);
}

body.dark-mode header {
  background-color: var(--dark);
  color: var(--light);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  height: 40px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
}

body.dark-mode nav ul li a {
  color: var(--light);
}

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

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 3px 0;
  transition: var(--transition);
}

body.dark-mode .menu-toggle span {
  background-color: var(--light);
}

/* Main Content */
main {
  margin-top: 80px;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 60px 0 30px;
}

body.dark-mode footer {
  background-color: #0a0a0a;
  color: #ccc;
}

body.dark-mode .footer-column h3 {
  color: var(--accent);
}

body.dark-mode .footer-column ul li a {
  color: #aaa;
}

body.dark-mode .copyright {
  border-top: 1px solid #333;
  color: #888;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--accent);
  margin-bottom: 20px;
}

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

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
}

body.dark-mode .footer-column ul li a {
  color: var(--dark);
}

.footer-column ul li a:hover {
  color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--light);
  color: var(--dark);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: var(--transition);
}

body.dark-mode .social-icons a {
  background-color: var(--dark);
  color: var(--light);
}

.social-icons a:hover {
  background-color: var(--accent);
  color: var(--light);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

body.dark-mode .copyright {
  border-top: 1px solid rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.7);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: var(--light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

body.dark-mode .dark-mode-toggle {
  background-color: var(--dark);
  color: var(--accent);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--accent);
  color: var(--light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.back-to-top:hover {
  background-color: #E55C2B;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  height: 150px;
}

.form-message {
  margin-top: 15px;
  padding: 15px;
  border-radius: 5px;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Cards */
.card {
  background-color: var(--light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: visible;
  transition: var(--transition);
  margin-bottom: 30px;
}

body.dark-mode .card {
  background-color: #2A2A2A;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Services Page */
.pricing-card {
  text-align: center;
  padding: 40px 30px;
}

.pricing-card h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* FAQ Accordion */
.accordion {
  margin: 30px 0;
}

.accordion-item {
  margin-bottom: 10px;
}

.accordion-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 15px;
  background-color: var(--light-gray);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

body.dark-mode .accordion-button {
  background-color: #3A3A3A;
}

.accordion-button:hover {
  background-color: #ddd;
}

body.dark-mode .accordion-button:hover {
  background-color: #4A4A4A;
}

.accordion-button::after {
  content: '+';
  font-size: 1.5rem;
}

.accordion-button.active::after {
  content: '-';
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: var(--light);
}

body.dark-mode .accordion-panel {
  background-color: #2A2A2A;
}

.accordion-panel p {
  padding: 15px;
}

/* How It Works Page */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--accent);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 20px;
  background-color: var(--light-gray);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

body.dark-mode .timeline-content {
  background-color: #2A2A2A;
}

.timeline-circle {
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: var(--accent);
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-circle {
  right: -13px;
}

.timeline-item:nth-child(even) .timeline-circle {
  left: -13px;
}

/* About Page */
.team-member {
  text-align: center;
  margin-bottom: 30px;
}

.team-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 5px solid var(--light);
}

body.dark-mode .team-img {
  border-color: var(--dark);
}

/* Results Page */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Insights Page */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.newsletter {
  background-color: var(--primary);
  color: var(--light);
  text-align: center;
  padding: 60px 0;
}

.newsletter h2 {
  margin-bottom: 20px;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 5px 0 0 5px;
}

.newsletter-form button {
  padding: 12px 20px;
  background-color: var(--accent);
  color: var(--light);
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

/* Contact Page */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  padding: 30px;
  background-color: var(--light-gray);
  border-radius: 10px;
}

body.dark-mode .contact-info {
  background-color: #2A2A2A;
}

.map-placeholder {
  height: 400px;
  background-color: #ddd;
  margin-top: 20px;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    max-width: 980px;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 750px;
  }
  
  .nav-container {
    padding: 15px 0;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--light);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  
  body.dark-mode nav ul {
    background-color: var(--dark);
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    margin: 0;
  }
  
  nav ul li a {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #eee;
  }
  
  body.dark-mode nav ul li a {
    border-bottom: 1px solid #4A4A4A;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  section {
    padding: 60px 0;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-circle {
    left: 20px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    max-width: 450px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: 5px;
    margin-bottom: 10px;
  }
  
  .newsletter-form button {
    border-radius: 5px;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.appear {
  opacity: 1;
  transform: translateY(0);
}