/* Graycastle Theme overrides to core Underscores theme files */

/* Variables
--------------------------------------------- */
:root {
    --primary-color: #121212;
    --secondary-color: #eeeeee;
    --tertiary-color: #faf9f6;
    --accent-color: #666666;
    /* --headings-font: "Bungee", serif; */
    --headings-font: "Germania One", serif;
    --body-font: "Plus Jakarta Sans", sans-serif;
}

/* Typography
--------------------------------------------- */
html {
    -webkit-font-smoothing: antialiased;
}
a, a:visited {
    color: var(--primary-color);
}

ul, ol {
    margin: 0 0 1.5em 0.5em;
}

figcaption {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--accent-color);
    line-height: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--headings-font);
    font-weight: 300;
    margin-bottom: 0.25em;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}
h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.5rem;
}
h4 {
    font-size: 1.25rem;
}
h5 {
    font-size: 1rem;
}
h6 {
    font-size: 0.875rem;
}
h4, h5, h6 {
    font-family: var(--body-font);
    letter-spacing: 1px;
    font-weight: 600;
}

h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
   margin-top: 0;
}

body {
    font-family: var(--body-font);
    font-weight: 300;
    line-height: 1.75;
    color: #121212;
}

strong {
    font-weight: 500;
}
input, textarea, select, button {
    font-family: var(--body-font);
    font-weight: 300;
}

.site-main a, .widget-area a, .site-footer a {
	border-bottom: 1px solid #cccccc;
    text-decoration: none;
    padding-bottom: 1px;
}
.site-main a:hover, .widget-area a:hover, .site-footer a:hover {
	border-bottom-color: var(--primary-color);
    transition: border-bottom-color 0.2s ease-in-out;
}
.wp-block-image a, .wp-block-image a:visited {
    border-bottom: none;
}

/* Site Structure
--------------------------------------------- */
body {
    background: var(--tertiary-color);
}
.site-main {
    background: #ffffff;
}
.post, .page {
    margin-bottom: 0;
}
.site-main, .widget-area, .site-footer {
	max-width: 750px;
	margin: 0 auto;
	padding: 1.5em 1em;
}
@media screen and (min-width: 37.4375em) {
    .site-main, .widget-area, .site-footer {
        padding: 1.5em 3em;
    }
}

/* Header
--------------------------------------------- */
.top-bar {
    text-align: center;
    background: #835b8c !important;
    color: #ffffff !important;
    padding: 1em;
}
.site-header-container {
	max-width: 750px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1em 1em;
    background: var(--primary-color) url("images/photocopied-paper.jpg") no-repeat center center;
    background-size: cover;
}
@media screen and (min-width: 37.4375em) {
    .site-header-container {
        padding: 1em 3em;
    }
}
.site-title {
	font-size: 2em;
	font-weight: 300;
    font-family: var(--headings-font);
    letter-spacing: 0.05em;
    margin: 1em 0;
    text-transform: uppercase;
}
.site-title p {
    margin: 0;
}
.site-title a {
	color: #ffffff;
	text-decoration: none;
}
.main-navigation {
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}
.main-navigation a {
    padding: 1em;
    color: #ffffff;
    text-decoration: none;
}
.current-menu-item a, .current-menu-ancestor a, .current_page_parent a {
    /* border-bottom: 1px solid var(--secondary-color); */
    background: var(--primary-color);
}
.sub-menu .current-menu-item a{
    border-bottom: none;
}
.main-navigation .sub-menu {
    background: var(--primary-color);
    flex-direction: column;
}

.menu-toggle {
    background: var(--primary-color);
    border: none;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 1em;
    border-radius: 0;
    font-size: 0.75rem;
}

/* Off-Canvas Mobile Navigation
--------------------------------------------- */
.off-canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.off-canvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.off-canvas-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color) url("images/paper-gray-dark.jpg") repeat;
    overflow-y: auto;
    padding: 1.5em 1.5em 2em 1.5em;
}

.off-canvas-header {
    text-align: right;
}
.off-canvas-close {
    /* display: block; */
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    /* line-height: 1;
    cursor: pointer;
    padding: 0.25em 0.5em;
    margin-left: auto;
    margin-bottom: 1.5em;
    width: fit-content; */
}

.off-canvas-close:hover,
.off-canvas-close:focus {
    color: var(--secondary-color);
}

.off-canvas-navigation {
    margin-top: 0;
}

.off-canvas-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.off-canvas-navigation a {
    display: block;
    padding: 1em 2em;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
}

.off-canvas-navigation a:hover,
.off-canvas-navigation a:focus {
    background: rgba(255, 255, 255, 0.1);
}

.off-canvas-navigation .current-menu-item > a,
.off-canvas-navigation .current-menu-ancestor > a {
    background: rgba(255, 255, 255, 0.15);
}

/* Off-canvas submenus */
.off-canvas-navigation .sub-menu a {
    padding-left: 4em;
}

.off-canvas-navigation .sub-menu .sub-menu a {
    padding-left: 4em;
}

/* Hide inline mobile menu when off-canvas is available */
@media screen and (max-width: 37.4375em) {
    .main-navigation.toggled ul {
        display: none !important;
    }
}

/* Hide off-canvas on desktop */
@media screen and (min-width: 37.5em) {
    .off-canvas-overlay {
        display: none !important;
    }
}

/* Widget Area
--------------------------------------------- */
.widget-area {
	background: var(--secondary-color);
}

/* Footer
--------------------------------------------- */
.site-footer {
	background: var(--primary-color) url("images/photocopied-paper.jpg") no-repeat center center;
	background-size: cover;
    color: #ffffff;
    text-align: center;
    font-family: var(--headings-font);
}
.site-footer a {
    color: #ffffff;
}

/* Page
--------------------------------------------- */

/* Archive
--------------------------------------------- */
.blog .post, .archive .post, .search .post {
    margin-bottom: 2em;
    padding-bottom: 3em;
    border-bottom: 1px solid #eee;
}
.blog .post .entry-title a {
    border-bottom: none;
}
.posts-navigation a {
    background: var(--primary-color);
    color: #ffffff;
    font-family: var(--body-font);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 1em 1.75em;
    letter-spacing: 1px;
}
.nav-previous a::before {
    content: "← ";
    display: inline;
}
.nav-next a::after {
    content: " →" ;
    display: inline;
}

/* Post
--------------------------------------------- */
.entry-header {
    margin-bottom: 2em;
}
.entry-title {
    margin-bottom: 0;
}
.entry-header h1 {
    line-height: 1em;
}
.entry-meta {
    font-size: 0.75rem;
    color: var(--accent-color);
}
.post .entry-content .post-intro {
    font-size: 1.25rem;
    font-weight: 100;
    margin-bottom: 2em;
}
.post-toc {
    margin-bottom: 2em;
}
.wp-block-accordion h3 {
    margin: 0;
    font-size: 1rem;
}
.wp-block-accordion {
    background: var(--secondary-color);
    margin: 2em 0 2.5em 0;
}
.wp-block-accordion-heading {
    padding: 0.5em 1em;
}
.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
    text-decoration: none !important;
}
.wp-block-accordion-panel {
    background: var(--tertiary-color);
    padding: 1.5em;
    border-right: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    border-left: 1px solid var(--secondary-color);
    font-size: 0.875rem;
}
.wp-block-accordion-panel p:first-of-type {
    margin-top: 0;
}
.wp-block-accordion-panel p:last-of-type {
    margin-bottom: 0;
}
.wp-block-accordion-panel li:not(:last-of-type) {
    margin-bottom: 0.5em;
}

/* Blocks
--------------------------------------------- */
.hero-block {
    background: var(--secondary-color);
    padding: 1.5em;
    margin-bottom: 1.5em;
}
.hero-block p {
    margin: 0;
    font-size: 1.25rem;
}

.wp-block-button a {
    text-align: left;
}

.wp-element-button {
    background: var(--primary-color);
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 1em 1.75em !important;
    border-radius: 0;
    border-bottom: none !important;
}
.wp-element-button:hover {
    background: var(--accent-color);
    color: #ffffff;
    transition: background 0.1s ease-in-out !important;
}
a.wp-block-button__link {
    color: #ffffff !important;
}

.testimonial {
    background: var(--secondary-color);
    padding: 1.5em;
    margin-top: 1.5em;
    margin-bottom: 1em;
}
.testimonial-rating {
    margin: 0 0 0.5em 0;
}
.testimonial-citation {
    font-style: italic;
    color: var(--accent-color);
    margin: 0.5em 0 0 0;
}

.card {
    margin-bottom: 1.5em;
    padding: 1em;
}
.card h2, .card h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1;
}
.card p {
    margin-top: 0;
}
.card .wp-block-image {
    margin: 0 0 1em 0;
}
.card p:last-of-type {
    margin-bottom: 0;
}
.card .wp-element-button {
    margin-top: 1.5em;
}
.card-light {
    background: var(--secondary-color);
}
.card-dark {
    background: var(--primary-color);
    color: #ffffff;
}
.card-dark a {
    color: #ffffff;
}
.card-dark .wp-element-button {
    background: var(--secondary-color);
    color: var(--primary-color);
}
.card-dark-button {
    color: var(--primary-color);
}
.card-dark .wp-element-button:hover {
    background: #cccccc;
    color: #333333;
    transition: background 0.1s ease-in-out !important;
}

.wp-block-separator {
    border: none;
    border-top: 1px solid var(--secondary-color);
    margin: 3em 0;
}
hr {
    background: none;
}
.fancy-separator {
    margin-bottom: 0 !important;
}

.wp-block-quote {
    margin: 0;
    padding: 1em;
    background: var(--secondary-color);
}
.wp-block-quote p {
    margin: 0;
    font-size: 1.25rem;
}
.wp-block-quote cite {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--accent-color);
    margin-top: 0.5em;
}

.wp-block-image .wp-element-caption {
    text-align: left !important;
}
.wp-block-image .wp-element-caption a {
    text-decoration: none !important;
}

.wp-block-columns.mini-product-card {
    gap: 1em;
}
/* .mini-product-card h3 {
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-weight: 300;
    margin-bottom: 0.5em;
} */
.mini-product-card p {
    font-size: 0.875rem;
}
.mini-product-card p:last-of-type {
    margin-bottom: 0;
}
.mini-product-card h3 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-size: 1em;
    line-height: 1;
}
.mini-product-card .wp-block-button__link {
    margin-top: 1em;
    padding: 0.5em 0.75em !important;
}

/* CF7 Forms
--------------------------------------------- */

.wpcf7-form label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.wpcf7-form input, .wpcf7-form textarea, .wpcf7-form select {
    width: 100%;
    border-radius: 0;
    padding: 0.5em;
}
.wpcf7-submit {
    background-color: var(--primary-color);
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 1em 1.75em !important;
    letter-spacing: 1px;
}

.wpcf7-not-valid {
    border: 1px solid #ff0000 !important;
    background: #edb8b8;
}

.card .wpcf7-form {
    padding: 0;
    background: none !important;
}
.card-dark .wpcf7-submit {
    background: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

/* Product List
--------------------------------------------- */
.product-card:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}
.product-card h2, .product-card h3 {
    margin-top: 1em;
    line-height: 1;
}
.product-hero-header {
    margin-bottom: 3em;
}
.product-hero-header .wp-block-heading {
    margin: 0;
}
.product-hero p:first-of-type {
    margin-top: 0;
}
.product-hero .wp-block-image, .product-hero .wp-block-gallery {
    margin: 0;
}

/* Links Page
--------------------------------------------- */
.hello-buttons {
    margin-top: 2em;
}
.hello-buttons .wp-block-button {
    width: 100%;
}
.wp-social-link a {
    padding: 0.25em;
}

/* Utilities
--------------------------------------------- */
.gap-closer {
    gap: 0 !important;
}
@media screen and (min-width: 37.5em) {
    .gap-closer {
        gap: 2em !important;
    }
}

/* Make the column the relative parent container */
.wp-block-column.relative-column {
  position: relative;
}

/* Center the badge image over the column contents */
.relative-column .relative-position-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  margin: 0;
  filter: drop-shadow(0 0 1rem rgba(255, 255, 255, 1));
}