/* ===========================================================================
   STUDIO ARCHITEKT — design system
   Všechny hodnoty doslova z .dat (Divi Customizer + shortcody)
   =========================================================================== */

:root {
  /* Barvy - zdroj: options */
  --c-primary: #7e5f41;        /* header_color, all_buttons_bg_color */
  --c-primary-hover: #2d3b44;  /* all_buttons_bg_color_hover */
  --c-dark: #2d3b44;           /* link_color, primary_nav_bg */
  --c-cream: #ecd8bd;          /* hero text, akcenty (z shortcodů) */
  --c-bg-section: #f8f8f8;     /* sekce/karty (z shortcodů) */
  --c-white: #ffffff;
  --c-text: #2d3b44;
  --c-muted: #6c757d;
  --c-overlay-cards: rgba(45,59,68,0.76);  /* masonry overlay */
  --c-stripe: rgba(0,0,0,0.08);            /* bar counter stripe */
  --c-counter-icon-bg: rgba(236,216,189,0.17); /* counter icon bg */
  --c-service-number: rgba(201,201,201,0.15);  /* service outline číslo */
  --c-blog-dot: rgba(126,95,65,0.46);
  --c-menu-active: rgba(255,255,255,0.76);

  /* Fonty - zdroj: options */
  --f-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-roboto-slab: 'Roboto Slab', Georgia, serif;
  --f-mukta: 'Mukta Vaani', sans-serif;

  /* Velikosti - zdroj: options + inventory */
  --fs-body: 15px;
  --fs-h1: 70px;
  --fs-h2: 40px;
  --fs-h3: 22px;
  --fs-hero: 55px;
  --fs-btn: 18px;
  --fs-nav: 15px;
  --lh-heading: 1.3;
  --lh-body: 1.7;

  /* Layout */
  --logo-height: 75px;
  --btn-radius: 20px;
  --btn-padding: 10px 45px;
  --container-max: 1080px;
  --container-pad: 24px;

  --header-h: 92px;
  --header-h-scrolled: 72px;

  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-white);
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  font-weight: 700;       /* body_header_style = bold */
  line-height: var(--lh-heading); /* body_header_height = 1.3 */
  color: var(--c-primary);
}
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* Utility */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
  width: 100%;
}
.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: var(--container-pad);
  width: 100%;
}
.row-90 {
  width: 90%;
  margin: 0 auto;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--c-dark); color: var(--c-white);
  padding: 12px 20px; z-index: 999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* Tlačítka - 20px radius, 10/45 padding, hover přechod hnědé → navy */
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-size: var(--fs-btn);
  font-weight: 500;
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  transition: background-color var(--transition), color var(--transition);
  text-align: center;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background-color: var(--c-primary);
  color: var(--c-white);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--c-primary-hover);
  color: var(--c-white);
}
.btn-cream {
  background-color: var(--c-cream);
  color: var(--c-dark);
}
.btn-cream:hover, .btn-cream:focus-visible {
  background-color: var(--c-white);
  color: var(--c-dark);
}

/* Header - fixed, navy bg, sticky */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: var(--c-dark);
  transition: padding var(--transition);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height var(--transition);
  padding-inline: var(--container-pad);
  max-width: 1280px;
  margin: 0 auto;
}
.site-header.is-scrolled .site-header__inner {
  height: var(--header-h-scrolled);
}
.site-logo img {
  height: 60px;
  width: auto;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav a {
  color: var(--c-white);
  font-size: var(--fs-nav);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition);
}
.primary-nav a:hover { color: var(--c-menu-active); }
.primary-nav a.is-active { color: var(--c-menu-active); }
.primary-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-primary);
}
.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-white);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Section header */
.section-head {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-inline: auto;
}
.section-head h2 {
  font-size: var(--fs-h2);
  margin-bottom: 20px;
}
.section-head--white { width: 60%; margin-inline: auto; }

/* Fade-in animace */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  background-color: var(--c-dark);     /* options.primary_nav_bg / shortcode */
  color: var(--c-white);
  padding: 40px 0 0;                   /* z .dat: 40px||0px||false|false */
}
.site-footer .container {
  max-width: 1280px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;  /* column_structure 1_3,1_3,1_3 */
  gap: 50px;
}
.footer-col h4,
.footer-col__title {
  font-family: var(--f-heading);
  font-weight: 700;
  color: var(--c-cream);               /* header_2_text_color #ecd8bd */
  margin-bottom: 15px;
}
.footer-col--1 .footer-col__title { font-size: 24px; }  /* col 1 specifické */
.footer-col--2 .footer-col__title,
.footer-col--3 .footer-col__title { font-size: 25px; }  /* col 2+3 */

.footer-col p,
.footer-col__body {
  font-family: var(--f-roboto-slab);   /* text_font = Roboto Slab */
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}
.footer-col__subtitle {
  font-family: var(--f-mukta);         /* header_2_font Mukta Vaani 600 */
  font-weight: 600;
  font-size: 25px;
  color: var(--c-white);
  margin-bottom: 20px;
}

/* Footer blurby (email/telefon) */
.footer-blurb {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  font-size: 14px;
}
.footer-blurb__icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-blurb__icon svg { width: 24px; height: 24px; }
.footer-blurb a:hover { color: var(--c-cream); }

/* Footer news (sloupec 2) */
.footer-news-item {
  margin-bottom: 24px;
}
.footer-news-item h5 {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 18px;                     /* header_font_size = 18px */
  line-height: 1.3em;                  /* header_line_height = 1.3em */
  color: var(--c-white);
  margin-bottom: 6px;
}
.footer-news-item h5 a:hover { color: var(--c-cream); }
.footer-news-meta {
  font-size: 13px;                     /* meta_font_size = 13px */
  color: var(--c-white);               /* meta_text_color = #FFFFFF */
}

/* Footer masonry (sloupec 3) */
.footer-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* number_of_columns = 3 */
  gap: 6px;
  margin-bottom: 24px;
}
.footer-masonry__item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
}
.footer-masonry__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.footer-masonry__item::before {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.45);   /* overlay_color */
  color: var(--c-dark);                  /* overlay_icon_color */
  font-size: 14px;                       /* overlay_icon_size */
  font-weight: 300;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}
.footer-masonry__item:hover::before { opacity: 1; }
.footer-masonry__item:hover img { transform: scale(1.1); }

/* Footer social - bílá kruhová pozadí, navy ikony */
.footer-social {
  display: flex;
  gap: 5px;                              /* custom_margin |5px||| */
  margin-top: 20px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--c-white);            /* background_color = #FFFFFF */
  color: var(--c-dark);                  /* icon_color = #2d3b44 */
  border-radius: 50%;
  transition: background-color var(--transition);
}
.footer-social a:hover {
  background: var(--c-primary);
  color: var(--c-white);
}
.footer-social svg { width: 15px; height: 15px; }  /* icon_font_size = 15px */

.footer-bottom {
  margin-top: 50px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}

/* Responsivita */
@media (max-width: 1024px) {
  :root {
    --fs-h1: 56px;
    --fs-h2: 36px;
    --fs-hero: 50px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-col--1 { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root {
    --fs-h1: 42px;
    --fs-h2: 28px;
    --fs-hero: 40px;
    --container-pad: 18px;
    --header-h: 72px;
  }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: 0;
    background-color: var(--c-dark);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform var(--transition);
    padding-top: var(--header-h);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav a {
    font-size: 22px;
    font-family: var(--f-heading);
  }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-col--1 { grid-column: auto; }
}
