/* Main CSS file for domain.com */

/* --- Base styles --- */
:root {
  --primary-color: #3f51b5;
  --secondary-color: #26d0ce;
  --accent-color: #fff200;
  --accent-secondary: #ff5161;
  --text-color: #23272f;
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --border-radius: 12px;
  --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  background-attachment: fixed;
  min-height: 100vh;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover,
footer a {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 5rem 0;
}

/* --- Header & Navigation --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--box-shadow);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo a {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: lowercase;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  height: 24px;
  width: 30px;
  position: relative;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--primary-color);
  height: 2px;
  width: 100%;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.nav-toggle-label span {
  top: 11px;
}

.nav-toggle-label span::before {
  content: "";
  top: -8px;
}

.nav-toggle-label span::after {
  content: "";
  top: 8px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu li a {
  color: var(--text-color);
  font-weight: 500;
}

.nav-menu li a:hover {
  color: var(--accent-secondary);
}

.nav-menu .cta-button {
  background-color: var(--accent-color);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: bold;
}

.nav-menu .cta-button:hover {
  background-color: var(--accent-secondary);
  color: var(--white);
}

/* --- Hero Section --- */
.hero {
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-color);
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.button:hover {
  background-color: var(--accent-secondary);
  color: var(--white);
  transform: translateY(-3px);
}

/* --- Glassmorphism Card Styles --- */
.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

/* --- Grid layouts --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
}

/* --- Section styles --- */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-color);
}

/* --- About section --- */
.about {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
}

/* --- Services section --- */
.service-card .card-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* --- Benefits section --- */
.benefit-card {
  text-align: center;
  padding: 2rem;
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* --- Process steps --- */
.step-card {
  text-align: center;
}

.step-number {
  background: var(--accent-color);
  color: var(--text-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1rem;
  font-weight: bold;
}

/* --- Testimonials --- */
.testimonial-card {
  position: relative;
}

.testimonial-content {
  font-style: italic;
}

.testimonial-author {
  font-weight: bold;
  margin-top: 1rem;
}

.testimonial-position {
  color: var(--accent-secondary);
  font-size: 0.9rem;
}

/* --- FAQ section --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.faq-question {
  display: block;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-color);
  cursor: pointer;
  position: relative;
}

.faq-checkbox {
  display: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(255, 255, 255, 0.6);
  padding: 0 1rem;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 1000px;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-checkbox:checked ~ .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

/* --- Contact Form --- */
.contact-form-container {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  max-width: 600px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 242, 0, 0.2);
}

select.form-control {
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.3rem;
}

.submit-btn {
  background: var(--accent-color);
  color: var(--text-color);
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background: var(--accent-secondary);
  color: var(--white);
  transform: translateY(-3px);
}

/* --- Contact Info & Map --- */
.contact-map {
  height: 300px;
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Footer --- */
footer {
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info,
.legal-links {
  list-style: none;
}

.contact-info li,
.legal-links li {
  margin-bottom: 0.5rem;
}

.legal-links a {
  color: var(--white);
}

.legal-links a:hover {
  color: var(--accent-color);
}

.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  padding: 1rem;
  z-index: 9999;
  transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-content h3 {
  margin-bottom: 0.5rem;
}

#accept-cookies {
  background: var(--accent-color);
  color: var(--text-color);
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

#accept-cookies:hover {
  background: var(--accent-secondary);
  color: var(--white);
}

/* --- Policy Pages --- */
.policy-container {
  max-width: 900px;
  margin: 6rem auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.policy-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent-color);
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* --- Thank You Page --- */
.thank-you-container {
  margin: 8rem auto 5rem;
  text-align: center;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  box-shadow: var(--box-shadow);
  border: 2px solid var(--accent-color);
}

.thank-you-container h1 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.thank-you-container .button {
  margin-top: 1.5rem;
}

/* --- Responsive Design --- */
@media screen and (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
  }

  .nav-toggle:checked ~ .nav-menu {
    max-height: 500px;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu li a {
    display: block;
    padding: 1rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .policy-container {
    margin: 4rem 1rem;
    padding: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  section {
    padding: 3rem 0;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .card-img {
    height: 150px;
  }

  .contact-form-container {
    padding: 1.5rem;
  }
}
