/*
Theme Name: BAUFOX
Theme URI: https://baufox.cz
Description: Moderní WordPress téma pro BAUFOX s.r.o. - stínící technika Brno
Version: 1.0
Author: BAUFOX s.r.o.
Author URI: https://baufox.cz
Text Domain: baufox
*/

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700;800&display=swap');

/* Root Variables */
:root {
  --background: 0 0% 100%;
  --foreground: 30 10% 15%;
  --card: 0 0% 100%;
  --card-foreground: 30 10% 15%;
  --primary: 15 85% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 30 25% 95%;
  --secondary-foreground: 30 10% 15%;
  --muted: 30 20% 96%;
  --muted-foreground: 30 8% 45%;
  --accent: 15 85% 55%;
  --accent-foreground: 0 0% 100%;
  --border: 30 15% 90%;
  --radius: 0.75rem;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  font-family: 'Urbanist', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.logo img {
  height: 2rem;
  transition: opacity 0.2s;
}

.logo:hover img {
  opacity: 0.8;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: color 0.2s;
}

.main-nav a:hover {
  color: hsl(var(--primary));
}

.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: hsl(var(--foreground));
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-bottom: 1rem;
  animation: slideDown 0.3s ease;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: hsl(var(--primary));
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 6rem 1rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 56rem;
  animation: fadeInUp 0.7s ease;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

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

/* Services Section */
.services-section {
  padding: 5rem 0;
  background-color: hsl(var(--secondary) / 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.7s ease;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid hsl(var(--border));
  animation: fadeInUp 0.7s ease;
}

.service-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background-color 0.3s;
}

.service-card:hover .service-icon {
  background-color: hsl(var(--primary) / 0.2);
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: hsl(var(--primary));
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio-section {
  padding: 5rem 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.7s ease;
}

.portfolio-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.portfolio-category {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-overlay h3 {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.25rem;
}

.portfolio-overlay p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* About Section */
.about-section {
  padding: 5rem 0;
}

.about-content {
  max-width: 64rem;
  margin: 0 auto;
}

.about-text {
  margin-bottom: 3rem;
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  line-height: 1.8;
  animation: fadeInUp 0.7s ease;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid hsl(var(--border));
  animation: fadeInUp 0.7s ease;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: hsl(var(--primary));
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background-color: hsl(var(--secondary) / 0.3);
}

.contact-content {
  max-width: 64rem;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info {
  animation: fadeInUp 0.7s ease;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: hsl(var(--primary));
}

.contact-details h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: hsl(var(--muted-foreground));
}

.contact-details a {
  color: hsl(var(--primary));
  transition: opacity 0.2s;
}

.contact-details a:hover {
  opacity: 0.8;
}

.contact-form {
  animation: fadeInUp 0.7s ease;
  animation-delay: 0.2s;
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 0.25rem);
  font-family: 'Urbanist', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.form-control:focus {
  outline: none;
  border-color: hsl(var(--primary));
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
}

/* Footer */
.site-footer {
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo img {
  height: 2rem;
  filter: brightness(0) invert(1);
}

.footer-info p {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.footer-info p:last-child {
  font-size: 0.75rem;
  opacity: 0.6;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-contact a {
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-contact a:hover {
  opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .logo img {
    height: 2.5rem;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-content p {
    font-size: 1.25rem;
  }

  .section-header h2 {
    font-size: 3rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-contact {
    align-items: flex-end;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
