/* 
* Global Styles and Variables
*/
:root {
  --primary-bg: #f9f9f9;
  --accent: #ff6b6b;
  --secondary: #247ba0;
  --decorative: #f3ca40;
  --text: #333333;
  --white: #ffffff;
  --light-gray: #efefef;
  --medium-gray: #cccccc;
  --dark-gray: #666666;
  --section-padding: 5rem 0;
  --transition: all 0.3s ease;
  --border-radius: 4px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--primary-bg);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  margin: 0 auto;
}

section {
  padding: var(--section-padding);
  scroll-margin-top: 70px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--secondary);
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 2rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.8rem;
  font-weight: 700;
}

h2 {
  font-size: 3.6rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 1.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
}

h3 {
  font-size: 2.4rem;
  font-weight: 600;
}

h4 {
  font-size: 2rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.6rem;
}

.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1.6rem;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #e55858;
  color: var(--white);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #1b6a8a;
  color: var(--white);
  transform: translateY(-3px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.text-center {
  text-align: center;
}

.section-title {
  margin-bottom: 5rem;
}

.section-title h2 {
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-title.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeIn 0.8s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.2s;
}

.animate-delay-2 {
  animation-delay: 0.4s;
}

.animate-delay-3 {
  animation-delay: 0.6s;
}

/* 
* Header & Navigation
*/
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;
  height: 70px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: lowercase;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a.btn-primary {
  color: var(--white);
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.menu-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--accent);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: var(--transition);
}

.menu-icon span:nth-child(1) {
  top: 0;
}

.menu-icon span:nth-child(2) {
  top: 8px;
}

.menu-icon span:nth-child(3) {
  top: 16px;
}

.content-wrapper {
  padding-top: 70px; /* Header height */
}

/* 
* Hero Section
*/
.hero {
  position: relative;
  height: calc(100vh - 70px);
  background-color: var(--dark-gray);
  color: var(--white);
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero h1 {
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 2rem;
  margin-bottom: 3rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* 
* About Section
*/
.about {
  background-color: var(--white);
}

.about-content {
  display: flex;
  gap: 5rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* 
* Benefits Section
*/
.benefits {
  background-color: var(--primary-bg);
}

.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
}

.benefit-item {
  flex: 0 0 calc(33.333% - 2rem);
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateY(-10px);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--white);
}

/* 
* Services Section
*/
.services {
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--primary-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 2rem;
}

.service-content h3 {
  margin-bottom: 1rem;
}

/* 
* Cases Section
*/
.cases {
  background-color: var(--primary-bg);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.case-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.case-image {
  height: 200px;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.case-card:hover .case-image img {
  transform: scale(1.1);
}

.case-content {
  padding: 2rem;
}

.case-content h3 {
  margin-bottom: 1rem;
}

/* 
* FAQ Section
*/
.faq {
  background-color: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 2rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  position: relative;
  cursor: pointer;
}

.faq-checkbox {
  display: none;
}

.faq-label {
  display: block;
  padding: 2rem;
  font-weight: 600;
  background-color: var(--primary-bg);
  transition: var(--transition);
  position: relative;
}

.faq-label:hover {
  background-color: var(--light-gray);
}

.faq-label::after {
  content: "+";
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem;
  transition: var(--transition);
}

.faq-checkbox:checked + .faq-label::after {
  content: "−";
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  background-color: var(--white);
  padding: 0 2rem;
}

.faq-checkbox:checked ~ .faq-content {
  max-height: 500px;
  padding: 2rem;
}

/* 
* Process Section
*/
.process {
  background-color: var(--primary-bg);
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.process-step {
  flex: 0 0 calc(25% - 2rem);
  text-align: center;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50px;
  right: -15%;
  width: 30%;
  height: 2px;
  background-color: var(--medium-gray);
}

.process-number {
  width: 100px;
  height: 100px;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 auto 2rem;
}

/* 
* Contact Section
*/
.contact {
  background-color: var(--white);
}

.contact-content {
  display: flex;
  gap: 5rem;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 2;
  background-color: var(--primary-bg);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.form-input,
.form-select {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  background-color: var(--white);
  font-size: 1.6rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(36, 123, 160, 0.2);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6 4.41 4.59 8 8.17 11.59 4.59 13 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
}

/* Custom select styling for background */
.form-select option {
  background-color: var(--white);
  color: var(--text);
  padding: 1.2rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 1rem;
  margin-top: 0.3rem;
}

.checkbox-label {
  font-size: 1.4rem;
}

.checkbox-label a {
  font-weight: 600;
}

/* 
* Footer
*/
footer {
  background-color: var(--text);
  color: var(--white);
  padding: 5rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-info {
  flex: 2;
}

.footer-links,
.footer-legal {
  flex: 1;
}

.footer-info h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.footer-info p {
  margin-bottom: 2rem;
}

footer h4 {
  margin-bottom: 1.5rem;
}

footer ul li {
  margin-bottom: 1rem;
}

footer a {
  color: var(--light-gray);
}

footer a:hover {
  color: var(--accent);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 1.4rem;
}

/* 
* Cookie Popup
*/
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: bottom 0.5s ease;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-content h3 {
  margin-bottom: 0.5rem;
  flex: 0 0 100%;
}

.cookie-content p {
  margin-bottom: 0;
  flex: 3;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex: 1;
  justify-content: flex-end;
}

/* 
* Thank You Page
*/
.thank-you {
  margin: 8rem auto 3rem;
  max-width: 600px;
  text-align: center;
  padding: 3rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  background-color: var(--white);
  box-shadow: var(--box-shadow);
}

.thank-you h1 {
  color: var(--accent);
}

/* 
* Legal Pages
*/
.legal-page {
  margin: 3rem auto;
  max-width: 800px;
  padding: 3rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  background-color: var(--white);
  box-shadow: var(--box-shadow);
}

.legal-page h1 {
  margin-bottom: 3rem;
}

.legal-page h2 {
  margin-top: 3rem;
}

.legal-page ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

/* 
* Media Queries
*/
@media screen and (max-width: 992px) {
  html {
    font-size: 58%;
  }

  .process-step {
    flex: 0 0 calc(50% - 2rem);
    margin-bottom: 4rem;
  }

  .process-step:nth-child(even)::after {
    display: none;
  }

  .process-step:nth-child(1)::after {
    right: -15%;
    width: 30%;
  }

  .contact-content {
    flex-direction: column;
  }

  .footer-content {
    gap: 3rem;
  }

  .footer-info {
    flex: 0 0 100%;
  }

  .footer-links,
  .footer-legal {
    flex: 0 0 calc(50% - 1.5rem);
  }
}

@media screen and (max-width: 768px) {
  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 2rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .menu-toggle:checked ~ .main-nav {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav ul li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--light-gray);
  }

  .benefit-item {
    flex: 0 0 100%;
  }

  .about-content {
    flex-direction: column-reverse;
  }

  .process-step {
    flex: 0 0 100%;
  }

  .process-step::after {
    display: none;
  }

  .hero h1 {
    font-size: 3.6rem;
  }

  .hero p {
    font-size: 1.8rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cookie-content {
    text-align: center;
  }

  .cookie-content p {
    flex: 0 0 100%;
    margin-bottom: 1rem;
  }

  .cookie-buttons {
    justify-content: center;
    flex: 0 0 100%;
  }
}

@media screen and (max-width: 576px) {
  .footer-links,
  .footer-legal {
    flex: 0 0 100%;
  }
}
