:root {
  /* General */
  --boxed: 85rem;
  --container-width: calc(100% - 10rem);
  --container-fluid-width: 100%;

  /* Dynamic height */
  --header-top-height: 5.709rem;
  --header-height: 9.813rem;

  /* Colors */
  --black: #000;
  --black-rgb: rgb(0, 0, 0, 100%);
  --white: #ffffff;
  --white-rgb: 255, 255, 255;

  /* Bootstrap */
  --bs-primary: #243472;
  --bs-primary-rgb: 36, 52, 114;
  --bs-secondary: #E7A821;
  --bs-secondary-rgb: 231, 168, 33;
  --bs-secondary-bg: #F6F6F6;
  --bs-tertiary: #052424;
  --bs-light-rgb: 242, 245, 248;
  --bs-gray: #121212;
  --bs-success: #3ebb8a;
  --bs-success-rgb: 62, 187, 138;
  --bs-success-bg-subtle: rgba(var(--bs-success-rgb), 0.2);
  --bs-light-green: rgba(var(--bs-green-rgb), 0.2);
  --bs-danger-bg-subtle: #f8e7e9;
  --bs-border-color: rgb(223 223 223 / 20%);
  --bs-border-color2: var(--bs-secondary-bg);
  --bs-body-color: #121212;
  --bs-body-bg: #fff;
  --bs-body-font-family: 'Inter', sans-serif;
  --bs-body-font-size: 1rem;

  --bs-link-color: var(--black);
  --bs-link-hover-color: var(--bs-primary);

  /* Font Family */
  --h-font: 'Inter', sans-serif;
  --btn-font: 'Inter', sans-serif;

  /* Font size */
  --text-nano: 0.725rem;
  --text-xxs: 0.775rem;
  --text-xs: 0.875rem;
  --text-sm: 1.25rem;
  --text-md: 1.5rem;
  --text-lg: 1.75rem;
  --text-xl: 2rem;
  --text-xxl: 2.5rem;
  --text-xxxl: 3rem;

  --heading-sm: 1.5rem;
  --heading-md: 1.8rem;
  --heading-lg: 2.5rem;
  --heading-xl: 3rem;
  --heading-xxl: 3.5rem;
  --heading-xxxl: 4rem;

  /* Transition */
  --transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}


/* ------------------------ FONTS ----------------------- */
@font-face {
  font-family: 'Google Sans';
  src: url('../fonts/Montserrat-VariableFont.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}


/* ---------------------- TYPOGRAPHY -------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--h-font);
}

h1 {
    font-size: var(--heading-lg);
    font-weight: 900;
    line-height: 1em;
}
h2 {
    font-size: var(--heading-md);
    font-weight: 700;
}
h3 {
    font-size: var(--text-md);
    font-weight: 500;
}
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.h-font,
.h-font > * {
    font-family: var(--h-font);
}

.text-regular,
.text-regular > * {
    font-size: 1rem;
}
.text-nano {
    font-size: var(--text-nano);
}
.text-xxs,
.text-xxs > * {
    font-size: var(--text-xxs);
}
.text-xs,
.text-xs > * {
    font-size: var(--text-xs);
}
.text-sm,
.text-sm > * {
    font-size: var(--text-sm);
    line-height: 1.2em;
}
.text-md,
.text-md > * {
    font-size: var(--text-md);
    line-height: 1em;
}
.text-lg,
.text-lg > * {
    font-size: var(--text-lg);
    line-height: 1.3em;
}
.text-xl,
.text-xl > * {
    font-size: var(--text-xl);
    line-height: 1.3em;
}
.text-xxl,
.text-xxl > * {
    font-size: var(--text-xxl);
    line-height: 1.3em;
}
.text-xxxl,
.text-xxxl > * {
    font-size: var(--text-xxxl);
    line-height: 1.1em;
}

.heading-sm,
.heading-sm > * {
    font-size: var(--heading-sm);
}
.heading-md,
.heading-md > * {
    font-size: var(--heading-md);
}
.heading-lg,
.heading-lg > * {
    font-size: var(--heading-lg);
    line-height: 1.2em;
}
.heading-xl,
.heading-xl > * {
    font-size: var(--heading-xl);
    line-height: 1em;
}
.heading-xxl,
.heading-xxl > * {
    font-size: var(--heading-xxl);
    line-height: 1.1em;
}
.heading-xxxl,
.heading-xxxl > * {
    font-size: var(--heading-xxxl);
    line-height: 1em;
}


.module-text a {
    text-decoration: underline;
}

p:last-of-type {
    margin-bottom: 0;
}
span {
    display: inline-block;
    line-height: 1.3;
}

.field-message {
    font-size: var(--text-xs);
    color: var(--bs-gray-600);
}

.border-secondary {
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color2) !important;
}


/* ---------------- End Typography ---------------- */



/* ------------------ Appearance ------------------ */

::selection {
  background: var(--bs-primary);
  color: var(--white);
}

.module-button {
  display: flex;
}
.btn-reset {
    all: unset;
    cursor: pointer;
}

.inset-0 {
    inset: 0;
}

.gradient-bottom:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 1;
}

.btn {
    --bs-btn-font-family: var(--h-font);
    --bs-btn-font-weight: 500;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: 0.7rem;
    --bs-btn-border-radius: var(--bs-border-radius-lg);
    --bs-btn-color: inherit;
    --bs-btn-active-color: inherit;
    --bs-btn-active-bg: inherit;
    --bs-btn-active-border-color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-shrink: 0;
    transition: var(--transition);
}
.btn-icon {
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-padding-y: 0.5rem;
}
.btn-primary {
    --bs-btn-color: var(--white);
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-hover-bg: #0050ba;
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-border-color: #0050ba;
}
.btn-primary.btn-outline,
.module-button.btn-outline .btn-primary,
.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-bg: transparent;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
}
.btn-secondary {
    --bs-btn-color: var(--black);
    --bs-btn-hover-color: var(--black);
    --bs-btn-bg: var(--white);
    --bs-btn-hover-bg: var(--bs-gray-100);
    --bs-btn-border-color: var(--white);
    --bs-btn-hover-border-color: var(--white);
}
.btn-secondary.btn-outline,
.module-button.btn-outline .btn-secondary {
    --bs-btn-color: var(--white);
    --bs-btn-hover-color: var(--black);
    --bs-btn-bg: transparent;
    --bs-btn-hover-bg: var(--white);
    --bs-btn-border-color: var(--white);
    --bs-btn-hover-border-color: var(--white);
}
.btn-primary:hover,
.btn-secondary:hover {
  transition: var(--transition);
}
.btn-info {
    --bs-btn-bg: rgba(var(--bs-light-rgb), 1);
    --bs-btn-border-color: rgba(var(--bs-light-rgb), 1);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-color: var(--white);
    --bs-btn-hover-border-color: rgba(var(--bs-light-rgb), 1);
}

.btn-sm {
    --bs-btn-padding-x: 1.2rem;
    --bs-btn-padding-y: 0.6rem;
    --bs-btn-border-radius: var(--bs-border-radius);
    text-transform: none;
    font-weight: 600;
}
.btn-sm svg {
    width: 1.5em;
    height: auto;
}

.btn-icon svg {
    width: 1.3em;
    height: auto;
}

svg {
    width: 1rem;
    height: auto;
    flex-shrink: 0;
}
.icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-sm svg {
    width: 0.775rem;
    height: auto;
}
.icon-sm svg {
    width: 0.875rem;
    height: auto;
}
.icon-md svg {
    width: 1rem;
    height: auto;
}
.icon-lg svg {
    width: 1.25rem;
    height: auto;
}
.icon-xl svg {
    width: 1.8rem;
    height: auto;
}

.transition {
    transition: var(--transition);
}






.tooltip {
    --bs-tooltip-color: #000;
    --bs-tooltip-bg: #fff;
    --bs-tooltip-font-size: 0.775rem;
    pointer-events: none;
    z-index: 9999;
}

.spinner-border-sm {
    --bs-spinner-border-width: 0.1em;
}

.accordion {
    --bs-accordion-btn-padding-x: 0;
    --bs-accordion-active-bg: var(--bs-body-bg);
    --bs-accordion-btn-focus-box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
    --bs-accordion-border-radius: none;
    --bs-accordion-inner-border-radius: none;
}
.accordion-item {
    border: none;
    border-bottom: 1px solid var(--bs-border-color2);
    box-shadow: none;
}
.accordion-body ul {
    padding-left: 0;
    margin: 0;
}

.modal {
    --bs-modal-border-radius: var(--bs-border-radius-xl);
}

.list-group {
    --bs-list-group-bg: transparent;
    --bs-list-group-border-width: 0;
    --bs-list-group-border-radius: 0;
    --bs-list-group-active-bg: var(--bs-primary);
    --bs-list-group-action-hover-bg: var(--white);
    gap: 0.25rem;
}

.help-block {
    font-size: var(--text-xxs);
    margin-top: 0.25rem;
}

.dropdown-toggle::after {
    display: none;
}

div[data-bs-toggle="collapse"] {
    cursor: pointer;
}
div[data-bs-toggle="collapse"][aria-expanded="true"] .dropdown-icon svg {
    transform: rotate(-180deg);
    transition: var(--transition);
}
.dropdown-icon svg {
    width: 0.6rem;
    height: auto;
    transition: var(--transition);
}


.hover-scale-trigger:hover .hover-scale-element {
    transform: scale(1.04);
}






/* ------------------ Custom Margins ------------------ */

.mt-6 {
    margin-top: 6rem;
}
.mb-6 {
    margin-bottom: 6rem;
}
.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.pt-6 {
    padding-top: 6rem;
}
.pb-6 {
    padding-bottom: 6rem;
}
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* ------------------ End Custom Margins ------------------ */



/* ------------------ Structure/Layout ------------------ */


html {
    /* font-size: 0.95238vw; */
    scroll-behavior: auto;
}

body {
    overflow-x: clip;
}

/* Offset pentru header-ul fixed: fara el, continutul paginii incepe de la y=0
   si intra pe sub header. Se dezactiveaza per pagina, nu dintr-o lista de
   exceptii scrisa aici: din admin (dropdown-ul "Spacing Top" din optiunile
   paginii) sau din controller ($this->params['body_class']). Layout-ul traduce
   ambele in clasa .main-no-pt pe <body>.

   Daca un site vrea si aer sub header, isi suprascrie regula in custom.css —
   aici ramane exact inaltimea header-ului. */
body:not(.main-no-pt) main {
    padding-top: var(--header-height);
}


.container {
    max-width: var(--container-width);
}
.container-fluid {
    max-width: var(--container-fluid-width);
}

.container .builder-section .container,
.container .builder-section .container-fluid,
form .container,
form .container-fluid {
    padding: 0;
    max-width: 100%;
}
.builder-section {
    position: relative;
}


/* Footer */
.footer-menu-wrapper {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    justify-self: flex-end;
    gap: 10rem;
}
.footer-menu-wrapper a {
    display: block;
    padding: 0.25rem 0;
}

footer .module-contact a {
    display: block;
    padding: 0.25rem 0;
    font-weight: 500;
}

.footer-menu-wrapper .module-social {
    filter: invert();
}


/* ------------------ End Structure/Layout ------------------ */


