/* 
   domain - Accounting Services Website
   Main stylesheet
*/

/* ---------- BASIC RESET & GLOBAL STYLES ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #f3f3e9;
  --main-color: #214e34;
  --accent-color: #f54768;
  --text-color: #1a1a1a;
  --light-text: #ffffff;
  --container-width: 1280px;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: var(--transition);
}

footer a,
#cookieConsent a,
a:hover {
  color: var(--accent-color);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 5rem 0;
}

h1,
h2,
h3,
h4,
h5 {
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

h2:after {
  content: "";
  position: absolute;
  width: 60%;
  height: 4px;
  background-color: var(--accent-color);
  bottom: -15px;
  left: 0;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--light-text);
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--main-color);
  color: var(--light-text);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.text-center {
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2:after {
  left: 20%;
}

/* ---------- HEADER ---------- */
header {
  background-color: rgba(243, 243, 233, 0.95);
  position: sticky;
  top: 0;
  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;
  padding: 15px 20px;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--main-color);
}

/* Hamburger Menu */
.hamburger {
  display: none;
}

.hamburger-input {
  display: none;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
}

nav ul li a:hover {
  color: var(--accent-color);
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

/* ---------- HERO SECTION ---------- */
.hero {
  height: 80vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./img/bqcV5.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 20px;
  z-index: 1;
  color: var(--light-text);
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ---------- ABOUT SECTION ---------- */
.about {
  background-color: var(--bg-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.about-text {
  flex: 1;
}

/* ---------- SERVICES SECTION ---------- */
.services {
  background-color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  color: var(--main-color);
  margin-bottom: 15px;
}

/* ---------- BENEFITS SECTION ---------- */
.benefits {
  background-color: var(--bg-color);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.benefit-item {
  padding: 25px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.benefit-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* ---------- TESTIMONIALS SECTION ---------- */
.testimonials {
  background-color: #fff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.2;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

.testimonial-author-info {
  font-weight: 600;
}

.testimonial-author-position {
  color: var(--main-color);
  font-size: 0.9rem;
}

/* ---------- STEPS SECTION ---------- */
.steps {
  background-color: var(--bg-color);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.step-item {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  color: var(--light-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

/* ---------- FAQ SECTION ---------- */
.faq {
  background-color: #fff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  position: relative;
}

.faq-input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-label {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background-color: var(--bg-color);
  font-weight: 600;
  cursor: pointer;
}

.faq-label::after {
  content: "+";
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-content {
  max-height: 0;
  padding: 0 20px;
  background-color: #fff;
  transition: max-height 0.35s ease;
  overflow: hidden;
}

.faq-input:checked ~ .faq-content {
  max-height: 500px;
  padding: 20px;
}

.faq-input:checked ~ .faq-label::after {
  content: "−";
  transform: rotate(180deg);
}

/* ---------- CONTACT SECTION ---------- */
.contact {
  background-color: var(--bg-color);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--main-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 78, 52, 0.1);
}

select.form-control {
  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='%23214E34' 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 1rem center;
  background-size: 1em;
}

/* Custom styling for option tags */
select.form-control option {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 12px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
}

/* ---------- FOOTER ---------- */
footer {
  background-color: var(--main-color);
  color: var(--light-text);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  margin-bottom: 20px;
  color: var(--light-text);
}

.footer-contact-info div {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--light-text);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* ---------- COOKIE CONSENT ---------- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(26, 26, 26, 0.95);
  color: var(--light-text);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-text {
  flex: 1;
  margin-right: 20px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-accept {
  background-color: var(--accent-color);
  color: var(--light-text);
  border: none;
}

.cookie-decline {
  background-color: transparent;
  color: var(--light-text);
  border: 1px solid var(--light-text);
}

/* ---------- THANK YOU PAGE ---------- */
.thank-you {
  border: 2px solid var(--main-color);
  border-radius: var(--border-radius);
  padding: 50px;
  text-align: center;
  margin: 8rem auto 5rem;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.thank-you h2 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.thank-you h2:after {
  left: 20%;
}

/* ---------- POLICY PAGES ---------- */
.policy-page {
  margin: 4rem auto;
  max-width: 800px;
  padding: 40px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background-color: #fff;
}

.policy-page h1 {
  color: var(--main-color);
  margin-bottom: 2rem;
}

.policy-page h2 {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin: 1.5rem 0;
}

.policy-page p {
  margin-bottom: 1rem;
}

.policy-page ul {
  margin-left: 20px;
  margin-bottom: 1.5rem;
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.75rem;
  }

  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .header-container {
    padding: 15px;
  }

  .logo {
    font-size: 1.8rem;
  }

  /* Hamburger Menu */
  .hamburger {
    display: block;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger-input {
    display: none;
  }

  .hamburger-label {
    display: block;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger-label span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--main-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
  }

  .hamburger-label span:nth-child(1) {
    top: 0;
  }

  .hamburger-label span:nth-child(2) {
    top: 9px;
  }

  .hamburger-label span:nth-child(3) {
    top: 18px;
  }

  .hamburger-input:checked + .hamburger-label span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
  }

  .hamburger-input:checked + .hamburger-label span:nth-child(2) {
    opacity: 0;
    left: -60px;
  }

  .hamburger-input:checked + .hamburger-label span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background-color: var(--bg-color);
    transition: 0.5s ease;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }
  .hamburger-input:checked ~ nav {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 80px 30px 30px;
  }

  nav ul li {
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.3rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .contact-form {
    padding: 25px;
  }

  .policy-page {
    padding: 25px;
  }
}
