/* 
  Design System for Slovenský vidiek
  Based on user requirements and provided screenshot
*/

:root {
  /* Colors */
  --color-primary: #005e4a;
  --color-secondary: #ffeeab;
  --color-text: #53585e;
  --color-text-dark: #333333;
  --color-background-light: #f9f9f9;
  --color-white: #ffffff;
  --color-black: #000000;
  
  /* Spacing (8px grid) */
  --space-xs: 0.5rem;   /* 8px */
  --space-s: 1rem;     /* 16px */
  --space-m: 1.5rem;   /* 24px */
  --space-l: 2rem;     /* 32px */
  --space-xl: 3rem;    /* 48px */
  --space-xxl: 4rem;   /* 64px */
  --space-xxxl: 8rem;  /* 128px */
  
  /* Container & Layout */
  --container-width: 85%;
  --text-max-width: 70%;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-text: 'Montserrat', sans-serif;
  --font-signature: 'Great Vibes', cursive;
  
  /* Shadows & Effects */
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --transition-smooth: all 0.3s ease;
  --radius-m: 8px;
}

/* Global Reset & Base Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 50px; /* Offset for the sticky header */
}

body {
  font-family: var(--font-text);
  font-weight: 300; /* Montserrat thin */
  line-height: 1.6;
  color: var(--color-text);
  overflow-x: hidden;
  background-color: var(--color-white);
}

/* Typographic Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: var(--space-m); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  font-size: 1rem; /* 16px */
  line-height: 1.8;
  margin-bottom: var(--space-s);
  max-width: var(--text-max-width);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

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

/* Base Layout Components */
.container {
  width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.section {
  padding: var(--space-xxxl) 0;
}

.grid {
  display: grid;
  gap: var(--space-l);
}

/* Utility Classes */
.text-center { text-align: center; }
.m-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-m);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  filter: brightness(1.1);
}

/* Header & Navigation */
header {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-s) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  flex-shrink: 0;
  position: relative;
  width: 280px; /* Increased to accommodate 3x width */
  height: 40px; 
  z-index: 1001;
}

.logo img {
  height: 120px;
  width: auto;
  position: absolute;
  top: -20px;
  left: 0;
  z-index: 1002;
  border-radius: 4px;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: var(--space-l);
}

.nav-menu a {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-secondary);
  border-bottom: 1px solid rgba(255, 238, 171, 0.4); /* Subtle underline per image */
  padding-bottom: 2px;
}

.nav-menu a:hover {
  border-bottom-color: var(--color-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-l);
}

.contact-label {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1.1rem;
}

.btn-outline-phone {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--color-secondary);
  border-radius: 12px;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.btn-outline-phone i {
  color: var(--color-white);
}

.btn-outline-phone:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.btn-outline-phone:hover i {
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Neutral overlay for better text readability */
  z-index: 0;
}

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

.hero h1 {
  color: var(--color-white);
  margin-bottom: 0;
}

.hero-tagline {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: var(--space-s);
  color: var(--color-white);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Info Section (Split Layout) */
.info-section .grid {
  grid-template-columns: 0.45fr 1.55fr; /* Reduced image column further by 1/3 (from 0.7 to 0.45) */
  align-items: center;
}

.info-image img {
  width: 100%;
  border-radius: 4px; /* Subtle rounding per image */
  box-shadow: var(--shadow-subtle);
}

.info-text {
  padding-left: var(--space-m);
}

.info-text h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.intro-line {
  width: 80px;
  height: 2px;
  background-color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.info-text h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.3;
}

.info-text p {
  max-width: 100%; /* In split layout, use full available width */
  margin-bottom: 1.5rem;
}

/* Banner Section with Parallax Effect */
.banner {
  height: 60vh;
  min-height: 450px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url('obrazky/straw-gbab49f37f_1280.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Simple parallax effect */
}

/* Fallback for mobile where background-attachment: fixed can be glitchy */
@media (hover: none) {
  .banner {
    background-attachment: scroll;
  }
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.banner .container {
  z-index: 2;
  width: 90%; /* Near full-width container */
}

.banner-content {
  max-width: 100%; /* Full width text as requested */
  text-align: center;
}

.banner-line {
  width: 200px;
  height: 2px;
  background-color: var(--color-secondary);
  margin: 1.5rem auto; /* Centralized line */
}

/* Postup Section */
.steps-section .grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.step-card {
  display: flex;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}

.step-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 1.5rem;
}

.image-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.image-collage img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.image-collage img:nth-child(1) { grid-row: span 2; height: 100%; }

/* FAQ Section (Cards) */
.faq-section {
  background-color: var(--color-secondary);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-l);
}

.faq-card {
  background: rgba(255, 255, 255, 0.5);
  padding: var(--space-l);
  border-radius: var(--radius-m);
  transition: var(--transition-smooth);
}

.faq-card:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-subtle);
}

.faq-card h4 {
  margin-bottom: var(--space-s);
}

/* Footer & Signature */
footer {
  padding: var(--space-xxl) 0;
  background-color: var(--color-white);
}

.signature {
  font-family: var(--font-signature);
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-main-row {
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-bottom: var(--space-xs);
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .footer-main-row {
    flex-direction: column;
    gap: var(--space-m);
    align-items: center; /* Centered alignment on mobile */
  }
  
  .footer-contact a {
    justify-content: center;
  }
}

/* Footer Bottom Bar */
.footer-bottom {
  background-color: var(--color-primary);
  padding: var(--space-s) 0;
  color: var(--color-white);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-white);
  max-width: 100%;
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  transition: var(--transition-smooth);
}

.back-to-top:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.back-to-top i {
  font-size: 1rem;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-white);
  transition: var(--transition-smooth);
}

/* Cookie Bar */
#cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-m);
  z-index: 1001;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsiveness */
@media (max-width: 1200px) {
  :root {
    --container-width: 90%;
  }
  p { max-width: 85%; }
  
  .nav-container {
    flex-wrap: nowrap;
  }
  
  .header-right {
    width: auto;
    margin-left: auto;
    margin-right: var(--space-m);
    padding-top: 0;
    display: flex;
    align-items: center;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    background-color: var(--color-primary);
    padding: var(--space-l);
    text-align: center;
    z-index: 1000;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
    border-bottom-left-radius: var(--radius-m);
  }

  .nav-menu ul {
    flex-direction: column;
    gap: var(--space-m);
    align-items: center;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .hamburger {
    display: flex;
  }

  .contact-label {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    width: 75%;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }
  
  .image-collage {
    display: none;
  }
  
  .contact-label {
    display: none; /* Hide 'Kontaktujte nás' on mobile for space */
  }
  
  .header-right {
    gap: var(--space-s);
  }

  .btn-outline-phone {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .logo {
    width: 80px;
    height: 30px;
  }
  
  .logo img {
    height: 80px;
    top: -15px;
  }
}

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

.animate {
  animation: fadeIn 0.8s ease forwards;
}
