/* Reset & base */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --text:#111;
  --muted:#555;
  --bg:#fdfdfd;
  --accent:#054b71;     /* brand blue */
  --accent-dark:#0a5580;/* darker companion */
  --white:#ffffff;
}

html, body { height: 100%; }

body{
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


.container{
  margin: 0 auto;
  padding: 0 20px;
}


html {   font-family: "Jost", sans-serif;}
h1, h2, h3, h4, h5, h6, .brand-text { font-family: "Poltawski Nowy", serif; }

/* Links (no default underlines) */
a { color: var(--ink); text-decoration: none; font-family: "Jost", sans-serif;}




/* ===== HEADER ===== */
.site-header {
    background: #054b71;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.25s ease, border-color 0.25s ease;
  }
  
  .header-container {
   max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  
  .logo a {
    font-family: "EB Garamond", serif;
    font-size: 2rem;
    text-decoration: none;
    color: #111;

  }

  .logo-b {
    border-right: 1px solid white;
    
  }

  .logo-nb {
    padding-left: 5px;
  }
  

  .logo-name {
    color: white;
    text-transform: uppercase;
  }
  
  /* NAV */
  .navbar .nav-links {
    display: flex;
    gap: 22px;
    list-style: none;
  }
  
  .navbar .nav-links li a {
  
    text-decoration: none;
    color: #2a2a2a;
    font-weight: 500;
    font-size: 0.98rem;
    letter-spacing: 0.2px;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.12s ease;
  }
  
  .navbar .nav-links li a:hover {
    background-color: rgba(0, 119, 182, 0.08);
    color: var(--accent-dark);
    transform: translateY(-1px);
  }
  
  /* Trial Button */
  .btn-trial {
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.25s ease;
    box-shadow: 0 6px 16px rgba(0, 119, 182, 0.18);
    font-size: 0.9rem;
  }
  .btn-trial:hover {
    background: #005f86;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 119, 182, 0.22);
  }
  
  /* ===== Header on dark (blue hero) ===== */
  .site-header.on-dark {
    background: #054b71;
    border-color: rgba(255,255,255,0.15);
  }
  .site-header.on-dark .logo a { color: #fff; }
  .site-header.on-dark .logo span { color: #fff; }
  .site-header.on-dark .nav-links li a { color: rgba(255,255,255,0.92); }
  .site-header.on-dark .nav-links li a:hover {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
  }
  .site-header.on-dark .btn-trial {
    background: #ffffff;
    color: var(--accent-dark);
    box-shadow: 0 8px 22px rgba(255,255,255,0.15);
  }
  .site-header.on-dark .menu-toggle span { background: #fff; }
  
  /* ===== Mobile Menu ===== */
  .menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 6px;
  }
  .menu-toggle span {
    width: 26px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  #mobile-header-trial-button {
    display: none;
  }
  
  @media (max-width: 800px) {

    .logo a {
      font-size: 1.6rem;
  
    }
  
    .logo-b {
      border-right: 1px solid white;
      
    }
  
    .logo-nb {
      padding-left: 5px;
    }

    .navbar {
      display: none;
      position: absolute;
      top: 64px;
      right: 0;
      background: #054b71; /* inherits transparent/white */
      width: 100%;
      border-top: 1px solid rgba(255,255,255,0.18);
      box-shadow: 0 12px 32px rgba(0,0,0,0.06);
     height: 100vh;
     padding-top: 50px;
    }
    .site-header:not(.on-dark) .navbar { background: #fff; border-top-color: #eee; }
    .navbar.active { display: block; }
  
    .nav-links {
      flex-direction: column;
      align-items: center;
      padding: 14px 0;
      gap: 12px;

    }
  
    .nav-links li a { width: max-content;}
  
    .btn-trial { display: none; }

    #header-trial-btn {
      display: none;
    }

    #mobile-header-trial-button {
      width: 50%;
      display: flex;
    }
  
    .menu-toggle { display: flex; }
  }
  
