/*
  Theme: Hviid Digital
  Version: 2.0
*/

:root {
  /* Brand Colors */
  --color-primary: #385d8d;
  --color-primary-dark: #2d4a6f;
  --color-dark: #132333;
  --color-light-bg: #f3ece9;
  --color-white: #ffffff;

  /* Grayscale Colors */
  --color-gray-lightest: #fafafa;
  --color-gray-lighter: #f5f5f5;
  --color-gray-light: #e5e5e5;
  --color-gray: #ccc;
  --color-gray-dark: #aaa;
  --color-gray-darker: #212121;
  --color-gray-darkest: #1c1c1c;
  --color-black: #000000;

  /* Typography */
  --font-family-primary: "Open Sans", sans-serif;
  --font-family-logo: "Aller", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-dark);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.admin-bar {
  margin-top: -32px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-family-primary);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: inherit;
}

h1,
.h1 {
  font-size: 3rem;
  margin-top: 0;
  font-weight: 600;
}

h2,
.h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3,
.h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4,
.h4 {
  font-size: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  margin: 0 0 15px;
}

a {
  color: var(--color-primary);
  transition: color 300ms;
}

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

hr {
  height: 1px;
  background-color: var(--color-gray-dark);
  margin: 30px 0;
  border: 0;
}

.has-background a:not(.wp-block-button__link) {
  color: inherit;
}

/* Buttons */
.wp-block-button__link,
.forminator-ui button.forminator-button,
.wp-element-button,
button,
input[type="button"],
input[type="submit"] {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: inherit;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 300ms, opacity 200ms;
}

.wp-block-button__link:hover,
.forminator-ui button.forminator-button:hover,
.wp-element-button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background-color: var(--color-dark);
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
  opacity: 0.8;
  color: var(--color-white);
}

/* Forms */
form label {
  display: block;
  margin-bottom: 5px;
  cursor: pointer;
}

form input,
form select,
form textarea,
.wp-block-search__input {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font: inherit;
  border: 0;
  border-radius: 5px;
  background-color: var(--color-gray-lighter);
}

form textarea {
  height: 100px;
}

/* Header */
#header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding: 20px 30px;
  pointer-events: none;
  font-size: 1rem;
}

body.elementor-editor-active #header {
  display: none;
}

body.admin-bar #header {
  top: 32px;
}

.header-bar {
  position: relative;
  background-color: var(--color-white);
  border-radius: 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  pointer-events: all;
  max-width: 100%;
}

#header .custom-logo {
  position: relative;
  z-index: 90;
  display: block;
  width: 300px;
  height: auto;
  margin-top: 5px;
  transition: width 300ms;
}

#header[data-scroll]:not([data-scroll="0"]) .custom-logo {
  width: 240px;
}

#header nav {
  display: flex;
  align-items: center;
}

#header nav ul.menu,
#header nav ul.menu li {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 1rem;
}

#header nav ul.menu li a {
  display: block;
  /* margin: 0 1rem; */
  padding: 0.5rem;
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  border-bottom: 2px solid transparent;
  transition: color 300ms, border-color 300ms, transform 300ms, font-size 300ms, margin 300ms;
}

#header nav ul.menu li a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

#header nav ul.menu li a:active {
  transform: translateY(0);
}

#header nav ul.menu li.current-menu-item > a {
  border-color: var(--color-primary);
}

#header nav ul.menu li:last-child a {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.8rem 1.75rem;
  border-radius: 15px;
  border-bottom: none;
  transition: background-color 300ms, transform 300ms, box-shadow 300ms, padding 300ms, font-size 300ms, margin-left 300ms;
}

#header[data-scroll]:not([data-scroll="0"]) nav ul.menu li:last-child a {
  padding: 0.75rem 1.5rem;
}

#header nav ul.menu li:last-child a:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(56, 93, 141, 0.3);
}

#header nav ul.menu li:last-child a:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(56, 93, 141, 0.2);
}

#header .nav-toggle {
  display: none;
}

/* Featured/Hero Sections */
#featured,
#featured-post {
  position: relative;
  color: var(--color-white);
  background-size: cover;
  background-position: center;
  min-height: 90vh;
}

#featured {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
}

#featured-post .darken {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
}

#featured::before,
#featured-post .darken::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 1;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
}

#featured > *,
#featured-post .darken > * {
  position: relative;
  z-index: 2;
}

#featured h1,
#featured-post h1 {
  font-size: 4rem;
  line-height: 1.2;
}

#featured a,
#featured-post a {
  color: inherit;
  width: auto;
  height: auto;
}

#featured .content,
#featured-post .content {
  max-width: var(--wp--style--global--content-size, 1200px);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-right: 15%;
  font-size: 1.3rem;
}

#featured .post-tax,
#featured-post .post-tax {
  font-size: 80%;
}

#featured-post .post-date,
#featured .post-date {
  font-size: 0.9rem;
  margin: 10px;
}

/* Main Content */
#main {
  flex: 1;
}

/* #main > *:not(.alignfull) {
  max-width: var(--wp--style--global--content-size, 1200px);
  margin-left: auto !important;
  margin-right: auto !important;
} */

.home #main > .wp-block-group.is-layout-constrained,
.archive #main > .wp-block-group.is-layout-constrained,
.single #main > .wp-block-group.is-layout-constrained,
.search #main > .wp-block-group.is-layout-constrained {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#main > div.wp-block-group.alignfull.has-background::after,
.home #main > div.wp-block-group::after,
.depicter-document::after,
#featured::after
/* #featured-post::after */ {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100px;
  background-image: url(../img/wave.svg);
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

#main > div.wp-block-group.alignfull.has-background:not(.depicter)::before
/* #featured-post::before  */ {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100px;
  transform: rotate(180deg);
  background-image: url(../img/wave.svg);
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

#main > div.wp-block-group.alignfull.has-background:last-child:after,
.home #main > div.wp-block-group:last-child:after,
#main > div.wp-block-group.alignfull.has-background:first-child::before,
.home #main > div.wp-block-group:first-child::before {
  display: none;
}

/* Sidebar */
#sidebar,
#sidebar ul,
#sidebar li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#sidebar {
  flex-basis: 300px;
}

#sidebar .wp-block-search,
#sidebar .wp-block-group,
#sidebar .author {
  margin-bottom: 15px;
}

#sidebar .wp-block-group,
#sidebar .author {
  padding: 30px;
  background-color: var(--color-gray-lighter);
  border-radius: 15px;
}

#sidebar .wp-block-heading {
  margin-top: 0;
}

#sidebar img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-bottom: 5px;
}

#sidebar .author-name {
  font-weight: 700;
  font-size: 110%;
}

#sidebar .author-description {
  margin-bottom: 10px;
  font-size: 0.8rem;
}

#sidebar .author-link {
  font-size: 0.9rem;
}

/* Blog Header */
.blog-header {
  background-color: var(--color-primary);
}

/* Author Box */
.author-box {
  margin-top: 60px;
  padding: 20px 0;
  background-color: var(--color-light-bg);
  border-radius: 5px;
  margin-bottom: 60px;
}

.author-box-content {
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.author-box img {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 5px;
}

.author-box-info {
  flex: 1;
}

.author-box-name {
  margin-top: 0;
  margin-bottom: 10px;
}

.author-box-description {
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.author-box-meta {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--color-dark);
  opacity: 0.8;
}

.author-meta-stat {
  font-weight: 600;
}

.author-meta-link {
  text-decoration: none;
}

.author-meta-separator,
.author-social-separator {
  margin: 0 8px;
  opacity: 0.5;
}

.author-box-social {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.author-box-info .wp-block-button__link {
  margin-top: 10px;
}

/* CTA Section */
#cta {
  background-image: url(https://i.imgur.com/4qPqHK5.jpg);
  background-size: cover;
  background-position: center;
  padding: 5vw 3vw;
}

#cta .wp-block-column {
  flex-basis: 50%;
  flex-grow: 0;
}

#cta label {
  display: none;
}

#cta h2 {
  font-size: 3rem;
  font-weight: 500;
}

#cta input,
#cta textarea,
#cta select {
  background-color: var(--color-gray-lightest);
}

#cta a {
  font-weight: 700;
  padding-left: 30px;
  padding-right: 30px;
}

/* Footer */
#footer {
  background-color: var(--color-dark);
  color: var(--color-gray);
  font-size: 0.9rem;
  padding-top: 90px;
  padding-bottom: 60px;
}

#footer .wp-block-column {
  flex: 1;
}

#footer .is-layout-flex {
  align-items: flex-start;
  gap: 30px;
}

#footer table,
#footer .wp-block-table td,
#footer .wp-block-table th {
  border: 0;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
}

#footer h1,
#footer h2,
#footer h3,
#footer h4,
#footer h5 {
  margin-top: 0;
  margin-bottom: 1rem;
}

#footer h1,
#footer h2,
#footer h3,
#footer h4,
#footer h5,
#footer a {
  color: var(--color-white);
  font-weight: 500;
}

/* Copyright */
#copy {
  background-color: #0c131d;
  color: #eee;
  font-size: 0.9rem;
  padding: 20px 0;
}

#copy .wp-block-column {
  flex-basis: auto;
  flex-grow: 0;
}

#copy p {
  margin: 0;
}

#copy a {
  color: inherit;
}

#copy ul,
#copy ul li {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

#copy ul {
  display: flex;
}

#copy ul li {
  margin: 0 5px;
}

/* Articles */
.article {
  margin-bottom: 30px;
}

.article-link {
  text-decoration: none;
}

.article-title {
  margin-top: 0;
  margin-bottom: 20px;
}

.article-image {
  max-height: 300px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
  margin: 0 0 20px;
}

.post-meta {
  margin-bottom: 10px;
  opacity: 0.9;
  font-size: 0.9rem;
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
}

.post-date {
  font-size: 0.9rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

/* Layout */
.wp-block-group.alignfull {
  position: relative;
}

.wp-block-columns,
.wp-block-image .alignright,
.wp-block-columns .wp-block-column {
  margin-bottom: 0;
}

/* Forminator Styles */
.forminator-error-message,
.forminator-required {
  color: var(--color-primary);
  font-size: 0.9rem;
}

.forminator-description {
  font-size: 0.8rem;
  opacity: 0.8;
  display: block;
  margin-top: 4px;
}

.forminator-field {
  margin-bottom: 5px;
}

.forminator-response-message.forminator-show {
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
  color: var(--color-white);
}

.forminator-response-message.forminator-show.forminator-error {
  background-color: var(--color-primary);
}

.forminator-response-message p {
  margin: 0;
}

/* Widget Posts */
.widget-post {
  display: block;
  margin-bottom: 10px;
  padding: 15px;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  transition: background-color 300ms;
}

.widget-post:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.widget-post .widget-post-title {
  display: block;
}

.widget-post .widget-post-date {
  display: block;
  color: inherit;
  opacity: 0.7;
}

/* Home Page Boxes */
.home .boxes .wp-block-group {
  border-radius: 15px;
  padding: 2rem 1.5rem;
  height: 100%;
}

.home .boxes h3 {
  margin-top: 0;
}

.home .boxes > div:first-child {
  margin-bottom: 30px;
}

.home .boxes > div:first-child > div:first-child {
  margin-top: 30px;
}

.home .boxes > div:first-child > div:last-child {
  margin-bottom: calc(30px * -1);
}

.home .boxes > div:last-child > div:first-child {
  margin-bottom: 30px;
}

.home .boxes > div:last-child > div:last-child {
  margin-top: 30px;
}

.is-content-justification-space-between {
  justify-content: space-between;
}

/* Gallery */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  background: rgba(0, 0, 0, 0.8);
  color: var(--color-white);
  padding: 12px;
}

.wp-block-image .is-style-rounded img,
.wp-block-image.is-style-circle-mask img,
.wp-block-image.is-style-rounded img {
  border-radius: 30px;
}

/* Blockquote */
.wp-block-quote {
  margin: 0 0 1.75em;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.04);
  border-left: var(--color-primary) 0.25em solid;
  border-radius: 15px;
}

.wp-block-quote cite,
.wp-block-quote footer {
  font-weight: 700;
}

/* 404 Page */
#notfound form {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 400px;
  max-width: 100%;
}

.case-column-sticky {
  position: sticky !important;
  top: 200px;
}
