/*
 Theme Name:   neutrava Kadence Child
 Theme URI:    https://neutrava.ch
 Description:  neutrava ag Corporate Website – Child-Theme für Kadence WP. Design-System: Slate 900 (#0f172a) / Lime 400 (#a3e635), Inter + Poppins. FINMA-konform, B2B-fokussiert.
 Author:       neutrava ag
 Author URI:   https://neutrava.ch
 Template:     kadence
 Version:      1.0.0
 License:      Private
 Text Domain:  neutrava-kadence
*/

/* =====================================================================
   NEUTRAVA DESIGN SYSTEM — CUSTOM PROPERTIES
   ===================================================================== */

:root {
  --n-dark:         #0f172a;   /* Slate 900 */
  --n-mid:          #1e293b;   /* Slate 800 */
  --n-border:       #334155;   /* Slate 700 */
  --n-slate:        #64748b;   /* Slate 500 */
  --n-muted:        #94a3b8;   /* Slate 400 */
  --n-light:        #f1f5f9;   /* Slate 100 */
  --n-lime:         #a3e635;   /* Lime 400  */
  --n-lime-hover:   #84cc16;   /* Lime 500  */
  --n-white:        #ffffff;
  --n-radius:       6px;
  --n-transition:   0.2s ease;
}

/* =====================================================================
   TYPOGRAPHY
   ===================================================================== */

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--n-mid);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5,
.wp-block-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--n-muted);
}

p {
  line-height: 1.7;
}

/* =====================================================================
   COLOUR UTILITY CLASSES (from theme.json palette)
   ===================================================================== */

.has-neutrava-dark-background-color  { background-color: #0f172a !important; }
.has-neutrava-mid-background-color   { background-color: #1e293b !important; }
.has-neutrava-lime-background-color  { background-color: #a3e635 !important; }
.has-neutrava-light-background-color { background-color: #f1f5f9 !important; }
.has-neutrava-muted-background-color { background-color: #94a3b8 !important; }
.has-white-background-color          { background-color: #ffffff !important; }

.has-neutrava-dark-color  { color: #0f172a !important; }
.has-neutrava-mid-color   { color: #1e293b !important; }
.has-neutrava-lime-color  { color: #a3e635 !important; }
.has-neutrava-light-color { color: #f1f5f9 !important; }
.has-neutrava-muted-color { color: #94a3b8 !important; }
.has-white-color          { color: #ffffff !important; }

/* =====================================================================
   BUTTONS
   ===================================================================== */

.wp-block-button__link,
.wp-element-button {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--n-radius);
  letter-spacing: 0.01em;
  transition: opacity var(--n-transition), background-color var(--n-transition);
  text-decoration: none;
}

.wp-block-button__link:hover {
  opacity: 0.85;
}

/* Primary: Lime */
.wp-block-button:not(.is-style-outline) .wp-block-button__link.has-neutrava-lime-background-color,
.wp-block-button:not(.is-style-outline) .wp-block-button__link[style*="#a3e635"] {
  color: #0f172a !important;
}

/* Outline on dark */
.wp-block-button.is-style-outline .wp-block-button__link {
  border-width: 2px;
  background: transparent;
}

/* =====================================================================
   HEADER / NAVIGATION (Kadence header overrides)
   ===================================================================== */

#masthead,
.site-header,
.kadence-sticky-header,
.site-top-header-wrap,
.site-header-wrap {
  background-color: var(--n-dark) !important;
  border-bottom: 1px solid var(--n-border);
}

.site-branding .site-title a,
.site-branding .site-title a:hover {
  color: var(--n-white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Primary nav links */
.primary-navigation ul li a,
.primary-navigation ul li a:visited,
.main-navigation ul li a,
.main-navigation ul li a:visited,
.kadence-navigation ul li a,
.kadence-navigation ul li a:visited,
header nav ul li a,
#site-navigation a,
.nav--toggle-sub > li > a,
.site-header .main-navigation a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff !important;
  transition: color var(--n-transition);
  text-shadow: none;
}

.primary-navigation ul li a:hover,
.main-navigation ul li a:hover,
.kadence-navigation ul li a:hover,
#site-navigation a:hover,
header nav ul li a:hover {
  color: var(--n-lime) !important;
}

/* CTA nav button */
.primary-navigation .menu-cta a,
.main-navigation .menu-cta a {
  background-color: var(--n-lime);
  color: var(--n-dark) !important;
  border-radius: var(--n-radius);
  padding: 8px 18px;
  font-weight: 700;
}

/* Mobile hamburger */
.kadence-menu-toggle,
button.menu-toggle {
  color: var(--n-white) !important;
}

/* =====================================================================
   COVER BLOCKS (Hero sections)
   ===================================================================== */

.wp-block-cover {
  position: relative;
}

.wp-block-cover__inner-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.wp-block-cover .wp-block-heading {
  line-height: 1.1;
}

/* =====================================================================
   GROUP / SECTION BLOCKS
   ===================================================================== */

.wp-block-group.is-layout-constrained > *,
.wp-block-group.is-layout-flow > * {
  max-width: 1120px;
}

/* =====================================================================
   COLUMNS
   ===================================================================== */

.wp-block-columns {
  gap: 32px;
}

/* =====================================================================
   TABLES
   ===================================================================== */

.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}

.wp-block-table td,
.wp-block-table th {
  border: 1px solid var(--n-border);
  padding: 12px 18px;
  text-align: left;
  vertical-align: top;
}

.wp-block-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
  color: var(--n-muted);
  width: 180px;
}

/* =====================================================================
   LISTS
   ===================================================================== */

.wp-block-list li {
  padding: 3px 0;
  line-height: 1.6;
}

/* =====================================================================
   SPECIAL COMPONENTS
   ===================================================================== */

/* FINMA/legal disclaimer bar */
.neutrava-disclaimer {
  background-color: var(--n-mid);
  border-left: 3px solid var(--n-lime);
  padding: 14px 24px;
  font-size: 12px;
  color: var(--n-muted);
  line-height: 1.6;
}

/* Accent label / eyebrow text */
.neutrava-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--n-lime);
  display: block;
  margin-bottom: 12px;
}

/* Step number circles */
.neutrava-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--n-lime);
  color: var(--n-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

/* =====================================================================
   SHORTCODE WRAPPERS
   ===================================================================== */

[class*="neutrava-calculator"],
[class*="neutrava-form"],
.neutrava-location-calculator,
.neutrava-location-form {
  background: var(--n-white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

/* =====================================================================
   FOOTER
   ===================================================================== */

#colophon,
.site-footer {
  background-color: var(--n-dark);
  color: var(--n-muted);
  border-top: 1px solid var(--n-border);
}

.site-footer a {
  color: var(--n-muted);
  transition: color var(--n-transition);
}

.site-footer a:hover {
  color: var(--n-lime);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 860px) {
  .wp-block-cover .wp-block-cover__inner-container {
    padding: 0 16px;
  }

  .wp-block-columns:not(.is-not-stacked-on-mobile) {
    flex-wrap: wrap;
  }

  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
    min-width: 100% !important;
  }

  .wp-block-table td:first-child {
    width: auto;
    white-space: normal;
  }
}

/* =====================================================================
   KADENCE PAGE TITLE / HERO SUPPRESS
   All pages define their own H1 inside Block content – hide the
   default Kadence entry-hero section and remove the residual gap.
   ===================================================================== */

/* Catch every Kadence variant of the title banner */
.page .entry-hero,
.page .page-title,
.page .page-header,
.page .entry-header,
.page-template-default .entry-hero,
.kadence-page-hero,
.kadence-page-title,
.site-above-content-wrap .entry-header,
.page .inner-wrap > header.entry-header,
.page article > .entry-header,
body.page .single-page-hero,
body.page .page-title-inner,
body.page .page-title-bar {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Remove the gap / padding WordPress adds above the first block */
.page .content-container,
.page .site-main,
.page .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.page .wp-block-cover:first-child,
.page .entry-content > .wp-block-cover:first-child,
.page .entry-content > .wp-block-group:first-child {
  margin-top: 0 !important;
}
