/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* =====================================================
   1. GENERAL PAGE STRUCTURE ADJUSTMENTS
   ===================================================== */

/* Blog page: Adjust hero section spacing */
body.blog .hero-section[data-type="type-2"] > div[class*="ct-container"] {
  padding-top: 60px !important;
  padding-bottom: 80px !important;
}

/* Page descriptions: Add spacing under title */
.entry-header .page-description {
  margin-top: 10px;
  margin-bottom: 80px;
}

/* Remove bottom margin globally under content */
#main > div,
#main > div > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* =====================================================
   2. FOOTER: LEGAL MENU + TEXT LINK STYLE
   ===================================================== */

/* Remove vertical space between legal text links */
.widget-area-1 .stk-block-text__text {
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* Force correct link styling for legal footer text links (Stackable block) */
.stk-84b2933 .stk-block-text__text a {
  color: #7b3731 !important;
  font-family: 'DM Serif Display', serif !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
  text-decoration-color: #7b3731 !important;
}

.stk-84b2933 .stk-block-text__text a:hover {
  text-decoration: underline;
  color: #a06055 !important;
}

/* Ensure consistent color for visited/active/hover states (mobile) */
@media (max-width: 999px) {
  .stk-84b2933 .stk-block-text__text a,
  .stk-84b2933 .stk-block-text__text a:visited {
    color: #7b3731 !important;
  }

  .stk-84b2933 .stk-block-text__text a:hover,
  .stk-84b2933 .stk-block-text__text a:active {
    color: #a05245 !important;
  }
}

/* Fix inconsistent font on active footer menu item (bottom menu) */
.footer-menu-inline .menu-item a,
.footer-menu-inline .menu-item a:visited,
.footer-menu-inline .menu-item a[aria-current="page"] {
  font-family: 'DM Serif Display', serif !important;
  font-size: 0.75rem !important; /* 12px */
  color: #7b3731 !important;
  font-weight: normal !important;
  text-decoration: none !important;
}

.footer-menu-inline .menu-item a:hover {
  text-decoration: underline;
}


/* =====================================================
   3. HEADER MENU LINKS (DESKTOP + MOBILE)
   ===================================================== */

/* Fix font and spacing for 'Start Here' in desktop header */
header .ct-menu-link[href="https://hypnospark.com/english/"] {
  font-family: 'DM Serif Display', serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 1px !important;
}

/* Style 'Get Calm MP3' and 'Start Here' menu links */
nav .menu-item a[href="#"],
nav .menu-item a[href="https://hypnospark.com/english/"] {
  font-family: inherit;
  font-weight: normal;
  font-size: 1rem;
  color: #d25c33;
  text-decoration: none;
  cursor: pointer;
}

nav .menu-item a[href="#"]:hover,
nav .menu-item a[href="https://hypnospark.com/english/"]:hover {
  color: #b24e2d;
}

/* Mobile menu font consistency (off-canvas nav) */
@media (max-width: 768px) {
  .offcanvas-navigation .ct-menu-link {
    font-family: 'DM Serif Display', serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
  }
}


/* =====================================================
   4. BUTTON STYLES
   ===================================================== */

/* 🎯 Main Call-to-Action Buttons */
.stk-button,
.stk-link,
.ct-button:not([data-size="small"]) {
  background-color: #d25c33;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 🔁 Hover state for main buttons */
.stk-button:hover,
.stk-link:hover,
.ct-button:not([data-size="small"]):hover {
  background-color: #b94c2b;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 🔹 Small Buttons */
.ct-button[data-size="small"] {
  background-color: #d25c33;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 🔁 Hover state for small buttons */
.ct-button[data-size="small"]:hover {
  background-color: #b94c2b;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* 🛠 Stackable Button Radius Fix */
.stk-block-button .stk-button {
  border-radius: 16px !important;
}


/* =====================================================
   5. STACKABLE BLOCK STYLES (Accordion, etc.)
   ===================================================== */

/* Accordion link color override */
.wp-block-stackable-accordion a {
  color: #5C4F4B !important;
}

.wp-block-stackable-accordion a:hover {
  color: #7a665f !important;
}

