/* Base Styles */
:root {
  --background: #f6f6f6;
  --text: #202124;
  --accent: #ff5c57;
  --subtitle: #00425a;
  --button: #5f7adb;
  --button-hover: linear-gradient(135deg, #5f7adb, #8a9edb);
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --border: #ddd;
  --gray-light: #f2f2f2;
  --gray: #777;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--button);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style-position: inside;
  margin-bottom: 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  color: var(--subtitle);
}

h3 {
  font-size: 1.5rem;
  color: var(--subtitle);
}

p {
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--button);
  color: var(--white);
}

.btn-primary:hover {
  background-image: var(--button-hover);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--button);
  color: var(--button);
}

.btn-secondary:hover {
  background-color: var(--button);
  color: var(--white);
  transform: translateY(-3px);
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--subtitle);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav ul {
  display: flex;
  margin-bottom: 0;
}

.main-nav li {
  margin-left: 25px;
  list-style: none;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.cta-btn {
  background-color: var(--accent);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
}

.main-nav a.cta-btn:hover {
  background-color: var(--button);
}

.main-nav a.cta-btn::after {
  display: none;
}

/* Burger Menu */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
}

.menu-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out;
}

.menu-icon span:nth-child(1) {
  top: 0px;
}

.menu-icon span:nth-child(2) {
  top: 10px;
}

.menu-icon span:nth-child(3) {
  top: 20px;
}

/* Sections */
.section {
  padding: 80px 0;
}

/* Hero Section */
.hero {
  background-image: url("./img/T2rdp.jpg");
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 40px;
}

.about-text {
  flex: 2;
}

.about-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stat-item {
  background-color: var(--white);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

/* Services Section */
.services {
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-card h3 {
  padding: 20px 20px 10px;
  text-align: center;
}

.service-card ul {
  padding: 0 20px 20px;
  list-style-type: none;
}

.service-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 25px;
}

.service-card li:last-child {
  border-bottom: none;
}

.service-card li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
}

.service-card .btn {
  margin: auto 20px 20px;
}

/* Benefits Section */
.benefits-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.benefits-list {
  flex: 1;
}

.benefit-item {
  margin-bottom: 30px;
  padding-left: 30px;
  position: relative;
}

.benefit-item:last-child {
  margin-bottom: 0;
}

.benefit-item h3 {
  margin-bottom: 10px;
}

.benefit-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 15px;
  height: 15px;
  background-color: var(--accent);
  border-radius: 50%;
}

.benefits-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--background);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 5rem;
  color: rgba(0, 0, 0, 0.1);
  line-height: 1;
}

.testimonial-content {
  margin-bottom: 20px;
  position: relative;
}

.testimonial-author h4 {
  margin-bottom: 5px;
  color: var(--subtitle);
}

.testimonial-author p {
  color: var(--gray);
  margin-bottom: 0;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: block;
  padding: 20px;
  background-color: var(--white);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-toggle:checked + .faq-question {
  background-color: var(--subtitle);
  color: var(--white);
}

.faq-toggle:checked + .faq-question::after {
  content: "-";
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: var(--white);
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 20px;
  margin-bottom: 0;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 300px;
}

/* Contact Section */
.form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z' fill='rgba(0,0,0,0.5)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

/* Styling select options with custom background */
select option {
  background-color: white;
  color: var(--text);
  padding: 10px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  position: relative;
}

.checkbox-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-group label {
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
  display: inline-block;
  line-height: 1.5;
}

.checkbox-group label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  background-color: var(--white);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.checkbox-group input[type="checkbox"]:checked + label:before {
  background-color: var(--button);
  border-color: var(--button);
}

.checkbox-group label:after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: all 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked + label:after {
  opacity: 1;
}

.checkbox-group input[type="checkbox"]:focus + label:before {
  box-shadow: 0 0 0 3px rgba(95, 122, 219, 0.3);
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 4px solid #c62828;
}

.form-note {
  font-size: 0.85rem;
  color: var(--gray);
  text-align: center;
  margin-top: 15px;
  margin-bottom: 0;
}

.contact-info {
  background-color: var(--subtitle);
  color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: 20px;
}

.contact-info ul {
  list-style: none;
  margin-bottom: 30px;
}

.contact-info li {
  margin-bottom: 15px;
}

.contact-info a {
  color: var(--white);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
}

.contact-info a:hover {
  color: var(--accent);
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  height: 300px;
}

.map-container iframe {
  border: none;
}

/* Footer */
footer {
  background-color: var(--subtitle);
  color: var(--white);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.contact-info {
  list-style: none;
  margin-bottom: 0;
}

.footer-links {
  list-style: none;
  margin-bottom: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Cookie Consent */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--subtitle);
  color: var(--white);
  padding: 15px;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-content p {
  margin-bottom: 0;
  flex: 1;
}

.cookie-content a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-content button {
  background-color: var(--accent);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cookie-content button:hover {
  background-color: var(--button);
}

/* Legal Pages */
.legal-page {
  padding: 60px 0;
}

.legal-content {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h1 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--subtitle);
}

.legal-section {
  margin-bottom: 30px;
}

.legal-section h2 {
  color: var(--subtitle);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
  color: var(--text);
  margin-bottom: 15px;
}

.legal-section ul li,
.legal-section ol li {
  margin-bottom: 8px;
}

/* Thank You Page */
.thank-you {
  padding: 100px 0;
}

.thank-you-content {
  margin: 8rem auto 5rem;
  text-align: center;
  border: 1px solid var(--border);
  padding: 2rem;
  max-width: 600px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.thank-you-content h1 {
  color: var(--subtitle);
  margin-bottom: 20px;
}

.thank-you-content p {
  margin-bottom: 20px;
}

.thank-you-content .btn {
  margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .about-content {
    flex-direction: column;
  }

  .about-stats {
    width: 100%;
    flex-direction: row;
  }

  .benefits-content {
    flex-direction: column;
  }

  .form-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Burger Menu */
  .menu-icon {
    display: block;
    z-index: 102;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 101;
    padding-top: 80px;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .main-nav li {
    margin: 0 0 20px 0;
  }

  .menu-toggle:checked ~ .main-nav {
    right: 0;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
  }

  /* Other responsive adjustments */
  .hero {
    height: 500px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .subtitle {
    font-size: 1.2rem;
  }

  .section {
    padding: 60px 0;
  }

  .about-stats {
    flex-direction: column;
  }

  .legal-content {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .thank-you-content {
    margin: 5rem auto 3rem;
    padding: 1.5rem;
  }
}

/* SVG Favicon */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}
