/* Base Styles */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1e3a8a;
  --primary-light: #dbeafe;
  --secondary-color: #0f172a;
  --accent-color: #3b82f6;
  --light-color: #f8fafc;
  --dark-color: #1f2937;
  --gray-color: #6b7280;
  --gray-light: #e5e7eb;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--secondary-color);
  background-color: var(--light-color);
}

img, svg {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  list-style-position: inside;
  margin-bottom: 1rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.625rem;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

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

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

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

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

.btn-text {
  padding: 0;
  background-color: transparent;
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-text:hover {
  color: var(--primary-dark);
}

.btn-text::after {
  content: '→';
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 0.3s ease;
}

.btn-text:hover::after {
  transform: translateX(5px);
}

/* Header */
.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo a {
  display: inline-block;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
}

.main-nav li {
  margin-left: 1.5rem;
}

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

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

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-color);
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background-color: var(--primary-light);
}

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

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.service-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

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

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

.about .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-content {
  flex: 1;
}

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

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  color: var(--gray-color);
}

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

.testimonials-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 2rem;
  padding-bottom: 2rem;
}

.testimonial {
  flex: 0 0 auto;
  width: calc(33.333% - 1.333rem);
  scroll-snap-align: start;
}

.testimonial-content {
  background-color: var(--primary-light);
  padding: 2rem;
  border-radius: 0.5rem;
  position: relative;
}

.testimonial-stars {
  display: flex;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  margin-top: 1rem;
  text-align: right;
}

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

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  margin-bottom: 0.5rem;
}

.blog-content p {
  margin-bottom: 1rem;
  color: var(--gray-color);
}

.blog-link-more {
  margin-top: 2rem;
  text-align: center;
}

/* Newsletter Section */
.newsletter {
  background-color: var(--primary-dark);
  color: white;
  padding: 4rem 0;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter .section-title {
  color: white;
}

.newsletter .section-title::after {
  background-color: white;
}

.newsletter p {
  margin-bottom: 2rem;
}

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

.form-group input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 0.25rem 0 0 0.25rem;
}

.form-group button {
  border-radius: 0 0.25rem 0.25rem 0;
}

.form-consent {
  text-align: left;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-consent input {
  margin-top: 0.25rem;
}

/* Contact Section */
.contact {
  background-color: white;
}

.contact-content {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  color: var(--primary-color);
}

.contact-item h3 {
  margin-bottom: 0.5rem;
}

.contact-map {
  flex: 1;
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: white;
  padding-top: 4rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  flex: 1 1 100%;
  max-width: 200px;
}

.footer-links {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links-column {
  flex: 1;
  min-width: 150px;
}

.footer-links-column h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  position: relative;
}

.footer-links-column h3::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

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

.footer-links-column li {
  margin-bottom: 0.75rem;
}

.footer-links-column a {
  color: var(--gray-light);
}

.footer-links-column a:hover {
  color: white;
}

.social-media-links {
  display: flex;
  gap: 1rem;
}

.social-media-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--dark-color);
  color: var(--gray-light);
  transition: all 0.3s ease;
}

.social-media-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: var(--gray-light);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem;
  display: none;
}

.cookie-consent.active {
  display: block;
}

.cookie-content {
  max-width: 900px;
  margin: 0 auto;
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cookie-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-color);
}

.cookie-settings {
  margin: 1.5rem 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  padding: 1rem 0;
}

.cookie-option {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.cookie-option:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.cookie-option label {
  font-weight: 600;
  margin-left: 0.5rem;
}

.cookie-description {
  margin-left: 1.75rem;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--gray-color);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-footer {
  font-size: 0.875rem;
  text-align: center;
}

/* Blog Page */
.blog-page {
  padding: 4rem 0;
}

.blog-header {
  margin-bottom: 4rem;
  text-align: center;
}

.blog-header h1 {
  margin-bottom: 1rem;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Blog Post */
.blog-post {
  padding: 4rem 0;
}

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  margin-bottom: 0.5rem;
}

.post-meta {
  color: var(--gray-color);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.post-content {
  margin-bottom: 2rem;
}

.post-content h2, .post-content h3 {
  margin-top: 2rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-content img, .post-content svg {
  margin: 2rem 0;
  border-radius: 0.5rem;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
}

/* Legal Pages */
.legal-page {
  padding: 4rem 0;
}

.legal-header {
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  margin-bottom: 1.5rem;
}

.legal-content ul, .legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Thank You Page */
.thank-you {
  padding: 6rem 0;
  text-align: center;
}

.thank-you-icon {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.thank-you h1 {
  margin-bottom: 1rem;
}

.thank-you p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    margin-bottom: 2rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .about .container {
    flex-direction: column;
    gap: 2rem;
  }
  .contact-content {
    flex-direction: column;
  }
  .testimonial {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  section {
    padding: 3rem 0;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  .main-nav.active ul {
    flex-direction: column;
  }
  .main-nav.active li {
    margin: 0.5rem 0;
  }
  .service-card {
    padding: 1.5rem;
  }
  .testimonial {
    width: 100%;
  }
  .cookie-buttons {
    flex-direction: column;
  }
  .cookie-buttons button {
    width: 100%;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  section {
    padding: 2rem 0;
  }
  .header .container {
    padding: 0.75rem 1rem;
  }
  .form-group {
    flex-direction: column;
  }
  .form-group input, .form-group button {
    width: 100%;
    border-radius: 0.25rem;
  }
  .form-group input {
    margin-bottom: 0.5rem;
  }
  .contact-info {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}
