/* styles.css - Main stylesheet for domain - accounting services website */

/* Base styles and variables */
:root {
  --primary-color: #00b2a9;
  --accent-color: #f7b801;
  --section-bg-color: #6c5ce7;
  --page-bg-color: #fff8f0;
  --text-color: #2d3436;
  --max-width: 1200px;
  --header-height: 70px;
  --footer-height: 250px;
  --border-radius: 8px;
}

/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--page-bg-color);
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--text-color);
  transform: translateY(-2px);
}

.btn.secondary {
  background-color: var(--accent-color);
  color: var(--text-color);
}

.btn.secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 20px auto 0;
}

/* Header styles */
header {
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo:hover {
  color: var(--accent-color);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
}

nav ul li a:hover {
  color: var(--primary-color);
}

/* Mobile menu */
.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

#mobile-menu-toggle {
  display: none;
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    padding-top: var(--header-height);
    transition: all 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 20px 0;
  }

  #mobile-menu-toggle:checked ~ nav {
    right: 0;
  }

  #mobile-menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #mobile-menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #mobile-menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* Hero section */
.hero {
  height: 100vh;
  background-color: var(--primary-color);
  position: relative;
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* About section */
.about {
  background-color: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

/* Services section */
.services {
  background-color: var(--section-bg-color);
  color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: var(--text-color);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 20px;
}

/* Advantages section */
.advantages {
  background-color: white;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-item {
  text-align: center;
  padding: 30px;
  background-color: var(--page-bg-color);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Testimonials section */
.testimonials {
  background-color: var(--section-bg-color);
  color: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-color);
}

.testimonial-rating {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.client-info {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.client-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.client-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-name {
  font-weight: 700;
}

/* FAQ section */
.faq {
  background-color: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  background-color: var(--page-bg-color);
  padding: 20px;
  position: relative;
  cursor: pointer;
  font-weight: 600;
}

.faq-toggle {
  display: none;
}

.faq-toggle-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
  padding: 20px;
}

.faq-toggle-label::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.faq-toggle:checked + .faq-question .faq-toggle-label::after {
  content: "-";
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-content {
  padding: 20px;
}

/* Form section */
.contact-form-section {
  background-color: var(--section-bg-color);
  color: white;
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: var(--text-color);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-label {
  position: absolute;
  left: 15px;
  top: 15px;
  color: #999;
  transition: all 0.3s ease;
  pointer-events: none;
  background-color: white;
  padding: 0 5px;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  color: var(--primary-color);
}

.form-select {
  width: 100%;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: var(--border-radius);
  font-size: 1rem;
  background-color: white;
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-input {
  margin-top: 3px;
}

.form-button {
  justify-self: center;
}

/* CTA section */
.cta {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Footer styles */
footer {
  background-color: var(--text-color);
  color: white;
  padding: 50px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-column h3 {
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: white;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Policy pages */
.policy-page {
  margin: calc(var(--header-height) + 40px) auto 80px;
  max-width: 900px;
  padding: 40px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.policy-header {
  text-align: center;
  margin-bottom: 40px;
}

.policy-logo {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.policy-title {
  font-size: 1.8rem;
}

.policy-section {
  margin-bottom: 30px;
}

.policy-section h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Thank you page */
.thanks-page {
  margin: 8rem auto 5rem;
  max-width: 600px;
  padding: 60px 40px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 2px solid var(--accent-color);
}

.thanks-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.thanks-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.back-link {
  display: inline-block;
  margin-top: 30px;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  flex-direction: column;
  gap: 15px;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.cookie-popup.show {
  opacity: 1;
  display: flex;

  transform: translateY(0);
}

.cookie-text {
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 10px 20px;
  flex: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .section-title {
    margin-bottom: 30px;
  }

  section {
    padding: 50px 0;
  }

  .contact-form-container {
    padding: 30px 20px;
  }

  .policy-page {
    padding: 30px 20px;
  }
}
