/*
Theme Name:   Kadence Child - VASCAPA
Theme URI:    https://vascapa.org
Description:  Kadence child theme for VASCAPA a.s.b.l. website
Author:       VASCAPA a.s.b.l.
Template:     kadence
Version:      1.1.0
Text Domain:  kadence-child
*/

/* =========================================================
   VASCAPA Brand Colors (CSS custom properties)
   Primary:   #1176a6  — VASCAPA teal-blue
   Secondary: #0d5a82  — Darker blue (headings, hover)
   Accent:    #1a9ed4  — Lighter blue (highlights)
   ========================================================= */

:root {
  --vascapa-primary:   #1176a6;
  --vascapa-secondary: #0d5a82;
  --vascapa-accent:    #1a9ed4;
  --vascapa-light-bg:  #e8f4f9;
}

/* Ensure logo doesn't get clipped */
.site-header-wrap .site-branding img {
  max-height: 60px;
  width: auto;
}

/* =========================================================
   Language Switcher — custom shortcode in header HTML element
   ========================================================= */
.vascapa-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  background: rgba(17, 118, 166, 0.08);
  border-radius: 20px;
  padding: 3px 4px;
}
.vascapa-lang-switcher .vascapa-lang {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--vascapa-secondary);
  border-radius: 16px;
  transition: all 0.2s ease;
}
.vascapa-lang-switcher .vascapa-lang:hover {
  background: var(--vascapa-primary);
  color: #fff;
  text-decoration: none;
}
.vascapa-lang-switcher .vascapa-lang.current {
  background: var(--vascapa-primary);
  color: #fff;
  font-weight: 700;
}
.vascapa-lang-switcher .vascapa-lang-sep {
  display: none; /* hide separators — pills don't need them */
}
/* Hide dropdown arrows that Kadence may inject */
.site-top-header-wrap .dropdown-nav-special-toggle {
  display: none !important;
}

/* Phone number in top-left html element */
.vascapa-header-contact a {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

/* Language switcher uses Polylang's native nav menu item (#pll_switcher).
   See .site-top-header-wrap .secondary-navigation rules above for styling. */

/* =========================================================
   Homepage — full-width sections
   ========================================================= */

/* Remove default page padding for homepage hero */
.page-id-831 .entry-content,
.home .entry-content {
  padding: 0;
  max-width: none;
}

/* Ensure cover block spans full width */
.home .wp-block-cover.alignfull,
.home .wp-block-group.alignfull {
  margin-left: calc(-1 * var(--global-content-edge-padding, 30px));
  margin-right: calc(-1 * var(--global-content-edge-padding, 30px));
  width: calc(100% + 2 * var(--global-content-edge-padding, 30px));
  max-width: none;
}

/* Push hero content below the transparent header overlay */
.home .wp-block-cover.alignfull > .wp-block-cover__inner-container {
  padding-top: 120px !important;
}

/* Subtle dark gradient at top of hero for nav readability (homepage only — transparent header) */
.home .wp-block-cover.alignfull::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
  z-index: 1;
  pointer-events: none;
}

/* =========================================================
   Inner Pages — page title section styling
   ========================================================= */
.entry-hero.page-hero-section .entry-hero-container-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.entry-hero.page-hero-section .hero-section-overlay {
  background: transparent !important; /* Kadence sets an overlay — we want pure blue from theme mod */
}

/* News query grid cards */
.home .wp-block-post {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}
.home .wp-block-post:hover {
  box-shadow: 0 4px 16px rgba(17,118,166,0.15);
  transform: translateY(-2px);
}
.home .wp-block-post .wp-block-post-featured-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Partners section */
.home .wp-block-column a {
  text-decoration: none;
}
.home .wp-block-column a:hover {
  text-decoration: underline;
}
