/*==============================
Cullen J Webb - CSS STYLES
Author: Cullen J Webb
Author URI: https://www.cullenjwebb.com
Version: 1.0
==============================*/

/*==============================
TABLE OF CONTENTS
================================
# Base
    - Variables
    - Bootstrap Items
    - Forms
# Layout
    - Header
    - Navigation
    - Body
    -  - Content
    -  - Sidebar
    -  - Widgets
    - Footer
# Post Types
    - Font Page
    - Blog Home Page
    - Blog Posts
    - Attorney Pages
    - Practice Areas
# Utilities
    - ADA Accessibility
    - Plugins
# Mobile
# Fonts
=============================*/

/*==============================
# Base
================================*/

/* Variables */
:root {
    --cjw-primary-color: #a71d23; /* RED */
    --cjw-primary-alt: #a71d23;
    --cjw-secondary-color: #3a3a3a; /* GREY */
    --cjw-trinary-color: #a71d23;
    --cjw-highlight-color: #a71d23;
}

/* Bootsrap Items */

#wrapper {
    overflow-x: hidden;
}

.btn-primary {
    background-color: var(--cjw-primary-color);
}

.btn-primary:hover {
    background-color: var(--cjw-primary-alt);
}

.bg-dark {
    background-color: var(--cjw-primary-alt)!important;
}

.btn-outline-secondary,
.wp-block-button .wp-block-button__link:active {
    background-color: var(--cjw-primary-color);
    border-color: var(--cjw-primary-color);
    color: #fff;
}

.btn-outline-secondary:hover {
    background-color: #212529;
    border-color: #212529;
}

/* Block Items */

.wp-block-cover:hover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30 {
    opacity: 0.5;
}

.wp-block-cover:hover {
    border: 3px solid var(--cjw-primary-color);
}

.wp-block-cover p {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wp-block-cover p a {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Forms */

/* Fix for CF7 messages being the wrong color */
.wpcf7 .wpcf7-response-output {
    color: inherit;
}


/*==============================
# Layout
================================*/

/* Header */

.navbar-brand img {
    height: 110px;
}

#navigation-logo path {
    fill: #fff;
}

nav#header {
    position: relative;
}

/* Navigation */

ul.dropdown-menu {
    padding: 0;
}

.dropdown-item:focus, .dropdown-item:hover {
    background-color: var(--cjw-secondary-color);
    color: #fff;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--cjw-primary-color);
}

/* Body */

div#wrapper {
    position: relative;
    z-index: 10;
}

#main {
    padding: 3rem 0;
}


/* Body - Content */

.content {
    background-color: #fff;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
}

.h1, h1, .content h2, .content .h2 {
    color: var(--cjw-primary-color);
}

main a {
    color: var(--cjw-primary-color);
    text-decoration: none;
}

main a:hover {
    color: var(--cjw-primary-alt);
    text-decoration: underline;
}

.text-white a {
    color: #fff !important;
}

/* Body - Sidebar */

div#sidebar h2 {
    font-size: 1.5em;
}

/* Body - Widgets */

.btn-primary, .wp-block-button .wp-block-button__link {
    background-color: var(--cjw-secondary-color);
    border-color: var(--cjw-secondary-color);
    color: #fff;
}

.btn-primary:hover, .wp-block-button .wp-block-button__link:hover {
    background-color: var(--cjw-primary-color);
    border-color: var(--cjw-primary-color);
}

/* Footer */

#footer {
    border-top: 10px solid var(--cjw-secondary-color);
}

#footer-logo {
    height: 100px;
}

#footer .menu-item a, #footer .menu-item a[aria-current="page"] {
    color: var(--cjw-primary-alt);
}

#footer .menu-item a:hover, #footer .menu-item a:hover[aria-current="page"] {
    color: var(--cjw-primary-color);
}



/*==============================
# Post Types
================================*/

/* Front Page */

section#billboard-slider-container {
    position: relative;
}

div#billboard-slider .carousel-item {
    height: 33vw;
}

div#billboard-slider .carousel-control-next, 
div#billboard-slider .carousel-control-prev {
    opacity: 0;
}

div#billboard-slider:hover .carousel-control-next, 
div#billboard-slider:hover .carousel-control-prev {
    opacity: 1;
}

div#billboard-slider .carousel-control-next-icon, 
div#billboard-slider .carousel-control-prev-icon {
    width: 75px;
    height: 75px;
    background-color: #0000005e;
    border-radius: 100%;
}

div#billboard-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    color: #fff;
}

div#billboard-content-inner {
    /* background-color: #000000a1; */
    padding: 10px 20px;
}

/* Blog Home Page */

/* Blog Posts */

/* Staff Pages */

.staff.card {
    border-radius: 0;
}

.staff.card img {
    border: 3px solid var(--cjw-primary-color);
}

.staff.card .card-body {
    background-color: var(--cjw-primary-color);
    color: #fff;
    text-transform: uppercase;
}

.staff.card p.card-text {
    opacity: 0;
    transition: all 0.5s ease-in-out;
    position: absolute;
    color: #000;
    background-color: #fff;
    border: 3px solid var(--cjw-primary-color);
    border-top: 0;
    width: 100%;
    left: 0;
    padding: 10px;
    pointer-events: none;
    text-transform: none;
}

.staff:hover p.card-text {
    opacity: 1;
    pointer-events: all;
}



/* Photo Gallery */

/*==============================
# Utilities
================================*/

/* ADA Accessibility */

/* Plugins */

/* MISC */

img.cjw-bg-image {
    display: block;
    position: absolute;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    z-index: -1;
}

.cjw-bg-image-container {
    position: relative;
    overflow: hidden;
}

.cjw-bg-image-container > div {
    position: relative;
    overflow: hidden;
    z-index: 20;
}

.bg-color {
    position: relative;
}

.bg-color::before {
    content: '';
    position: absolute;
    background-color: var(--cjw-primary-color);
    top: 0;
    left: 50%;
    transform: translateX( -50%);
    height: 100%;
    width: 100vw;
    z-index: -1;
}

.bg-color.bg-fade::before {
    background: linear-gradient(-45deg, var(--cjw-primary-color), var(--cjw-primary-alt));
    background-size: 400% 400%;
    animation: fade-animation 5s ease infinite;
}

@keyframes fade-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bg-blade {
    position:absolute;
    width: 100vw;
    animation: blade-animation 6s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, var(--cjw-secondary-color) 50%, var(--cjw-primary-alt) 50%);
    bottom:0;
    opacity:.5;
    top:0;
    z-index:-1;
}
  
.bg-blade2 {
    animation-direction:alternate-reverse;
    animation-duration:8s;
}
  
.bg-blade3 {
    animation-duration:10s;
}
  
  @keyframes blade-animation {
    0% {
      transform:translateX(-25%);
    }
    100% {
      transform:translateX(25%);
    }
  }

/*==============================
# Mobile
================================*/

/* Remove min-width from mobile queries if styles should apply to all mobile devices of that size and smaller */

/* Bootstrap Large - lg
@media screen and (min-width: 1200px) {} */

/* Bootstrap Medium - md */
@media screen and (min-width: 992px) {
    #billboard-logo {
        width: 25vw;
    }
}

/* Bootstrap Small - sm
@media screen and (min-width: 768px) and (max-width: 991px) {} */

/* Bootstrap Extra Small - xs
@media screen and (max-width: 767px) {} */

/*==============================
# Fonts
================================*/

/* When localizing Google Fonts set font-display: to optional or swap and preload in header.php */