/* Koupelny Štefl - Main Stylesheet */

:root {
  /* Light theme colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fa;
  --bg-gradient-start: #1a3a52;
  --bg-gradient-mid: #1a4d7a;
  --bg-gradient-end: #205493;
  --text-primary: #333;
  --text-secondary: #555;
  --text-tertiary: #666;
  --text-inverse: #ffffff;
  --text-light: rgba(255, 255, 255, 0.95);
  --heading-color: #1a3a52;
  --link-hover: #1a4d7a;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --accent-primary: #d4870f;
  --accent-secondary: #f5a623;
  --card-bg: #ffffff;
  --footer-bg-start: #1a3a52;
  --footer-bg-end: #1a4d7a;
  --footer-bottom: #0f2637;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
}

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

.site-container {
  min-height: 100vh;
}

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

/* Header Styles */
.header-top {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 100%);
  color: var(--text-inverse);
  padding: 12px 0;
  font-size: 14px;
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-inverse);
}

.contact-item:hover {
  opacity: 0.9;
}

.header-main {
  background: var(--bg-primary);
  box-shadow: 0 2px 10px var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-main-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--heading-color);
}

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

.main-nav {
  display: flex;
  gap: 35px;
}

.nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  position: relative;
  padding: 5px 0;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--link-hover);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--link-hover);
}

/* Icon Styles */
.icon-phone::before { content: '📞'; }
.icon-email::before { content: '✉️'; }
.icon-clock::before { content: '🕐'; }
.icon-location::before { content: '📍'; }
.icon-key::before { content: '🔑'; }
.icon-quality::before { content: '✨'; }
.icon-time::before { content: '⚡'; }
.icon-experience::before { content: '🎓'; }
.icon-material::before { content: '🛠️'; }
.icon-satisfaction::before { content: '😊'; }

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
  color: var(--text-inverse);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/img/hero-bathroom.jpg') center center / cover no-repeat;
  opacity: 0.35;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
    rgba(26, 58, 82, 0.6) 0%,
    rgba(26, 77, 122, 0.65) 50%,
    rgba(32, 84, 147, 0.7) 100%
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 35px;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  padding: 30px 20px;
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-text h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: 5px;
}

.cta-text p {
  color: var(--text-light);
  font-size: 16px;
}

.btn-cta {
  background: var(--bg-primary);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 18px;
  padding: 15px 35px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px var(--shadow-medium);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-medium);
}

/* Sections */
section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  color: var(--heading-color);
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
}

/* Services Section */
.services-section {
  padding: 80px 20px;
}

/* Homepage services grid - multiple columns */
body.homepage .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Services page grid - single column for detailed cards */
body:not(.homepage) .services-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 50px;
}

.service-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.service-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.service-card h4 {
  padding: 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
  text-align: center;
  margin: 0;
}

/* Features Section */
.features-section {
  background: var(--bg-secondary);
  padding: 80px 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow-light);
}

.feature-icon {
  font-size: 48px;
  color: var(--accent-primary);
  margin-bottom: 20px;
  display: block;
}

.feature-card h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-tertiary);
  line-height: 1.7;
  margin: 0;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-light);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.about-feature {
  display: flex;
  gap: 12px;
}

.about-feature i {
  font-size: 28px;
  color: var(--accent-primary);
}

.about-feature h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--heading-color);
  margin: 0;
}

.about-feature p {
  margin: 4px 0 0 0;
  color: var(--text-tertiary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px var(--shadow-light);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.btn-outline {
  background: var(--bg-primary);
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: var(--text-inverse);
}

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

/* Footer */
.footer-top {
  background: linear-gradient(135deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%);
  color: var(--text-inverse);
  padding: 50px 20px;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.footer-contact-item {
  display: flex;
  gap: 15px;
}

.footer-contact-item i {
  font-size: 28px;
  color: var(--accent-secondary);
}

.footer-contact-item span {
  display: block;
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 5px;
}

.footer-contact-item strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.footer-contact-item a {
  color: var(--text-inverse);
  text-decoration: none;
}

.footer-bottom {
  background: var(--footer-bottom);
  color: rgba(255,255,255,0.7);
  padding: 25px 20px;
  text-align: center;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

.footer-credits {
  margin-top: 10px;
}

.footer-credits a {
  color: var(--accent-secondary);
  font-weight: 600;
  text-decoration: none;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 100%);
  color: var(--text-inverse);
  padding: 60px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 15px;
}

.breadcrumbs {
  font-size: 14px;
  opacity: 0.9;
}

.breadcrumbs a {
  color: var(--text-inverse);
  text-decoration: underline;
}

.section-intro {
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.8;
}

/* Services Detail Cards - for services page only */
body:not(.homepage) .services-section .service-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-light);
  margin-bottom: 60px;
}

/* Alternate layout - odd cards (image left, text right) */
body:not(.homepage) .services-section .service-card:nth-child(odd) .service-image-wrapper {
  order: 1;
}

body:not(.homepage) .services-section .service-card:nth-child(odd) .service-content {
  order: 2;
}

/* Even cards (image right, text left) */
body:not(.homepage) .services-section .service-card:nth-child(even) .service-image-wrapper {
  order: 2;
}

body:not(.homepage) .services-section .service-card:nth-child(even) .service-content {
  order: 1;
}

body:not(.homepage) .service-image-wrapper {
  height: 100%;
}

body:not(.homepage) .services-section .service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.service-content {
  padding: 30px;
}

.service-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 16px;
}

.service-features li {
  color: var(--text-primary);
}

.service-feature-item::before,
.check-icon {
  color: var(--heading-color);
  font-weight: 700;
  margin-right: 6px;
}

.service-feature-item::before {
  content: '✓';
  font-weight: bold;
  font-size: 18px;
}

.service-actions {
  margin-top: 20px;
}

.service-actions .btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

/* Services CTA */
.services-cta {
  margin-top: 70px;
  text-align: center;
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: 12px;
}

.services-cta h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.services-cta p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact Page */
.contact-section {
  padding: 80px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--heading-color);
  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-detail i {
  font-size: 24px;
  color: var(--accent-primary);
}

.contact-detail strong {
  display: block;
  color: var(--heading-color);
  margin-bottom: 5px;
}

.contact-detail p,
.contact-detail a {
  color: var(--text-secondary);
  margin: 0;
}

.contact-form {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: 12px;
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 25px;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

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

.btn-submit {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: var(--text-inverse);
  padding: 14px 40px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

/* References/Gallery */
.references-section {
  padding: 80px 20px;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.reference-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: all 0.3s ease;
}

.reference-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.reference-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-height: 280px;
}

.reference-info {
  padding: 20px;
}

.reference-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.reference-info p {
  color: var(--text-tertiary);
  font-size: 14px;
  margin: 0;
}

/* Reference specific styles */
.reference-image {
  background-size: cover;
  background-position: center;
  height: 200px;
  position: relative;
}

.reference-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.reference-image:hover .reference-overlay {
  opacity: 1;
}

.view-icon {
  font-size: 24px;
}

.image-count {
  font-size: 14px;
}

.reference-content {
  padding: 16px;
}

.reference-content h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--heading-color);
  margin: 0 0 6px 0;
}

.reference-meta {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.reference-content p {
  color: var(--text-tertiary);
  font-size: 14px;
  margin: 0;
}

.references-cta,
.contact-cta {
  margin-top: 60px;
  text-align: center;
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: 12px;
}

.references-cta h2,
.contact-cta h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.references-cta p,
.contact-cta p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Icon definitions */
.icon-id::before { content: '🆔'; }

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
    min-height: 300px;
  }

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

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

  .page-header h1 {
    font-size: 32px;
  }

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

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

  .main-nav {
    display: none;
  }

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

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

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

  .cta-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact {
    grid-template-columns: 1fr;
  }

  .service-features {
    grid-template-columns: 1fr;
  }

  body:not(.homepage) .services-section .service-card {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 32px;
  padding: 15px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-radius: 4px;
  font-weight: 300;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  top: -50px;
  right: 0;
}

.lightbox-prev {
  left: -70px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-info {
  color: white;
  text-align: center;
  margin-top: 20px;
}

.lightbox-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

.lightbox-info p {
  font-size: 14px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}
