/* Base Styles */
:root {
  --primary-color: #d81c1f;
  --secondary-color: #1c5bd8;
  --accent-color: #ffce00;
  --text-color: #333333;
  --light-text: #777777;
  --background-color: #ffffff;
  --light-background: #f7f7f7;
  --dark-background: #222222;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --error-color: #dc3545;
  --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-heading: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, .btn {
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: none;
  display: inline-block;
  text-align: center;
  font-weight: 500;
}

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

.btn.primary:hover {
  background-color: #b81619;
}

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

.btn.secondary:hover {
  background-color: #144aa9;
}

.btn.tertiary {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

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

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

/* Font size control */
.font-size-control {
  display: flex;
  align-items: center;
}

.font-size-control button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.font-size-control button:hover {
  background-color: var(--light-background);
}

.font-size-control svg {
  width: 1rem;
  height: 1rem;
}

/* Header */
header {
  padding: 1rem 0;
  background-color: var(--background-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 2rem;
}

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

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

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

/* Hero Section */
.hero {
  padding: 4rem 0;
  background-color: var(--light-background);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

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

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Summary Section */
.summary {
  padding: 2rem 0;
  background-color: var(--accent-color);
  color: var(--dark-background);
}

.summary h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: var(--dark-background);
}

.summary-content {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background-color: var(--background-color);
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.feature-card {
  background-color: var(--light-background);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.feature-card h3 {
  margin-bottom: 1rem;
}

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

.blog-preview h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.blog-card {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

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

.blog-content {
  padding: 1.5rem;
}

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

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
}

.see-all {
  text-align: center;
  margin-top: 3rem;
}

/* Page Banner */
.page-banner {
  padding: 3rem 0;
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
}

.page-banner h1 {
  color: white;
  margin-bottom: 0.5rem;
}

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

/* Blog Posts */
.blog-posts {
  padding: 4rem 0;
}

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

.blog-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.blog-post {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.post-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

.post-body {
  margin-bottom: 1.5rem;
}

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

.tag {
  background-color: var(--light-background);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--light-text);
}

/* About Content */
.about-content {
  padding: 4rem 0;
}

.about-story {
  margin-bottom: 4rem;
}

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

.mission-card {
  background-color: var(--light-background);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
}

.mission-icon {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Team Section */
.team-section {
  padding: 4rem 0;
  background-color: var(--light-background);
}

.team-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2.5rem;
}

.team-member {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.team-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-member h3 {
  margin: 1.5rem 0 0.25rem;
}

.team-member p {
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}

.team-member p:first-of-type {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
}

.social-links a {
  background-color: var(--light-background);
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

/* Testimonials */
.testimonials {
  padding: 4rem 0;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

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

.testimonial::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 4rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  margin-top: 1.5rem;
  text-align: right;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.info-item {
  display: flex;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

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

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

.contact-form {
  background-color: var(--light-background);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(216, 28, 31, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input {
  width: auto;
}

.checkbox-group label {
  margin-bottom: 0;
}

/* Location Map */
.location-map {
  padding: 4rem 0;
  background-color: var(--light-background);
}

.location-map h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.map-container {
  height: 400px;
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-items {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-item h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--dark-background);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-logo img {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
}

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

.footer-social .social-icons {
  display: flex;
  gap: 1rem;
}

.footer-social .social-icons a {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.legal-links a:hover {
  color: white;
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-background);
  color: white;
  padding: 1.5rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.cookie-more-info {
  font-size: 0.9rem;
  opacity: 0.8;
}

.cookie-more-info a {
  color: white;
  text-decoration: underline;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 3rem 2rem;
  text-align: center;
}

.check-icon {
  color: var(--success-color);
  margin-bottom: 1.5rem;
}

.modal-body h2 {
  margin-bottom: 1rem;
}

.modal-body p {
  margin-bottom: 2rem;
}

.close-btn {
  min-width: 120px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .blog-post {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .font-size-control {
    margin-top: 1rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  .footer-content {
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .legal-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-buttons button {
    width: 100%;
  }
}

/* Additional styling for font-size adjustment */
body.decreased-font {
  font-size: 14px;
}

body.decreased-font h1 {
  font-size: 2.25rem;
}

body.decreased-font h2 {
  font-size: 1.75rem;
}

body.decreased-font h3 {
  font-size: 1.25rem;
}

body.decreased-font .btn, 
body.decreased-font button {
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}
