/*
 Theme Name:   CBRA-Child
 Theme URI:    https://cbra.digital
 Description:  CBRA Child Theme
 Author:       CBRA Digital
 Author URI:   https://cbra.digital
 Template:     cbra-theme
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  cb-child
*/

/* FONTS */

/* Open Sans */
@font-face {
  font-family: "Open Sans";
  src: url("./assets/fonts/OpenSans-Light.ttf");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Open Sans";
  src: url("./assets/fonts/OpenSans-LightItalic.ttf");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "Open Sans";
  src: url("./assets/fonts/OpenSans-Regular.ttf");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Open Sans";
  src: url("./assets/fonts/OpenSans-Italic.ttf");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Open Sans";
  src: url("./assets/fonts/OpenSans-Medium.ttf");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Open Sans";
  src: url("./assets/fonts/OpenSans-MediumItalic.ttf");
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "Open Sans";
  src: url("./assets/fonts/OpenSans-SemiBold.ttf");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Open Sans";
  src: url("./assets/fonts/OpenSans-SemiBoldItalic.ttf");
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: "Open Sans";
  src: url("./assets/fonts/OpenSans-Bold.ttf");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Open Sans";
  src: url("./assets/fonts/OpenSans-BoldItalic.ttf");
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: "Open Sans";
  src: url("./assets/fonts/OpenSans-ExtraBold.ttf");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Open Sans";
  src: url("./assets/fonts/OpenSans-ExtraBoldItalic.ttf");
  font-weight: 800;
  font-style: italic;
}

:root {
  --font-primary: "Open Sans", sans-serif;
}

/* COLORS */
:root {
  --color-lightblue--100: #14b4e9;
  --color-blue--100: #1589cb;
  --color-darkblue--100: #13304d;
  --color-yellow--100: #dddb00;
  --color-grey--100: #f5f7f6;
  --color-darkgrey--100: #d9d9d9;
  --color-offwhite--100: #fdfcfc;
  --color-white--100: #fff;
  --color-black--100: #050606;
}

/* GENERAL STYLES */
body {
  --width-content: min(1286px, 100%);
  --width-gutter: 1.56rem;
  color: var(--color-darkblue--100);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.9375rem; /* 15px */

  #page {
    min-height: 100dvh;
    background-image: url("/wp-content/themes/cbra-child/assets/images/site_background.svg");
    background-repeat: no-repeat;
    background-position: bottom left;
    background-attachment: fixed;

    main {
      grid-template-columns: 1fr 1fr var(--width-content) 1fr 1fr;
    }
  }
}

h1 {
  font-size: 2rem;
  font-weight: 400;
}
h2 {
  font-size: 2rem;
  font-weight: 400;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  line-height: 1.5;
  margin-block-end: 0.5em;

  &:last-child {
    margin-block-end: 0;
  }
}

a:not(.cb-btn--primary) {
  color: inherit;
  text-decoration: none;

  &:hover {
    color: var(--color-blue--100);
  }
}

ul,
ol {
  margin-block-end: 1rem;
}

@media only screen and (max-width: 767px) {
  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  p {
    line-height: 1.6;
  }
}

/* Mobile / Tablet Sections */
@media only screen and (max-width: 1024px) {
  .cb-block {
    margin-inline: 1rem;
  }
}

/* BUTTONS */
.cb-btn--primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  padding: 0.9375em 1.875em;
  border-radius: 16px;
  border: 3px solid var(--color-yellow--100);
  background-color: var(--color-white--100);
  color: var(--color-darkblue--100);
  transition: background-color ease 0.4s;

  &:hover,
  &:focus {
    background-color: var(--color-yellow--100);
    border-color: var(--color-yellow--100);
    color: var(--color-darkblue--100);
    opacity: 1;
  }

  &.inverted {
    background-color: var(---color-yellow--100);
  }

  &.inverted:hover {
    background-color: var(--color-white--100);
  }
}

/* TAGLINES */
.tagline {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  margin-block: 1.75rem;

  .line {
    display: inline-block;
    background-color: var(--color);
    height: 4px;
    width: 5.25em;
    margin-inline-end: 0.4em;
  }

  .text {
    font-weight: 700;
  }
}

@media only screen and (max-width: 767px) {
  .tagline {
    .line {
      width: 1.75rem;
    }
  }
}

/* HELPERS */
.rounded--small {
  border-radius: 16px;
}
.rounded {
  border-radius: 32px;
}
.rounded--large {
  border-radius: 45px;
}
.box-shadow {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
}

/* BLOCKS - TABLET ADJUSTMENS */
@media only screen and (max-width: 1024px) {
  .cb-block:not(.cb-fullbleed--both) .cb-block:not(.cb-fullbleed--left),
  .cb-block:not(.cb-fullbleed--right) {
    margin-inline: var(--width-gutter);
  }

  .cb-fullbleed--both,
  .cb-fullbleed--left,
  .cb-fullbleed--right {
    margin-inline: 0;
  }
}
