/* ==========================================================================
   MagVenture rebranding - support system
   Colours, typography and shapes follow the live magventure.com theme
   (WordPress global styles), based on the MagVenture Corporate Design
   Manual (2023).
   Load directly after style.css in base_generic.html.
   Replaces the previous brand colours (#1144d1, #0f3cb8) and the
   Varela Round font.

   Fonts:
   - Lato: Google Fonts (link in base_generic.html)
   - Gilroy: MagVenture's Adobe Fonts kit (link in base_generic.html).
     The kit must allow this domain; otherwise headings fall back to Lato.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Brand tokens (values from magventure.com)
   -------------------------------------------------------------------------- */
:root {
  --mv-primary: #0e2a43;          /* mt-primary */
  --mv-primary-hover: #153959;    /* mt-primary-hover */
  --mv-title: #001438;            /* mt-title */
  --mv-text: #666565;             /* mt-text */
  --mv-cta: #fc4d1f;              /* mt-secondary, call-to-action */
  --mv-cta-hover: #ff6e47;        /* mt-secondary-hover */
  --mv-white: #ffffff;
  --mv-bg-secondary: #eceff4;     /* mt-background-secondary */
  --mv-border: #d9d9d9;           /* mt-border-secondary */
  --mv-dark-box: #001d4b;         /* mt-box-background-tertiary */

  --mv-radius-button: 8px;
  --mv-radius-box: 0;

  --mv-font-heading: "Gilroy", "gilroy", "Lato", Arial, sans-serif;
  --mv-font-body: "Lato", Arial, sans-serif;

  --mv-focus: 0 0 0 0.2rem rgba(14, 42, 67, 0.25);
}

/* --------------------------------------------------------------------------
   2. Base typography
   -------------------------------------------------------------------------- */
body {
  font-family: var(--mv-font-body);
  color: var(--mv-text);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--mv-font-heading);
  font-weight: 700;
  color: var(--mv-title);
}

/* style.css: h1 i { Varela Round; grey } */
h1 i {
  font-family: var(--mv-font-heading);
  color: var(--mv-primary);
}

/* style.css: p, ul { color: #2e2e2e } */
p,
ul {
  color: var(--mv-text);
}

a {
  color: var(--mv-primary);
}
a:hover,
a:focus {
  color: var(--mv-primary-hover);
}

/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */
/* Logo clear space: half the logo height (brand manual, section 1) */
.navbar-brand {
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-right: 1.5rem;
}

/* style.css: .nav-link { Varela Round } */
.navbar-light .navbar-nav .nav-link {
  font-family: var(--mv-font-heading);
  font-weight: 600;
  color: var(--mv-primary);
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .show > .nav-link,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--mv-primary-hover);
}

.dropdown-menu {
  border: 0;
  border-radius: var(--mv-radius-box);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}
.dropdown-item {
  font-family: var(--mv-font-body);
  color: var(--mv-title);
}
.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--mv-title);
  background-color: var(--mv-bg-secondary);
}
.dropdown-item.active,
.dropdown-item:active {
  color: var(--mv-white);
  background-color: var(--mv-primary);
}

/* --------------------------------------------------------------------------
   4. Buttons
   style.css gives every .btn a blue background (#1144d1) and 15px radius.
   Primary actions use MagVenture blue. Orange is reserved for the single
   most important action on a page: add class "btn-mv-cta" to that button.
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--mv-font-heading);
  font-weight: 600;
  color: var(--mv-white);
  background: var(--mv-primary);
  border-color: var(--mv-primary);
  border-radius: var(--mv-radius-button);
  box-shadow: none;
}
.btn:hover {
  color: var(--mv-white);
  background: var(--mv-primary-hover);
  border-color: var(--mv-primary-hover);
  box-shadow: none !important;
}
.btn:focus,
.btn.focus {
  box-shadow: var(--mv-focus);
}

.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
  color: var(--mv-white);
  background-color: var(--mv-primary);
  border-color: var(--mv-primary);
}
.btn-primary:hover {
  background-color: var(--mv-primary-hover);
  border-color: var(--mv-primary-hover);
}

.btn-outline-primary {
  color: var(--mv-primary);
  background: transparent;
  border-color: var(--mv-primary);
}
.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled):active {
  color: var(--mv-white);
  background-color: var(--mv-primary);
  border-color: var(--mv-primary);
}

.btn-mv-cta {
  color: var(--mv-white);
  background: var(--mv-cta);
  border-color: var(--mv-cta);
}
.btn-mv-cta:hover,
.btn-mv-cta:focus {
  color: var(--mv-white);
  background: var(--mv-cta-hover);
  border-color: var(--mv-cta-hover);
}

/* style.css: #button1 and #loadMore (ID selectors) */
#button1,
#loadMore {
  font-family: var(--mv-font-heading);
  font-weight: 600;
  background-color: var(--mv-primary);
  border-radius: var(--mv-radius-button);
  box-shadow: none;
}
#button1:hover,
#loadMore:hover {
  background: var(--mv-primary-hover);
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   5. Cards (support overview tiles)
   style.css: .card-header / h2|h3|h4.card-header / h2|h3.card-footer
   use #1144d1, hover #0f3cb8, Varela Round and rounded corners.
   magventure.com uses square boxes (radius 0).
   -------------------------------------------------------------------------- */
.card,
.custom-card {
  border-color: var(--mv-border);
  border-radius: var(--mv-radius-box);
}

.card-header,
h2.card-header,
h3.card-header,
h4.card-header,
h2.card-footer,
h3.card-footer {
  font-family: var(--mv-font-heading);
  font-weight: 600;
  color: var(--mv-white);
  background: var(--mv-primary);
  border-radius: var(--mv-radius-box) !important;
}
.card:hover .card-header,
.card:hover .card-footer {
  background: var(--mv-primary-hover);
}

/* Class used in support.html and other templates; not defined in style.css */
.bg-custom-1 {
  background-color: var(--mv-primary);
}
.bg-custom {
  background-color: var(--mv-primary) !important;
}

/* Call-to-action card: the single most important action on the page.
   Used on "Request support" in support.html. */
.card-header.bg-mv-cta {
  background: var(--mv-cta);
}
.card:hover .card-header.bg-mv-cta {
  background: var(--mv-cta-hover);
}

/* --------------------------------------------------------------------------
   6. Accordion (FAQ) and icons
   -------------------------------------------------------------------------- */
.panel-title > a,
.panel-title > a:active,
.panel-title > a:hover,
.panel-title > a:focus {
  font-family: var(--mv-font-heading);
  font-weight: 600;
  color: var(--mv-white);
  background: var(--mv-primary);
  border-radius: var(--mv-radius-box);
}
.panel-title > a:hover,
.panel-title > a:focus {
  background: var(--mv-primary-hover);
}

/* Text and headings inside blue bars must stay white
   (the global heading colour above would make them dark on dark). */
.panel-title,
.panel-title *,
.panel-heading,
.panel-heading *,
.wrapper h1, .wrapper h2, .wrapper h3, .wrapper h4, .wrapper h5, .wrapper h6,
.header {
  color: var(--mv-white);
}

.icon {
  fill: var(--mv-primary);
}
.icon:hover {
  fill: var(--mv-primary-hover);
}

/* --------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */
.form-control:focus,
.custom-select:focus {
  border-color: var(--mv-primary);
  box-shadow: var(--mv-focus);
}

/* --------------------------------------------------------------------------
   8. Bootstrap utility colours mapped to the brand
   -------------------------------------------------------------------------- */
.bg-primary { background-color: var(--mv-primary) !important; }
.text-primary { color: var(--mv-primary) !important; }
.border-primary { border-color: var(--mv-primary) !important; }
.badge-primary { background-color: var(--mv-primary); }

.page-link {
  color: var(--mv-primary);
}
.page-item.active .page-link {
  background-color: var(--mv-primary);
  border-color: var(--mv-primary);
}

