/* 
 * Main stylesheet for domain accounting services
 * Colors:
 * - Background: #F2F6FC
 * - Accent: #FF4D6D
 * - Secondary accent: #008DDA
 * - Text: #1E1E1E
 * - Headings: #14213D
 * - Cards: gradient from #FDFBFB to #EBEDEE
 */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #F2F6FC;
  --accent-color: #FF4D6D;
  --secondary-color: #008DDA;
  --text-color: #1E1E1E;
  --heading-color: #14213D;
  --card-gradient-start: #FDFBFB;
  --card-gradient-end: #EBEDEE;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #e6395a;
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #0079b8;
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--white);
}

/* Card styles */
.card {
  background: linear-gradient(to bottom, var(--card-gradient-start), var(--card-gradient-end));
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Header styles */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--heading-color);
}

.logo span {
  color: var(--accent-color);
}

/* Navigation */
.nav-desktop {
  display: flex;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
}

.nav-desktop ul li {
  margin-left: 2rem;
}

.nav-desktop ul li a {
  color: var(--heading-color);
  font-weight: 600;
}

.nav-mobile {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--heading-color);
}

/* Hero section */
.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, var(--bg-color) 0%, #e0e6f2 100%);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Benefits section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-card {
  text-align: center;
  padding: 2rem;
}

.benefit-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.service-image {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.service-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

/* Testimonials section */
.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 700;
}

.testimonial-position {
  color: #666;
}

/* Pricing section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-popular {
  position: absolute;
  top: 15px;
  right: -35px;
  background: var(--accent-color);
  color: var(--white);
  padding: 0.5rem 3rem;
  transform: rotate(45deg);
  font-size: 0.9rem;
  font-weight: 600;
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.pricing-name {
  font-size: 1.3rem;
  color: var(--secondary-color);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: normal;
}

.pricing-features {
  margin-bottom: 2rem;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
}

.pricing-features ul li {
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* FAQ section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  background: var(--white);
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  background: var(--light-gray);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 500px;
}

/* Contact form */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--accent-color);
}

.contact-form {
  background: linear-gradient(to right, var(--card-gradient-start), var(--card-gradient-end));
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  transition: var(--transition);
  background-color: var(--white);
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 141, 218, 0.2);
  outline: none;
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.form-check-input {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.form-check-label {
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: var(--heading-color);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: block;
}

.footer-logo span {
  color: var(--accent-color);
}

.footer-about {
  margin-bottom: 1.5rem;
}

.footer-heading {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: #bbb;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--accent-color);
}

.footer-contact-item {
  display: flex;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  margin-right: 0.8rem;
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
}

.cookie-consent.hidden {
  display: none;
}

.cookie-text {
  margin-right: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Policy pages */
.policy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.policy-content {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.policy-title {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section-title {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

/* Thank you page */
.thank-you-container {
  text-align: center;
  padding: 10rem 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

.thank-you-title {
  margin-bottom: 1rem;
}

.thank-you-text {
  margin-bottom: 2rem;
}

/* Media Queries */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content {
    flex-direction: column;
  }
  
  .hero-image {
    text-align: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .nav-desktop {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-mobile {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav-mobile.active {
    max-height: 500px;
  }
  
  .nav-mobile ul {
    list-style: none;
    padding: 1rem 0;
  }
  
  .nav-mobile ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-consent {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-text {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .benefits-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}
