/* 
* Main styles for domain accounting website
* Color palette:
* - Background: #E8F9FD (icy blue)
* - Accents: #FF4D6D (pink-crimson), #56C596 (grass green), #282A3A (deep blue)
* - Font: "Poppins", sans-serif
*/

/* -------------- RESET & BASE STYLES -------------- */
* {
  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: "Poppins", sans-serif;
  background-color: #e8f9fd;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5em;
  line-height: 1.2;
  font-weight: 600;
  color: #282a3a;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #56c596;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #ff4d6d;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* -------------- BUTTONS -------------- */
.button,
button {
  display: inline-block;
  background: linear-gradient(135deg, #56c596 0%, #3dae81 100%);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(86, 197, 150, 0.3);
  transition: all 0.3s ease;
  text-align: center;
}

.button:hover,
button:hover {
  background: linear-gradient(135deg, #3dae81 0%, #56c596 100%);
  box-shadow: 0 6px 20px rgba(86, 197, 150, 0.4);
  transform: translateY(-2px);
  color: white;
}

.button.secondary {
  background: linear-gradient(135deg, #ff4d6d 0%, #e83a5c 100%);
  box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}

.button.secondary:hover {
  background: linear-gradient(135deg, #e83a5c 0%, #ff4d6d 100%);
  box-shadow: 0 6px 20px rgba(255, 77, 109, 0.4);
}

/* -------------- HEADER -------------- */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-weight: 700;
  font-size: 32px;
  color: #282a3a;
  letter-spacing: -0.5px;
}

.main-nav ul {
  display: flex;
  align-items: center;
}

.main-nav li {
  margin-left: 25px;
}

.main-nav a {
  color: #282a3a;
  font-weight: 500;
  font-size: 16px;
  position: relative;
}

.main-nav a:hover {
  color: #ff4d6d;
}

.main-nav a.active {
  color: #56c596;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background-color: #56c596;
  border-radius: 2px;
}

.main-nav a.cta-button {
  background-color: #ff4d6d;
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
}

.main-nav a.cta-button:hover {
  background-color: #e83a5c;
  color: #fff;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #282a3a;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* -------------- HERO SECTION -------------- */
.hero {
  background: url("./img/BsnVr.jpg") no-repeat center center;
  background-size: cover;
  position: relative;
  min-height: 500px;
  color: white;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(40, 42, 58, 0.9) 0%,
    rgba(40, 42, 58, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* -------------- SECTION STYLES -------------- */
section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background-color: white;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #56c596 0%, #3dae81 100%);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
}

/* -------------- ABOUT SECTION -------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.about-content ul {
  list-style: none;
  margin: 1.5rem 0;
}

.about-content li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}

.about-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #56c596;
  font-weight: bold;
}

/* -------------- FEATURES SECTION -------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(86, 197, 150, 0.1) 0%,
    rgba(86, 197, 150, 0.2) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon img {
  width: 35px;
  height: 35px;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* -------------- SERVICES SECTION -------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.service-content p {
  margin-bottom: 20px;
}

/* -------------- CTA SECTION -------------- */
.cta {
  background: linear-gradient(135deg, #56c596 0%, #3dae81 100%);
  color: white;
  text-align: center;
  padding: 5rem 0;
}

.cta h2 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

.cta .button {
  background: white;
  color: #56c596;
  font-size: 1.1rem;
  padding: 15px 35px;
}

.cta .button:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #3dae81;
}

/* -------------- TESTIMONIALS SECTION -------------- */
.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 4rem;
  color: rgba(86, 197, 150, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 20px;
  color: #555;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.testimonial-author-info h4 {
  margin: 0;
  font-size: 1.1rem;
}

.testimonial-author-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

/* -------------- 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.05);
}

.faq-question {
  position: relative;
}

.faq-question input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-question label {
  display: block;
  background: white;
  padding: 20px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  padding-right: 50px;
}

.faq-question label::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.faq-question input[type="checkbox"]:checked ~ label::after {
  content: "–";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0 20px;
  background: white;
}

.faq-question input[type="checkbox"]:checked ~ .faq-answer {
  max-height: 1000px;
  padding: 0 20px 20px;
}

/* -------------- CONTACT FORM -------------- */
.contact-section {
  background-color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #56c596;
  box-shadow: 0 0 0 2px rgba(86, 197, 150, 0.2);
}

select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' 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")
    no-repeat;
  background-position: right 15px center;
  background-size: 15px;
  padding-right: 40px;
  background-color: white;
}

/* Custom option background */
option {
  background-color: white;
  color: #333;
  padding: 10px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.checkbox-group a {
  color: #56c596;
  text-decoration: underline;
}

.contact-info {
  padding: 30px;
  background: linear-gradient(135deg, #282a3a 0%, #1e1f2c 100%);
  border-radius: 10px;
  color: white;
}

.contact-info h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.contact-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.contact-info a {
  color: white;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  color: #56c596;
  opacity: 1;
}

/* -------------- FOOTER -------------- */
footer {
  background-color: #282a3a;
  color: white;
  padding: 4rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

footer .logo {
  font-size: 24px;
  color: white;
  margin-bottom: 15px;
  display: block;
}

footer h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #56c596;
  border-radius: 2px;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

footer ul li a:hover {
  color: #56c596;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-map iframe {
  border-radius: 5px;
}

/* -------------- COOKIE POPUP -------------- */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: rgba(40, 42, 58, 0.95);
  color: white;
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin: 0 20px 0 0;
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
}

.cookie-buttons button {
  background: #56c596;
  min-width: 120px;
}

.cookie-buttons a {
  color: white;
  text-decoration: underline;
  display: flex;
  align-items: center;
}

/* -------------- THANK YOU PAGE -------------- */
.thank-you {
  text-align: center;
  margin: 8rem auto 3rem;
  border: 1px solid #ccc;
  padding: 50px 30px;
  max-width: 700px;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.thank-you h1 {
  color: #56c596;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.thank-you p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* -------------- POLICY PAGES -------------- */
.policy-content {
  background-color: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: 40px auto;
}

.policy-content h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.policy-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.policy-content p,
.policy-content ul,
.policy-content ol {
  margin-bottom: 1rem;
}

.policy-content ul,
.policy-content ol {
  padding-left: 20px;
}

.policy-content ul li,
.policy-content ol li {
  margin-bottom: 0.5rem;
}

/* -------------- RESPONSIVE DESIGN -------------- */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0;
    margin: 0;
  }

  .main-nav li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav a {
    padding: 15px;
    display: block;
    text-align: center;
  }

  .menu-toggle:checked ~ .main-nav {
    max-height: 500px;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }

  .feature-card,
  .service-card {
    margin-bottom: 20px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content p {
    margin: 0 0 15px;
  }

  .policy-content {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    min-height: 400px;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .thank-you {
    margin: 4rem auto 2rem;
    padding: 30px 20px;
  }

  .thank-you h1 {
    font-size: 2rem;
  }
}
