/* 
    Domain - Financial Audit Services
    Main Stylesheet
    Created: 2023
    Author: Domain Web Development Team
*/

/* ======= BASE STYLES ======= */
:root {
  --bg-color: #f4f1eb;
  --text-color: #222;
  --primary-color: #0b3c5d;
  --accent-color: #f36f38;
  --white: #fff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #777;
  --black: #000;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --radius: 4px;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

section[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: "Arial", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--primary-color);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

ul,
ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.accent {
  color: var(--accent-color);
}

.required {
  color: var(--accent-color);
}

/* ======= BUTTONS ======= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-cookie {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-cookie:hover {
  background-color: var(--primary-color);
}

/* ======= HEADER & NAVIGATION ======= */
.site-header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.logo a {
  color: var(--primary-color);
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin-left: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--accent-color);
}

.btn-nav {
  padding: 0.5rem 1rem;
  background-color: var(--accent-color);
  color: var(--white) !important;
  border-radius: var(--radius);
}

.btn-nav:hover {
  background-color: var(--primary-color);
  color: var(--white) !important;
}

/* Hamburger Menu */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
    padding: 0.5rem;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background: var(--primary-color);
    height: 2px;
    width: 24px;
    position: relative;
    transition: var(--transition);
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
  }

  .nav-toggle-label span::before {
    bottom: 8px;
  }

  .nav-toggle-label span::after {
    top: 8px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    width: 100%;
    transform: scale(1, 0);
    transform-origin: top;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .main-nav ul {
    flex-direction: column;
    margin: 0;
    padding: 0;
  }

  .main-nav li {
    margin: 0;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.15s ease;
  }

  .nav-toggle:checked ~ .main-nav {
    transform: scale(1, 1);
  }

  .nav-toggle:checked ~ .main-nav a {
    opacity: 1;
    transition: opacity 0.25s ease 0.15s;
  }

  .nav-toggle:checked ~ .nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
  }
}

/* ======= COOKIE CONSENT ======= */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transition: bottom 0.5s ease;
}

.cookie-consent.show {
  bottom: 0;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-content p {
  margin: 0;
  flex: 1;
}

.cookie-content a {
  color: var(--accent-color);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-content button {
    width: 100%;
  }
}

/* ======= HERO SECTION ======= */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("img/0Oaal.jpg") no-repeat center center/cover;
  color: var(--white);
  display: flex;
  align-items: center;
  text-align: center;
  padding: 6rem 0;
  margin-top: 60px;
}

.hero-container {
  max-width: 800px;
}

.hero-section h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 500px;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* ======= ABOUT SECTION ======= */
.about-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* ======= BENEFITS SECTION ======= */
.benefits-section {
  padding: 5rem 0;
  background-color: var(--light-gray);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  margin-bottom: 1.5rem;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon img {
  max-height: 100px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: var(--radius);
}

.benefit-card h3 {
  margin-bottom: 1rem;
}

.benefit-card p {
  margin-bottom: 0;
}

/* ======= SERVICES SECTION ======= */
.services-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
}

.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: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  margin-bottom: 1rem;
}

.service-content p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ======= TESTIMONIALS SECTION ======= */
.testimonials-section {
  padding: 5rem 0;
  background-color: var(--light-gray);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-content {
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 3rem;
  color: var(--medium-gray);
  position: absolute;
  top: -1rem;
  left: -1rem;
  opacity: 0.5;
}

.testimonial-content p {
  margin-bottom: 0;
  font-style: italic;
}

.author-name {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.author-company {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ======= FAQ SECTION ======= */
.faq-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-toggle {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-question {
  display: block;
  padding: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--light-gray);
  transition: var(--transition);
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  background-color: var(--white);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 1.5rem;
}

.faq-toggle:checked ~ .faq-question {
  background-color: var(--primary-color);
  color: var(--white);
}

.faq-toggle:checked ~ .faq-question::after {
  content: "-";
  color: var(--white);
}

/* ======= CONTACT SECTION ======= */
.contact-section {
  padding: 5rem 0;
  background-color: var(--light-gray);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-info {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--accent-color);
}

.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius);
  background-color: var(--white);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(11, 60, 93, 0.2);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

/* Style for the option tags in select */
select option {
  background-color: var(--white);
  padding: 0.75rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
  flex: 1;
}

/* ======= TRUST SECTION ======= */
.trust-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trust-item {
  padding: 2rem;
  border-radius: var(--radius);
  background-color: var(--light-gray);
  transition: var(--transition);
}

.trust-item:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.trust-item:hover h3 {
  color: var(--white);
}

/* ======= FOOTER ======= */
.site-footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-content h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-content ul li {
  margin-bottom: 0.75rem;
}

.footer-content a {
  color: var(--medium-gray);
  transition: var(--transition);
}

.footer-content a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--medium-gray);
}

/* ======= THANK YOU PAGE ======= */
.thanks-section {
  padding: 10rem 0;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-content {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.thanks-content h1 {
  margin-bottom: 1.5rem;
}

.thanks-content p {
  margin-bottom: 2rem;
}

/* ======= POLICY PAGES ======= */
.policy-section {
  padding: 8rem 0 4rem;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
}

.policy-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.policy-content h2 {
  margin-top: 2rem;
}

.policy-content h3 {
  margin-top: 1.5rem;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.cookies-table th,
.cookies-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--medium-gray);
}

.cookies-table th {
  background-color: var(--light-gray);
  font-weight: bold;
}

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .section-title {
    margin-bottom: 2.5rem;
  }

  .section-title::after {
    width: 50px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  section {
    padding: 4rem 0;
  }

  .benefits-grid,
  .services-grid,
  .testimonials-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 4rem 0;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
  }

  .service-image {
    height: 150px;
  }

  .thanks-content,
  .policy-content {
    padding: 1.5rem;
  }
}
