/*
Theme Name:   GeneratePress Child — Apothecary
Theme URI:    https://nejlepsivitaminy.cz
Description:  Child theme GeneratePress s Apothecary design systemem pro nejlepsivitaminy.cz. Design přepsán z Claude Design prototypu.
Author:       Láďa + Claude
Version:      1.0.0
Template:     generatepress
Text Domain:  gp-apothecary
*/

/* Styling je v /wp-content/uploads/apothecary-tokens.css (enqueue přes mu-plugin).
 * Zde jen případné child-theme overridy.
 */

/* Skrytí title baru na homepage (GeneratePress) */
.home .entry-header,
.home .generate-content-header,
.home .page-hero,
.front-page-template .page-hero { display: none !important; }

/* Skrytí sidebaru na homepage */
.home .sidebar,
.home .widget-area-sidebar { display: none !important; }
.home #primary { width: 100% !important; }

/* Reset default GeneratePress paddingu na homepage */
.home .site-content { padding: 0 !important; }
.home .content-area { margin: 0 !important; }
.home article.page { margin: 0 !important; padding: 0 !important; }
.home .inside-article { padding: 0 !important; background: transparent !important; }

/* Content readability on GP defaults */
.entry-content table,
.apo-single table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.entry-content th,
.entry-content td,
.apo-single th,
.apo-single td {
  border-bottom: 1px solid rgba(190, 202, 190, 0.45);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.entry-content th,
.apo-single th {
  font-weight: 600;
  background: #f4f4f1;
}
.aff-placeholder {
  display: inline-block;
  margin: 0.5rem 0;
  padding: 0.4rem 0.75rem;
  background: #e8f5ee;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #006a3b;
}
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Poctivé / právní prvky — viditelné, ale netahají pozornost */
.apo-legal-strip {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--on-surface-variant, #3f4941);
  background: var(--surface-container-low, #f4f4f1);
  border: 1px solid rgba(190, 202, 190, 0.35);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 0;
}
.apo-legal-strip a {
  color: var(--primary, #006a3b);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.apo-footer__legal {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
}
.apo-footer__legal p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0.95;
}
.apo-footer__bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.apo-aff-note {
  font-size: 0.9rem;
  color: var(--on-surface-variant, #3f4941);
  background: #f4f4f1;
  border-left: 3px solid #006a3b;
  padding: 0.65rem 0.9rem;
  margin: 0 0 1.25rem;
  border-radius: 0 8px 8px 0;
}
.apo-aff-note a {
  color: var(--primary, #006a3b);
}

/* Kontaktní formulář */
.nv-contact { max-width: 32rem; margin: 1.5rem 0 2rem; }
.nv-contact__flash {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.nv-contact__flash.is-ok { background: #e8f5ee; color: #006a3b; }
.nv-contact__flash.is-err { background: #fdecea; color: #8a1c1c; }
.nv-contact__field { margin: 0 0 1rem; }
.nv-contact__field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--on-surface, #1a1c1b);
}
.nv-contact__field input,
.nv-contact__field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfd8d2;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  background: #fff;
}
.nv-contact__field input:focus,
.nv-contact__field textarea:focus {
  outline: 2px solid #006a3b;
  outline-offset: 1px;
  border-color: #006a3b;
}
.nv-contact__hint {
  font-size: 0.85rem;
  color: #5a635c;
  margin: 0 0 1rem;
  line-height: 1.45;
}
.nv-contact__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #006a3b, #268451);
}
.nv-contact__btn:hover { filter: brightness(1.05); }
.nv-contact__hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* Skryje default GP navigaci na homepage (nahradí ji naše .apo-nav) */
.home .site-header,
.home .main-navigation { display: none !important; }

/* Default footer GP skryje — naše .apo-footer v templatu */
.home .site-footer { display: none !important; }
