/* domain.com - Financial Audit Services - Main CSS */

/* Color Palette */
:root {
  --primary: #5D3FD3;        /* Royal Violet */
  --secondary: #FF7E29;      /* Electric Tangerine */
  --accent: #3FE0D0;         /* Turquoise Sky */
  --background: #FBF9F4;     /* Cream White */
  --text: #1F1F1F;           /* Charcoal Black */
  --light-bg: #F0EDE6;       /* Lighter background for alternating sections */
  --shadow: rgba(93, 63, 211, 0.1); /* Shadow based on primary color */
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background-color: var(--light-bg);
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.slide-up {
  transform: translateY(50px);
  opacity: 0;
  animation: slideUp 1s forwards;
}

.scale-up {
  transform: scale(0.8);
  opacity: 0;
  animation: scaleUp 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleUp {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px var(--shadow);
}

.btn:hover {
  transform: scale(1.05);
  background-color: var(--secondary);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--primary);
}

/* Header & Navigation */
header {
  background-color: white;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s;
}

nav ul li a:hover:after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
}

/* Mobile Menu Toggle (PHP-based) */
@media (max-width: 768px) {
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav ul li {
    margin: 1rem 0;
    text-align: center;
  }
  
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(251, 249, 244, 0.9), rgba(251, 249, 244, 0.9)), url('../img/nKIAiJ.jpg');
  background-size: cover;
  background-position: center;
  padding-top: 80px; /* Account for fixed header */
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 120px 0 60px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Services Cards */
.services {
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--shadow);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px var(--shadow);
}

.service-image {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .services {
    padding-left: 0;
    padding-right: 0;
  }
  
  .services .container {
    width: 100%;
    padding: 0 15px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .service-card {
    padding: 1.5rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  
  .service-image {
    height: 160px;
    margin-bottom: 1rem;
    width: 100%;
  }
  
  .service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }
  
  .service-card p {
    font-size: 0.95rem;
  }
}

/* Advantages */
.advantages {
  text-align: center;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.advantage-item {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px var(--shadow);
  display: flex;
  flex-direction: column;
}

.advantage-image {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.advantage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.testimonials {
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-item {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--shadow);
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* Detailed Services */
.detailed-services {
  text-align: center;
}

.detailed-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.detailed-service {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--shadow);
}

.service-price {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
  margin: 1rem 0;
}

@media (max-width: 768px) {
  .detailed-services-grid {
    grid-template-columns: 1fr;
  }
}

/* Order Form */
.order-form-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

.form-container {
  background: white;
  border-radius: 10px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  position: absolute;
  top: 0;
  left: 15px;
  transform: translateY(-50%);
  background: white;
  padding: 0 5px;
  color: #888;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.form-group.active label {
  top: 0;
  font-size: 0.8rem;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 30px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group input:not(:placeholder-shown) + label,
.form-group input:focus + label,
.form-group select:focus + label {
  top: 0;
  font-size: 0.8rem;
  color: var(--primary);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: var(--text);
}

.form-checkbox input {
  margin-right: 10px;
  margin-top: 5px;
}

/* FAQ */
.faq-section {
  text-align: center;
}

.faq-container {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px var(--shadow);
}

.faq-question {
  background: white;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-answer {
  background: #f8f8f8;
  padding: 1.5rem;
  display: none;
  text-align: left;
}

.faq-answer.active {
  display: block;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-about p {
  margin-bottom: 1rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li a:hover {
  color: var(--accent);
}

.footer-contact {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact p {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Policy Pages */
.policy-page {
  padding: 8rem 0 5rem;
}

.policy-container {
  background: white;
  border-radius: 10px;
  padding: 3rem;
  box-shadow: 0 5px 15px var(--shadow);
}

.policy-container h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.policy-container h2 {
  margin-top: 2.5rem;
}

/* Thank You Page */
.thank-you {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px;
}

.thank-you-content {
  max-width: 600px;
  padding: 3rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow);
  margin: 0 auto;
}

.thank-you h1 {
  margin-bottom: 2rem;
  color: var(--primary);
}

.thank-you i {
  font-size: 5rem;
  color: var(--secondary);
  margin-bottom: 2rem;
}
