/* 
   Domain - Financial Audit Company Website
   Main Stylesheet
*/

/* ======= BASE STYLES ======= */
:root {
  --gradient-start: #00c9a7;
  --gradient-end: #ff6f61;
  --background: #f9f9f9;
  --text-main: #333333;
  --text-secondary: #666666;
  --accent: #0b3d91;
  --white: #ffffff;
  --light-gray: #eeeeee;
  --gray: #cccccc;
  --dark-gray: #999999;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-main);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

h2:after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
  margin: 0.8rem auto 0;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 4rem 0;
}

/* ======= BUTTONS ======= */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
}

/* ======= HEADER ======= */
.main-header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav li {
  margin-left: 1.5rem;
}

.main-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

/* ======= HERO SECTION ======= */
.hero {
  background-image: url("./img/HFh7r.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 8rem 0;
  position: relative;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ======= ABOUT SECTION ======= */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.about-text ul {
  margin-bottom: 2rem;
}

.about-text li {
  margin-bottom: 0.5rem;
}

/* ======= SERVICES SECTION ======= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card h3,
.service-card p,
.service-card a {
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}

.service-card a {
  display: inline-block;
  margin-bottom: 2rem;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  height: 180px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.service-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

.service-card h3 {
  margin-top: 1rem;
}

.service-card p {
  margin-bottom: 1.5rem;
}

/* ======= BENEFITS SECTION ======= */
.benefits-section {
  background-color: var(--light-gray);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.benefit-item {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

/* ======= STATS SECTION ======= */
.stats-section {
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: var(--white);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-text {
  font-size: 1.1rem;
}

/* ======= TESTIMONIALS SECTION ======= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-content:before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -2rem;
  left: -1rem;
  color: var(--gray);
  opacity: 0.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.testimonial-author h4 {
  margin-bottom: 0.2rem;
}

.testimonial-author p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ======= PROCESS SECTION ======= */
.process-section {
  background-color: var(--light-gray);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.process-step {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.step-number {
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}

/* ======= CONTACT SECTION ======= */
.form-container {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--gray);
  border-radius: 5px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-check {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.form-check input {
  margin-right: 0.5rem;
  margin-top: 0.3rem;
}

.form-check label {
  font-size: 0.9rem;
}

.error-message {
  color: #ff3860;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-notice {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: right;
}

/* ======= FAQ SECTION ======= */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.faq-item {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-toggle {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-question {
  display: block;
  padding: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

.faq-question:after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.faq-toggle:checked ~ .faq-question:after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

/* ======= FOOTER ======= */
footer {
  background-color: #333;
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h3:after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--gradient-end);
  margin-top: 0.5rem;
}

.footer-column p,
.footer-column address {
  margin-bottom: 1rem;
  font-style: normal;
  color: var(--light-gray);
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--light-gray);
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ======= COOKIE POPUP ======= */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  padding: 1rem;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-content p {
  margin: 0;
  flex: 1;
}

#acceptCookies {
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#acceptCookies:hover {
  opacity: 0.9;
}

/* ======= LEGAL PAGES ======= */
.legal-container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.legal-container h1 {
  text-align: center;
  margin-bottom: 3rem;
}

.legal-content {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-content h2 {
  text-align: left;
  margin: 2rem 0 1rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h2:after {
  margin-left: 0;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin-bottom: 1.5rem;
}

/* ======= THANK YOU PAGE ======= */
.danke-container {
  margin: 8rem auto 5rem;
  border: 1px solid #ccc;
  padding: 2rem;
  text-align: center;
  max-width: 600px;
}

/* ======= RESPONSIVE DESIGN ======= */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 6rem 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
    margin-bottom: 2rem;
  }

  .nav-toggle-label {
    display: block;
    cursor: pointer;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background: var(--text-main);
    height: 2px;
    width: 2rem;
    position: relative;
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
  }

  .nav-toggle-label span::before {
    bottom: 7px;
  }

  .nav-toggle-label span::after {
    top: 7px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }

  .main-nav ul {
    display: block;
    padding: 1rem;
    text-align: center;
  }

  .main-nav li {
    margin: 0;
    margin-bottom: 1rem;
  }

  .nav-toggle:checked ~ .main-nav {
    height: auto;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-content button {
    align-self: flex-end;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 5rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .service-card,
  .testimonial-card,
  .benefit-item,
  .process-step {
    padding: 1.5rem;
  }

  .form-container {
    padding: 1.5rem;
  }
}
