/* ============================================
   Cukrárna Šárka - Main Stylesheet
   Exact design from original WordPress site
   ============================================ */

/* CSS Variables - Exact colors from database */
:root {
  /* Colors */
  --color-accent: #c19d56;
  --color-accent-blue: #3648d6;
  --color-background: #ffffff;
  --color-text: #000000;
  --color-text-gray: #707070;
  --color-border: #aaaaaa;
  --color-border-hover: #0a0a0a;

  /* Fonts */
  --font-logo: 'Great Vibes', cursive;
  --font-nav: 'Montserrat', sans-serif;
  --font-body: 'Cormorant', serif;
  --font-heading: 'Public Sans', sans-serif;
  --font-testimonial: 'Castoro', serif;

  /* Spacing */
  --spacing-column: 50px;
  --spacing-header: 28px;
  --spacing-section: 80px;

  /* Border Radius */
  --radius-button: 4px;
  --radius-card: 8px;

  /* Transitions */
  --transition-speed: 0.3s;
  --transition-easing: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ============================================
   Reset & Base Styles
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   Background Slideshow
   ============================================ */

.bg-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.bg-image.active {
  opacity: 1;
}

.bg-slideshow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.70) 30%,
    rgba(255, 255, 255, 0.65) 60%,
    rgba(255, 255, 255, 0.72) 100%
  );
  z-index: 1;
  pointer-events: none;
}

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

/* ============================================
   Typography
   ============================================ */

h1 {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 50px;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--color-accent);
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8),
               0 0 20px rgba(255, 255, 255, 0.6);
}

h2 {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
               0 0 15px rgba(255, 255, 255, 0.7);
}

h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

h4 {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 50px;
  line-height: 1.2;
}

h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.6;
}

p {
  margin-bottom: 1em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: all var(--transition-speed) var(--transition-easing);
}

a:hover {
  color: var(--color-accent);
  opacity: 0.8;
}

strong, b {
  font-family: var(--font-heading);
  font-weight: 600;
}

em, i {
  font-style: italic;
}

/* ============================================
   Header
   ============================================ */

.site-header {
  background-color: rgba(255, 255, 255, 0.98);
  padding: var(--spacing-header) 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(193, 157, 86, 0.1);
  transition: all var(--transition-speed) var(--transition-easing);
}

.site-header.scrolled {
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.logo h1 {
  margin: 0;
  font-size: 40px;
  text-align: center;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-navigation a {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding: 5px 0;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-speed) var(--transition-easing);
}

.main-navigation a:hover::after {
  width: 100%;
}

.main-navigation a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  transition: all var(--transition-speed);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  padding: 120px 20px 80px;
  position: relative;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 60px 40px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-size: 72px;
  margin-bottom: 20px;
  color: var(--color-text);
  text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.9),
               0 0 30px rgba(255, 255, 255, 0.8),
               0 0 10px rgba(255, 255, 255, 1);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 24px;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
               0 0 15px rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.cta-button {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--color-accent);
  color: #fff;
  font-family: var(--font-nav);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius-button);
  box-shadow: 0 4px 15px rgba(193, 157, 86, 0.3);
  transition: all var(--transition-speed) var(--transition-easing);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193, 157, 86, 0.4);
  opacity: 1;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ============================================
   About Section
   ============================================ */

.about-section {
  padding: var(--spacing-section) 0;
  background-color: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(5px);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  color: var(--color-accent);
  margin-bottom: 30px;
}

.about-text p {
  font-size: 21px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ============================================
   Products Section
   ============================================ */

.products-section {
  padding: var(--spacing-section) 0;
  background-color: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(5px);
}

.section-title {
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  font-style: italic;
  color: var(--color-text-gray);
  margin-bottom: 50px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-column);
  margin-top: 40px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-speed) var(--transition-easing);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(193, 157, 86, 0.2);
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition-easing);
}

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

.product-info {
  padding: 25px;
}

.product-info h3 {
  color: var(--color-text);
  font-size: 24px;
  margin-bottom: 10px;
}

.product-info p {
  color: var(--color-text-gray);
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================
   Events/Gallery Section
   ============================================ */

.events-section {
  padding: var(--spacing-section) 0;
  background-color: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(5px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  cursor: pointer;
  transition: transform var(--transition-speed) var(--transition-easing);
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition-easing);
}

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

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
  padding: var(--spacing-section) 0;
  background-color: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(5px);
}

.contact-content {
  max-width: 800px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

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

.contact-item h3 {
  color: var(--color-accent);
  font-size: 20px;
  margin-bottom: 10px;
}

.contact-item p {
  color: var(--color-text-gray);
  line-height: 1.8;
}

.contact-form-wrapper {
  background: #fafafa;
  padding: 40px;
  border-radius: var(--radius-card);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--color-background);
  transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-border-hover);
  box-shadow: 0 0 0 3px rgba(193, 157, 86, 0.1);
}

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

.submit-button {
  width: 100%;
  padding: 15px 35px;
  background-color: var(--color-accent);
  color: #fff;
  font-family: var(--font-nav);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-easing);
  box-shadow: 0 4px 15px rgba(193, 157, 86, 0.3);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193, 157, 86, 0.4);
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
  padding: var(--spacing-section) 0;
  background-color: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(5px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.service-card {
  background: #fafafa;
  padding: 40px 30px;
  border-radius: var(--radius-card);
  text-align: center;
  transition: all var(--transition-speed) var(--transition-easing);
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 25px rgba(193, 157, 86, 0.15);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--color-accent);
  font-size: 24px;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--color-text-gray);
  font-size: 16px;
  line-height: 1.7;
}

/* ============================================
   Contact Enhancements
   ============================================ */

.contact-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-speed);
}

.contact-link:hover {
  color: var(--color-accent);
  opacity: 0.8;
  text-decoration: underline;
}

.map-link {
  display: inline-block;
  color: var(--color-accent);
  font-size: 16px;
  margin-top: 10px;
  transition: all var(--transition-speed);
}

.map-link:hover {
  opacity: 0.8;
  transform: translateX(5px);
}

.contact-note {
  font-size: 14px;
  color: var(--color-text-gray);
  font-style: italic;
  margin-top: 10px;
}

.hours-table {
  width: 100%;
  margin-top: 15px;
}

.hours-table tr {
  line-height: 2;
}

.hours-table td {
  padding: 8px 0;
  color: var(--color-text-gray);
  font-size: 16px;
}

.hours-table td:first-child {
  width: 60%;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--color-text);
}

.form-note {
  font-size: 13px;
  color: var(--color-text-gray);
  font-style: italic;
  margin-top: 10px;
  text-align: center;
}

/* ============================================
   Map Section
   ============================================ */

.map-container {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(193, 157, 86, 0.2);
}

.map-title {
  text-align: center;
  color: var(--color-accent);
  font-size: 32px;
  margin-bottom: 30px;
}

.map-wrapper {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-note {
  text-align: center;
  margin-top: 20px;
  color: var(--color-text-gray);
  font-size: 16px;
}

.map-note a {
  color: var(--color-accent);
  font-weight: 600;
}

/* ============================================
   About Section Enhancements
   ============================================ */

.about-rating {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(193, 157, 86, 0.2);
}

.stars {
  font-size: 28px;
  margin-bottom: 10px;
}

.rating-text {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
}

/* ============================================
   Hero Section Enhancements
   ============================================ */

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-button-outline {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  box-shadow: none;
}

.cta-button-outline:hover {
  background-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(193, 157, 86, 0.4);
}

/* ============================================
   Footer Enhancements
   ============================================ */

.footer-address {
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-gray);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background-color: var(--color-background);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(193, 157, 86, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.footer-column p {
  color: var(--color-text-gray);
  font-size: 16px;
  line-height: 1.8;
}

.footer-column ul {
  list-style: none;
}

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

.footer-column ul li a {
  color: var(--color-accent);
  font-size: 16px;
  transition: all var(--transition-speed);
}

.footer-column ul li a:hover {
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: var(--color-accent);
  font-size: 16px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(193, 157, 86, 0.1);
}

.footer-bottom p {
  color: var(--color-accent);
  font-size: 14px;
}

/* ============================================
   Back to Top Button
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 15px rgba(193, 157, 86, 0.3);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(193, 157, 86, 0.4);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1000px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-background);
    padding: 100px 40px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-speed);
    z-index: 999;
  }

  .main-navigation.active {
    right: 0;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .main-navigation a {
    font-size: 16px;
  }

  .hero-title {
    font-size: 48px;
  }

  h2 {
    font-size: 42px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 18px;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 24px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-form-wrapper {
    padding: 30px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .logo h1 {
    font-size: 32px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--color-accent);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .site-header,
  .back-to-top,
  .mobile-menu-toggle,
  .contact-form-wrapper {
    display: none;
  }
}
