/*
Theme Name:   GlobalConverter Child
Template:     kadence
Version:      1.0.0
*/

/* ── Google Fonts loaded via wp_enqueue_style in functions.php ── */

/* ── Kadence palette overrides ────────────────────────────── */
:root {
  --global-palette1: #1D9E75;   /* brand green  */
  --global-palette2: #17845f;   /* brand green dark (hover) */
  --global-palette3: #000000;   /* header / nav */
  --global-palette4: #2D2D2D;   /* dark text */
  --global-palette5: #555555;   /* muted text */
  --global-palette6: #BDD8E8;   /* light blue background */
  --global-palette7: #D6EEF8;   /* lighter blue */
  --global-palette8: #ffffff;   /* card / surface */
  --global-palette9: #f4f4f4;   /* off-white bg */
}

/* ── Typography ───────────────────────────────────────────── */
*,
*::before,
*::after {
  font-family: 'Inter', sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700;
}

/* ── Kadence header — sticky black bar ────────────────────── */
#masthead,
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background-color: #000000 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
  transition: none !important;
  transform: none !important;
  height: auto !important;
  min-height: 70px !important;
}
#masthead *,
.site-header * {
  transition: none !important;
  transform: none !important;
}
/* Push page content below the fixed header */
body {
  padding-top: 70px !important;
}

/* Prevent Astra shrink-on-scroll — lock all header elements to fixed size */
#masthead,
.site-header,
.main-header-bar,
.ast-header-sticked #masthead,
.ast-header-sticked .site-header,
.ast-header-sticked .main-header-bar,
.ast-sticky-shrunk #masthead,
.ast-sticky-shrunk .site-header,
.ast-sticky-shrunk .main-header-bar {
  min-height: 70px !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transition: none !important;
}
.site-header-row-container,
.site-header-row-container-inner,
.ast-header-sticked .site-header-row-container,
.ast-header-sticked .site-header-row-container-inner,
.ast-sticky-shrunk .site-header-row-container,
.ast-sticky-shrunk .site-header-row-container-inner {
  min-height: 70px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transition: none !important;
}
.site-logo-img img,
.custom-logo,
.ast-header-sticked .site-logo-img img,
.ast-header-sticked .custom-logo,
.ast-sticky-shrunk .site-logo-img img,
.ast-sticky-shrunk .custom-logo {
  max-height: 64px !important;
  height: 64px !important;
  transition: none !important;
}

/* header row height */
.site-header-row-container,
.site-header-row-container-inner,
.header-main-layout-1 .site-header-row-container-inner {
  min-height: 70px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* site title — world map icon + Syne font */
.site-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.site-title::before {
  content: '' !important;
  display: inline-block !important;
  width: 92px !important;
  height: 64px !important;
  min-width: 92px !important;
  min-height: 64px !important;
  background-image: url('images/icon_logo_transparent.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  flex-shrink: 0 !important;
  transition: none !important;
}
.site-title,
.site-title a,
.site-title a:visited,
.site-title a:hover,
#masthead .site-title,
#masthead .site-title a,
#masthead .site-branding .site-title a,
.site-header .site-branding .site-title a,
.wp-block-kadence-identity .site-title,
.wp-block-kadence-identity .site-title a,
.header-site-branding .site-title a {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* nav links */
#masthead a,
.site-header a,
.main-navigation a,
.kadence-navigation a,
.primary-menu a,
.nav-menu a {
  color: rgba(255,255,255,0.8) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
#masthead a:hover,
.main-navigation a:hover,
.kadence-navigation a:hover,
.nav-menu a:hover,
.site-header a:hover {
  color: #1D9E75 !important;
}

/* active menu item */
.current-menu-item > a,
.current-page-ancestor > a {
  color: #1D9E75 !important;
}

/* keep site title link white even on hover */
.site-title a:hover {
  color: #ffffff !important;
}

/* Hide nav links in header — show hamburger only */
.main-header-bar .ast-primary-menu-area,
.main-header-bar .ast-nav-menu,
.ast-header-break-point .ast-primary-menu-area,
#ast-hf-menu-1,
.main-header-menu-wrap,
.ast-desktop-menu-enabled .ast-primary-menu-area {
  display: none !important;
}

/* Hide the header hamburger — navigation handled by converter tab bar */
.ast-mobile-header-wrap,
.ast-button-wrap,
.menu-toggle,
.ast-menu-toggle,
button.menu-toggle,
.ast-header-break-point .menu-toggle {
  display: none !important;
}

/* ── Body background ──────────────────────────────────────── */
body {
  background-color: #4682B4 !important;
}

/* ── Cards / content areas ────────────────────────────────── */
.wp-block-group,
.entry-content,
.site-content {
  background-color: #ffffff;
  border-radius: 10px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.wp-block-button__link,
.button,
button[type="submit"] {
  background-color: #1D9E75 !important;
  color: #ffffff !important;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.wp-block-button__link:hover,
.button:hover,
button[type="submit"]:hover {
  background-color: #17845f !important;
}

/* ── Footer ───────────────────────────────────────────────── */
#colophon,
.site-footer {
  background-color: #000000 !important;
  color: rgba(255,255,255,0.7) !important;
}
#colophon a,
.site-footer a {
  color: rgba(255,255,255,0.7) !important;
}
#colophon a:hover,
.site-footer a:hover {
  color: #ffffff !important;
}
/* hide Kadence credit line */
.site-info .powered-by,
.kadence-credit,
span.powered-by,
.site-footer .powered-by {
  display: none !important;
}

/* ── Links ────────────────────────────────────────────────── */
a {
  color: #1D9E75;
}

a:hover {
  color: #17845f;
}
