/* 
* Main CSS for domain - Accounting Company
* Mobile-first responsive design
*/

/* ---- RESET & BASE STYLES ---- */
:root {
  --color-primary: #0a2e36; /* Background */
  --color-accent: #ffc83d; /* Accents */
  --color-text: #f5f0eb; /* Text */
  --color-secondary: #005577; /* Additional */
  --color-light: #f9f9f9; /* Light sections */
  --font-main: "Poppins", sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-primary);
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 80px;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--color-primary);
  position: relative;
}

.section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-accent);
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--color-accent);
  text-align: center;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-accent);
}

.btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--color-secondary);
  color: var(--color-text);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid var(--color-secondary);
  text-align: center;
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--color-secondary);
}

.btn-cookie {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cookie:hover {
  background-color: #e6b535;
}

/* Links */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #e6b535;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

/* ---- COOKIE CONSENT ---- */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: rgba(10, 46, 54, 0.95);
  padding: 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: bottom 0.5s ease;
}

.cookie-consent.active {
  bottom: 0;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 200px;
}

/* ---- HEADER & NAVIGATION ---- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 46, 54, 0.95);
  z-index: 100;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 1px;
}

/* Burger Menu with Checkbox Hack */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: block;
  cursor: pointer;
  position: relative;
  z-index: 101;
  width: 30px;
  height: 21px;
}

.menu-icon .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-accent);
  margin: 6px 0;
  transition: var(--transition);
}

.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--color-primary);
  padding: 80px 20px 20px;
  transition: right 0.3s ease;
  z-index: 99;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  margin-bottom: 15px;
}

.nav-list a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
  display: block;
  padding: 8px 0;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-accent);
}

.nav-contact {
  background-color: var(--color-accent);
  color: var(--color-primary) !important;
  border-radius: 4px;
  padding: 8px 15px !important;
  font-weight: 600;
}

.nav-contact:hover {
  background-color: #e6b535;
  color: var(--color-primary) !important;
}

/* Checkbox Hack for Burger Menu */
.menu-toggle:checked ~ .main-nav {
  right: 0;
}

.menu-toggle:checked ~ .menu-icon .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle:checked ~ .menu-icon .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked ~ .menu-icon .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ---- HERO SECTION ---- */
.hero-section {
  height: 100vh;
  min-height: 500px;
  background-image: url("./img/YDqFL.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 46, 54, 0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 2.5rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.3s;
  animation-fill-mode: both;
}

.hero-content .btn-primary {
  animation: fadeIn 1s ease 0.6s;
  animation-fill-mode: both;
}

/* ---- ABOUT SECTION ---- */
.about-section {
  background-color: var(--color-light);
  color: var(--color-primary);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text {
  flex: 1;
}

.about-values {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-item {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.value-item h3 {
  color: var(--color-secondary);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

/* ---- SERVICES SECTION ---- */
.services-section {
  background-color: white;
  color: var(--color-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--color-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card h3 {
  color: var(--color-secondary);
  padding: 1.2rem 1.2rem 0.5rem;
  font-size: 1.3rem;
}

.service-card ul {
  padding: 0 1.2rem 1.2rem;
  margin-bottom: 1rem;
  list-style-position: inside;
}

.service-card .btn-secondary {
  margin: auto 1.2rem 1.2rem;
}

/* ---- BENEFITS SECTION ---- */
.benefits-section {
  background-color: var(--color-primary);
  color: var(--color-text);
}

.benefits-section h2 {
  color: var(--color-text);
}

.benefits-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: var(--transition);
}

.benefit-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.benefit-icon {
  flex: 0 0 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.benefit-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefit-content {
  flex: 1;
}

.benefit-content h3 {
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* ---- TESTIMONIALS SECTION ---- */
.testimonials-section {
  background-color: var(--color-light);
  color: var(--color-primary);
}

.testimonials-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.testimonial-item {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
  position: relative;
  padding: 1rem 0;
}

.testimonial-content p {
  font-style: italic;
}

.testimonial-content::before {
  content: '"';
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--color-accent);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: -15px;
}

.testimonial-author {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.testimonial-author h4 {
  color: var(--color-secondary);
  margin-bottom: 0.2rem;
}

.testimonial-author p {
  font-size: 0.9rem;
  margin: 0;
}

/* ---- FAQ SECTION ---- */
.faq-section {
  background-color: white;
  color: var(--color-primary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: block;
  padding: 1.2rem;
  background-color: var(--color-light);
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-secondary);
  transition: var(--transition);
}

.faq-toggle:checked + .faq-question {
  background-color: var(--color-secondary);
  color: var(--color-text);
}

.faq-toggle:checked + .faq-question::after {
  content: "-";
  color: var(--color-text);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 1.2rem;
  margin: 0;
}

/* ---- CONTACT SECTION ---- */
.contact-section {
  background-color: var(--color-light);
  color: var(--color-primary);
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-form {
  flex: 1;
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23444' d='M6 8.825l-4.175-4.15-.825.813L6 10.5l5-5.013-.825-.812z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 30px;
}

/* Select background custom color for options */
.form-group select option {
  background-color: var(--color-light);
  color: var(--color-primary);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 5px;
}

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

.contact-info {
  flex: 1;
  background-color: var(--color-secondary);
  color: var(--color-text);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.contact-info p {
  margin-bottom: 1rem;
}

.map-container {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  height: 300px;
}

.map-container iframe {
  border-radius: 8px;
}

/* ---- POLICY PAGES ---- */
.policy-section {
  background-color: var(--color-light);
  color: var(--color-primary);
  padding-top: 120px;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.policy-content h1 {
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: 2rem;
}

.policy-text {
  margin-bottom: 2rem;
}

.policy-text h2 {
  color: var(--color-secondary);
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

.policy-text h2::after {
  display: none;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
}

.cookies-table th,
.cookies-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.cookies-table th {
  background-color: var(--color-light);
  font-weight: 600;
}

/* ---- THANK YOU PAGE ---- */
.thank-you-section {
  min-height: 400px;
  display: flex;
  align-items: center;
  background-color: var(--color-light);
  color: var(--color-primary);
  padding-top: 120px;
}

.thank-you-content {
  max-width: 600px;
  margin: 5rem auto;
  background-color: white;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.thank-you-content h1 {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.thank-you-content .btn-primary {
  margin-top: 2rem;
}

/* ---- FOOTER ---- */
.main-footer {
  background-color: var(--color-primary);
  color: var(--color-text);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-about h3,
.footer-contact h3,
.footer-legal h3 {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-legal ul {
  list-style: none;
  padding: 0;
}

.footer-legal ul li {
  margin-bottom: 0.8rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- RESPONSIVE STYLES ---- */
@media screen and (min-width: 768px) {
  /* Navigation */
  .menu-icon {
    display: none;
  }

  .main-nav {
    position: static;
    width: auto;
    height: auto;
    max-width: none;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-list li {
    margin-bottom: 0;
  }

  /* About Section */
  .about-content {
    flex-direction: row;
  }

  .about-values {
    flex-direction: column;
  }

  /* Testimonials */
  .testimonials-container {
    flex-direction: row;
    gap: 1.5rem;
  }

  .testimonial-item {
    flex: 1;
  }

  /* Contact Section */
  .contact-container {
    flex-direction: row;
  }
}

@media screen and (max-width: 767px) {
  /* Hero Section */
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Sections */
  .section h2 {
    font-size: 1.8rem;
  }

  /* Cookie Consent */
  .cookie-content {
    text-align: center;
  }

  .cookie-content p {
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 480px) {
  /* Hero Section */
  .hero-content h1 {
    font-size: 1.8rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    display: block;
    width: 100%;
  }

  /* Sections padding */
  .section {
    padding: 3rem 0;
  }

  /* Thank you page */
  .thank-you-content {
    padding: 2rem 1.5rem;
  }
}
