/* Michal Ducháček Theme - Custom CSS */

/* Custom Properties */
:root {
  --primary-color: #2a1f14;
  --secondary-color: #c87820;
  --accent-color: #e09830;
  --text-dark: #241a10;
  --text-light: #7a6e62;
  --steel-blue: #2a1f14;
  --spark-orange: #c87820;
  --metal-gray: #5a5048;
  --light-gray: #f5f0eb;
  --white: #ffffff;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
  text-decoration: none;
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary-color);
  text-decoration: none;
}

/* Top Bar */
.top-bar {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 0;
  font-size: 14px;
}

.contact-info span {
  margin-right: 20px;
}

.contact-info i {
  margin-right: 5px;
}

.social-links {
  text-align: right;
}

.social-links a {
  color: var(--white);
  margin-left: 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
}

/* Main Navigation */
.main-nav {
  background-color: var(--white);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand .logo {
  max-height: 50px;
}

.navbar-brand {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.navbar-brand .logo-img-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  height: 70px;
  margin: -15px 0;
  padding: 4px;
}

.navbar-brand .logo-img {
  height: 100%;
  width: auto;
}

.navbar-brand .logo-text {
  margin: 0;
}

.logo-text {
  color: var(--primary-color);
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  margin: 0;
  font-size: 28px;
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 15px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.quote-btn {
    margin-left: 20px !important;
    color: var(--white) !important;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
              url('../images/dashboard-image-new.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  margin-top: 2rem;
}

.hero-buttons .btn {
  margin-right: 15px;
  margin-bottom: 10px;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 24px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Features Section */
.features-section {
  padding: 80px 0;
}

.feature-box {
  text-align: center;
  padding: 30px 20px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-box h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* About Section */
.about-section {
  padding: 80px 0;
}

.about-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: var(--light-gray);
  border: 4px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.about-avatar i {
  font-size: 100px;
  color: var(--metal-gray);
  line-height: 1;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-item p {
  color: var(--text-light);
  margin: 0;
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.service-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 25px;
}

.service-card h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* References Section */
.reference-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  text-align: center;
  overflow: hidden;
}

.reference-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.reference-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.reference-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.reference-card:hover .reference-image img {
  transform: scale(1.05);
}

.reference-content {
  padding: 30px 25px;
}

.reference-content .fa-quote-left {
  font-size: 2rem;
  color: var(--secondary-color);
  display: block;
}

.reference-content p {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 25px;
  line-height: 1.6;
}

.reference-author h5 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-weight: 600;
}

.reference-author span {
  color: var(--text-light);
  font-size: 14px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Contact Section on Homepage */
.contact-section {
  background: var(--light-gray);
  padding: 80px 0;
}

.contact-section h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-section h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-section p {
  color: var(--text-light);
  margin-bottom: 30px;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.breadcrumb {
  background: transparent;
  justify-content: center;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--white);
}

/* Value Boxes */
.value-box {
  text-align: center;
  padding: 30px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  height: 100%;
}

.value-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.value-box h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Team Section */
.team-section {
  padding: 80px 0;
}

.team-member {
  text-align: center;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-member h4 {
  color: var(--primary-color);
  margin: 20px 0 5px;
}

.team-member p {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.team-member span {
  color: var(--text-light);
  font-size: 14px;
  padding: 0 20px 20px;
  display: block;
}

/* Process Section */
.process-section {
  padding: 80px 0;
}

.process-step {
  text-align: center;
  padding: 30px 20px;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.process-step h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Service Detail Pages */
.services-detail {
  padding: 80px 0;
}

.service-content {
  padding-left: 30px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.service-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.service-features i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 14px;
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-widget h5 {
  color: var(--accent-color);
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-info i {
  color: var(--accent-color);
  margin-right: 10px;
  margin-top: 3px;
  width: 20px;
}

.footer-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  color: var(--white);
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: rgba(255,255,255,0.7);
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form .form-control {
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(200, 120, 32, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.contact-info-wrapper {
  background: var(--primary-color);
  color: var(--white);
  padding: 40px;
  border-radius: 8px;
  height: 100%;
}

.contact-info-wrapper h3 {
  color: var(--white);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
}

.contact-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.contact-icon i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.contact-details h5 {
  color: var(--accent-color);
  margin-bottom: 8px;
  font-size: 1rem;
}

.contact-details p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.6;
}

.map-section {
  height: 400px;
  position: relative;
}

.map-placeholder {
  height: 100%;
  background: linear-gradient(rgba(42, 31, 20, 0.8), rgba(200, 120, 32, 0.6)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect width="1200" height="400" fill="%23228B22"/><circle cx="300" cy="100" r="30" fill="%232d5831" opacity="0.4"/><circle cx="900" cy="200" r="50" fill="%238B4513" opacity="0.3"/></svg>');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.map-overlay {
  width: 100%;
  text-align: center;
  color: var(--white);
}

.map-overlay h3 {
  color: var(--white);
  margin-bottom: 20px;
}

.map-overlay p {
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .service-content {
    padding-left: 0;
    margin-top: 30px;
  }

  .reference-image {
    height: 150px;
  }

  .reference-content {
    padding: 20px 15px;
  }

  .social-links {
    text-align: left;
    margin-top: 10px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .contact-info span {
    margin-right: 10px;
    margin-bottom: 10px;
    display: block;
  }
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.375rem;
  display: block;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-size: 1.8rem;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}
