/* 
 * Main stylesheet for domain
 * Financial auditing website
 */

/* Import header and footer styles */
@import url('./header-footer.css');
@import url('./audit-cards.css');
@import url('./policy-pages.css');
@import url('./form-fixes.css');

:root {
  /* Color palette */
  --plum: #842F6C;
  --orange: #FFA552;
  --teal: #348888;
  --mint: #D2F1E4;
  --grey: #F0F1F2;
  
  /* Font settings */
  --font-main: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: var(--teal);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--plum);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--plum);
  color: white;
}

.btn-primary:hover {
  background-color: #6a2357;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(132, 47, 108, 0.3);
}

.btn-secondary {
  background-color: var(--orange);
  color: white;
}

.btn-secondary:hover {
  background-color: #ff8a29;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(255, 165, 82, 0.3);
}

/* Header styles */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--plum);
  letter-spacing: 1px;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--orange);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.logo:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Navigation */
.nav-desktop {
  display: flex;
}

.nav-desktop ul {
  display: flex;
}

.nav-desktop li {
  margin-left: 30px;
}

.nav-desktop a {
  position: relative;
  font-weight: 500;
  color: #333;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--teal);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.nav-desktop a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Mobile navigation */
.nav-toggle {
  display: none;
  cursor: pointer;
}

.nav-mobile {
  display: none;
}

/* Hero section */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/Qbnp1v.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  animation: fadeIn 1s ease-in;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Section styles */
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--plum);
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--orange);
}

/* About section */
.about {
  background-color: var(--grey);
}

.about-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Value proposition section */
.values {
  background-color: white;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.value-card {
  background-color: var(--grey);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-card i {
  font-size: 2rem;
  color: var(--teal);
  margin-bottom: 20px;
}

.value-card h3 {
  margin-bottom: 15px;
  color: var(--plum);
}

/* Services section */
.services {
  background-color: var(--mint);
}

.services-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Audit types section */
.audit-types {
  background-color: white;
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.audit-card {
  background-color: var(--grey);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease;
}

.audit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--plum);
  z-index: -1;
}

.audit-card:hover {
  transform: translateY(-10px);
}

.audit-card h3 {
  margin: 20px 0;
  color: var(--plum);
}

.audit-card p {
  margin-bottom: 20px;
}

/* Testimonials section */
.testimonials {
  background-color: var(--grey);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 60px;
  color: var(--orange);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -15px;
}

.client-info {
  display: flex;
  align-items: center;
}

.client-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.client-name {
  font-weight: 600;
}

.client-position {
  font-size: 0.9rem;
  color: #777;
}

/* FAQ section */
.faq {
  background-color: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  background-color: var(--grey);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #e5e6e7;
}

.faq-answer {
  background-color: white;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

/* Form section */
.form-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--plum) 100%);
  color: white;
}

.form-container {
  display: flex;
  justify-content: center;
}

.form-content {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
}

.form-content::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background-color: var(--orange);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
}

.form-content::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-color: var(--teal);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
}

.form-content h2 {
  color: var(--plum);
  text-align: center;
  margin-bottom: 30px;
}

.form-group {
  position: relative;
  margin-bottom: 30px;
  z-index: 1;
}

.form-label {
  position: absolute;
  left: 15px;
  top: 15px;
  color: #777;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  color: #333;
  background-color: transparent;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: var(--teal);
  outline: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  background-color: white;
  padding: 0 5px;
  color: var(--teal);
}

.form-select {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  color: #333;
  background-color: transparent;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.form-select:focus {
  border-color: var(--teal);
  outline: none;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #777;
  pointer-events: none;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
}

.checkbox-group label {
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-group a {
  color: var(--teal);
  margin-left: 5px;
}

.form-submit {
  width: 100%;
  margin-top: 15px;
}

/* Footer styles */
footer {
  background-color: #222;
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--orange);
}

.footer-column p {
  margin-bottom: 15px;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #ddd;
}

.footer-column a:hover {
  color: var(--orange);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-icon {
  margin-right: 10px;
  color: var(--orange);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Cookie consent popup */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: bottom 0.5s ease;
  z-index: 9999;
}

.cookie-consent.show {
  bottom: 0;
}

.cookie-text {
  margin-right: 20px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-30 {
  margin-bottom: 30px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .nav-toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--plum);
  }
  
  .nav-mobile {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-mobile.show {
    max-height: 500px;
  }
  
  .nav-mobile ul {
    padding: 20px 0;
  }
  
  .nav-mobile li {
    padding: 15px 30px;
    border-bottom: 1px solid #eee;
  }
  
  .nav-mobile a {
    display: block;
    font-weight: 500;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .header-container {
    padding: 10px 0;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  section h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .form-content {
    padding: 30px 20px;
  }
  
  .footer-column h3 {
    font-size: 1.1rem;
  }
}