/* ===== Kadence header: keep logo, nav, and button in a single row ===== */

/* Give the center nav the elastic space; keep logo & button fixed */
.site-header .site-branding,
.site-header .header-button,
.site-header [class*="header-button"] { flex: 0 0 auto; }

.site-header .primary-menu-container,
.site-header .header-navigation-inner { flex: 1 1 auto; min-width: 0; }

/* Do not wrap menu items or the header button text */
.site-header .primary-navigation .menu { 
  display: flex; 
  flex-wrap: nowrap; 
  align-items: center; 
  gap: 28px;           /* horizontal breathing room between items */
}

.site-header .primary-navigation .menu > li { white-space: nowrap; }
.site-header .primary-navigation .menu > li > a { white-space: nowrap; }

/* Button: keep on one line and visually balanced */
.site-header [class*="header-button"] a,
.site-header .header-button a {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.25em;           /* consistent height */
  line-height: 1;                   /* prevents vertical stacking */
  border-radius: 9999px;
}

/* Make sure dropdowns layer above hero/cover images */
.site-header .primary-navigation .sub-menu,
.site-header .primary-navigation .kadence-mega-menu-inner {
  z-index: 9999;
}

/* Responsive polish: tighten spacing & font size a bit as width shrinks */
@media (max-width: 1400px) {
  .site-header .primary-navigation .menu { gap: 18px; }
  .site-header .primary-navigation .menu > li > a { 
    font-size: 17px; 
    padding-left: 12px; 
    padding-right: 12px; 
  }
}

/* When viewport is getting tight, stop the nav from crushing the logo/button.
   (If you’re using the mobile header at a specific breakpoint, match it here.) */
@media (max-width: 1200px) {
  /* If you prefer to keep desktop nav a bit longer, bump this to 1150–1250 */
  .site-header .primary-navigation .menu { gap: 14px; }
  .site-header .primary-navigation .menu > li > a { font-size: 16px; }
}

/* Safety: prevent any accidental wrapping from theme block gaps */
:where(.site-header) { --wp--style--block-gap: 0px; }

/* Center the Contact Info insert */
.contact-info-center {
  text-align: center;         /* centers inline content like text & links */
  margin-left: auto;          /* auto margins center block-level items */
  margin-right: auto;
  display: block;             /* ensures it's treated as a block for centering */
  max-width: 700px;           /* optional: keep it from spanning too wide */
}

.contact-info-center a {
  display: inline-block;      /* keeps phone/email links neat */
  margin: 0.25em 0;           /* small spacing between rows */
}
/* ===== Luxury content container: centered, with breathing room ===== */

/* ===== Luxury text padding ONLY (no effect on images or full-width blocks) ===== */

/* Target ONLY paragraph text, headings, lists, and basic content wrappers */
.entry-content > p,
.entry-content > h1,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5,
.entry-content > h6,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote,
.entry-content .wp-block-group:not(.alignfull):not(.alignwide),
.entry-content .wp-block-columns:not(.alignfull):not(.alignwide) {
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

/* Tablet refinement */
@media (max-width: 1024px) {
  .entry-content > p,
  .entry-content > h1,
  .entry-content > h2,
  .entry-content > h3,
  .entry-content > h4,
  .entry-content > h5,
  .entry-content > h6,
  .entry-content > ul,
  .entry-content > ol,
  .entry-content > blockquote,
  .entry-content .wp-block-group:not(.alignfull):not(.alignwide),
  .entry-content .wp-block-columns:not(.alignfull):not(.alignwide) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Mobile refinement */
@media (max-width: 768px) {
  .entry-content > p,
  .entry-content > h1,
  .entry-content > h2,
  .entry-content > h3,
  .entry-content > h4,
  .entry-content > h5,
  .entry-content > h6,
  .entry-content > ul,
  .entry-content > ol,
  .entry-content > blockquote,
  .entry-content .wp-block-group:not(.alignfull):not(.alignwide),
  .entry-content .wp-block-columns:not(.alignfull):not(.alignwide) {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
