/*!
Theme Name: castroverde
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: castroverde
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

castroverde is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
	background-color: var(--bs-extralight);
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
	overflow-x: hidden;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

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

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

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

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: inherit;
}

a:visited {
	color: inherit;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Content-paragraph links across the site (flexible content + page/post bodies).
   Scoped to <main> so it never touches the header menu or footer, and to `p a`
   so list links (li a) and menu links keep their default styling. Color is
   inherited from the paragraph (see base `a { color: inherit }` above), so this
   works on both dark- and light-background sections. */
main p a {
	font-style: italic;
	font-weight: 600;
	text-decoration-line: underline;
	text-decoration-style: dotted;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

.blog-pagination .nav-links {
    display: flex;
    gap: 8px;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

.fixed-cta-call {
    position: fixed;
	bottom: 0;
	background-color: var(--bs-secondary-500);
	width: 100vw;
	justify-content: center;
	padding: 16px 32px;
	color: var(--bs-white);
	font-family: var(--font-primary);
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
	line-height: 16px;
	text-transform: uppercase;
	text-decoration: none;
	align-items: center;
	gap: 8px;
	opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
	z-index: 20;
}

.fixed-cta-call-text {
    position: relative;
    display: block;
    overflow: hidden;
    height: 1em;
    line-height: 1.2;
}

.fixed-cta-call-text span {
    display: block;
    transition: transform 0.3s ease;
    white-space: nowrap;
    font-family: var(--font-primary);
}

.fixed-cta-call-text span:last-child {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}

.fixed-cta-call:hover .fixed-cta-call-text span {
    transform: translateY(-100%);
}

.fixed-cta-btn {
    position: fixed;
    right: 64px;
    bottom: 32px;
    background-color: var(--bs-white);
    color: var(--bs-secondary-500);
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 32px;
	border-radius: 2px;
	border: 1px solid var(--bs-secondary-500);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
    z-index: 20;
	text-decoration: none;
	gap: 12px;
	cursor: pointer;
	overflow: hidden;
	align-items: center;
	font-size: 16px;
	line-height: 24px;
}

.fixed-cta-btn.alt {
    bottom: 92px; /* 32px base + 48px bottom button height + 12px gap */
}

.fixed-cta-btn.show {
    opacity: 1;
    visibility: visible;
}

.fixed-cta-call.show {
	opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fixed-cta-btn:visited {
	color: var(--bs-secondary-500);
}

.fixed-cta-call:visited {
	color: var(--bs-white);
}

.fixed-cta-btn:hover {
    background-color: var(--bs-white);
	color: var(--bs-secondary-500);
    text-decoration: none;
}

.fixed-cta-call:hover {
	background-color: var(--bs-secondary-500);
	color: var(--bs-white);
}

.fixed-cta-text {
    position: relative;
    display: block;
	overflow: hidden;
	height: 1em;
	line-height: 1.2;
}

.fixed-cta-text span {
    display: block;
    transition: transform 0.3s ease;
    white-space: nowrap;
	font-family: var(--font-primary);
}

.fixed-cta-text span:last-child {
    position: absolute;
    top: 100%; /* Positions the second text below the first */
    left: 0;
    width: 100%;
}

.fixed-cta-btn:hover .fixed-cta-text span {
    transform: translateY(-100%);
}


/*404 Template */
.title-notfound {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 32px;
	letter-spacing: 9.6px;
}

.notfound-wrapper {
	gap: 40px;
}

.template-notfound {
	padding-top: 180px;
}

.img-notfound-wrapper {
	margin-top: -200px;
}

.btn-404 {
	background-color: var(--bs-white);
	padding: 12px 32px;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	border-radius: 2px;
	transition: all 0.3s ease;
	top: 50%;
}

.btn-404-text {
    position: relative;
    display: block;
    overflow: hidden;
    line-height: 1.2;
}

.btn-404-text span {
    display: block;
    transition: transform 0.3s ease;
    white-space: nowrap;
    font-family: var(--font-primary);
}

.btn-404-text span[aria-hidden="true"] {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}

.btn-404:hover .btn-404-text span {
    transform: translateY(-100%);
}

@media (max-width: 992px) {
        .btn-404 {
        top:auto;
        bottom: 37px;
        }

        .error404 .site-footer {
        margin-bottom: 0;
        }

        .template-notfound {
        padding-top: 0;
        }

        .title-notfound {
        font-size: 10px;
        line-height: 14px;
        }

        .notfound-wrapper-mobile {
        padding-top: 80px;
        gap: 40px;
        }
}

/* Modal Styles */

/* ===== Modal Base ===== */
.contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
	opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.contact-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* pinned to bottom */
	opacity: 1;
}

/* ===== Overlay (active state only) ===== */
.contact-modal::before {
    content: "";
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    z-index: 0;
    transition: background-color 0.3s ease-in-out;
}

.contact-modal.active::before {
    background-color: rgba(0, 0, 0, 0.7);
}

/* ===== Content container ===== */
.contact-modal-content {
    position: relative;
    width: 100%;
    background-color: var(--bs-secondary-500);
    z-index: 1;
	padding-top: 80px;
	padding-bottom: 96px;
	transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

/* ===== Body ===== */
.contact-modal-body {
    position: relative;
    max-width: min(100%, 842px);
    margin: 0 auto;
    color: #fff;
}

/* ===== Side images ===== */
.contact-modal-img {
    position: absolute;
    bottom: 0;
    max-height: 420px;
    z-index: 2;
    pointer-events: none;
}

.contact-modal-img-left {
    left: 0;
}

.contact-modal-img-right {
    right: 0;
}

/* ===== Close button ===== */
.contact-modal-close {
    position: absolute;
    top: 80px;
    right: 137px;
    color: var(--bs-white);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3;
}

.contact-modal-close-mobile {
	color: var(--bs-white);
    background: none;
    border: none;
    cursor: pointer;
	right: -50px;
	font-size: 8px;
}

.contact-modal.active .contact-modal-content {
    transform: translateY(0);
}

.modal-title {
	font-size: 32px;
	font-weight: 800;
	line-height: 40px;
}

.modal-description {
	font-size: 16px;
	line-height: 24px;
	margin-bottom: 32px;
}

.modal-form .wpcf7-submit {
	justify-self: center;
}

/* Buttons */ 
.cv-btn-primary {
	border-radius: 2px;
	background: var(--bs-main-500);
	padding: 12px 32px;
	align-items: center;
	gap: 12px;
	width: fit-content;
}

.banner-cta-button:visited {
	color: var(--bs-black);
}

.italic-dark {
	font-style: italic;
	color: var(--bs-dark);
	font-family: var(--font-secondary);
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 4.8px;
	text-transform: uppercase;
}

.italic-primary-500 {
	font-style: italic;
	color: var(--bs-main-200);
	font-family: var(--font-secondary);
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 4.8px;
	text-transform: uppercase;
}

.font-text-lg-black {
	color: var(--bs-black);
	font-family: var(--font-secondary);
	font-size: 32px;
	font-style: normal;
	font-weight: 800;
	line-height: 40px;
	text-transform: uppercase;
}

.font-description-black {
	color: var(--bs-black);
	font-family: var(--font-primary);
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px;
}

.font-cards-dark {
	color: var(--bs-black);
	font-family: var(--font-primary);
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: 24px;
	text-transform: uppercase;
}

.font-md-dark {
	color: var(--bs-dark);
	font-family: var(--font-primary);
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px;
}

.font-cardsdesc-black {
	color: var(--bs-black);
	font-family: var(--font-primary);
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px;
}

.font-variation-black {
	color: var(--bs-black);
	font-family: var(--font-secondary);
	font-size: 28px;
	font-style: normal;
	font-weight: 800;
	line-height: 32px;
	text-transform: uppercase;
}

.font-variation-desc {
	font-family: var(--font-primary);
	font-size: 20px;
	font-style: normal;
	font-weight: 500;
	line-height: 24px;
}

.font-variation-cta {
	font-family: var(--font-primary);
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: 24px;
}

.font-hero-fifty {
	font-size: 40px;
	font-style: normal;
	font-weight: 800;
	line-height: 48px;
}

@media (max-width: 1200px) {
	.contact-modal-content {
		padding-top: 32px;
		padding-bottom: 0;
	}

	.modal-form {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}
}

@media (max-width: 992px) {

	main {
		margin-top: 60px;
	}

	.container {
		padding-inline: 24px;
	}

	.modal-title {
		font-size: 22px;
		line-height: 24px;
		text-align: left !important;
	}

	.modal-description {
		font-size: 14px;
		line-height: 20px;
		text-align: left !important;
	}

	.contact-modal-body {
		max-width: 544px;
	}

	.italic-dark {
        font-size: 10px;
        line-height: 14px;
    }

	.italic-primary-500 {
		font-size: 10px;
        line-height: 14px;
	}

    .font-text-lg-black {
        font-size: 22px;
        line-height: 24px;
    }

	.font-text-lg-white {
		font-size: 22px !important;
		line-height: 24px !important;
	}

	.font-description-black {
		font-size: 14px;
		line-height: 20px;
	}

	.font-cardsdesc-black {
		font-size: 14px;
		line-height: 20px;
	}

	.font-variation-black {
		font-size: 18px;
		line-height: 20px;
	}

	.font-variation-desc {
		font-size: 16px;
		line-height: 20px;
	}

	.font-variation-cta {
		font-size: 14px;
		line-height: 20px;
	}

	.font-hero-fifty {
		font-size: 24px;
		line-height: 28px;
	}

	.font-mid-black {
		font-size: 18px !important;
		line-height: 20px !important;
	}
}

@media (max-width: 768px) {
	.contact-modal-close-mobile {
		right: 0;
		transform: translate(50%, -80%);
	}
}

@media (max-width: 576px) {
	.fixed-cta-btn {
		width: 100vw;
		justify-content: center;
		bottom: 48px;
		right: auto;
		font-size: 12px;
		line-height: 16px;
		padding: 12px 32px;
	}
	.fixed-cta-btn.alt {
		bottom: 96px; /* 48px base + 48px bottom button height */
	}
}

.font-desc-white {
	color: var(--bs-white);
	font-family: var(--font-primary);
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px;
}

.font-text-lg-white {
	color: var(--bs-white);
	font-family: var(--font-secondary);
	font-size: 32px;
	font-style: normal;
	font-weight: 800;
	line-height: 40px;
	text-transform: uppercase;
}

.font-mid-black {
	color: var(--bs-black);
	font-family: var(--font-secondary);
	font-size: 24px;
	font-style: normal;
	font-weight: 800;
	line-height: 28px;
	text-transform: uppercase;
}

.font-normal-black {
	color: var(--bs-black);
	font-family: var(--font-primary);
	font-size: 20px;
	font-style: normal;
	font-weight: 600;
	line-height: 24px;
	text-transform: uppercase;
}

.font-sm-dark {
	color: var(--bs-dark);
	font-family: var(--font-primary);
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: 20px;
}

.font-sm-black {
	color: var(--bs-black);
	font-family: var(--font-primary);
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: 20px;
}


.font-md-black {
	color: var(--bs-black);
	font-family: var(--font-primary);
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 24px;
}

.font-sm-mobile-dark {
	color: var(--bs-black);
	font-family: var(--font-primary);
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 20px;
}

.single-sk-post {
    padding: 80px 0;
}

/* Keep the blog post header's fixed height/padding unchanged after fifty-hero-layout.css
   switched to dynamic sizing — desktop only, .fifty-hero-layout.css's own mobile breakpoint
   (max-width: 992px) already handles mobile for both this header and the flexible-content layout.
   Targets .fifty-hero-content (not .fifty-hero-inner) to match where that stylesheet now
   sets its vertical padding — see the comment there for why. */
@media (min-width: 993px) {
    .fifty-hero.single-sk-post {
        min-height: 656px;
        justify-content: flex-start;
    }

    .single-sk-post .fifty-hero-content {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.single-sk-post .fifty-hero-title {
    margin-bottom: 32px !important;
}

.single-sk-post .single-meta-avatar {
    border-radius: 128px;
    width: 32px;
    height: 32px;
}

.single-sk-post .single-meta {
    /* Bootstrap's .gap-3 utility class ships with !important (Bootstrap 5.3 default). */
    gap: 8px !important;
}

.single-sk-post .sp-meta-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-sk-post .single-meta-author,
.single-sk-post .sp-meta-date span,
.single-sk-post .sp-meta-date::before,
.single-sk-post .single-meta-cats::before {
    font-size: 14px;
    line-height: 20px;
}

.single-sk-post .sp-meta-date::before,
.single-sk-post .single-meta-cats::before {
    content: "|";
}

.single-sk-post .single-meta-cats::before {
    margin-right: 8px;
}

.single-post-wrapper {
	gap: 24px;
}

/* On desktop the blog sidebar's own sticky consultation form already covers the floating CTA button's purpose, so hide it there (scoped to .single-post to avoid affecting other templates' floating CTA). */
@media (min-width: 992px) {
	body.single-post .fixed-cta-btn {
		display: none !important;
	}
}

.single-post-sidebar {
    padding-top: 64px;
    padding-bottom: 120px;
    max-width: 408px;
}

.single-post-sidebar .widget {
    margin-bottom: 0;
}

.single-post-sidebar .widget ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-bottom: 0;
}

.single-post-sidebar .widget ul li + li {
    margin-top: 10px;
}

.single-post-sidebar .widget ul .post-date {
    color: var(--bs-dark);
    font-family: var(--font-primary);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.single-post-sidebar .widget ul li {
    display: flex;
    flex-direction: column;
}

.single-post-sidebar .widget ul li a {
    color: var(--bs-black);
    font-family: var(--font-primary);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
}

.single-post-sidebar .widgettitle {
    color: var(--bs-black);
    font-family: var(--font-primary);
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Sticks the marquee+form pair below the sticky header, using --masthead-height (js/masthead-height.js) so it clears the header's real rendered height regardless of the topbar; 126.5px is the fallback before the JS runs. */
.sidebar-sticky-cta {
    position: sticky;
    top: calc(var(--masthead-height, 126.5px));
    padding-top: 10px;
}

/* Marquee strip above the sidebar consultation form — same duplicated-items + translateX mechanic as marquee-and-quotation.css, but its own class names so it doesn't interfere with .quote-marquee-*; carries the margin-top so it stays flush with the form below. */
.sidebar-marquee-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--bs-main-200);
    margin-top: 24px;
    padding: 10px 0;
}

.sidebar-marquee {
    display: flex;
    user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.sidebar-marquee-track {
    display: flex;
    flex-shrink: 0;
    gap: 24px;
    min-width: max-content;
    animation: sidebarMarqueeScroll 20s linear infinite;
}

.sidebar-marquee-item {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
    color: var(--bs-secondary-500);
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
}

.sidebar-marquee-separator {
    color: var(--bs-secondary-500);
    font-weight: 800;
}

@keyframes sidebarMarqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 12px)); }
}

/* Blog sidebar consultation form (template-parts/helpers/blog-sidebar-form.php); reuses contact-section.css's teal styling, adjusted here for the narrower sidebar column. */
.sidebar-contact-form {
    margin-top: 24px;
    padding: 32px 24px;
    border-radius: 2px;
}

/* When the marquee above is configured, drop this block's own margin so the two sit flush (the marquee wrapper carries the margin-top instead); without the marquee field the default margin-top above still applies. */
.sidebar-marquee-wrapper + .sidebar-contact-form {
    margin-top: 0;
}

.sidebar-contact-form-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 24px;
}

/* contact-section.css's ".form-floating p > label" rule requires a <p> ancestor this form's markup doesn't have, so its font-family never applied and labels fell back to Bootstrap's default font. */
.sidebar-contact-form .contact-section label {
    font-family: var(--font-primary);
}

/* contact-section.css's mobile rule adds a 40px bottom padding meant for the desktop form, which leaks into this reused .contact-section too; override just the bottom side here. */
.sidebar-contact-form .contact-section {
    padding-top: 0;
    padding-bottom: 0;
}

/* First/last name keep the sitewide 2-column .form-row-2; the phone field reuses the same wrapper with only one child, so collapse its explicit 1fr 1fr columns to a single full-width column. */
.sidebar-contact-form .contact-section .form-row-2:has(> :only-child) {
    grid-template-columns: 1fr;
}

.sidebar-contact-form .contact-section .wpcf7-submit {
    width: 100%;
    justify-content: center;
    color: var(--bs-secondary-500);
}

/* This form's submit button is a custom <button> with an inline <svg> (hardcoded fill="#07080D"), so CSS can target the path directly instead of going through a data-URI. */
.sidebar-contact-form .wpcf7-submit svg path {
    fill: var(--bs-secondary-500);
}

/* Text slide-up on hover, same effect as .btn-404-text / .fixed-cta-text: requires the label wrapped in two spans, the visible one and an aria-hidden duplicate. */
.sidebar-contact-form .wpcf7-submit-text {
    position: relative;
    display: block;
    overflow: hidden;
    line-height: 1.2;
}

.sidebar-contact-form .wpcf7-submit-text span {
    display: block;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.sidebar-contact-form .wpcf7-submit-text span[aria-hidden="true"] {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}

.sidebar-contact-form .wpcf7-submit:hover .wpcf7-submit-text span {
    transform: translateY(-100%);
}

/* CF7 always renders this div; contact-section.css gives it margin/padding unconditionally, so collapse it while genuinely empty (it stops being :empty once CF7 injects a real message). */
.sidebar-contact-form .wpcf7-response-output:empty {
    display: none;
}

/* Forces the site's font on every descendant, not just the <p> itself, in case the ACF disclaimer field's output wraps the text in its own tag. */
.sidebar-contact-form-note,
.sidebar-contact-form-note * {
    font-family: var(--font-primary);
}

.sidebar-contact-form-note {
    margin-top: 0px;
    padding: 0 16px;
    font-size: 14px;
    line-height: 1.3;
    opacity: 0.9;
}

/* The Wysiwyg field's own <p> carries the browser's default margin; zero it out so the margin-top above is the only spacing applied. */
.sidebar-contact-form-note p {
    margin: 0;
}

.article-skeleton {
	padding-top: 64px;
	padding-bottom: 120px;
	width: fit-content;
}

.article-skeleton ul {
	margin-left: 0;
}

.article-skeleton a {
	color: var(--bs-black) !important;
	font-style: italic;
	font-weight: 600;
	text-decoration-line: underline;
	text-decoration-style: dotted;
}

@media (max-width: 992px) {
        .single-sk-post {
        padding-top: 40px;
        padding-bottom: 0;
        }

        .single-sk-post .fifty-hero-content {
        padding-top: 16px;
        }

        .single-sk-post .fifty-hero-image img {
        max-height: 220px;
        object-fit: cover;
        }
}

/* The byline row stops fitting on one line well above the 992px breakpoint since .fifty-hero-content is only 60% of the container, so it needs its own wider breakpoint (1399.98px) instead of reusing 992px. */

@media (max-width: 1399.98px) {
        .single-sk-post .single-meta {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 4px !important;
        }

        .single-sk-post .sp-meta-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        /* Indent to line up with the "Written by" text, not the avatar (32px avatar + 8px gap). */
        margin-left: 40px;
        }

        .single-sk-post .sp-meta-date::before,
        .single-sk-post .single-meta-cats::before {
        display: none;
        }
}

@media (max-width: 992px) {
        .article-skeleton {
        width: 100%;
        padding-top: 24px;
        padding-bottom: 0;
        font-size: 14px;
        line-height: 20px;
        }

        .single-post-wrapper {
        flex-direction: column;
        }

        .single-post-sidebar {
        padding-top: 24px;
        padding-bottom: 64px;
        max-width: 100%;
        }

        .single-post-sidebar .widgettitle {
        font-size: 16px;
        line-height: 20px;
        }

        .single-post-sidebar .widget ul li a {
        font-size: 14px;
        line-height: 20px;
        }

        .single-post-sidebar .post-date {
        font-size: 12px !important;
        line-height: 16px !important;
        }
}


/* Castroverde color system */
:root {
  /* ===== PRIMARY / MAIN COLORS ===== */
  --bs-main-200: #72D1DA;
  --bs-main-500: #44C2CE;
  --bs-main-700: #31AEBA;

  /* ===== SECONDARY COLORS ===== */
  --bs-secondary-300: #195B61;
  --bs-secondary-500: #015057;
  --bs-secondary-700: #012E32;

  /* ===== ACCENT ===== */
  --bs-accent-500: #F6EE23;

  /* ===== GRAYS / NEUTRALS ===== */
  --bs-black: #07080D;
  --bs-text-muted: #555555;
  --bs-darkness: #808080;
  --bs-dark: #ABABAB;
  --bs-neutral: #E3DACC;
  --bs-medium: #E9E0D1;
  --bs-light: #F2E8D9;
  --bs-lighter: #F5EDE1;
  --bs-extralight: #F8F3EC;
  --bs-white: #FBFBFB;
  --bs-offcanvas-bg: #EDEBE8;

  --font-secondary: 'DM Sans', sans-serif;
  --font-primary: 'Work Sans', sans-serif;
  --font-tertiary: 'Urbanist', sans-serif;
}

.bg-main-200       { background-color: var(--bs-main-200) !important; }
.bg-main-500       { background-color: var(--bs-main-500) !important; }
.bg-main-700       { background-color: var(--bs-main-700) !important; }
.bg-secondary-500  { background-color: var(--bs-secondary-500) !important; }
.bg-secondary-700  { background-color: var(--bs-secondary-700) !important; }
.bg-accent-500     { background-color: var(--bs-accent-500) !important; }

.bg-black          { background-color: var(--bs-black) !important; }
.bg-darkness       { background-color: var(--bs-darkness) !important; }
.bg-dark           { background-color: var(--bs-dark) !important; }
.bg-neutral        { background-color: var(--bs-neutral) !important; }
.bg-medium         { background-color: var(--bs-medium) !important; }
.bg-light          { background-color: var(--bs-light) !important; }
.bg-lighter        { background-color: var(--bs-lighter) !important; }
.bg-extralight     { background-color: var(--bs-extralight) !important; }
.bg-white          { background-color: var(--bs-white) !important; }

/* Text colors */
.text-main-200       { color: var(--bs-main-200) !important; }
.text-main-500       { color: var(--bs-main-500) !important; }
.text-main-700       { color: var(--bs-main-700) !important; }
.text-secondary-500  { color: var(--bs-secondary-500) !important; }
.text-secondary-700  { color: var(--bs-secondary-700) !important; }
.text-accent-500     { color: var(--bs-accent-500) !important; }

.text-black          { color: var(--bs-black) !important; }
.text-darkness       { color: var(--bs-darkness) !important; }
.text-dark           { color: var(--bs-dark) !important; }
.text-neutral        { color: var(--bs-neutral) !important; }
.text-medium         { color: var(--bs-medium) !important; }
.text-light          { color: var(--bs-light) !important; }
.text-lighter        { color: var(--bs-lighter) !important; }
.text-extralight     { color: var(--bs-extralight) !important; }
.text-white          { color: var(--bs-white) !important; }
.font-secondary 			 { font-family: var(--font-secondary) !important; }
.font-primary 	         { font-family: var(--font-primary) !important; }
.font-tertiary       { font-family: var(--font-tertiary) !important; }


/* ── Classic editor fallback pages ────────────────────────────────────────── */
.classic-page-content {
    padding: 3rem 0 4rem;
}
.classic-page-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 2rem;
    color: var(--bs-black);
}
.classic-page-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--bs-black);
    max-width: 100%;
}
.classic-page-body h2,
.classic-page-body h3 {
    font-family: var(--font-secondary);
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.classic-page-body p { margin-bottom: 1rem; }
.classic-page-body ul,
.classic-page-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
