/* 
   Main Stylesheet for domain
   Author: Web Designer
   Version: 1.0
*/

/* ========== Base Styles ========== */
:root {
  /* Color Palette */
  --dark-blue: #14213d;
  --berry: #e63946;
  --yellow: #fca311;
  --light-bg: #f6f5f5;
  --white: #ffffff;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --dark-gray: #343a40;

  /* Font Sizes */
  --fs-xl: 2.5rem; /* 40px */
  --fs-lg: 2rem; /* 32px */
  --fs-md: 1.5rem; /* 24px */
  --fs-sm: 1.125rem; /* 18px */
  --fs-xs: 1rem; /* 16px */
  --fs-xxs: 0.875rem; /* 14px */

  /* Spacing */
  --space-xs: 0.5rem; /* 8px */
  --space-sm: 1rem; /* 16px */
  --space-md: 1.5rem; /* 24px */
  --space-lg: 2rem; /* 32px */
  --space-xl: 3rem; /* 48px */

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--light-bg);
}

/* Ensure smooth scrolling for sections with IDs */
section[id] {
  scroll-margin-top: 80px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  color: var(--dark-blue);
}

h1 {
  font-size: 1.4rem;
}

h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--fs-md);
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--dark-blue);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--berry);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* ========== Layout Components ========== */
.section {
  padding: var(--space-xl) 0;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--berry);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #d02c39;
  color: var(--white);
}

.btn-secondary {
  background-color: var(--dark-blue);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #0d1428;
  color: var(--white);
}

.btn-cookie {
  background-color: var(--yellow);
  color: var(--dark-blue);
}

.btn-cookie:hover {
  background-color: #e39000;
}

.btn-nav {
  background-color: var(--berry);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

/* ========== Header & Navigation ========== */
.site-header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.logo a {
  color: var(--dark-blue);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--dark-blue);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-links a {
  font-weight: 500;
}

/* ========== Hero Section ========== */
.hero {
  background-image: url("./img/0qgfv.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 33, 61, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 var(--space-sm);
}

.hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: var(--space-sm);
}

.hero p {
  font-size: var(--fs-md);
  margin-bottom: var(--space-md);
}

/* ========== About Section ========== */
.about {
  padding: var(--space-xl) 0;
  background-color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ========== Benefits Section ========== */
.benefits {
  padding: var(--space-xl) 0;
  background-color: var(--light-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.benefit-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  background-color: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.benefit-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Services Section ========== */
.services {
  padding: var(--space-xl) 0;
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--light-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: var(--space-md);
}

.service-content p {
  margin-bottom: var(--space-md);
}

/* ========== Testimonials Section ========== */
.testimonials {
  padding: var(--space-xl) 0;
  background-color: var(--light-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
  position: relative;
  padding-left: var(--space-md);
  border-left: 3px solid var(--berry);
  margin-bottom: var(--space-sm);
}

.testimonial-author {
  text-align: right;
}

/* ========== FAQ Section ========== */
.faq {
  padding: var(--space-xl) 0;
  background-color: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-question {
  display: block;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--light-gray);
  color: var(--dark-blue);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  border-radius: var(--radius-sm);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-md);
  transition: transform 0.3s;
}

.faq-answer {
  background-color: var(--white);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding: var(--space-md);
  margin: 0;
}

.faq-item input[type="checkbox"]:checked ~ .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
  max-height: 300px;
}

/* ========== Contact Section ========== */
.contact {
  padding: var(--space-xl) 0;
  background-color: var(--light-bg);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-info {
  padding: var(--space-md);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info p {
  margin-bottom: var(--space-sm);
}

.map-container {
  margin-top: var(--space-md);
  height: 300px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.contact-form {
  padding: var(--space-md);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--fs-xs);
}

.form-group select {
  background-color: var(--white);
  cursor: pointer;
}

/* Custom select styling */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 0l6 6 6-6z' fill='%23343A40'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}

/* Style for option tags */
option {
  background-color: var(--dark-blue);
  color: white;
  padding: 10px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 5px;
}

.checkbox-group label {
  font-weight: normal;
  font-size: var(--fs-xxs);
}

/* ========== Thank You Page ========== */
.thankyou-section {
  padding: var(--space-xl) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou-content {
  text-align: center;
  padding: var(--space-lg);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 0 auto;
}

.thankyou-content h1 {
  color: var(--berry);
  margin-bottom: var(--space-sm);
}

.thankyou-content p {
  margin-bottom: var(--space-md);
}

/* ========== Legal Pages ========== */
.legal-section {
  padding: var(--space-xl) 0;
}

.legal-content {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-content h1 {
  border-bottom: 2px solid var(--berry);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.last-updated {
  color: var(--gray);
  font-size: var(--fs-xxs);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.legal-text h2 {
  font-size: var(--fs-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--dark-blue);
}

.legal-text p,
.legal-text ul,
.legal-text ol {
  margin-bottom: var(--space-md);
}

.legal-text ul,
.legal-text ol {
  padding-left: var(--space-md);
}

.legal-text table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
}

.legal-text th,
.legal-text td {
  border: 1px solid var(--light-gray);
  padding: var(--space-xs) var(--space-sm);
  text-align: left;
}

.legal-text th {
  background-color: var(--light-gray);
  font-weight: 600;
}

/* ========== Footer ========== */
.site-footer {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: var(--space-lg) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-logo a {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--white);
}

.footer-logo p {
  font-size: var(--fs-xxs);
  margin-top: var(--space-xs);
}

.footer-links h3,
.footer-contact h3,
.footer-legal h3 {
  color: var(--white);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-sm);
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
}

.footer-links li,
.footer-legal li {
  margin-bottom: var(--space-xs);
}

.footer-links a,
.footer-legal a,
.footer-contact a {
  color: var(--light-gray);
  font-size: var(--fs-xxs);
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-contact a:hover {
  color: var(--berry);
}

.footer-contact address {
  font-style: normal;
  font-size: var(--fs-xxs);
}

.footer-contact p {
  margin-bottom: var(--space-xs);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--fs-xxs);
  color: var(--light-gray);
}

/* ========== Cookie Consent ========== */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--dark-blue);
  color: var(--white);
  padding: var(--space-md);
  z-index: 1001;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  transition: bottom 0.5s;
}

.cookie-consent.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.cookie-content p {
  margin-bottom: 0;
  font-size: var(--fs-xxs);
}

.cookie-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cookie-more {
  color: var(--white);
  text-decoration: underline;
  font-size: var(--fs-xxs);
}

/* ========== Responsive Styles ========== */
@media (max-width: 992px) {
  :root {
    --fs-xl: 2.2rem;
    --fs-lg: 1.8rem;
    --fs-md: 1.3rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  /* Navigation for mobile */
  .nav-toggle-label {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links {
    flex-direction: column;
    padding: var(--space-sm) 0;
    gap: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: var(--space-sm) var(--space-md);
  }

  .nav-links a:hover {
    background-color: var(--light-gray);
  }

  .nav-toggle:checked ~ .main-nav {
    max-height: 500px;
  }
}

@media (max-width: 576px) {
  :root {
    --fs-xl: 1.8rem;
    --fs-lg: 1.5rem;
    --fs-md: 1.2rem;
  }

  .hero {
    height: 60vh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: var(--space-md);
  }
}
