/* Domain Financial Audit - Main Stylesheet */

/* Color Palette */
:root {
  --main-bg: #F1FFFC;          /* Mint background */
  --accent-dark: #12232E;      /* Graphite-blue */
  --accent-light: #3E92CC;     /* Azure */
  --button-gradient-start: #FF416C;
  --button-gradient-end: #FF4B2B;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6B6B;
  --element-bg: #FFFFFF;
  --element-shadow: #D4E1E7;
  --hover-effect: #A2FF86;     /* Bright yellow-green */
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: var(--main-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--hover-effect);
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 4rem 0;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(to right, var(--button-gradient-start), var(--button-gradient-end));
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(255, 65, 108, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 65, 108, 0.5);
  color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--accent-light), var(--hover-effect));
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Header Styles */
header {
  background-color: var(--element-bg);
  box-shadow: 0 2px 15px var(--element-shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--accent-light), var(--button-gradient-start));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center; /* Align all nav items vertically */
  height: 100%;
}

nav ul li {
  margin-left: 2rem;
  display: flex;
  align-items: center;
  height: 100%;
}

nav ul li a {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--hover-effect);
  transition: width 0.3s ease;
}

nav ul li a:hover:after {
  width: 100%;
}

/* Adjust anchor scroll offset for fixed header */
:target {
  scroll-margin-top: 80px; /* Adjust based on your header height */
  display: block;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--accent-dark);
  border-radius: 3px;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--main-bg), #e6fffa);
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center; /* Center text */
}

.hero-content {
  max-width: 700px;
  margin: 0 auto; /* Center the content block */
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.hero .btn {
  margin: 0 auto; /* Center the button */
  display: inline-block; /* Keep button as inline-block for proper centering */
}

/* About Section */
.about {
  background-color: var(--element-bg);
  box-shadow: 0 5px 20px var(--element-shadow);
  border-radius: 10px;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

/* Services Section */
.services {
  background-color: var(--main-bg);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--element-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--element-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--element-shadow);
}

.service-card h3 {
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.service-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

/* Benefits Section */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background-color: var(--element-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--element-shadow);
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background-color: var(--hover-effect);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.benefit-item:hover .benefit-icon {
  transform: scale(1.1);
}

/* Audit Steps Section */
.audit-steps {
  background-color: var(--element-bg);
  border-radius: 10px;
  padding: 3rem;
  box-shadow: 0 5px 15px var(--element-shadow);
}

.step {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--button-gradient-start), var(--button-gradient-end));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  margin-right: 2rem;
}

.step-content {
  padding-bottom: 2rem;
}

.step:not(:last-child):after {
  content: '';
  position: absolute;
  top: 50px;
  left: 25px;
  width: 2px;
  height: calc(100% - 30px);
  background: linear-gradient(to bottom, var(--button-gradient-start), var(--button-gradient-end));
}

/* Testimonials Section */
.testimonials {
  overflow: hidden;
  position: relative;
}

.testimonial-slider {
  display: flex;
  overflow-x: hidden;
  position: relative;
}

/* Using hidden checkboxes for non-JS slider */
.slide-radio {
  display: none;
}

.testimonial-slide {
  min-width: 100%;
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: translateX(100%);
  padding: 2rem;
}

.slide-radio:checked + .testimonial-slide {
  opacity: 1;
  transform: translateX(0);
}

.testimonial-card {
  background-color: var(--element-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--element-shadow);
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
}

.client-name {
  font-weight: bold;
  color: var(--accent-dark);
  margin-top: 1rem;
}

.slider-nav {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.slider-nav label {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--element-shadow);
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slide-radio:checked + .testimonial-slide + .slider-nav label {
  background-color: var(--accent-light);
}

/* Contact Form Section */
.contact-form {
  background-color: var(--element-bg);
  border-radius: 10px;
  padding: 3rem;
  box-shadow: 0 5px 15px var(--element-shadow);
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-errors {
  background-color: #ffe8e8;
  color: #d32f2f;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #d32f2f;
}

.form-errors p {
  margin-bottom: 8px;
}

.form-errors p:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 2px rgba(62, 146, 204, 0.2);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 3px;
}

/* Footer Section */
footer {
  background-color: var(--accent-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-section h3:after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--hover-effect);
  margin-top: 10px;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #ddd;
}

.footer-links a:hover {
  color: var(--hover-effect);
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.copyright {
  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-color: var(--accent-dark);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.cookie-text {
  flex: 1;
  padding-right: 2rem;
}

.cookie-btn {
  background-color: var(--hover-effect);
  color: var(--accent-dark);
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cookie-btn:hover {
  background-color: #8cff68;
}

/* Policy Pages */
.policy-container {
  background-color: var(--element-bg);
  border-radius: 10px;
  padding: 3rem;
  box-shadow: 0 5px 15px var(--element-shadow);
  margin: 8rem auto 4rem;
  max-width: 1000px;
}

.policy-logo {
  text-align: center;
  margin-bottom: 2rem;
}

/* Thank you page styles */
.thankyou-section {
  padding: 8rem 0;
}

.thankyou-section .policy-container {
  text-align: center;
  margin: 0 auto;
  border: 1px solid #e6e6e6;
  max-width: 800px;
}

.policy-container h1 {
  color: var(--accent-dark);
  margin-bottom: 1.5rem;
}

.thank-you-icon {
  margin: 1.5rem auto;
  width: 80px;
  height: 80px;
  background-color: rgba(62, 146, 204, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.thankyou-section .button-container {
  margin-top: 2rem;
  text-align: center;
}

.thankyou-section .contact-info {
  list-style: none;
  margin: 2rem auto;
  padding: 1.5rem;
  display: inline-block;
  text-align: left;
  background-color: rgba(241, 255, 252, 0.5);
  border-radius: 8px;
  max-width: 400px;
  border: 1px dashed var(--accent-light);
}

.thankyou-section .contact-info li {
  margin-bottom: 1rem;
  padding-left: 10px;
  border-left: 3px solid var(--accent-light);
}

.thankyou-section .contact-info li:last-child {
  margin-bottom: 0;
}

/* Media Queries */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    padding: 7rem 0 3rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--element-bg);
    flex-direction: column;
    box-shadow: 0 5px 15px var(--element-shadow);
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav ul li {
    margin: 0;
    text-align: center;
  }
  
  nav ul li a {
    display: block;
    padding: 1rem;
  }
  
  nav ul li a:after {
    display: none;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .step {
    flex-direction: column;
  }
  
  .step-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .step:not(:last-child):after {
    left: 25px;
    top: 50px;
    height: calc(100% - 50px);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .cookie-consent {
    flex-direction: column;
  }
  
  .cookie-text {
    margin-bottom: 1rem;
    padding-right: 0;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .service-card,
  .benefit-item,
  .contact-form,
  .policy-container {
    padding: 1.5rem;
  }
}
