/* Main stylesheet for domain accounting website */

:root {
  --primary: #6F00FF; /* Electric Indigo */
  --accent: #FF6B6B; /* Coral */
  --background: #F9F9FC; /* Ghost White */
  --text: #333333; /* Charcoal */
  --secondary: #E6FFF2; /* Mint Cream */
  --white: #FFFFFF;
  --light-gray: #EEEEEE;
  --medium-gray: #999999;
  --border-radius: 1rem;
  --box-shadow: 0 4px 20px rgba(111, 0, 255, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  width: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Grid system */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

/* Card styles */
.card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(111, 0, 255, 0.15);
}

/* Form styles */
form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(111, 0, 255, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  margin-top: 0.3rem;
}

/* 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-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.desktop-menu ul {
  display: flex;
  list-style: none;
}

.desktop-menu ul li {
  margin-left: 2rem;
}

.desktop-menu ul li a {
  font-weight: 600;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu ul li {
  padding: 1rem 2rem;
}

.mobile-menu ul li a {
  font-weight: 600;
  display: block;
  width: 100%;
  padding: 0.5rem 0;
}

.mobile-menu ul li button {
  cursor: pointer;
}

/* Hero section */
.hero {
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--white);
  padding-top: 80px;
}

.hero-content {
  grid-column: 1 / 8;
}

.hero-image {
  grid-column: 8 / 13;
  text-align: center;
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Testimonials section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  position: relative;
  padding-top: 3rem;
}

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid var(--white);
  box-shadow: var(--box-shadow);
}

.testimonial-content {
  text-align: center;
}

/* How we work section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step-card {
  position: relative;
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

/* FAQ section */
.faq-item {
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-question {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--box-shadow);
  font-weight: 600;
}

.faq-answer {
  display: none;
  padding: 1.5rem;
  background-color: var(--secondary);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  margin-top: -0.5rem;
}

.faq-answer.active {
  display: block;
}

/* Footer styles */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--white);
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Policy pages */
.policy-container {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 3rem;
  margin: 120px auto 3rem;
  max-width: 800px;
}

.policy-title {
  text-align: center;
  margin-bottom: 2rem;
}

.policy-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-content p {
  margin-bottom: 1rem;
}

.policy-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.policy-content ul li {
  margin-bottom: 0.5rem;
}

/* Thank you page */
.thank-you {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-card {
  max-width: 600px;
  padding: 4rem;
  margin: 0 auto;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  max-width: 400px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1001;
}

.cookie-text {
  margin-bottom: 1rem;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-content {
    grid-column: 1 / 13;
  }
  
  .hero-image {
    grid-column: 1 / 13;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .desktop-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .services-grid,
  .testimonials-grid,
  .steps-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .policy-container {
    padding: 2rem;
  }
  
  /* Fix for horizontal scrolling */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Ensure tables don't cause horizontal scrolling */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  
  /* Fix for any potentially overflowing elements */
  .faq-question button {
    width: 100%;
    white-space: normal;
    word-break: break-word;
  }
}
