/* 
 * Main CSS for domain website
 * By domain.org
 */

/* ====== Global Variables ====== */
:root {
  --color-bg: #fcfaf8;
  --color-primary: #9a031e;
  --color-secondary: #2ec4b6;
  --color-text: #333333;
  --color-heading: #14213d;
  --color-light: #f8f9fa;
  --color-dark: #495057;
  --font-main: "Arial", sans-serif;
  --font-heading: "Arial", sans-serif;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ====== Global Styles ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 4rem 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #c1121f);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c1121f, var(--color-primary));
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-cta {
  background: linear-gradient(135deg, var(--color-secondary), #1a936f);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-cta:hover {
  background: linear-gradient(135deg, #1a936f, var(--color-secondary));
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-submit {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: white;
  width: 100%;
  padding: 1rem;
}

.btn-submit:hover {
  background: linear-gradient(
    135deg,
    var(--color-secondary),
    var(--color-primary)
  );
  color: white;
  transform: translateY(-2px);
}

.btn-cookie {
  background-color: var(--color-secondary);
  color: white;
}

.btn-cookie:hover {
  background-color: #1a936f;
  color: white;
}

/* ====== Header ====== */
.site-header {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav ul li {
  margin-left: 1.5rem;
}

.main-nav ul li a {
  color: var(--color-heading);
  font-weight: 600;
  text-decoration: none;
}

.main-nav ul li a:hover {
  color: var(--color-primary);
}

.btn-nav {
  background-color: var(--color-primary);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.btn-nav:hover {
  background-color: var(--color-secondary);
  color: white !important;
}

/* Burger Menu */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-heading);
  margin: 5px 0;
  transition: var(--transition);
}

/* ====== Hero Section ====== */
.hero-section {
  background: linear-gradient(rgba(20, 33, 61, 0.6), rgba(20, 33, 61, 0.6)),
    url("./img/6HqFa.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
}

.hero-section h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ====== About Section ====== */
.about-section {
  background-color: white;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: center;
}

/* ====== Services Section ====== */
.services-section {
  background-color: var(--color-bg);
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

/* ====== Why Us Section ====== */
.why-section {
  background-color: white;
}

.why-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.why-item {
  text-align: center;
  padding: 1.5rem;
  transition: var(--transition);
}

.why-item:hover {
  transform: translateY(-5px);
}

.why-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

/* ====== Reviews Section ====== */
.reviews-section {
  background: linear-gradient(135deg, var(--color-heading), #0a1128);
  color: white;
}

.reviews-section h2 {
  color: white;
}

.reviews-section h2::after {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.review-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.review-content {
  font-style: italic;
  margin-bottom: 1rem;
}

.review-author {
  text-align: right;
  font-weight: 600;
}

/* ====== FAQ Section ====== */
.faq-section {
  background-color: var(--color-bg);
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 8px;
  overflow: hidden;
}

.faq-item input[type="checkbox"] {
  display: none;
}

.faq-question {
  background-color: white;
  padding: 1.5rem;
  display: block;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-item input[type="checkbox"]:checked ~ .faq-question::after {
  content: "-";
}

.faq-answer {
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

/* ====== CTA Section ====== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), #c1121f);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
}

.cta-section h2::after {
  left: 50%;
  transform: translateX(-50%);
  background: white;
}

.cta-section p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

/* ====== Contact Section ====== */
.contact-section {
  background-color: white;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-main);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-item input[type="checkbox"] {
  margin-top: 5px;
}

.required label::after {
  content: " *";
  color: var(--color-primary);
}

/* ====== Footer ====== */
.site-footer {
  background-color: var(--color-heading);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
}

.footer-section p {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ddd;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: var(--color-secondary);
}

.footer-section.contact p i {
  margin-right: 10px;
  color: var(--color-secondary);
}

.footer-section.contact p a {
  color: white;
  text-decoration: none;
}

.footer-section.contact p a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.9rem;
}

/* ====== Thank You Page ====== */
.thankyou-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 8rem auto 3rem;
}

.thankyou-content {
  max-width: 600px;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  margin: 0 auto;

  box-shadow: var(--shadow);
}
div {
  word-break: break-word;
  overflow-wrap: break-word;
}

.thankyou-content h1 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.thankyou-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* ====== Legal Pages ====== */
.legal-section {
  padding: 5rem 0;
}

.legal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal-content h1 {
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.legal-content h2 {
  margin-top: 2rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid #ddd;
  padding: 0.8rem;
  text-align: left;
}

.cookie-table th {
  background-color: var(--color-light);
  font-weight: 600;
}

/* ====== Cookie Popup ====== */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: rgba(20, 33, 61, 0.95);
  color: white;
  padding: 1.5rem;
  z-index: 2000;
  transition: var(--transition);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-content p {
  margin: 0;
  flex: 1;
}

.cookie-content a {
  color: var(--color-secondary);
}

.cookie-content button {
  flex-shrink: 0;
}

/* ====== Media Queries ====== */
@media screen and (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  /* Burger Menu */
  .nav-toggle-label {
    display: block;
    z-index: 2;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-toggle:checked ~ .main-nav {
    max-height: 300px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
  }

  .main-nav ul li {
    margin: 0 0 1rem 0;
  }

  /* Hero Section */

  .hero-section h1 {
    font-size: 2rem;
  }

  /* Cookie Popup */
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content button {
    width: 100%;
    margin-top: 1rem;
  }

  /* Footer */
  .footer-section {
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 480px) {
  section {
    padding: 3rem 0;
  }

  .btn {
    padding: 0.7rem 1.2rem;
  }

  .btn-cta {
    padding: 0.8rem 1.5rem;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }
}
