/*
 * PocketBook Bootstrap Theme
 * Brand foundation — paste after bootstrap.min.css
 * Source: pocketbook.ch style-guide, May 2026
 */

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --pb-black:          #171717;
  --pb-white:          #ffffff;
  --pb-green:          #00C08B;
  --pb-green-dark:     #0A615C;
  --pb-green-muted:    rgba(10, 97, 92, 0.26);
  --pb-gray-dark:      #252525;
  --pb-gray-mid:       #5F5F5F;
  --pb-gray-text:      #545454;
  --pb-gray-muted:     #979797;
  --pb-white-muted:    rgba(255, 255, 255, 0.7);
  --pb-white-overlay:  rgba(255, 255, 255, 0.9);
  --pb-shadow-card:    rgba(150, 150, 150, 0.5) 0px 2px 8px 0px;
  --pb-navbar-height:  88px;
  --pb-section-py:     100px;
  --pb-section-pb:     120px;
  --pb-container-max:  1040px;
  --pb-container-px:   80px;

  /* Bootstrap overrides via custom props */
  --bs-body-font-family: "Noto Sans", -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-weight: 300;
  --bs-body-color:       #171717;
  --bs-link-color:       #0A615C;
  --bs-link-hover-color: #064a46;
  --bs-border-radius:    0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 50px;
  --bs-border-radius-pill: 50px;
}

/* ============================================================
   Global Base
   ============================================================ */
body {
  font-family: "Noto Sans", -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  color: var(--pb-black);
  line-height: 1.75;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 300;
  letter-spacing: 0.2px;
  font-family: "Noto Sans", -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, .h1 { font-size: 5rem;      line-height: 1.2; }
h2, .h2 { font-size: 3.4375rem; line-height: 1.36; }
h3, .h3 { font-size: 1.875rem;  line-height: 1.2; }
h4, .h4 { font-size: 1.5rem;    line-height: 1.33; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.875rem; }

@media (max-width: 768px) {
  h1, .h1 { font-size: 2.5rem; }
  h2, .h2 { font-size: 2rem; }
  h3, .h3 { font-size: 1.5rem; }
}

a {
  color: var(--pb-green-dark);
  text-decoration: none;
}
a:hover {
  color: var(--pb-green);
}

/* ============================================================
   Typography Utilities
   ============================================================ */
.pb-label {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.75;
}

.pb-heading-xl {
  font-size: 5rem;
  font-weight: 300;
  line-height: 1.2;
}

.pb-text-muted-light {
  color: var(--pb-white-muted) !important;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: "Noto Sans", -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 0.8125rem 1.875rem;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: var(--pb-green);
  border-color: var(--pb-green);
  color: var(--pb-white);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--pb-green-dark);
  border-color: var(--pb-green-dark);
  color: var(--pb-white);
}

.btn-secondary,
.btn-dark {
  background-color: var(--pb-black);
  border-color: var(--pb-black);
  color: var(--pb-white);
  border-radius: 50px;
}
.btn-secondary:hover,
.btn-dark:hover {
  background-color: #3a3a3a;
  border-color: #3a3a3a;
  color: var(--pb-white);
}

.btn-outline-light-pill {
  background: transparent;
  border: 1px solid var(--pb-white);
  border-radius: 50px;
  color: var(--pb-white);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.8125rem 1.875rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-outline-light-pill:hover {
  background: var(--pb-white);
  color: var(--pb-black);
}

.btn-link-arrow {
  background: transparent;
  border: none;
  padding: 0.8125rem 0;
  color: var(--pb-black);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.btn-link-arrow::after { content: "→"; }
.btn-link-arrow:hover  { color: var(--pb-green-dark); }

/* ============================================================
   Navigation
   ============================================================ */
.pb-navbar {
  height: var(--pb-navbar-height);
  background-color: var(--pb-black);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
}

.pb-navbar .navbar-brand {
  padding: 0 15px;
  height: var(--pb-navbar-height);
  display: flex;
  align-items: center;
}

.pb-navbar .nav-link {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1px;
  text-transform: uppercase;
  color: var(--pb-white);
  padding: 0 0.9375rem;
  height: var(--pb-navbar-height);
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.pb-navbar .nav-link:hover {
  color: var(--pb-green);
}

.pb-navbar-offset {
  padding-top: var(--pb-navbar-height);
}

/* ============================================================
   Sections
   ============================================================ */
.pb-section {
  padding: var(--pb-section-py) 0 var(--pb-section-pb);
}

@media (max-width: 768px) {
  .pb-section {
    padding: 3rem 0 4rem;
  }
}

.pb-section-hero {
  background-color: var(--pb-black);
  color: var(--pb-white);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.pb-section-dark {
  background-color: var(--pb-gray-dark);
  color: var(--pb-white-muted);
}
.pb-section-dark h1, .pb-section-dark h2, .pb-section-dark h3,
.pb-section-dark h4, .pb-section-dark h5, .pb-section-dark h6 {
  color: var(--pb-white);
}

.pb-section-gray {
  background-color: var(--pb-gray-mid);
  color: var(--pb-white-muted);
}
.pb-section-gray h1, .pb-section-gray h2, .pb-section-gray h3,
.pb-section-gray h4, .pb-section-gray h5, .pb-section-gray h6 {
  color: var(--pb-white);
}

.pb-section-overlay {
  position: relative;
}
.pb-section-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.pb-section-overlay > * {
  position: relative;
  z-index: 2;
}

/* ============================================================
   Container
   ============================================================ */
.pb-container {
  max-width: var(--pb-container-max);
  padding-left: var(--pb-container-px);
  padding-right: var(--pb-container-px);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

@media (max-width: 768px) {
  .pb-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ============================================================
   Cards
   ============================================================ */

/* Article / guide card */
.pb-card-article {
  border: none;
  background: transparent;
  border-radius: 0;
}
.pb-card-article__img {
  display: block;
  overflow: hidden;
}
.pb-card-article__img img {
  transition: transform 0.4s ease;
  width: 100%;
  height: auto;
  display: block;
}
.pb-card-article__img:hover img {
  transform: scale(1.03);
}
.pb-card-article__body {
  padding: 1.25rem 0 0;
}
.pb-card-article__title {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--pb-black);
  margin-bottom: 0.5rem;
}
.pb-card-article__meta {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pb-gray-muted);
  margin-bottom: 0.5rem;
}
.pb-card-article__link {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pb-black);
  text-decoration: none;
}
.pb-card-article__link::after { content: " →"; }
.pb-card-article__link:hover  { color: var(--pb-green-dark); }

/* Product card */
.pb-card-product {
  background: var(--pb-white);
  border: none;
  border-radius: 0;
  text-align: center;
  transition: box-shadow 0.3s ease;
}
.pb-card-product:hover {
  box-shadow: rgba(150, 150, 150, 0.5) 0px 4px 16px 0px;
}
.pb-card-product__img { padding: 1.5rem; }
.pb-card-product__img img { max-width: 100%; height: auto; }
.pb-card-product__body { padding: 1rem 1.5rem 1.5rem; }
.pb-card-product__name {
  font-size: 1rem;
  font-weight: 300;
  color: var(--pb-black);
  margin-bottom: 0.25rem;
}
.pb-card-product__sub {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pb-gray-muted);
}

/* ============================================================
   Badges
   ============================================================ */
.pb-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  background-color: var(--pb-green);
  color: var(--pb-white);
  border-radius: 0;
}
.pb-badge-outline {
  background-color: transparent;
  border: 1px solid var(--pb-green);
  color: var(--pb-green-dark);
}

/* ============================================================
   Footer
   ============================================================ */
.pb-footer {
  background-color: var(--pb-gray-dark);
  color: var(--pb-white-muted);
  padding: 2.5rem 0 1.5625rem;
  font-size: 0.875rem;
  font-weight: 300;
}
.pb-footer a {
  color: var(--pb-white-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}
.pb-footer a:hover { color: var(--pb-white); }
.pb-footer__heading {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pb-white);
  margin-bottom: 1rem;
  font-weight: 300;
}
.pb-footer__nav { list-style: none; padding: 0; margin: 0; }
.pb-footer__nav li + li { margin-top: 0.375rem; }
.pb-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   Dividers
   ============================================================ */
.pb-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 2.5rem 0;
}
.pb-divider-light {
  border-top-color: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   Utilities
   ============================================================ */
.pb-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.pb-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.pb-fade-up.is-visible {
  opacity: 1;
  transform: none;
}

a.pb-link-green {
  color: var(--pb-green-dark);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}
a.pb-link-green:hover { color: var(--pb-green); }
