/* 
   Financial Clarity Audit Services - Main Stylesheet
   Target Region: South Africa
   Colors: 
   - Primary: #FF6B6B (coral)
   - Secondary: #FFC947 (amber)
   - Accent: #3F3D56 (indigo)
   - Background: gradient from #FFEEDB (peach) to #FFFFFF (white)
   - Text: #2E2E2E (graphite)
*/

/* Reset and Base Styles */
:root {
  --primary: #FF6B6B;
  --secondary: #FFC947;
  --accent: #3F3D56;
  --light-bg: #FFEEDB;
  --white: #FFFFFF;
  --text: #2E2E2E;
  --text-light: #666666;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(63, 61, 86, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: linear-gradient(135deg, var(--light-bg), var(--white));
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--accent);
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--primary);
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1.2rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Header and Navigation */
.site-header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 40px;
  transition: var(--transition);
}

.main-nav ul {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: var(--accent);
  font-weight: 500;
  padding: 10px;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 80%;
}

.cta-button {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(255, 107, 107, 0.2);
}

.cta-button:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(63, 61, 86, 0.3);
}

.cta-button::after {
  display: none !important;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 180%;
  background: linear-gradient(135deg, var(--light-bg), var(--secondary));
  border-radius: 0 0 0 50%;
  z-index: 1;
  opacity: 0.05;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 55%;
  animation: fadeInLeft 1s ease-out;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  z-index: 2;
  animation: fadeInRight 1s ease-out;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  max-width: 80%;
}

.hero-cta {
  display: inline-block;
  font-size: 1.1rem;
  padding: 15px 30px;
}

/* About Section */
.about {
  background-color: var(--white);
  position: relative;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: var(--transition);
}

.about-image:hover {
  transform: rotate(0);
}

/* Features Section */
.features {
  background-color: rgba(255, 238, 219, 0.3);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.feature-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary);
  transition: var(--transition);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card:hover::before {
  height: 100%;
  opacity: 0.05;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

/* Services Section */
.services {
  background-color: var(--white);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(63, 61, 86, 0.15);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 25px;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.service-price {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 15px;
}

.service-features {
  margin-top: 15px;
}

.service-features li {
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
}

.service-features li::before {
  content: '✓';
  color: var(--primary);
  position: absolute;
  left: 0;
}

.service-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
}

/* Process Section */
.process {
  background-color: rgba(255, 238, 219, 0.3);
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  counter-reset: process-counter;
}

.process-step {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  position: relative;
  padding-left: 80px;
  margin-bottom: 30px;
}

.process-step::before {
  counter-increment: process-counter;
  content: counter(process-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.process-title {
  margin-bottom: 10px;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--white);
}

.testimonials-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.testimonial-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 280px;
  max-width: 450px;
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 5rem;
  position: absolute;
  top: 10px;
  left: 20px;
  color: var(--light-bg);
  z-index: 0;
  line-height: 1;
}

.testimonial-content {
  position: relative;
  z-index: 1;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 5px;
}

.author-company {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Request Form Section */
.request-form {
  background-color: rgba(255, 238, 219, 0.4);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--accent);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(63, 61, 86, 0.2);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233F3D56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-input {
  margin-right: 10px;
  margin-top: 4px;
}

.checkbox-label {
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-label a {
  font-weight: 600;
}

.submit-button {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: block;
  width: 100%;
  text-align: center;
}

.submit-button:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(63, 61, 86, 0.2);
}

/* Contact Section */
.contact {
  background-color: var(--white);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  margin-bottom: 25px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 107, 107, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  color: var(--primary);
  font-size: 1.3rem;
}

.contact-text h4 {
  margin-bottom: 5px;
}

.contact-map {
  flex: 1;
  min-width: 300px;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  background-color: var(--accent);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-tagline {
  opacity: 0.8;
  margin-bottom: 20px;
}

.footer-column h4 {
  color: var(--secondary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 201, 71, 0.3);
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--accent);
  color: var(--white);
  padding: 20px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: 0;
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
}

.cookie-learn {
  color: var(--white);
  text-decoration: underline;
}

.cookie-accept {
  background-color: var(--secondary);
  color: var(--text);
  border: none;
  border-radius: var(--border-radius);
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-accept:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate(30px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Thank You Page */
.thank-you-container {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeIn 0.8s ease-out;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--primary);
  margin-bottom: 30px;
}

.thank-you-heading {
  font-size: 3rem;
  margin-bottom: 20px;
}

.return-home {
  display: inline-block;
  margin-top: 30px;
  font-weight: 600;
}

/* Policy Pages */
.policy-content {
  max-width: 900px;
  margin: 100px auto 60px;
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.policy-content h2 {
  margin-top: 40px;
}

.policy-content h3 {
  margin-top: 25px;
  color: var(--primary);
}

.policy-content ul, 
.policy-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.policy-content ul li,
.policy-content ol li {
  margin-bottom: 8px;
}

.policy-date {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 992px) {
  h1 {
    font-size: 2.4rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    height: auto;
    padding: 120px 0 80px;
  }
  
  .hero-content {
    width: 100%;
    text-align: center;
  }
  
  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-image {
    position: relative;
    top: 0;
    transform: none;
    width: 80%;
    max-width: 500px;
    margin: 60px auto 0;
    animation: fadeIn 1s ease-out;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  /* Prevent overflow */
  img, iframe, table, .contact-map iframe {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 80px 40px;
    transition: var(--transition);
    z-index: 1000;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 30px;
  }
  
  .main-nav a {
    font-size: 1.1rem;
    display: block;
    padding: 10px 0;
  }
  
  .cookie-content {
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .request-form {
    padding: 30px 20px;
  }
  
  .footer-content {
    gap: 30px;
  }
  
  .footer-column {
    flex: 100%;
  }
  
  .testimonial-card {
    min-width: 100%;
  }
  
  .container {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  
  /* Fix any potential overflow issues */
  .cookie-banner {
    width: 100%;
    box-sizing: border-box;
  }
  
  .hero::before {
    width: 100%;
  }
} 