/* 
 * Main stylesheet for domain - UK Financial Audit Company
 * Color palette:
 * - Main: #163457 (deep sapphire)
 * - Accent: #00FFD1 (neon turquoise)
 * - Background: #F5F5F5 (white smoke)
 * - Headings: #1A1A1A (anthracite)
 * - Text: #3D3D3D (graphite gray)
 * - Buttons: linear gradient from #00FFD1 to #163457
 */

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: #F5F5F5;
  color: #3D3D3D;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  color: #1A1A1A;
  font-weight: 700;
  margin-bottom: 0.8em;
}

a {
  color: #163457;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #00FFD1;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 60px 0;
}

/* Typography */
h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #00FFD1, #163457);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.section-title {
  margin-bottom: 40px;
}

.section-title h2:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(to right, #00FFD1, #163457);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 255, 209, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 255, 209, 0.4);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #163457;
  border: 2px solid #163457;
}

.btn-secondary:hover {
  background: #163457;
  color: #fff;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #163457;
}

.logo span {
  color: #00FFD1;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 25px;
}

nav a {
  font-weight: 600;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #163457;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(to bottom, #f5f5f5, #fff);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-color: rgba(22, 52, 87, 0.05);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.hero-content {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #3D3D3D;
}

/* About Section */
.about {
  background-color: #fff;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-image {
  flex: 1;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.about-image img {
  border-radius: 10px;
  transition: transform 0.5s ease;
}

.about-content {
  flex: 1;
}

/* Services Section */
.services {
  background-color: #F5F5F5;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-item {
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 100%;
  margin-bottom: 20px;
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.service-icon img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.service-item:hover .service-icon img {
  transform: scale(1.05);
}

/* Advantages Section */
.advantages {
  background-color: #fff;
}

.advantages-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
}

.advantage-icon {
  margin-right: 15px;
  color: #00FFD1;
  font-size: 24px;
}

/* Process Section */
.process {
  background-color: #F5F5F5;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  padding: 30px 20px;
  background-color: #fff;
  border-radius: 10px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(to right, #00FFD1, #163457);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -15px;
  top: 50%;
  font-size: 24px;
  color: #163457;
  transform: translateY(-50%);
}

/* Testimonials Section */
.testimonials {
  background-color: #fff;
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  padding: 30px;
  background-color: #F5F5F5;
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
}

.testimonial-item:last-child {
  margin-bottom: 0;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-content::before {
  content: '"';
  font-size: 60px;
  color: rgba(0, 255, 209, 0.2);
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-name {
  font-weight: 700;
}

.author-title {
  color: #666;
  font-size: 0.9rem;
}

/* Contact Form Section */
.contact {
  background-color: #F5F5F5;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.form-control:focus {
  border-color: #00FFD1;
  outline: none;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23163457' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input {
  margin-right: 10px;
  margin-top: 5px;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

/* FAQ Section */
.faq {
  background-color: #fff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background-color: #f9f9f9;
  cursor: pointer;
  position: relative;
  font-weight: 600;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #163457;
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

/* Footer */
.footer {
  background-color: #163457;
  color: #fff;
  padding: 60px 0 30px;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  color: #00FFD1;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-logo span {
  color: #00FFD1;
}

.footer-description {
  margin-bottom: 20px;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.contact-info i {
  margin-right: 10px;
  color: #00FFD1;
}

.footer-links h3 {
  color: #fff;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 360px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.cookie-popup.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-popup-content {
  margin-bottom: 20px;
}

.cookie-popup-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-popup-actions a {
  font-size: 0.9rem;
}

/* Policy Pages */
.policy-page {
  padding: 140px 0 60px;
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.policy-title {
  margin-bottom: 30px;
  position: relative;
}

.policy-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #00FFD1, #163457);
}

.policy-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.policy-content ul, .policy-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.policy-content li {
  margin-bottom: 10px;
}

/* Thank You Page */
.thank-you {
  padding: 160px 0 100px;
  text-align: center;
}

.thank-you-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.check-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(to right, #00FFD1, #163457);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  color: #fff;
  font-size: 40px;
}

/* Media Queries */
@media (max-width: 1440px) {
  .container {
    max-width: 1140px;
  }
}

@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    padding: 140px 0 80px;
  }
  
  .hero-content {
    width: 60%;
  }
  
  .services-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
  
  .process-step:not(:last-child)::after {
    display: none;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  
  .container {
    max-width: 720px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  section {
    padding: 50px 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #163457;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 101;
    padding: 60px 30px;
  }
  
  nav.active {
    transform: translateX(0);
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav li {
    margin: 0 0 20px;
  }
  
  nav a {
    color: #fff;
    font-size: 1.2rem;
  }
  
  .mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero-content {
    width: 100%;
    text-align: center;
  }
  
  .about-container {
    flex-direction: column;
  }
  
  .services-container, 
  .advantages-container {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 10px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  .service-item, 
  .process-step {
    padding: 20px 15px;
  }
  
  .policy-container, 
  .form-container, 
  .thank-you-container {
    padding: 20px;
  }
}
