/* ==========================================================================
   BOOKEDnow – Custom CSS (FINAL / PRODUCTION)
   Fixed header + Unified CTA System (Brand: Navy #0C273E on White)
   ========================================================================== */


/* --------------------------------------------------------------------------
   1) FIXED HEADER (RELIABLE IN ALL BLOCK THEMES)
   -------------------------------------------------------------------------- */

.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* Admin bar offset */
body.admin-bar .header-sticky {
  top: 32px;
}

/* Visual header */
header.site-header {
  position: relative;
  box-shadow: 0 2px 10px rgba(12, 39, 62, 0.08);
}


/* --------------------------------------------------------------------------
   2) OFFSET CONTENT (PREVENT JUMP)
   -------------------------------------------------------------------------- */

:root {
  --header-height: 64px;

  /* Unified CTA variables – Primary style (Navy with White text) */
  --cta-font-size: 16px;
  --cta-line-height: 1.15;
  --cta-pad-y: 10px;
  --cta-pad-x: 18px;
  --cta-radius: 9999px;            /* pill */
  --cta-bg: #0C273E;               /* brand navy */
  --cta-text: #ffffff;             /* white */
  --cta-bg-hover: #0C273E;         /* keep navy on hover */
  --cta-text-hover: #ffffff;       /* keep white on hover */
  --cta-shadow-hover: 0 8px 20px rgba(12, 39, 62, 0.35);
}

.wp-site-blocks {
  padding-top: var(--header-height);
}

body.admin-bar .wp-site-blocks {
  padding-top: calc(var(--header-height) + 32px);
}


/* --------------------------------------------------------------------------
   3) HEADER LAYOUT / POLISH
   -------------------------------------------------------------------------- */

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px 24px;
}

/* REMOVED the old header button sizing that caused shrinkage:
   .site-header .wp-block-button__link { font-size:14px; line-height:1; padding:8px 16px; }
*/

/* Preserve header hover animation behavior */
.site-header .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(12, 39, 62, 0.35);
}


/* --------------------------------------------------------------------------
   4) GLOBAL – UNIFIED CTA BUTTON SYSTEM
   -------------------------------------------------------------------------- */

.wp-block-button.is-cta .wp-block-button__link,
.wp-block-button.is-cta .wp-element-button {
  font-size: var(--cta-font-size);
  line-height: var(--cta-line-height);
  padding: var(--cta-pad-y) var(--cta-pad-x);
  border-radius: var(--cta-radius);
  background: var(--cta-bg);
  color: var(--cta-text);
  display: inline-block;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

/* Hover / focus-visible */
.wp-block-button.is-cta .wp-block-button__link:hover,
.wp-block-button.is-cta .wp-block-button__link:focus-visible,
.wp-block-button.is-cta .wp-element-button:hover,
.wp-block-button.is-cta .wp-element-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--cta-shadow-hover);
  background: var(--cta-bg-hover);
  color: var(--cta-text-hover);
}

/* Ensure header can’t shrink CTA sizing */
.site-header .wp-block-button.is-cta .wp-block-button__link {
  font-size: var(--cta-font-size);
  line-height: var(--cta-line-height);
  padding: var(--cta-pad-y) var(--cta-pad-x);
}


/* --------------------------------------------------------------------------
   5) GLOBAL UTILITIES
   -------------------------------------------------------------------------- */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 56px;
}

.hero p {
  font-size: 18px;
}

:focus-visible {
  outline: 2px solid rgba(12, 39, 62, 0.45);
  outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   6) PANELS / CARDS
   -------------------------------------------------------------------------- */

.panel {
  border-radius: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow:
    0 4px 12px rgba(12, 39, 62, 0.05),
    0 16px 40px rgba(12, 39, 62, 0.08);
}


/* --------------------------------------------------------------------------
   7) SPLIT SECTION
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   8) CTA SECTION WRAPPER
   -------------------------------------------------------------------------- */

.cta {
  text-align: center;
}


/* --------------------------------------------------------------------------
   9) FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

.site-footer p {
  margin: 0;
}

.site-footer.wp-block-group.alignfull {
  margin-top: 0;
  margin-bottom: 0;
}
