/* 
   Main stylesheet for domain accounting services website
   Created for mobile-first, responsive design with CSS animations
   Color palette:
   - Background: #F9F6F0 (eggshell white)
   - Primary: #6C3483 (deep orchid)
   - Secondary: #F1C40F (sunlight gold)
   - Accent: #48C9B0 (seafoam teal)
   - Text: #2C3E50 (navy graphite)
   - CTA Buttons: #E74C3C (vermilion)
*/

/* === RESET & BASE STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #F9F6F0;
  --primary-color: #6C3483;
  --secondary-color: #F1C40F;
  --accent-color: #48C9B0;
  --text-color: #2C3E50;
  --cta-color: #E74C3C;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --border-radius: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
  scroll-margin-top: 90px; /* Add space for fixed header when using anchor links */
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  transform: translateX(-50%);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--white);
}

.btn-cta {
  background-color: var(--cta-color);
  padding: 14px 28px;
  font-size: 1.1rem;
}

.btn-cta:hover {
  background-color: #c0392b;
}

/* === HEADER & NAVIGATION === */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: lowercase;
  position: relative;
}

/* Removed dot after logo as requested */

.nav-desktop {
  display: none;
}

.nav-mobile {
  display: block;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--white);
  padding: 80px 20px 20px;
  transition: right 0.4s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 15px;
}

.mobile-menu a {
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 600;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
  z-index: 999;
}

.overlay.active {
  visibility: visible;
  opacity: 1;
}

/* === HERO SECTION === */
.hero {
  height: 100vh;
  min-height: 600px;
  background-image: linear-gradient(rgba(44, 62, 80, 0.7), rgba(108, 52, 131, 0.8)), url('../img/BDaRMz.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 70px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.3s;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* === ABOUT SECTION === */
.about {
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.about-content {
  opacity: 1;
  transition: var(--transition);
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  opacity: 1;
  transition: var(--transition);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* === SERVICES SECTION === */
.services {
  background-color: var(--bg-color);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--primary-color);
  opacity: 0.05;
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card:hover::before {
  height: 100%;
}

.service-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin: -30px -30px 20px -30px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-title {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* === ADVANTAGES SECTION === */
.advantages {
  background-color: var(--white);
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  transition: var(--transition);
  padding: 15px;
  border-radius: var(--border-radius);
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  background-color: var(--bg-color);
}

.advantage-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  transition: var(--transition);
}

.advantage-item:hover .advantage-icon {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

.advantage-content h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* === TESTIMONIALS SECTION === */
.testimonials {
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(108, 52, 131, 0.05) 0%, rgba(72, 201, 176, 0.05) 100%);
  z-index: 0;
}

.testimonial-container {
  position: relative;
  z-index: 1;
}

.testimonial-slide {
  padding: 40px 20px;
  text-align: center;
}

.testimonial-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  margin-bottom: 30px;
}

.testimonial-content:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background-color: var(--white);
  transform: translateX(-50%) rotate(45deg);
}

.testimonial-content p {
  font-style: italic;
  position: relative;
}

.testimonial-content p:before {
  content: '"';
  font-size: 3rem;
  color: var(--secondary-color);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: -10px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.testimonial-author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-name {
  font-weight: 700;
  color: var(--primary-color);
}

.testimonial-author-title {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.testimonial-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.3;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-control.active {
  opacity: 1;
  transform: scale(1.2);
}

/* === FAQ SECTION === */
.faq {
  background-color: var(--white);
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-question {
  background-color: var(--white);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: rgba(108, 52, 131, 0.05);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
}

.faq-toggle {
  width: 20px;
  height: 20px;
  position: relative;
  transition: var(--transition);
}

.faq-toggle:before, .faq-toggle:after {
  content: '';
  position: absolute;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.faq-toggle:before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-toggle:after {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.faq-item.active .faq-toggle:after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 20px;
}

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before, .cta-banner::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  z-index: 0;
}

.cta-banner::before {
  top: -150px;
  left: -150px;
}

.cta-banner::after {
  bottom: -150px;
  right: -150px;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-banner p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* === ORDER FORM === */
.order-form {
  background-color: var(--bg-color);
  padding: 80px 0;
}

.form-container {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  position: relative;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.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(--accent-color);
  box-shadow: 0 0 0 2px rgba(72, 201, 176, 0.2);
  outline: none;
}

.form-label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  background-color: transparent;
  transition: var(--transition);
  padding: 0 5px;
  color: #777;
  pointer-events: none;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: 0;
  transform: translateY(-50%);
  background-color: var(--white);
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 600;
}

.form-check-group {
  margin-bottom: 15px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.form-check-input {
  margin-right: 10px;
  margin-top: 4px;
}

.form-check-label {
  font-size: 0.9rem;
}

.service-checkboxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 15px 0;
}

.service-checkbox {
  display: flex;
  align-items: center;
  background-color: var(--light-gray);
  padding: 10px 15px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.service-checkbox:hover {
  background-color: rgba(241, 196, 15, 0.1);
}

.service-checkbox input {
  margin-right: 10px;
}

/* === FOOTER === */
.footer {
  background-color: var(--text-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-logo {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--white);
  font-weight: 700;
}

/* Removed logo dot styling */

.footer-about p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-title {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.footer-contact-icon {
  margin-right: 10px;
  color: var(--secondary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === COOKIE POPUP === */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: bottom 0.5s ease;
  z-index: 1000;
}

.cookie-popup.active {
  bottom: 0;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cookie-message {
  margin-bottom: 15px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* === POLICY PAGES === */
.policy-page {
  padding: 120px 0 60px;
}

.policy-container {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.policy-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.policy-title {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

/* === THANK YOU PAGE === */
.thank-you {
  padding: 120px 0 60px;
  text-align: center;
}

.thank-you-container {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 60px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 30px;
  font-size: 2rem;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE STYLES === */
@media (min-width: 768px) {
  h1 {
    font-size: 2.8rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .service-checkboxes {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  
  .cookie-message {
    margin-bottom: 0;
    margin-right: 20px;
  }
}

@media (min-width: 992px) {
  body {
    font-size: 17px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .advantages-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .nav-desktop {
    display: block;
  }
  
  .nav-mobile {
    display: none;
  }
  
  .nav-desktop ul {
    list-style: none;
    display: flex;
    gap: 30px;
  }
  
  .nav-desktop a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
  }
  
  .nav-desktop a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
  }
  
  .nav-desktop a:hover:after {
    width: 100%;
  }
}
