/* 
   Main stylesheet for domain - Accounting Services
   Color Palette:
   - Background: peach-orange #FFCBA4
   - Accents: indigo #4B0082
   - Links and buttons: purple #DA70D6
   - Text: light gray #F9F9F9
   - Form: gradient from #30E3CA to #11999E
*/

/* ===== Base Styles ===== */
:root {
  --bg-color: #ffcba4;
  --accent-color: #4b0082;
  --link-color: #da70d6;
  --text-color: #f9f9f9;
  --form-gradient-start: #30e3ca;
  --form-gradient-end: #11999e;
  --dark-text: #333333;
  --card-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

section[id] {
  scroll-margin-top: 70px;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--dark-text);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--accent-color);
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--link-color);
}

section {
  padding: 70px 0;
}

.btn {
  display: inline-block;
  background-color: var(--link-color);
  color: var(--text-color);
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(218, 112, 214, 0.3);
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--text-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(75, 0, 130, 0.4);
}

/* ===== Header Styles ===== */
.main-header {
  background-color: rgba(255, 255, 255, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo a {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent-color);
  text-transform: lowercase;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  color: var(--dark-text);
  font-weight: 600;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--link-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-phone a {
  font-weight: bold;
  color: var(--accent-color);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.menu-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--accent-color);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.3s ease;
}

.menu-icon span:nth-child(1) {
  top: 0px;
}

.menu-icon span:nth-child(2) {
  top: 8px;
}

.menu-icon span:nth-child(3) {
  top: 16px;
}

/* ===== Hero Section ===== */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("img/vQ3Fi.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-color);
  margin-top: 60px;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* ===== About Section ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== Services Section ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px 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.1);
}

.service-card h3 {
  padding: 20px 20px 10px;
}

.service-card p {
  padding: 0 20px 20px;
}

.btn-service {
  display: inline-block;
  margin: 0 20px 20px;
  color: var(--link-color);
  font-weight: bold;
  position: relative;
}

.btn-service::after {
  content: "→";
  margin-left: 5px;
  transition: margin-left 0.3s ease;
}

.btn-service:hover::after {
  margin-left: 10px;
}

/* ===== Why Us Section ===== */
.why-us {
  background-color: var(--accent-color);
  color: var(--text-color);
}

.why-us h2 {
  color: var(--text-color);
}

.why-us h2::after {
  background-color: var(--form-gradient-start);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.feature {
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature h3 {
  color: var(--form-gradient-start);
  margin-bottom: 1rem;
}

/* ===== Testimonials Section ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
  position: relative;
}

.testimonial::before {
  content: '"';
  font-size: 5rem;
  position: absolute;
  top: 10px;
  left: 10px;
  color: rgba(0, 0, 0, 0.1);
  font-family: Georgia, serif;
}

.testimonial p {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial cite {
  display: block;
  font-weight: bold;
  color: var(--accent-color);
  font-style: normal;
}

/* ===== Contact Form Section ===== */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(135deg, #151918, var(--form-gradient-end));
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 20px rgba(255, 255, 255, 0.2) inset;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  z-index: -1;
  animation: animate 20s linear infinite;
  background-size: 500%;
  border-radius: 16px;
  filter: blur(8px);
}

@keyframes animate {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 300% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.9);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B0082' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
}

/* Custom select styling */
.form-group select option {
  background-color: #143131;
  color: var(--text-color);
  padding: 15px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  font-weight: normal;
  margin-bottom: 0;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-submit .btn {
  background-color: var(--accent-color);
  font-size: 1.1rem;
  padding: 15px 30px;
}

.form-submit .btn:hover {
  background-color: #330066;
}

/* ===== FAQ Section ===== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.faq-item input {
  display: none;
}

.faq-title {
  display: block;
  padding: 15px 20px;
  background-color: var(--card-bg);
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq-title::after {
  content: "+";
  position: absolute;
  right: 20px;
  transition: transform 0.3s ease;
}

.faq-item input:checked + .faq-title {
  background-color: var(--link-color);
  color: var(--text-color);
}

.faq-item input:checked + .faq-title::after {
  content: "−";
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  background-color: var(--card-bg);
  transition: max-height 0.3s ease;
}

.faq-item input:checked ~ .faq-content {
  max-height: 300px;
}

.faq-content p {
  padding: 20px;
}

/* ===== Footer Styles ===== */
.main-footer {
  background-color: var(--accent-color);
  color: var(--text-color);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-info h3 {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.footer-contact h4,
.footer-links h4 {
  color: var(--form-gradient-start);
  margin-bottom: 15px;
}

.footer-contact ul,
.footer-links ul {
  list-style: none;
}

.footer-contact li,
.footer-links li {
  margin-bottom: 10px;
}

.footer-contact a,
.footer-links a {
  color: var(--text-color);
}

.footer-contact a:hover,
.footer-links a:hover {
  color: var(--form-gradient-start);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.9rem;
}

/* ===== Cookie Consent ===== */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--accent-color);
  color: var(--text-color);
  z-index: 9999;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  padding: 15px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-content p {
  margin-right: 20px;
  margin-bottom: 10px;
}

.btn-cookie {
  background-color: var(--form-gradient-start);
  color: var(--text-color);
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-cookie:hover {
  background-color: var(--form-gradient-end);
}

/* ===== Thank You Page ===== */
.thank-you {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-content {
  max-width: 600px;
  padding: 40px;
  background-color: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 20px rgba(255, 255, 255, 0.2) inset;
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}

.thank-you-content::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--form-gradient-start),
    var(--form-gradient-end)
  );
  z-index: -1;
  border-radius: 16px;
  filter: blur(5px);
}

.thank-you h2 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.thank-you p {
  margin-bottom: 30px;
}

/* ===== Policy Pages ===== */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.policy-content h1 {
  text-align: center;
  margin-bottom: 30px;
}

.policy-content h2 {
  text-align: left;
  margin-top: 40px;
  margin-bottom: 20px;
}

.policy-content h2::after {
  left: 0;
  transform: none;
  width: 60px;
}

.policy-content p,
.policy-content ul {
  margin-bottom: 20px;
}

.policy-content ul {
  padding-left: 20px;
}

.policy-content li {
  margin-bottom: 10px;
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .form-container::before {
    filter: blur(5px);
  }
}

@media (max-width: 768px) {
  .main-header .container {
    flex-wrap: wrap;
  }

  .menu-icon {
    display: block;
    order: 3;
  }

  .main-nav {
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    order: 4;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px 0;
  }

  .main-nav li {
    margin: 10px 0;
  }

  .menu-toggle:checked ~ .main-nav {
    height: 320px;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    min-height: 500px;
  }

  .service-image {
    height: 180px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content p {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .form-container {
    padding: 30px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-image {
    height: 160px;
  }
}
