/* ==========================================================================
   Mistr Kuchyně — hlavní stylový soubor
   Design systém podle Divi Plus Modular Kitchen šablony
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Import fontů (Poppins + Roboto)
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* --------------------------------------------------------------------------
   1. CSS proměnné (design tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Barvy */
  --color-primary: #f2ad00;
  --color-primary-hover: #f2b10e;
  --color-primary-light: #f2cd71f5; /* rgba(242,205,113,0.96) - žlutý label */
  --color-cream: rgba(242, 236, 222, 0.6); /* pozadí karet služeb */
  --color-cream-solid: #f9f2e4; /* plná krémová pro formulář */
  --color-cream-testimonial: rgba(242, 227, 191, 0.2);
  --color-dark: #1e1e1e;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-text: #000000;
  --color-text-muted: #555555;
  --color-text-light: rgba(255, 255, 255, 0.7);
  --color-border: rgba(0, 0, 0, 0.08);
  --color-shadow: rgba(0, 0, 0, 0.08);

  /* Typografie */
  --font-display: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;

  /* Velikosti nadpisů (desktop) */
  --fs-hero: clamp(4.5rem, 10vw, 9.375rem); /* 72-150px */
  --fs-h1: clamp(2.25rem, 4.5vw, 3.75rem);  /* 36-60px */
  --fs-h2: clamp(2.125rem, 3.8vw, 3.4375rem); /* 34-55px */
  --fs-h3: 1.5rem;    /* 24px */
  --fs-h4: 1.25rem;   /* 20px */
  --fs-body: 1rem;    /* 16px */
  --fs-small: 0.875rem;
  --fs-label: 1.0625rem; /* 17px - pre-headings */

  /* Spacing (8px base) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 5rem;
  --sp-8: 6.25rem; /* 100px - standard section padding */

  /* Layout */
  --container-max: 1280px;
  --container-padding: 2.5rem;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Efekty */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --transition-fast: 200ms ease;
  --transition: 450ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset + základ
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   3. Container & utility layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--sp-8) 0;
}

.section-tight {
  padding: var(--sp-6) 0;
}

/* --------------------------------------------------------------------------
   4. Label (malý žlutý nápis nad H2)
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--color-primary-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

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

/* --------------------------------------------------------------------------
   5. Nadpisy sekcí
   -------------------------------------------------------------------------- */
.section-heading {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}

.section-heading-center {
  text-align: center;
  margin-bottom: var(--sp-6);
}

/* --------------------------------------------------------------------------
   6. Tlačítka (přesný styl ze šablony)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 14px 30px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-white);
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  border-radius: 4px;
  letter-spacing: 2px;
  padding-right: 55px;
  color: var(--color-white);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   7. Header (sticky)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 90px;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

.site-header.is-sticky {
  background: var(--color-dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-white);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text small {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: 0.5px;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.3px;
}

/* Navigation */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 0;
}

.main-nav a {
  display: block;
  padding: 30px 16px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--color-primary);
}

/* Header contact info */
.header-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-contact-icon {
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.header-contact-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-contact-text small {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-light);
}

.header-contact-text a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-white);
  text-decoration: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 110;
}

.menu-toggle svg {
  width: 32px;
  height: 32px;
}

/* --------------------------------------------------------------------------
   8. Hero sekce (pro vnitřní stránky - About, Services, Projects, Contact, Blog)
   -------------------------------------------------------------------------- */
.inner-hero {
  position: relative;
  min-height: 600px;
  padding: 150px 0 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg,
    rgba(36, 36, 36, 0.9) 50%,
    rgba(0, 0, 0, 0.5) 50%);
  pointer-events: none;
}

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

.inner-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.inner-hero-card {
  background: var(--color-white);
  padding: 3.75rem 3.125rem;
  border-radius: 2px;
  box-shadow: var(--shadow-card);
}

.inner-hero-card h1 {
  font-size: var(--fs-h1);
  line-height: 1.1;
  margin-bottom: var(--sp-3);
}

.inner-hero-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.inner-hero-image {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  aspect-ratio: 4 / 3;
}

.inner-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   9. Responzivita - Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --container-padding: 2rem;
    --sp-8: 4.5rem;
  }

  .site-header {
    padding: 0 2rem;
    height: 72px;
  }

  .main-nav a {
    padding: 20px 12px;
    font-size: 1rem;
  }

  .logo-icon { width: 40px; height: 40px; }
  .logo-icon svg { width: 24px; height: 24px; }
  .logo-text strong { font-size: 1.125rem; }
  .logo-text small { font-size: 0.625rem; }

  .inner-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .inner-hero-card {
    padding: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   10. Responzivita - Mobil
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
    --sp-8: 3rem;
  }

  .site-header {
    padding: 0 1.25rem;
    background: var(--color-dark);
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--color-dark);
    padding: 100px 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .main-nav a {
    padding: 18px 0;
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .header-contact {
    display: none;
  }

  .inner-hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .inner-hero-card {
    padding: 2rem 1.5rem;
  }

  .inner-hero-card h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .logo-icon { width: 36px; height: 36px; }
  .logo-text strong { font-size: 1rem; }

  .btn {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .btn:hover {
    padding-right: 40px;
  }
}

/* --------------------------------------------------------------------------
   11. Anti-overlap helper: zajistí, že první sekce začne pod headerem
   -------------------------------------------------------------------------- */
.page-has-inner-hero .inner-hero {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   12. Animace při scrollu (IntersectionObserver)
   -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 50px;
  max-width: 85%;
  margin: 0 auto;
}

.footer-col h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.625rem;
}

.footer-col ul a {
  color: var(--color-white);
  font-size: 1rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--color-primary);
}

/* Kontakt blurby ve footeru */
.footer-blurb {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.footer-blurb-icon {
  width: 36px;
  height: 36px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.footer-blurb-text h6 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.footer-blurb-text a,
.footer-blurb-text p {
  color: var(--color-primary);
  font-size: 0.95rem;
  text-decoration: none;
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
  border-bottom-color: var(--color-primary);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
  width: 100%;
  justify-content: center;
}

/* Spodní lišta footeru */
.footer-bottom {
  background: var(--color-black);
  padding: 1rem 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  color: var(--color-white);
  font-size: 0.875rem;
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-white);
  border-radius: 50%;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 92%;
  }

  .footer-bottom {
    padding: 1rem 2rem;
  }
}

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   14. Drobnosti & utility
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

::selection {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-hover); }
