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

:root {
  --primary-color: #1a4d7a;
  --secondary-color: #2d7ab8;
  --accent-color: #ff6b35;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #ffffff;
  --bg-alt: #f5f7fa;
  --border-color: #e0e0e0;
  --max-width: 1200px;
  --spacing-unit: 1rem;
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

/* Header Styles */
.site-header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

@media (max-width: 768px) {
  .site-header {
    position: relative;
  }
}

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

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

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

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
  position: relative;
  width: 30px;
  height: 30px;
  justify-content: center;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
  display: block;
  border-radius: 2px;
  transform-origin: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-menu-toggle span:nth-child(1) {
  top: 6px;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 13px;
}

.mobile-menu-toggle span:nth-child(3) {
  top: 20px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateX(-50%) rotate(45deg);
  top: 13px;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateX(-50%) rotate(-45deg);
  top: 13px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: #e55a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border-color: white;
}

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

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

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

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

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

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

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

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  padding: 1.5rem;
}

.feature-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

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

/* About Preview Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.testimonial-author {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.testimonial-author strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary-color);
}

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

/* CTA Section */
.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  background-color: #2c3e50;
  color: white;
  padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

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

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Page Header Styles */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.page-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Page Content Styles */
.page-content {
  background-color: var(--bg-color);
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-wrapper h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-wrapper h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-wrapper h4 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.content-wrapper p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.content-wrapper ul,
.content-wrapper ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
  color: var(--text-light);
}

.content-wrapper li {
  margin-bottom: 0.5rem;
}

.content-wrapper a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.content-wrapper a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.content-wrapper strong {
  color: var(--text-color);
  font-weight: 600;
}

/* Contact Form Styles */
.contact-form {
  margin-top: 2rem;
  padding: 2rem;
  background-color: var(--bg-alt);
  border-radius: 8px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

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

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

.form button[type="submit"] {
  align-self: flex-start;
}

/* About Page Specific Styles */
.about-intro {
  margin-bottom: 3rem;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-light);
  font-weight: 400;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.value-card {
  background-color: var(--bg-alt);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
}

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

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.value-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

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

.features-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  padding: 1.5rem;
  background-color: var(--bg-alt);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  transition: var(--transition);
}

.feature-item:hover {
  background-color: #e8f0f7;
  transform: translateX(5px);
}

.feature-item strong {
  display: block;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  margin-bottom: 0;
  color: var(--text-light);
}

/* Blog Styles */
.blog-content {
  background-color: var(--bg-color);
}

.blog-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
}

.blog-posts {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.blog-post-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.blog-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.blog-post-meta time {
  color: var(--text-light);
}

.blog-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-category {
  background-color: var(--bg-alt);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.blog-category:hover {
  background-color: var(--primary-color);
  color: white;
}

.blog-post-title {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.blog-post-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.blog-post-title a:hover {
  color: var(--secondary-color);
}

.blog-post-excerpt {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.blog-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-tag {
  color: var(--text-light);
  font-size: 0.9rem;
}

.blog-post-tags {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.blog-post-tags strong {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.blog-post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.no-posts {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

.blog-post-header {
  text-align: center;
}

.blog-post-header .blog-post-meta {
  justify-content: center;
}

.blog-post-header .blog-post-meta time {
  color: white;
}

/* Category Page Styles */
.category-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-alt);
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-info p {
  margin: 0;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100vw;
    background-color: var(--bg-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 999;
  }

  .main-nav.active {
    max-height: 500px;
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

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

  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .contact-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  /* Grid layouts - stack on mobile */
  .services-grid,
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Footer - stack columns */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  /* Page header adjustments */
  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  /* Content wrapper adjustments */
  .content-wrapper h2 {
    font-size: 1.75rem;
  }

  .content-wrapper h3 {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }

  /* Service cards */
  .service-card {
    padding: 1.5rem;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  /* Feature items */
  .feature-item {
    padding: 1.25rem;
  }

  /* Value cards */
  .value-card {
    padding: 1.5rem;
  }

  .value-icon {
    font-size: 2.5rem;
  }

  /* Blog responsive */
  .blog-post-card {
    padding: 1.5rem;
  }

  .blog-post-title {
    font-size: 1.5rem;
  }

  .blog-post-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Category page responsive */
  .category-info {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .category-info .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

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

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

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

  .section {
    padding: 2.5rem 0;
  }

  .page-title {
    font-size: 1.75rem;
  }

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

  .content-wrapper h2 {
    font-size: 1.5rem;
  }

  .content-wrapper h3 {
    font-size: 1.25rem;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .service-card h3,
  .value-card h3 {
    font-size: 1.25rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* 404 Error Page Styles */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-alt);
}

.error-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 0;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.error-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.error-submessage {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.error-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.error-sitemap {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.error-sitemap h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.error-sitemap ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
}

.error-sitemap li {
  margin: 0;
}

.error-sitemap a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.error-sitemap a:hover {
  color: var(--primary-color);
  background-color: var(--bg-alt);
}

@media (max-width: 768px) {
  .error-code {
    font-size: 6rem;
  }

  .error-title {
    font-size: 2rem;
  }

  .error-message {
    font-size: 1.1rem;
  }

  .error-links {
    flex-direction: column;
    align-items: center;
  }

  .error-links .btn {
    width: 100%;
    max-width: 300px;
  }

  .error-sitemap ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .error-code {
    font-size: 5rem;
  }

  .error-title {
    font-size: 1.75rem;
  }

  .error-content {
    padding: 2rem 0;
  }
}

/* Page Loader styles moved to loader.css for faster loading */
/* Keeping this section empty to avoid conflicts */
