/*
Theme Name: HypnoFlow Academy
Theme URI: https://limegreen-partridge-398473.hostingersite.com
Author: HypnoFlow Academy
Description: Custom theme for HypnoFlow Academy — Hipnoterapia dla biznesu
Version: 2.2.0
License: Private
Text Domain: hypnoflow-academy
*/

/*
 * CRITICAL: This theme uses Tailwind CSS utility classes exclusively.
 * ONLY remove margin/padding/color overrides from headings.
 * DO NOT set font-size or line-height — Tailwind controls those.
 * font-size:unset causes inheritance from body (16px) which breaks Tailwind.
 */

/* Box sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Remove WordPress admin bar body offset */
html {
  margin-top: 0 !important;
}

body.admin-bar {
  margin-top: 0 !important;
}

/* Remove body margin/padding */
body {
  margin: 0 !important;
  padding: 0 !important;
}

/*
 * Heading reset — ONLY remove margin/padding/border.
 * DO NOT touch font-size, line-height, font-weight — Tailwind handles those.
 */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border: none;
}

/* Remove WordPress block-library heading margin overrides */
.wp-block h1, .wp-block h2, .wp-block h3,
.wp-block h4, .wp-block h5, .wp-block h6,
.entry-content h1, .entry-content h2, .entry-content h3,
.wp-block-heading {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Remove Elementor heading color/size overrides */
.elementor-widget-heading .elementor-heading-title {
  color: inherit;
}

/* Ensure our homepage wrapper takes full width */
.hf-homepage {
  width: 100%;
  overflow-x: hidden;
}

/* Remove any max-width constraints from WordPress themes */
.entry-content, .post-content, .page-content {
  max-width: none !important;
}

/* Neutralize WordPress default link styles inside our content */
.hf-homepage a {
  color: inherit;
  text-decoration: none;
}

/* Ensure images don't get WordPress default borders/margins */
.hf-homepage img {
  max-width: 100%;
  height: auto;
  border: none;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

/* Remove WordPress caption styles */
.wp-caption, .wp-caption-text {
  display: none;
}

/* Ensure page content wrapper has no extra padding */
#page, #content, #primary, #main, .site, .site-content {
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================
   SPACING IMPROVEMENTS — Headings & Body Text
   ============================================ */

/* Breathable spacing between headings and paragraphs */
.hf-homepage h1,
.hf-homepage h2,
.hf-homepage h3,
.hf-homepage h4,
.hf-homepage h5,
.hf-homepage h6 {
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

.hf-homepage p {
  margin-bottom: 1.2em;
  line-height: 1.75;
}

.hf-homepage h1 + p,
.hf-homepage h2 + p,
.hf-homepage h3 + p,
.hf-homepage h4 + p {
  margin-top: 0.4em;
}

/* Subpage content spacing */
.hf-page-content h1,
.hf-page-content h2,
.hf-page-content h3,
.hf-page-content h4 {
  margin-top: 1.75em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

.hf-page-content p {
  margin-bottom: 1.25em;
  line-height: 1.75;
}

.hf-page-content h1 + p,
.hf-page-content h2 + p,
.hf-page-content h3 + p,
.hf-page-content h4 + p {
  margin-top: 0.35em;
}

/* Prevent first heading from having excessive top margin */
.hf-page-content > h1:first-child,
.hf-page-content > h2:first-child,
.hf-page-content > h3:first-child,
.hf-homepage > h1:first-child,
.hf-homepage > h2:first-child {
  margin-top: 0;
}

/* List spacing */
.hf-page-content ul,
.hf-page-content ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.hf-page-content li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}
