/* Main styles for accounting services website */

/* Global styles */
:root {
  --main-bg-color: #fff3e0;
  --accent-color: #00c9a7;
  --dark-accent: #00897b;
  --text-color: #2e2e2e;
  --secondary-bg: #f1efef;
  --gradient: linear-gradient(135deg, var(--accent-color), var(--dark-accent));
  --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

* {
  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: "Roboto", sans-serif;
  background-color: var(--main-bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--dark-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

.footer-links a,
footer a,
footer span,
footer p {
  color: #ffffea;
}
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  box-shadow: var(--box-shadow);
  transform: translateY(-3px);
  color: white;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
header {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-accent);
}

/* Navigation - Desktop */
nav ul {
  list-style: none;
  display: flex;
}

nav li {
  margin-left: 25px;
}

nav a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

/* Burger Menu */
.burger-menu {
  position: relative;
}

.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1010;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-accent);
  position: relative;
  transition: var(--transition);
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  bottom: 8px;
}

.menu-btn span::after {
  top: 8px;
}

.menu-toggle:checked ~ .menu-btn span {
  background-color: transparent;
}

.menu-toggle:checked ~ .menu-btn span::before {
  transform: rotate(45deg);
  bottom: 0;
}

.menu-toggle:checked ~ .menu-btn span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
}

.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: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.3s;
  animation-fill-mode: both;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--gradient);
  bottom: -10px;
  left: calc(50% - 40px);
  border-radius: 2px;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 180px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 20px;
}

/* Process Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;

  counter-reset: step-counter;
}

.step {
  display: flex;
  position: relative;
  background: #63d5d55c;
  border-radius: 1rem;
  padding: 1rem;
}

.step-number {
  position: relative;
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-right: 30px;
  flex-shrink: 0;
}

.step-number::before {
  counter-increment: step-counter;
  content: counter(step-counter);
}

.step-content {
  padding-top: 5px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial {
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

.testimonial::before {
  content: "\201C";
  font-size: 80px;
  position: absolute;
  top: -20px;
  left: 10px;
  color: rgba(0, 201, 167, 0.1);
  z-index: 0;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: bold;
  color: var(--dark-accent);
  margin-top: 15px;
}

/* Contact Form */
.contact-form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--secondary-bg);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.1);
}

/* Custom select styling */
.custom-select {
  position: relative;
}

.custom-select select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232E2E2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 14px;
}

/* Customized option background */
select option {
  background-color: white;
  color: var(--text-color);
  padding: 12px;
}

/* Checkbox styling */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.checkbox-group label {
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-group label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--secondary-bg);
  border-radius: 4px;
  background-color: white;
}

.checkbox-group input[type="checkbox"]:checked + label:before {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.checkbox-group input[type="checkbox"]:checked + label:after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Form Submit Button */
.form-submit {
  margin-top: 20px;
  text-align: center;
}

/* Footer */
footer {
  background-color: var(--dark-accent);
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  margin-bottom: 20px;
  position: relative;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
  left: 0;
  bottom: -10px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: white;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.contact-info li i {
  margin-right: 10px;
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 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;
  z-index: 9999;
  transition: bottom 0.5s ease;
}

.cookie-consent.show {
  bottom: 0;
}

.cookie-text {
  flex: 1;
  padding-right: 20px;
}

.cookie-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

/* Policy Pages */
.policy-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.policy-container h1 {
  margin-bottom: 30px;
}

.policy-container h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--dark-accent);
}

/* Thank You Page */
.thank-you-container {
  max-width: 600px;
  margin: 100px auto;
  padding: 40px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.thank-you-container h1 {
  color: var(--dark-accent);
  margin-bottom: 20px;
}

.checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  margin: 10% auto;
  box-shadow: inset 0px 0px 0px var(--accent-color);
  animation: fill 0.4s ease-in-out 0.4s forwards,
    scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--accent-color);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  background-color: white;
  padding: 20px;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.faq-toggle {
  display: none;
}

.faq-label {
  cursor: pointer;
  width: 100%;
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon:before,
.faq-icon:after {
  content: "";
  position: absolute;
  background-color: var(--dark-accent);
  transition: transform 0.3s ease;
}

.faq-icon:before {
  top: 9px;
  left: 0;
  width: 100%;
  height: 2px;
}

.faq-icon:after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 100%;
}

.faq-toggle:checked ~ .faq-label .faq-icon:after {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: var(--secondary-bg);
  transition: max-height 0.3s ease;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-content {
  padding: 20px;
}

/* Advantages Section */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-item {
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.advantage-item:hover {
  transform: translateY(-5px);
}

.advantage-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px var(--accent-color);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 500px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }

  /* Burger menu for mobile */
  .menu-btn {
    display: block;
  }

  .menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    background-color: white;
    padding: 20px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }

  nav ul {
    flex-direction: column;
  }

  nav li {
    margin-left: 0;
    margin-bottom: 15px;
  }

  .menu-toggle:checked ~ .menu {
    left: 0;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .contact-form-container,
  .policy-container,
  .thank-you-container {
    padding: 20px;
  }

  .step {
    flex-direction: column;
  }

  .step-number {
    margin-bottom: 15px;
  }
}
