/*
Theme Name: Herodemia Blog
Theme URI: https://herodemia.com
Author: Kawodoo
Author URI: https://herodemia.com
Description: Thème WordPress custom pour le blog Herodemia. Réplique la charte graphique, l'en-tête et le pied de page du site vitrine (React) : palette vert/teal, typographies Tiro Gurmukhi + Urbanist, navbar qui se masque au scroll, menu mobile plein écran, footer avec CTA, colonnes de liens et bandeau défilant.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: herodemia-blog
*/

/* =========================================================
   FONTS
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Tiro+Gurmukhi&family=Poppins:wght@400;500;600&family=Urbanist:wght@400;500;600;700&display=swap");

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--hb-font-body);
  color: var(--hb-text);
  background: var(--hb-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* height: auto est indispensable ici : WordPress écrit les attributs
   HTML width/height sur chaque <img> (ex. 1200x750). Sans ce reset,
   la largeur se réduit via max-width mais la hauteur reste figée à la
   valeur brute de l'attribut : l'image ressort déformée et trop haute. */
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
button { font-family: inherit; }

/* =========================================================
   DESIGN TOKENS — repris du site vitrine (styleglobale.css)
   ========================================================= */
:root {
  --hb-primary: #00695C;
  --hb-primary-light: #00897B;
  --hb-primary-dark: #0a4d45;
  --hb-primary-gradient: linear-gradient(135deg, #00897B 0%, #00695C 100%);

  --hb-bg: #FFFFFF;
  --hb-bg-soft: #F5F7FA;
  --hb-bg-tint: #f0faf6;

  --hb-text: #1a1a1a;
  --hb-text-muted: #6B7280;
  --hb-text-faint: #9CA3AF;

  --hb-border: #E5E7EB;
  --hb-border-soft: #F3F4F6;

  --hb-shadow-md: 0 1px 3px rgba(0, 0, 0, 0.05);
  --hb-shadow-lg: 0 7px 22px rgba(0, 0, 0, 0.12);
  --hb-shadow-xl: 0 10px 40px rgba(0, 0, 0, 0.15);

  --hb-radius-sm: 8px;
  --hb-radius-md: 14px;
  --hb-radius-lg: 20px;
  --hb-radius-full: 9999px;

  --hb-font-title: "Tiro Gurmukhi", serif;
  --hb-font-body: "Urbanist", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --hb-navbar-height: 68px;

  --hb-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Plein largeur : pas de max-width, juste un peu de respiration sur
   les côtés pour que le contenu ne touche pas le bord de l'écran. */
.hb-container {
  margin: 0 auto;
  padding: 0 64px;
}

@media (max-width: 768px) {
  .hb-container { padding: 0 20px; }
}

.hb-page-content { padding-top: calc(var(--hb-navbar-height) + 40px); }

/* Screen-reader-only : garde un <h1> pour le référencement et
   l'accessibilité sans l'afficher visuellement. */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   BOUTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--hb-font-body);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  border-radius: var(--hb-radius-sm);
  padding: 10px 20px;
  text-decoration: none;
  transition: background var(--hb-transition), color var(--hb-transition), border-color var(--hb-transition);
}

.btn--primary { background: var(--hb-primary); color: #fff; }
.btn--primary:hover { background: var(--hb-primary-dark); color: #fff; }

.btn--outline { background: transparent; color: var(--hb-text); border: 1px solid var(--hb-border); }
.btn--outline:hover { background: #f3f4f6; }

.btn--large { font-size: 15px; padding: 14px 32px; border-radius: var(--hb-radius-md); }

/* =========================================================
   NAVBAR — même comportement que le site vitrine :
   masquage au scroll vers le bas, réapparition au scroll vers
   le haut, menu mobile plein écran, sous-menu déroulant.
   ========================================================= */
.hb-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hb-navbar-height);
  padding: 0 48px;
  background: #fff;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.hb-navbar--hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }

/* Quand un administrateur est connecté, WordPress affiche sa barre
   d'admin fixe en haut de l'écran (#wpadminbar) : sans ce décalage,
   notre navbar (elle aussi fixed) passe dessous et se retrouve
   masquée. 32px est la hauteur de la barre d'admin sur desktop,
   46px sur mobile — ce sont les seuils que WordPress utilise lui-même. */
body.admin-bar .hb-navbar { top: 32px; }
body.admin-bar .hb-search-panel { top: calc(32px + var(--hb-navbar-height)); }
body.admin-bar .hb-mobile-menu { top: 32px; }

@media screen and (max-width: 782px) {
  body.admin-bar .hb-navbar { top: 46px; }
  body.admin-bar .hb-search-panel { top: calc(46px + var(--hb-navbar-height)); }
  body.admin-bar .hb-mobile-menu { top: 46px; }
}

.hb-navbar__logo img { height: 34px; width: auto; display: block; }

.hb-navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hb-navbar__links a,
.hb-navbar__links button {
  font-size: 14px;
  font-weight: 500;
  color: var(--hb-text);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s, background 0.2s;
}

.hb-navbar__links a:hover,
.hb-navbar__links button:hover,
.hb-navbar__links > li.current-menu-item > a,
.hb-navbar__links > li.current-cat > a,
.hb-navbar__links > li.current_page_item > a {
  color: var(--hb-primary);
  background: var(--hb-bg-tint);
}

.hb-navbar__actions { display: flex; align-items: center; gap: 10px; }
.hb-desktop-only { display: flex; }
.hb-mobile-only { display: none; }

.hb-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--hb-text);
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}
.hb-burger:hover { background: #f3f4f6; }

/* Sous-menu déroulant (dropdown "Catégories") */
.hb-navbar__dropdown { position: relative; }

.hb-navbar__dropdown__chevron { transition: transform 0.25s ease; }
.hb-navbar__dropdown.is-open .hb-navbar__dropdown__chevron { transform: rotate(180deg); }

.hb-navbar__dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-md);
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
  z-index: 300;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.hb-navbar__dropdown.is-open .hb-navbar__dropdown__menu { display: flex; }

.hb-navbar__dropdown__menu a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--hb-text);
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.hb-navbar__dropdown__menu a:hover { background: #f3f4f6; }

/* Sous-menus générés par wp_nav_menu() (ex : catégories du blog) */
.hb-navbar__links li.menu-item-has-children { position: relative; }
.hb-navbar__links li.menu-item-has-children > a::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-left: 2px;
}
.hb-navbar__links li.menu-item-has-children.is-open > a::after { transform: rotate(-135deg); }

.hb-navbar__links .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-md);
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
  z-index: 300;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.hb-navbar__links li.menu-item-has-children.is-open > .sub-menu { display: flex; }

.hb-navbar__links .sub-menu a {
  display: block;
  padding: 9px 10px;
  font-size: 13px;
}

/* Même sous-menu en version menu mobile plein écran */
.hb-mobile-menu__links li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  transition: transform 0.25s ease;
}
.hb-mobile-menu__links li.menu-item-has-children.is-open > a::after { transform: rotate(-135deg); }
.hb-mobile-menu__links .sub-menu {
  display: none;
  flex-direction: column;
  padding-left: 12px;
}
.hb-mobile-menu__links li.menu-item-has-children.is-open > .sub-menu { display: flex; }
.hb-mobile-menu__links .sub-menu a { font-size: 14px; font-weight: 400; padding: 12px; }

/* Icône recherche */
.hb-navbar__search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hb-border);
  background: transparent;
  color: var(--hb-text);
  cursor: pointer;
  transition: background 0.2s;
}
.hb-navbar__search:hover { background: #f3f4f6; }

/* Menu mobile plein écran */
.hb-mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 300;
  display: none;
  flex-direction: column;
}
.hb-mobile-menu.is-open { display: flex; }

.hb-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--hb-navbar-height);
  border-bottom: 1px solid var(--hb-border-soft);
  flex-shrink: 0;
}
.hb-mobile-menu__header img { height: 34px; width: auto; }

.hb-mobile-menu__close {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hb-border);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--hb-text);
}

.hb-mobile-menu__links {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.hb-mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hb-mobile-menu__nav > li > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--hb-text);
  text-decoration: none;
  padding: 14px 12px;
  border-radius: 10px;
  display: block;
}
.hb-mobile-menu__nav > li > a:hover,
.hb-mobile-menu__nav > li.current-menu-item > a,
.hb-mobile-menu__nav > li.current-cat > a,
.hb-mobile-menu__nav > li.current_page_item > a {
  color: var(--hb-primary);
  background: #f3f4f6;
}

.hb-mobile-menu__footer {
  padding: 16px 16px 32px;
  border-top: 1px solid var(--hb-border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.hb-mobile-menu__footer .btn { width: 100%; text-align: center; }

@media (max-width: 1023px) {
  .hb-navbar { padding: 0 20px; }
  .hb-navbar__links { display: none; }
  .hb-desktop-only { display: none; }
  .hb-mobile-only { display: flex; }
}

/* Panneau de recherche déroulant sous la navbar */
.hb-search-panel {
  position: fixed;
  top: var(--hb-navbar-height);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--hb-border);
  box-shadow: var(--hb-shadow-md);
  z-index: 190;
}
.hb-search-panel[hidden] { display: none; }

/* =========================================================
   HERO / EN-TÊTE DE PAGE
   ========================================================= */
.hb-page-header {
  text-align: center;
  padding: 8px 0 40px;
}
.hb-page-header__title {
  font-family: var(--hb-font-title);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: var(--hb-text);
  margin: 0 0 12px;
}
.hb-page-header__description {
  font-size: 14px;
  color: var(--hb-text-muted);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================================
   BILLET VEDETTE (page d'accueil du blog)
   ========================================================= */
.hb-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-lg);
  margin-bottom: 56px;
}

.hb-featured__media {
  border-radius: var(--hb-radius-md);
  overflow: hidden;
  aspect-ratio: 16/11;
  background: var(--hb-bg-soft);
}
.hb-featured__media img { width: 100%; height: 100%; object-fit: cover; }

.hb-featured__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

.hb-badge {
  display: inline-flex;
  align-items: center;
  background: var(--hb-bg-tint);
  color: var(--hb-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--hb-radius-full);
  text-decoration: none;
}

.hb-featured__title {
  font-family: var(--hb-font-title);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}
.hb-featured__title a { text-decoration: none; color: var(--hb-text); }
.hb-featured__title a:hover { color: var(--hb-primary); }

.hb-featured__excerpt {
  font-size: 14px;
  color: var(--hb-text-muted);
  line-height: 1.75;
}

.hb-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--hb-text-faint);
}
.hb-meta__dot::before { content: "•"; margin: 0 2px; }

/* =========================================================
   GRILLE D'ARTICLES
   ========================================================= */
.hb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

/* La grille passe en pleine largeur : sur très grand écran, on ajoute
   une 4e colonne pour éviter des cartes démesurément larges. */
@media (min-width: 1600px) {
  .hb-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .hb-grid { grid-template-columns: repeat(2, 1fr); }
  .hb-featured { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hb-grid { grid-template-columns: 1fr; }
}

.hb-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.hb-card__media {
  position: relative;
  border-radius: var(--hb-radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--hb-bg-soft);
}
.hb-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.hb-card:hover .hb-card__media img { transform: scale(1.04); }

.hb-card__badge { position: absolute; top: 12px; left: 12px; background: #fff; box-shadow: var(--hb-shadow-md); }

.hb-card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hb-text);
  margin: 0;
}
.hb-card:hover .hb-card__title { color: var(--hb-primary); }

.hb-card__excerpt {
  font-size: 13px;
  color: var(--hb-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* =========================================================
   PAGINATION
   ========================================================= */
.hb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 80px;
}
.hb-pagination a, .hb-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  border-radius: var(--hb-radius-sm);
  border: 1px solid var(--hb-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--hb-text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.hb-pagination a:hover { background: var(--hb-bg-tint); border-color: var(--hb-primary); color: var(--hb-primary); }
.hb-pagination .current { background: var(--hb-primary); border-color: var(--hb-primary); color: #fff; }

/* =========================================================
   ARTICLE (single.php)
   ========================================================= */
.hb-post-hero {
  background: var(--hb-bg-tint);
  padding: 16px 0 96px;
  text-align: center;
}
.hb-post-hero .hb-badge { background: #fff; }
.hb-post-hero__title {
  font-family: var(--hb-font-title);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.3;
  margin: 16px auto;
  max-width: 760px;
}

.hb-post-thumbnail {
  max-width: 900px;
  margin: -64px auto 40px;
  border-radius: var(--hb-radius-lg);
  overflow: hidden;
  box-shadow: var(--hb-shadow-xl);
  background: #fff;
}

.hb-post-content {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--hb-text);
}
.hb-post-content h2 { font-family: var(--hb-font-title); font-weight: 400; font-size: 26px; margin: 40px 0 16px; }
.hb-post-content h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.hb-post-content p { margin: 0 0 20px; }
.hb-post-content a { color: var(--hb-primary); text-decoration: underline; }
.hb-post-content img { border-radius: var(--hb-radius-md); margin: 24px 0; }
.hb-post-content blockquote {
  border-left: 3px solid var(--hb-primary);
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  color: var(--hb-text-muted);
  font-style: italic;
}
.hb-post-content ul, .hb-post-content ol { margin: 0 0 20px; padding-left: 22px; }
.hb-post-content li { margin-bottom: 8px; }
.hb-post-content code { background: var(--hb-bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.hb-post-content pre { background: #0a4d45; color: #fff; padding: 20px; border-radius: var(--hb-radius-md); overflow-x: auto; }
.hb-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.hb-post-content th, .hb-post-content td {
  border: 1px solid var(--hb-border);
  padding: 10px 14px;
  text-align: left;
}
.hb-post-content th { background: var(--hb-bg-soft); font-weight: 600; }

/* =========================================================
   PARTAGE DE L'ARTICLE
   ========================================================= */
.hb-share {
  max-width: 720px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--hb-border-soft);
}
.hb-share__label { font-size: 13px; font-weight: 600; color: var(--hb-text); margin-right: 4px; }
.hb-share__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--hb-bg-soft);
  color: var(--hb-text-muted);
  transition: background 0.2s, color 0.2s;
}
.hb-share__link:hover { background: var(--hb-primary); color: #fff; }

.hb-author-box {
  max-width: 720px;
  margin: 0 auto 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--hb-bg-soft);
  border-radius: var(--hb-radius-md);
}
.hb-author-box img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.hb-author-box__name { font-size: 14px; font-weight: 600; }
.hb-author-box__bio { font-size: 13px; color: var(--hb-text-muted); line-height: 1.6; margin-top: 2px; }

.hb-related-title {
  font-family: var(--hb-font-title);
  font-size: 24px;
  font-weight: 400;
  text-align: center;
  margin: 0 0 32px;
}

/* =========================================================
   RECHERCHE
   ========================================================= */
.hb-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-full);
  padding: 6px 6px 6px 18px;
  max-width: 480px;
  margin: 0 auto 48px;
}
.hb-search-form input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--hb-font-body);
  background: transparent;
}
.hb-search-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hb-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.hb-empty-state { text-align: center; padding: 60px 20px 100px; color: var(--hb-text-muted); }
.hb-empty-state h2 { font-family: var(--hb-font-title); font-weight: 400; font-size: 26px; color: var(--hb-text); margin-bottom: 12px; }

/* =========================================================
   FOOTER — même structure/contenu que le site vitrine :
   CTA, colonnes (marque, navigation, ressources, légal,
   entreprise), bandeau défilant, ligne de copyright.
   ========================================================= */
.hb-footer {
  background: #04201D;
  width: calc(100% - 48px);
  margin: 64px 24px 0;
  border-radius: 24px 24px 0 0;
  padding: 56px 80px 0;
  color: #fff;
}

.hb-footer-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hb-footer-cta__title {
  font-family: var(--hb-font-title);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
  max-width: 600px;
  margin: 0 auto;
}
.hb-footer-cta__description {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto;
}
.hb-footer-cta .btn--primary { background: #fff; color: #111; margin-top: 8px; }
.hb-footer-cta .btn--primary:hover { background: #eee; }

/* =========================================================
   NEWSLETTER (footer)
   ========================================================= */
.hb-newsletter {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 440px;
}

.hb-newsletter__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.hb-newsletter__form {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--hb-radius-full);
  padding: 6px 6px 6px 18px;
}

.hb-newsletter__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: var(--hb-font-body);
}
.hb-newsletter__input::placeholder { color: rgba(255, 255, 255, 0.45); }

.hb-newsletter__submit {
  flex-shrink: 0;
  margin-top: 0 !important;
  padding: 10px 20px;
  border-radius: var(--hb-radius-full);
}

.hb-newsletter__message {
  margin-top: 10px;
  font-size: 12px;
  min-height: 16px;
}
.hb-newsletter__message.is-success { color: #6ee7b7; }
.hb-newsletter__message.is-error { color: #fca5a5; }

@media (max-width: 480px) {
  .hb-newsletter__form {
    flex-direction: column;
    border-radius: var(--hb-radius-md);
    padding: 12px;
  }
  .hb-newsletter__submit { width: 100%; }
}

.hb-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hb-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hb-footer-brand img { height: 32px; width: auto; }
.hb-footer-brand__tagline { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.6; }

.hb-footer-socials { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.hb-footer-socials a { color: rgba(255,255,255,0.6); transition: color 0.2s; display: flex; }
.hb-footer-socials a:hover { color: #fff; }

.hb-footer-col__title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.hb-footer-col__links { display: flex; flex-direction: column; gap: 10px; }
.hb-footer-col__links a { font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.hb-footer-col__links a:hover { color: #fff; }

.hb-footer-marquee {
  padding: 24px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}
.hb-footer-marquee__track { display: inline-flex; gap: 32px; animation: hb-marquee 20s linear infinite; }
.hb-footer-marquee__track span { font-size: 13px; color: rgba(255,255,255,0.2); flex-shrink: 0; }
@keyframes hb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hb-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 28px;
  gap: 16px;
}
.hb-footer-bottom__copy { font-size: 16px; font-weight: 500; color: #fff; margin: 0; }
.hb-footer-bottom__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--hb-radius-full);
  padding: 8px 16px;
  font-size: 12px;
  color: #111;
  background: #fff;
}
.hb-footer-bottom__badge img { height: 20px; width: auto; }

@media (max-width: 1280px) { .hb-footer { padding: 56px 48px 0; } }

@media (max-width: 1023px) {
  .hb-footer { width: calc(100% - 32px); margin: 64px 16px 0; padding: 48px 32px 0; }
  .hb-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hb-footer { width: calc(100% - 24px); margin: 64px 12px 0; padding: 40px 20px 0; }
  .hb-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hb-footer-bottom { flex-direction: column; text-align: center; }
}
