/* 
 * Main stylesheet for domain website
 * Color palette:
 * - Primary: Electric Coral (#FF6B6B)
 * - Secondary: Charcoal Navy (#2E3A59)
 * - Accent: Lemon Chartreuse (#EFFF4F)
 * - Background: Porcelain White (#FAFAF8)
 * - Text: Graphite (#333333)
 * - Button Hover: Deep Plum (#5D1451)
 */

/* ---------- Reset & Base Styles ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #FF6B6B;
  --secondary-color: #2E3A59;
  --accent-color: #EFFF4F;
  --background-color: #FAFAF8;
  --text-color: #333333;
  --button-hover: #5D1451;
  --light-gray: #f0f0f0;
  --medium-gray: #cccccc;
  --dark-gray: #888888;
  --white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
  --border-radius: 4px;
  --transition-speed: 0.3s;
}

html {
  font-size: 62.5%; /* 10px base for easier rem calculation */
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--primary-color);
}

ul, ol {
  list-style-type: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 8rem 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 2rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--secondary-color);
}

h1 {
  font-size: 4.2rem;
}

h2 {
  font-size: 3.6rem;
  text-align: center;
  position: relative;
  margin-bottom: 5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 0.4rem;
  background-color: var(--primary-color);
}

h3 {
  font-size: 2.4rem;
}

p {
  margin-bottom: 1.5rem;
}

button, .button, .cta-button, .submit-button {
  display: inline-block;
  padding: 1.2rem 3rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

button:hover, .button:hover, .cta-button:hover, .submit-button:hover {
  background-color: var(--button-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  transition: transform var(--transition-speed) ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed) ease;
}

.logo:hover::after {
  width: 100%;
}

/* Desktop Navigation */
.desktop-menu {
  display: flex;
  gap: 2rem;
}

.desktop-menu a {
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: relative;
}

.desktop-menu a::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.desktop-menu a:hover::after {
  width: 100%;
}

/* Mobile Navigation */
.mobile-menu-checkbox,
.mobile-menu-button,
.mobile-menu {
  display: none;
}

.mobile-menu-button {
  cursor: pointer;
  padding: 1rem;
}

.mobile-menu-icon,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  display: block;
  width: 3rem;
  height: 0.3rem;
  background-color: var(--secondary-color);
  position: relative;
  transition: all var(--transition-speed) ease;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: '';
  position: absolute;
}

.mobile-menu-icon::before {
  top: -0.8rem;
}

.mobile-menu-icon::after {
  bottom: -0.8rem;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 2rem;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu a {
  display: block;
  padding: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--light-gray);
}

.mobile-menu-checkbox:checked ~ .mobile-menu {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-checkbox:checked ~ .mobile-menu-button .mobile-menu-icon {
  background-color: transparent;
}

.mobile-menu-checkbox:checked ~ .mobile-menu-button .mobile-menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-checkbox:checked ~ .mobile-menu-button .mobile-menu-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* ---------- Hero Section ---------- */
.hero-section {
  background: linear-gradient(rgba(46, 58, 89, 0.8), rgba(46, 58, 89, 0.9)),
              url('./img/KZNlWU.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 15rem 0;
  margin-top: 7rem;
}

.hero-content {
  max-width: 80rem;
  margin: 0 auto;
}

.hero-section h1 {
  color: var(--white);
  margin-bottom: 2rem;
  font-size: 4.8rem;
  animation: fadeInUp 1s ease-out;
}

.hero-section p {
  font-size: 2rem;
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.cta-button {
  font-size: 1.8rem;
  padding: 1.5rem 4rem;
  animation: fadeInUp 1s ease-out 0.4s;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- About Section ---------- */
.about-section {
  background-color: var(--white);
}

.about-content {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Services Section ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.service-item {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  overflow: hidden;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-image {
  height: 20rem;
  overflow: hidden;
  margin: -3rem -3rem 2rem -3rem;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.service-item:hover .service-image img {
  transform: scale(1.05);
}

/* Icon placeholders */
.icon-financial::before { content: "📊"; font-size: 4rem; }
.icon-compliance::before { content: "✓"; font-size: 4rem; }
.icon-risk::before { content: "⚠"; font-size: 4rem; }
.icon-expertise::before { content: "🎓"; font-size: 4rem; }
.icon-transparent::before { content: "👁️"; font-size: 4rem; }
.icon-time::before { content: "⏱️"; font-size: 4rem; }
.icon-custom::before { content: "🔧"; font-size: 4rem; }

/* ---------- Audit Types Section ---------- */
.audit-types-section {
  background-color: var(--light-gray);
}

.audit-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.audit-card {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-speed) ease;
}

.audit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.4rem;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-speed) ease;
}

.audit-card:hover {
  transform: translateY(-10px);
}

.audit-card:hover::before {
  transform: scaleX(1);
}

.audit-card-image {
  height: 18rem;
  overflow: hidden;
  margin: -3rem -3rem 2rem -3rem;
  position: relative;
}

.audit-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.audit-card:hover .audit-card-image img {
  transform: scale(1.05);
}

.learn-more {
  display: inline-block;
  margin-top: 2rem;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
}

.learn-more::after {
  content: ' →';
  opacity: 0;
  transform: translateX(-10px);
  display: inline-block;
  transition: all var(--transition-speed) ease;
}

.learn-more:hover::after {
  opacity: 1;
  transform: translateX(5px);
}

/* ---------- Benefits Section ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
}

.benefit-item {
  text-align: center;
  padding: 2rem;
}

.benefit-icon {
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.benefit-item h3 {
  margin-bottom: 1rem;
}

/* ---------- Testimonials Section ---------- */
.testimonials-section {
  background-color: var(--secondary-color);
  color: var(--white);
}

.testimonials-section h2 {
  color: var(--white);
}

.testimonial-slider {
  position: relative;
  height: 25rem;
  overflow: hidden;
}

.testimonial-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  animation: testimonialSlide 15s infinite;
}

.testimonial-item:nth-child(1) { animation-delay: 0s; }
.testimonial-item:nth-child(2) { animation-delay: 5s; }
.testimonial-item:nth-child(3) { animation-delay: 10s; }

@keyframes testimonialSlide {
  0%, 25%, 100% { opacity: 0; transform: translateX(-50px); }
  5%, 20% { opacity: 1; transform: translateX(0); }
}

blockquote {
  font-style: italic;
  font-size: 2rem;
  max-width: 80rem;
  margin: 0 auto 2rem;
  position: relative;
}

blockquote::before,
blockquote::after {
  content: '"';
  font-size: 4rem;
  color: var(--accent-color);
  position: absolute;
  opacity: 0.3;
}

blockquote::before {
  top: -2rem;
  left: -2rem;
}

blockquote::after {
  bottom: -4rem;
  right: -2rem;
}

cite {
  font-style: normal;
  font-weight: 600;
}

/* ---------- Contact/Form Section ---------- */
.contact-section {
  background-color: var(--white);
}

.form-container {
  max-width: 60rem;
  margin: 0 auto;
  padding: 4rem;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 2rem;
}

label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

input[type="text"],
input[type="tel"],
select {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  background-color: var(--white);
  font-size: 1.6rem;
  transition: border-color var(--transition-speed) ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input {
  margin-right: 1rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
}

.submit-button {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.8rem;
  margin-top: 2rem;
}

/* ---------- FAQ Section ---------- */
.faq-section {
  background-color: var(--light-gray);
}

.faq-container {
  max-width: 80rem;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: block;
  padding: 2rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem;
  color: var(--primary-color);
  transition: transform var(--transition-speed) ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 2rem;
  background-color: var(--white);
  transition: all var(--transition-speed) ease;
}

.faq-toggle:checked ~ .faq-question::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 50rem;
  padding: 0 2rem 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 6rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -0.8rem;
  left: 0;
  width: 4rem;
  height: 0.3rem;
  background-color: var(--accent-color);
}

.footer-col p, 
.footer-col address {
  margin-bottom: 1rem;
  font-style: normal;
}

.footer-col a {
  color: var(--white);
  opacity: 0.8;
  transition: opacity var(--transition-speed) ease;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.quick-links ul li {
  margin-bottom: 1rem;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
  opacity: 0.7;
}

/* ---------- Cookie Popup ---------- */
.cookie-popup {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  max-width: 40rem;
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
}

.cookie-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-content {
  text-align: center;
}

.cookie-content p {
  margin-bottom: 1.5rem;
}

#acceptCookies {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  font-weight: 700;
}

#acceptCookies:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ---------- Thank You Page ---------- */
.thank-you-section {
  text-align: center;
  padding: 15rem 0;
  background-color: var(--white);
}

.thank-you-content {
  max-width: 60rem;
  margin: 0 auto;
  padding: 4rem;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  background-color: var(--background-color);
  position: relative;
}

.thank-you-content::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border: 1px dashed var(--accent-color);
  border-radius: calc(var(--border-radius) - 2px);
  pointer-events: none;
}

.thank-you-section h1 {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* ---------- Policy Pages ---------- */
.policy-section {
  padding: 12rem 0 8rem;
}

.policy-content {
  max-width: 80rem;
  margin: 0 auto;
  background-color: var(--white);
  padding: 4rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.policy-content h1 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 4rem;
}

.policy-content h2 {
  text-align: left;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.policy-content h2::after {
  left: 0;
  transform: none;
  width: 6rem;
}

.policy-content ul, .policy-content ol {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.policy-content ul li, .policy-content ol li {
  margin-bottom: 1rem;
  list-style-type: disc;
}

.policy-content ol li {
  list-style-type: decimal;
}

/* ---------- Media Queries ---------- */
@media screen and (max-width: 1024px) {
  html {
    font-size: 57.5%; /* ~9.2px */
  }

  .services-grid,
  .audit-types-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 55%; /* ~8.8px */
  }

  .desktop-menu {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

  .services-grid,
  .audit-types-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  section {
    padding: 6rem 0;
  }

  .hero-section {
    padding: 12rem 0;
  }

  .hero-section h1 {
    font-size: 3.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 52.5%; /* ~8.4px */
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 3rem 2rem;
  }

  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 3rem;
  }

  .hero-section h1 {
    font-size: 3.2rem;
  }

  .hero-section {
    padding: 10rem 0;
  }

  section {
    padding: 5rem 0;
  }

  .policy-content {
    padding: 3rem 2rem;
  }
}