/* Global Styles */
:root {
  --primary-color: #d32f2f;
  --secondary-color: #b71c1c;
  --light-gray: #f5f5f5;
  --dark-gray: #333;
  --medium-gray: #666;
  --white: #fff;
  --black: #000;
  --font-main: 'Roboto', 'Segoe UI', 'Arial', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

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

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 25px;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

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

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

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  color: var(--dark-gray);
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 15px auto;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--medium-gray);
  margin-bottom: 40px;
  text-align: center;
}

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

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

.logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: var(--dark-gray);
  font-weight: 500;
  position: relative;
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-gray);
}

/* Hero Section */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
}

.hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--dark-gray);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--medium-gray);
}

/* Services Section */
.services {
  background-color: var(--white);
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card {
  flex: 0 0 calc(33.33% - 30px);
  text-align: center;
  padding: 30px;
  border-radius: 8px;
  background-color: var(--light-gray);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card img, .service-card svg {
  height: 150px;
  width: auto;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* About Section */
.about {
  background-color: var(--light-gray);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.about-content {
  flex: 1;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image i {
  font-size: 250px;
  color: var(--primary-color);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--white);
}

.testimonials-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimonial-card {
  flex: 0 0 calc(33.33% - 30px);
  padding: 30px;
  border-radius: 8px;
  background-color: var(--light-gray);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
}

.testimonial-text {
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 15px;
}

.author-info h4 {
  margin-bottom: 5px;
}

.author-info p {
  color: var(--medium-gray);
  font-size: 0.9rem;
}

/* Blog Section */
.blog {
  background-color: var(--light-gray);
}

.blog-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.blog-card {
  flex: 0 0 calc(50% - 30px);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-image {
  height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-gray);
  min-height: 200px;
}

.blog-image i {
  font-size: 5rem;
  color: var(--primary-color);
}

.blog-content {
  padding: 20px;
}

.blog-date {
  color: var(--medium-gray);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog-card h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.blog-excerpt {
  margin-bottom: 20px;
  color: var(--medium-gray);
  font-size: 0.95rem;
}

/* CTA Section */
.cta {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.cta .btn:hover {
  background-color: var(--light-gray);
}

/* Contact Form */
.contact-form-section {
  background-color: var(--white);
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-info p {
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-detail i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

.form-container {
  flex: 1;
}

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

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--medium-gray);
  margin-top: 5px;
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 60px 0 20px;
}

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

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

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

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

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

.footer-section ul li a {
  color: #ccc;
}

.footer-section ul li a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(0, 0, 0, 0.7);
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  margin-top: 40px;
  color: #aaa;
  font-size: 0.9rem;
}

/* Newsletter Form */
.newsletter-section {
  background-image: url('/assets/newsletter-bg.svg');
  background-size: cover;
  background-position: center;
}

.newsletter-form {
  display: flex;
  margin-top: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-family: var(--font-main);
  font-size: 1rem;
}

.newsletter-form button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-form button:hover {
  background-color: var(--secondary-color);
}

/* Blog Page */
.blog-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 100px 0 50px;
  text-align: center;
}

.blog-posts {
  padding: 80px 0;
}

.blog-post {
  margin-bottom: 80px;
}

.blog-post-header {
  margin-bottom: 30px;
}

.blog-post-title {
  font-size: 2rem;
  color: var(--dark-gray);
  margin-bottom: 10px;
}

.blog-post-meta {
  color: var(--medium-gray);
  margin-bottom: 20px;
}

.blog-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.blog-post-content p {
  margin-bottom: 20px;
}

.blog-post-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 20px;
  color: var(--dark-gray);
}

.blog-post-content ul, .blog-post-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.blog-post-content li {
  margin-bottom: 10px;
}

.blog-post-image {
  margin: 30px 0;
  text-align: center;
}

.blog-post-image i {
  font-size: 10rem;
  color: var(--primary-color);
}

/* Legal Pages */
.legal-content {
  padding: 150px 0 80px;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--dark-gray);
}

.legal-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: var(--dark-gray);
}

.legal-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 10px;
}

/* Thank You Page */
.thank-you-section {
  padding: 150px 0 80px;
  text-align: center;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.thank-you-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark-gray);
}

.thank-you-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .service-card, .testimonial-card {
    flex: 0 0 calc(50% - 30px);
  }
  
  .blog-card {
    flex: 0 0 calc(50% - 30px);
  }
  
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  
  .about-content {
    order: 2;
  }
  
  .about-image {
    order: 1;
    margin-bottom: 30px;
  }
  
  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex-direction: column;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    margin: 10px 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .service-card, .testimonial-card, .blog-card {
    flex: 0 0 100%;
  }
  
  .footer-section {
    flex: 0 0 100%;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-content {
    padding: 30px 20px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
  .newsletter-form button {
    border-radius: 4px;
    padding: 12px;
  }
}
