/* 
 * Main Stylesheet for domain
 * Colors:
 * - Background: #FFE3E3 (pastel pink)
 * - Accent 1: #432818 (chocolate)
 * - Accent 2: #FFB703 (honey-yellow)
 * - Accent 3: #8D99AE (gray-blue)
 * - Text: #1B1B1E (almost black)
 * - Secondary text: #6C757D
 */

/* ---------- Base Styles ---------- */
:root {
  --color-bg: #ffe3e3;
  --color-accent-1: #432818;
  --color-accent-2: #ffb703;
  --color-accent-3: #8d99ae;
  --color-text: #1b1b1e;
  --color-text-secondary: #6c757d;
  --font-main: "Arial", sans-serif;
  --transition: all 0.3s ease;
  --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent-1);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent-2);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  font-size: 14px;
}

.btn-primary {
  background-color: var(--color-accent-1);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-accent-2);
  color: var(--color-accent-1);
}

.btn-secondary {
  background-color: var(--color-accent-3);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--color-accent-2);
  color: var(--color-accent-1);
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-accent-1);
  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(--color-accent-2);
}

.bg-light {
  background-color: rgba(255, 255, 255, 0.5);
}

/* ---------- Header & Navigation ---------- */
.header {
  position: sticky;
  top: 0;
  background-color: var(--color-bg);
  padding: 15px 0;
  box-shadow: var(--box-shadow);
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-accent-1);
  text-transform: lowercase;
}

.nav-list {
  display: flex;
}

.nav-item {
  margin-left: 20px;
}

.nav-link {
  font-weight: 500;
  padding: 5px 10px;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-2);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.contact-link {
  color: white;
  background-color: var(--color-accent-1);
  border-radius: var(--border-radius);
}

.contact-link:hover {
  background-color: var(--color-accent-2);
  color: var(--color-accent-1);
}

.contact-link::after {
  display: none;
}

/* Hamburger Menu (CSS only) */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
}

.menu-line {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-accent-1);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.menu-line:nth-child(1) {
  top: 0;
}

.menu-line:nth-child(2) {
  top: 9px;
}

.menu-line:nth-child(3) {
  top: 18px;
}

/* ---------- Hero Section ---------- */
.hero {
  height: 500px;
  background-image: url("./img/Qin0k.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- About Section ---------- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text p {
  margin-bottom: 15px;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* ---------- Cards Grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h3 {
  padding: 15px 15px 5px;
  color: var(--color-accent-1);
}

.card p {
  padding: 0 15px 15px;
  color: var(--color-text-secondary);
}

/* ---------- Process Steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.step {
  text-align: center;
  padding: 20px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--color-accent-2);
  color: var(--color-accent-1);
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.testimonial-text {
  margin-bottom: 15px;
  font-style: italic;
  position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  color: var(--color-accent-2);
  font-size: 24px;
  font-weight: bold;
}

.testimonial-author {
  text-align: right;
  color: var(--color-text-secondary);
}

/* ---------- FAQ Section ---------- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: block;
  padding: 15px 20px;
  background-color: white;
  color: var(--color-accent-1);
  font-weight: bold;
  cursor: pointer;
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  transition: var(--transition);
}

.faq-toggle:checked + .faq-question {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.faq-toggle:checked + .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: white;
  padding: 0 20px;
  transition: all 0.3s ease;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 0 20px 20px;
}

/* ---------- Contact Section ---------- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h3 {
  margin-bottom: 20px;
  color: var(--color-accent-1);
}

.contact-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 10px;
  color: var(--color-accent-2);
}

.contact-map {
  margin-top: 20px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--color-text);
}

.required {
  color: red;
}

input[type="text"],
input[type="tel"],
select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent-2);
  box-shadow: 0 0 0 2px rgba(255, 183, 3, 0.2);
}

/* Customize select options background */
select option {
  background-color: white;
  color: var(--color-text);
}

.checkbox {
  display: flex;
  align-items: flex-start;
}

.checkbox input {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox label {
  font-size: 14px;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--color-accent-1);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  color: white;
  margin-bottom: 15px;
  display: inline-block;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer-title {
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent-2);
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent-2);
}

.footer-contact i {
  margin-right: 10px;
  color: var(--color-accent-2);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* ---------- Policy Pages ---------- */
.policy-section {
  padding: 80px 0;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h1 {
  text-align: center;
  color: var(--color-accent-1);
  margin-bottom: 30px;
}

.policy-box {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--color-accent-3);
}

.policy-box h2 {
  color: var(--color-accent-1);
  margin-top: 30px;
  margin-bottom: 15px;
}

.policy-box h2:first-child {
  margin-top: 0;
}

.policy-box p,
.policy-box ul {
  margin-bottom: 20px;
}

.policy-box ul {
  list-style: disc;
  padding-left: 20px;
}

.policy-box li {
  margin-bottom: 10px;
}

/* ---------- Gracias Page ---------- */
.gracias-section {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 50px 0;
}

.gracias-content {
  text-align: center;
}

.gracias-content h1 {
  color: var(--color-accent-1);
  margin-bottom: 30px;
}

.gracias-box {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--color-accent-3);
  max-width: 600px;
  margin: 0 auto;
}

.gracias-image {
  max-width: 200px;
  margin-bottom: 20px;
  border-radius: 50%;
}

.gracias-box p {
  margin-bottom: 20px;
}

.gracias-box .btn {
  margin-top: 20px;
}

/* ---------- Cookie Consent ---------- */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: white;
  padding: 15px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: bottom 0.5s ease;
  z-index: 9999;
}

.cookie-consent.active {
  bottom: 0;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.cookie-content p {
  margin-right: 20px;
  flex: 1;
}

/* ---------- Responsive Styles ---------- */
@media (max-width: 992px) {
  .section {
    padding: 60px 0;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: 2;
  }

  .contact-form {
    order: 1;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .policy-box {
    padding: 30px 20px;
  }

  .cookie-content {
    flex-direction: column;
  }

  .cookie-content p {
    margin-right: 0;
    margin-bottom: 15px;
  }

  /* Hamburger Menu */
  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  }

  .menu-toggle:checked ~ .nav {
    max-height: 300px;
  }

  .menu-toggle:checked + .menu-icon .menu-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle:checked + .menu-icon .menu-line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .menu-icon .menu-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-list {
    flex-direction: column;
    padding: 20px;
  }

  .nav-item {
    margin: 0 0 15px 0;
  }

  .nav-link {
    display: block;
    padding: 10px 0;
  }

  .contact-link {
    display: inline-block;
    padding: 8px 15px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 24px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
