@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root{
  --max-w: 1200px;
  --accent: #8a4b23;
  --accent-2: #c98b5a;
  --muted: #6b6b6b;
  --bg: #faf7f5;
  --card-bg: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 4px 12px rgba(20,20,20,0.06);
  --shadow-md: 0 12px 30px rgba(20,20,20,0.09);
  --shadow-lg: 0 24px 60px rgba(20,20,20,0.12);
  --header-height: 160px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  padding-top: var(--header-height);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}

/* ===== FIXED HEADER ===== */
header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 9999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(110,84,64,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 6px 30px rgba(0,0,0,0.08);
}

/* ===== NAVBAR ===== */
nav {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

nav .logo img {
  height: 140px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 6px;
}

nav ul li a:hover {
  color: var(--accent);
}

/* MOBILE MENU */
.menu-toggle{
  display:none;
  flex-direction:column;
  cursor:pointer;
  gap:5px;
}

.menu-toggle span{
  width:25px;
  height:3px;
  background:#333;
  border-radius:2px;
}

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

  nav {
    flex-wrap: wrap;
  }

  nav ul{
    display:none;
    flex-direction:column;
    width:100%;
    background:white;
    padding:1rem;
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
    margin-top: 10px;
    gap: 0.5rem;
  }

  nav ul.active{
    display:flex;
  }

  nav ul li a{
    height:auto;
    padding:10px;
  }
}

/* Hero */
.hero{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
  color:#fff;
  background-image: url('../assets/cinnamon_background1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,6,4,0.08), rgba(0,0,0,0.18));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding: 3.5rem 1.25rem;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  margin: 0 0 .6rem;
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 1.05rem;
  margin: 0 0 1.4rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: .9rem 1.3rem;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Section headings */
h2 {
  font-size: 1.6rem;
  color: #222;
  margin: 1.25rem 0;
}

h3 {
  font-size: 1.05rem;
  color: var(--accent);
  margin: .6rem 0;
}

/* Content layout */
section {
  padding: 3rem 0;
}

section > .container > p,
section > .container > div {
  color: var(--muted);
}

/* Cards & Grades grid */
.grades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.grade {
  background: var(--card-bg);
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid rgba(100, 70, 50, 0.04);
  transform: scale(0.9);
}

.grade h3 {
  margin-top: 0;
  margin-bottom: .5rem;
}

.grade p {
  margin: 0;
  color: #515151;
}

.grade:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 1100px) {
  .grades {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .grades {
    grid-template-columns: 1fr;
  }
}

/* Contact form styling */
#contact form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

#contact input[type='text'],
#contact input[type='email'],
#contact select,
#contact textarea {
  width: 100%;
  padding: .85rem;
  border-radius: 10px;
  border: 1px solid rgba(80, 60, 40, 0.09);
  background: linear-gradient(180deg, #fff, #fbfaf9);
  box-shadow: var(--shadow-sm);
  font-size: .95rem;
}

#contact textarea {
  min-height: 140px;
  resize: vertical;
  grid-column: 1 / -1;
}

#contact button {
  grid-column: 1 / -1;
  padding: 0.9rem;
  border-radius: 12px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

#contact button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 880px) {
  #contact form {
    grid-template-columns: 1fr;
  }
}

/* Contact page boxes (contact.html) */
.contact .wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

.box {
  background: linear-gradient(180deg, #fff, #fff);
  padding: 1.6rem;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(120, 80, 40, 0.04);
}

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

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

.push-right {
  margin-left: auto;
}

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

.info-item {
  padding: .45rem 0;
  border-bottom: 1px dashed rgba(200, 170, 140, 0.06);
}

.info-item:last-child {
  border-bottom: none;
}

li.list-item.info-item a[href^="mailto:"] {
  color: #8a4b23;
}

/* Footer */
footer {
  padding: 2rem 0;
  background: linear-gradient(180deg, rgba(230, 225, 221, 0.6), rgba(245, 243, 242, 0.6));
  text-align: center;
  color: #4a3b2f;
}

footer p {
  margin: .25rem 0;
}

/* Utility */
.rounded {
  border-radius: 12px;
}

.mb-5 {
  margin-bottom: 1.25rem;
}

.heading-upper {
  display: block;
  font-size: .9rem;
  color: var(--muted);
}

.heading-lower {
  display: block;
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 700;
}

/* Accessibility focus states */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(138, 75, 35, 0.12);
  outline-offset: 3px;
}

/* Small tweaks for older pages where .grades used in product.html */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   PRODUCTS SECTION
========================= */
.products {
  padding: 80px 20px;
  background: #f9f9f9;
  font-family: 'Inter', sans-serif;
}

.container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.section-title {
  text-align: center;
  font-size: 34px;
  color: #4b2e1e;
  margin-bottom: 30px;
}

.section-subtitle {
  color: #777;
  margin-bottom: 50px;
}

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

.product-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.product-card:hover {
  transform: translateY(-6px);
  background: #fff8ef;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #c58b2a, #e6b85c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card h3 {
  color: #4b2e1e;
  margin-bottom: 15px;
}

.product-card ul {
  list-style: none;
  padding: 0;
}

.product-card li {
  padding: 6px 0;
  color: #555;
  transition: color 0.2s;
}

.product-card li:hover {
  color: #c58b2a;
}

.product-card:nth-child(2) {
  animation-delay: 0.2s;
}
.product-card:nth-child(3) {
  animation-delay: 0.4s;
}
.product-card:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   CATALOG SECTION
========================= */
.catalog {
  padding: 80px 20px;
  background: #f8f8f8;
}

.catalog-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  text-align: center;
  justify-content: center;
}

.filter-btn {
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  background: #f2f2f2;
  transition: 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #111;
  color: #fff;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.catalog-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  position: relative;
}

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

.catalog-card::after {
  content: "";
  height: 3px;
  width: 0;
  background: #c58b2a;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: 0.3s;
}

.catalog-card:hover::after {
  width: 100%;
}

.catalog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 12px;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  overflow: hidden;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 52px 30px 30px;
  position: relative;
  animation: fadeIn 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  color: #111;
}

.modal-content ul {
  padding-left: 20px;
  margin: 20px 0;
}

.modal-extra {
  margin: 20px 0;
  padding: 16px;
  background: #f7f7f7;
  border-radius: 14px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 22px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .modal-content {
    max-width: 92vw;
    max-height: 90vh;
    padding: 48px 18px 20px;
  }

  .close {
    top: 10px;
    right: 14px;
    font-size: 30px;
  }

  .modal-image {
    max-height: 180px;
  }
}

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

/* Certificates section */
.certificates-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding-top: 20px;
}

.certificates {
  max-width: 200px;
  width: 100%;
  height: auto;
}

/* Contact section background image */
.contact {
  background: linear-gradient(120deg, rgba(201,139,90,0.10), rgba(138,75,35,0.08)), url('../assets/cinnamon_q1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* FOOTER BASE */
.site-footer{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 50px 30px;
  gap: 30px;
  background: linear-gradient(180deg, rgba(229, 201, 178, 0.299), rgba(245, 243, 242, 0.6));
  color: black;
  border-top: 3px solid rgba(45, 35, 35, 0.08);
}

.footer-left{
  justify-self: start;
  text-align: left;
}

.footer-center{
  justify-self: center;
  text-align: center;
}

.footer-right{
  justify-self: end;
  text-align: right;
}

.footer-logo{
  width: 150px;
  height: auto;
  opacity: 0.9;
  border-radius: 100%;
}

.footer-brand{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.footer-tagline{
  font-size: 15px;
  color: #363434e2;
  margin-bottom: 15px;
}

.footer-company{
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.footer-meta{
  font-size: 14px;
  color: #4c240ce2;
}

.footer-link{
  color: #b77f20;
  text-decoration: none;
  transition: 0.3s;
}

.footer-link:hover{
  color: #c07103;
  text-decoration: underline;
}

.footer-logo:hover{
  opacity: 1;
  transform: scale(1.3);
  transition: 0.3s ease;
}

@media (max-width: 768px){
  .site-footer{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right{
    justify-self: center;
    text-align: center;
  }
}

.modal-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
  border-radius: 14px;
  object-fit: cover;
} 

/* img wrapper */
.grades-section {
  padding: 40px 20px;
  text-align: center;
}

.grade-image-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.grade-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  border-radius: 8px;
}

.grade-image-wrapper img {
  transition: transform 0.3s ease;
}

.grade-image-wrapper img:hover {
  transform: scale(1.3);
}

/* --- SPOLEČNÉ PROMĚNNÉ A RESET --- */
        :root {
            --primary-cinnamon: #7e4b2a; 
            --secondary-gold: #c59b6d;    
            --text-dark: #333333;
            --bg-light: #fafafa;
            --font-heading: 'Playfair Display', serif; 
            --font-body: 'Poppins', sans-serif;       
        }

        html {
            scroll-behavior: smooth; /* Zajišťuje plynulé scrollování po kliknutí na tlačítko */
        }

        body {
            margin: 0;
            overflow-x: hidden;
            font-family: var(--font-body);
        }

        /* ============================================= */
        /* START: CSS PRO NOVOU HERO SEKCI (ZÁČÁTEK) */
        /* ============================================= */
        .hero-section {
            height: 100vh; /* Výška přes celou obrazovku */
            display: flex;
            align-items: center; /* Vertikální vycentrování obsahu */
            justify-content: center; /* Horizontální vycentrování obsahu */          
            /* --- FOTKA NA POZADÍ --- */
            background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), 
                              url('../assets/dron foto.jpg'); 
            
            background-size: cover;
            background-position: center;
            background-attachment: fixed; /* Parallax efekt (fotka se hýbe pomaleji) */
            color: white;
            text-align: center;
            padding: 0 20px;
        }

        .hero-content {
            max-width: 800px;
        }

        .hero-title {
            font-family: var(--font-heading);
            font-size: 4rem;
            margin-bottom: 20px;
            line-height: 1.1;
            /* Lehká animace při načtení */
            animation: fadeDown 1s ease-out;
        }

        .hero-subtitle {
            font-size: 1.5rem;
            font-weight: 300;
            margin-bottom: 40px;
            letter-spacing: 1px;
            opacity: 1.2;
            animation: fadeIn 1.5s ease-out;
        }

        /* Stylové tlačítko (Call to Action) */
        .hero-btn {
            display: inline-block;
            padding: 15px 35px;
            margin: 10px;
            background: linear-gradient(90deg, var(--accent), var(--accent-2));
            color: #fff;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            animation: fadeUp 1s ease-out;
        }

        .hero-btn:hover {
            background-color: #fff;
            color: var(--primary-cinnamon);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        }

        /* Responzivita pro Hero sekci */
        @media (max-width: 768px) {
            .hero-title { font-size: 2.5rem; }
            .hero-subtitle { font-size: 1.1rem; }
        }

        /* Úvodní animace */
        @keyframes fadeDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        /* ============================================= */
        /* END: CSS PRO HERO SEKCI */
        /* ============================================= */


        /* --- CSS STYLOVÁNÍ PRO SEKCI ABOUT (Zůstává z minula, jen drobné úpravy) --- */
        
        #about-us-section {
            padding: 120px 20px; /* Větší padding nahoře, aby to odskočilo od fotky */
            background-color: var(--bg-light);
            position: relative;
        }

        .about-container {
            max-width: 1100px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .about-card {
            background: #ffffff;
            padding: 60px;
            border-radius: 20px;
            box-shadow: 0 15px 50px rgba(0,0,0,0.05);
            border-left: 5px solid var(--primary-cinnamon);
            position: relative;
            overflow: hidden;
            
            /* POČÁTEČNÍ STAV PRO ANIMACI */
            opacity: 0;
            transform: translateY(50px) scale(0.95);
            transition: all 0.8s ease-out;
        }

        .about-card.animate-in {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .about-title {
            font-family: var(--font-heading);
            font-size: 3rem;
            color: var(--primary-cinnamon);
            margin-top: 0;
        }

        .about-subtitle {
            font-weight: 600;
            color: var(--secondary-gold);
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 0.9rem;
            margin-bottom: 40px;
            display: flex;
            align-items: center;
            padding-top: 50px;
        }
        
        .about-subtitle::before {
            content: '📍';
            margin-right: 10px;
        }

        .about-text p {
            font-size: 1.1rem;
            line-height: 1.8;
            margin-bottom: 20px;
            color: var(--text-dark);
            font-weight: 300;
        }

        .about-text strong {
            font-weight: 600;
            color: var(--primary-cinnamon);
        }

        @media (max-width: 768px) {
            #about-us-section { padding: 80px 15px; }
            .about-card { padding: 30px; }
            .about-title { font-size: 2.2rem; }
        }

.home-gallery {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.home-gallery img {
  flex: 1;
  height: 300px;              /* stejná výška všech */
  width: 100%;
  object-fit: cover;          /* hezký ořez */
  border-radius: 12px;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* hover efekt (jen desktop) */
.home-gallery img:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* tablet */
@media (max-width: 1024px) {
  .home-gallery img {
    height: 200px;
  }
}

/* mobil */
@media (max-width: 768px) {
  .home-gallery {
    flex-direction: column;
  }

  .home-gallery img {
    height: auto; /* přirozená výška */
  }
}

.certificates {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 20px;
}

.certificates img {
  width: 120px;
  height: auto;
}

.cert-text ul {
  margin: 5px 0 0;
  padding-left: 18px;
}

.cert-text li {
  margin-bottom: 4px;
}

/* mobil */
@media (max-width: 768px) {
  .certificates {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .certificates img {
    margin-bottom: 10px;
  }

  .cert-text ul {
    padding-left: 0;
    list-style-position: inside;
  }
}