/* 
Theme: domain - Accounting Services
Description: Custom CSS for domain accounting services website
*/

:root {
  /* Color Palette */
  --neon-coral: #FF6B6B;
  --glacier-blue: #7FDBFF;
  --golden-amber: #FFC93C;
  --dusty-lavender: #B388EB;
  --charcoal-grey: #2F2F2F;
  
  /* Font Families */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--charcoal-grey);
  font-size: 16px;
  line-height: 1.6;
  background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--charcoal-grey);
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--neon-coral);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--glacier-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--neon-coral);
}

button, .btn {
  background-color: var(--golden-amber);
  color: var(--charcoal-grey);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
}

button:hover, .btn:hover {
  background-color: var(--neon-coral);
  color: white;
  transform: translateY(-2px);
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 4rem 0;
  scroll-margin-top: 6rem; /* Helps with anchor positioning */
}

/* Header */
.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--charcoal-grey);
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  color: var(--charcoal-grey);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--neon-coral);
}

.mobile-menu-toggle {
  display: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(127, 219, 255, 0.2) 0%, rgba(179, 136, 235, 0.2) 100%);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
}

.hero-image {
  position: relative;
  width: 40%;
  max-width: 450px;
  opacity: 0.9;
  margin-left: 2rem;
  align-self: center;
}

/* Company Overview */
.overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.overview-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.overview-card:hover {
  transform: translateY(-5px);
}

.overview-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-content {
  padding: 1.5rem;
}

.service-title {
  color: var(--neon-coral);
  font-size: 1.5rem;
}

.service-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  margin-bottom: 1rem;
  color: var(--golden-amber);
  font-size: 2.5rem;
}

/* Testimonials */
.testimonials {
  background-color: #f9f9f9;
}

.testimonial-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 2rem;
  padding-bottom: 2rem;
}

.testimonial-card {
  flex: 0 0 350px;
  scroll-snap-align: start;
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

/* Process Section */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.process-step {
  text-align: center;
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 1.5rem;
  background-color: var(--dusty-lavender);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Pricing Section */
.pricing-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.pricing-header {
  background-color: var(--dusty-lavender);
  color: white;
  padding: 2rem;
  text-align: center;
}

.pricing-title {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
}

.pricing-features {
  padding: 2rem;
  list-style: none;
}

.pricing-feature {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-feature:before {
  content: '✓';
  color: var(--neon-coral);
  position: absolute;
  left: 0;
}

.pricing-btn {
  display: block;
  margin: 0 2rem 2rem;
  text-align: center;
}

/* Trust/Stats Section */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--neon-coral);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--charcoal-grey);
  font-weight: 500;
}

/* Form Section */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 3rem;
}

.form-title {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--glacier-blue);
  box-shadow: 0 0 0 2px rgba(127, 219, 255, 0.3);
}

.form-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transition: all 0.3s ease;
  pointer-events: none;
  color: #777;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
  transform: translateY(-1.5rem) scale(0.8);
  color: var(--glacier-blue);
  background-color: white;
  padding: 0 0.5rem;
}

.form-select {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232F2F2F' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 1rem) center;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.form-checkbox input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.form-checkbox label {
  font-size: 0.9rem;
}

.form-checkbox a {
  color: var(--glacier-blue);
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--golden-amber);
  color: var(--charcoal-grey);
  font-family: var(--font-primary);
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background-color: var(--neon-coral);
  color: white;
}

/* Contact & Footer */
.footer {
  background-color: var(--charcoal-grey);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-title {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  margin-right: 1rem;
  color: var(--golden-amber);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 0.5rem;
}

.footer-link a {
  color: #ddd;
}

.footer-link a:hover {
  color: var(--glacier-blue);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  color: #999;
}

/* Cookie Consent */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(47, 47, 47, 0.95);
  color: white;
  padding: 1rem;
  z-index: 9999;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-content p {
  margin: 0;
  flex: 1;
}

.cookie-link {
  color: var(--glacier-blue);
  margin-right: 1rem;
}

.cookie-button {
  background-color: var(--golden-amber);
  color: var(--charcoal-grey);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Media Queries */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    flex-direction: column;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-item {
    margin-left: 0;
    padding: 0.5rem 2rem;
  }
  
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
  }
  
  .hero {
    padding-top: 10rem;
  }
  
  .hero .container {
    flex-direction: column;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    padding-top: 2rem;
  }
  
  .hero-image {
    position: relative;
    width: 80%;
    margin-top: 2rem;
    margin-left: 0;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-content button {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }
  
  .testimonial-card {
    flex: 0 0 300px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Policy Pages */
.policy-content h2 {
  text-align: center;
  color: var(--dusty-lavender);
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}