/* 
   Domain - Finanční audit
   Hlavní CSS soubor
*/

/* Základní reset a nastavení */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  font-size: 16px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Barvy */
:root {
  --primary: #00a89d; /* Bírůzovo-zelená */
  --dark: #1e1e1e; /* Grafitová */
  --light: #f5ebdd; /* Světlý béž */
  --accent: #ff6f61; /* Korálová */
  --text: #222222; /* Text */
  --white: #ffffff;
  --gray: #f5f5f5;
  --dark-gray: #777777;
  --border: #e0e0e0;
}

/* Typografie */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

/* Kontejner */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sekce */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  margin: 1rem auto 0;
}

/* Header a navigace */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.logo a {
  color: var(--primary);
  text-decoration: none;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  padding: 10px;
  order: 2;
}

.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li:not(:last-child) {
  margin-right: 1.5rem;
}

.nav-list a {
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-list a:hover {
  color: var(--primary);
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.btn-nav {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 30px;
}

.btn-nav:hover {
  background-color: var(--accent);
  color: var(--white) !important;
}

.btn-nav::after {
  display: none;
}

/* Tlačítka */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent);
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Hero sekce */
.hero-section {
  position: relative;
  background-image: url("./img/R8OPY.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 8rem 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-section h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 3rem;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* O společnosti */
.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

/* Služby */
.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.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-content p {
  margin-bottom: 1.5rem;
}

/* Výhody */
.benefits-section {
  background-color: var(--light);
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  display: flex;
  margin-bottom: 2rem;
}

.benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  margin-right: 1rem;
}

.benefit-text {
  flex: 1;
}

.benefit-text h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Kroky spolupráce */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.step-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

/* Testimonials */
.testimonials-section {
  background-color: var(--gray);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  color: var(--primary);
}

.testimonial-author span {
  font-size: 0.875rem;
  color: var(--dark-gray);
}

/* Formulář */
.order-form-section {
  background-color: var(--light);
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 168, 157, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
}

/* Kontakty */
.contact-content {
  display: flex;
  gap: 3rem;
}

.contact-info {
  flex: 1;
}

.contact-map {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 5px;
  overflow: hidden;
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: block;
  padding: 1.25rem;
  background-color: var(--white);
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-toggle:checked + .faq-question {
  background-color: var(--primary);
  color: var(--white);
}

.faq-toggle:checked + .faq-question::after {
  content: "-";
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: var(--white);
  padding: 0 1.25rem;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 1.25rem;
}

/* Footer */
.main-footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}

.footer-contact,
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-contact li,
.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-contact a,
.footer-links a {
  color: var(--light);
  transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.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: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 9999;
  background-color: var(--dark);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 400px;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-content p {
  margin-bottom: 0;
}

/* Stránka Thank You */
.thank-you-section {
  display: flex;
  align-items: center;
  min-height: 60vh;
  text-align: center;
}

.thank-you-content {
  max-width: 600px;
  margin: 8rem auto 5rem;
  padding: 3rem;
  border: 2px solid var(--primary);
  border-radius: 10px;
}

.thank-you-actions {
  margin-top: 2rem;
}

/* Policy stránky */
.policy-section {
  padding: 5rem 0;
}

.policy-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.policy-block {
  margin-bottom: 2.5rem;
}

.policy-block h2 {
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.policy-block h3 {
  color: var(--dark);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Responzivní design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .about-content,
  .contact-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .menu-icon {
    display: block;
  }

  .nav-list {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .menu-toggle:checked ~ .nav-list {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list li {
    margin: 0.75rem 0;
  }

  .hero-section {
    min-height: 500px;
    padding: 6rem 0;
  }

  .hero-section h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }

  section {
    padding: 3rem 0;
  }

  .hero-section {
    min-height: 400px;
    padding: 4rem 0;
  }

  .contact-form,
  .policy-content {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.6rem 1.25rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Animace pomocí CSS */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-content,
.section-title,
.service-card,
.benefit-text,
.step-card,
.testimonial-card {
  animation: slideInUp 0.8s ease forwards;
}
@media (max-width: 768px) {
  .menu-toggle:checked ~ .main-nav .nav-list {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* 2) Щоб absolute-меню позиціонувалось від хедера */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
}
.header-content {
  position: relative;
}

/* 3) На мобайлі меню поверх контенту */
@media (max-width: 768px) {
  .nav-list {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999; /* щоб не ховалось за хедером */
  }
}
