/* ==========================================================================
   PPGPS — over HermonCMS's base (styles.css): its colours and its fonts,
   and the header of the site (layouts/default.gadx) in the page's flow.
   ========================================================================== */

/* The fonts of the PPGPS: Open Sans for the text, Oswald for the titles. */
@import url('../fonts/open-sans/open-sans.css');

@font-face {
  font-family: 'Oswald Light';
  src: url('../fonts/oswald/Oswald-Light-webfont.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Oswald';
  src: url('../fonts/oswald/Oswald-Regular-webfont.woff') format('woff');
  font-display: swap;
}

/* The colours of the PPGPS on the base's tokens: the "navy" is its bordeaux,
   the "gold" — the accent — the bordeaux on light backgrounds, white on the
   bordeaux ones (below). */
:root {
  --color-primary-navy: #791E26;
  --color-darker-navy: #5e171d;
  --color-gold: #791E26;
  --color-gold-hover: #5e171d;
  --color-dark-text: #212529;
  --color-body-text: #444444;
  --color-gold-shadow: rgba(121, 30, 38, 0.25);
  --color-navy-shadow: rgba(121, 30, 38, 0.12);
}

body {
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6, .font-title {
  font-family: 'Oswald Light', 'Oswald', sans-serif;
  font-weight: normal;
}

.font-title-strong {
  font-family: 'Oswald', sans-serif;
}

/* --------------------------------------------------------------------------
   The header: the band of the program (its titles, the languages, the UFV),
   then the bar of the menu — both in the page's flow, as on the site of
   before: the base's bar is fixed over its hero.
   -------------------------------------------------------------------------- */
.site-top {
  background: var(--color-white);
}

.site-top .site-title-1 {
  font-family: 'Oswald Light', sans-serif;
  font-size: 1rem;
  color: var(--color-dark-text);
}

.site-top .site-title-2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--color-primary-navy);
}

.locale-switch a {
  border: 1px solid var(--color-primary-navy);
  color: var(--color-primary-navy);
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.locale-switch a + a {
  border-left: none;
}

.locale-switch a:hover,
.locale-switch a.active {
  background: var(--color-primary-navy);
  color: var(--color-white);
}

.navbar.site-bar {
  position: relative;
  top: auto;
  padding: 0;
  background: var(--color-primary-navy);
}

body.has-user-bar .navbar.site-bar {
  top: auto;
}

.navbar.site-bar.scrolled {
  padding: 0;
  box-shadow: none;
}

main.navbar-offset {
  padding-top: 0;
}

@media (max-width: 768px) {
  main.navbar-offset {
    padding-top: 0;
  }
}

html {
  scroll-padding-top: 0;
}

/* the links of the bar: white on the bordeaux, underlined in white */
.site-bar .nav-link {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: normal;
  padding: 0.75rem 0;
}

.site-bar .nav-link:hover,
.site-bar .nav-link.active {
  color: var(--color-white);
}

.site-bar .nav-link::after {
  background: var(--color-white);
}

/* --------------------------------------------------------------------------
   The secondary menu, beside the content (comps.vertical_menu)
   -------------------------------------------------------------------------- */
.side-menu {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: var(--color-white);
  font-size: 0.9rem;
}

.side-menu a {
  color: var(--color-body-text);
}

.side-menu a:hover {
  color: var(--color-primary-navy);
}

/* the footer's columns are texts of the site (footer.N): their links white */
.site-footer a {
  color: inherit;
  text-decoration: underline;
}

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

/* the title of a post in a list is a link: in the text's font, as on the site
   of before (the titles of the sections stay in Oswald) */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  font-family: 'Open Sans', sans-serif;
}

/* --------------------------------------------------------------------------
   The base's literal golds and navies, in the colours of the PPGPS
   -------------------------------------------------------------------------- */
.back-to-top {
  background-color: var(--color-primary-navy) !important;
  color: var(--color-white) !important;
}

.back-to-top:hover {
  background-color: var(--color-darker-navy) !important;
}

.icon-circle {
  background: rgba(121, 30, 38, 0.12);
}

.form-input-custom:focus {
  box-shadow: 0 0 0 3px rgba(121, 30, 38, 0.28);
}

.btn-gold:hover {
  box-shadow: 0 6px 20px rgba(121, 30, 38, 0.45);
}

.hero {
  background: linear-gradient(135deg, #791E26 0%, #5e171d 50%, #791E26 100%);
}

.hero-bg {
  background: linear-gradient(rgba(121, 30, 38, 0.85), rgba(121, 30, 38, 0.95));
}
