/* 
Theme Name: Discover
Theme URI: https://monkey.pe/
Description: A WordPress theme created by Monkey.
Author: Monkey
Author URI: https://monkey.pe/
Version: 1.2.0
Text Domain: discover-peru
*/

/* Box sizing rules */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Prevent font size inflation */
html {
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
	font-family: "Montserrat", sans-serif;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
dl,
dd {
	margin: 0;
}

p:not(:last-child) {
	margin-bottom: 1rem;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
	list-style: none;
}

/* Set core body defaults */
body {
	min-height: 100vh;
	line-height: 1.5;
	color: var(--discover-color-text);
	background-color: var(--discover-color-background);
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
label {
	line-height: 1.1;
}

/* Styling headings */
h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
	color: var(--discover-color-heading);
	font-weight: 500;
}

h1 {
	font-size: 48px;
}

h2 {
	font-size: 32px;
}

h3 {
	font-size: 24px;
}

h4 {
	font-size: 20px;
}

h5 {
	font-size: 18px;
}

h6 {
	font-size: 16px;
}

@media (max-width: 768px) {
	h1 {
		font-size: 32px;
	}

	h2 {
		font-size: 24px;
	}

	h3 {
		font-size: 20px;
	}

	h4 {
		font-size: 18px;
	}

	h5 {
		font-size: 16px;
	}

	h6 {
		font-size: 14px;
	}
}

/* Links */
a {
	color: var(--discover-color-link);
	transition: color 300ms ease;
}

a:hover {
	color: var(--discover-color-link-hover);
}

/* A elements that don't have a href get default styles */
a:not([href]) {
	text-decoration-skip-ink: auto;
	color: currentColor;
}

/* Make images easier to work with */
img,
picture {
	max-width: 100%;
	display: block;

	height: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
	font-family: inherit;
	font-size: inherit;
}

input:not([type="submit"], [type="checkbox"]),
textarea,
select {
	width: 100%;
}

input:not([type="submit"]):focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--discover-color-secondary) !important;
}

input:not([type="submit"], [type="checkbox"]),
select,
textarea {
	padding: 16px;
	border-radius: 4px;
	border: 1px solid var(--discover-cp-gray-100);

	color: var(--discover-cp-gray-400);
	background: var(--discover-color-background);
	box-shadow: 0 0 4px 0 rgba(17, 17, 17, 0.05);
}

button {
	border: none;
	cursor: pointer;
	border-radius: .5rem;
	padding: .5rem;
}

button[type="submit"],
input[type="submit"],
.btn-primary {
	padding: 16px 32px;
	border-radius: 80px;
	border: 1px solid var(--discover-color-brand-orange);
	background: var(--discover-color-brand-orange);
	color: var(--discover-color-white);
	line-height: 1.25;
	cursor: pointer;

	transition: all 300ms ease;
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.btn-primary:hover {
	background-color: var(--discover-cp-pg-700);
	color: var(--discover-color-white);
}

.btn-primary {
	padding: 8px 16px;
	text-decoration: none;
}

.btn-primary-outline {
	background-color: transparent;
	color: var(--discover-color-brand-orange);
}

.btn-primary-outline:hover {
	background-color: var(--discover-color-brand-orange);
	color: var(--discover-color-white);
}


/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
	min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
	scroll-margin-block: 5ex;
}

/* Helpers */
.container {
	width: calc(100% - 2rem);
	max-width: 1180px;
	margin-inline: auto;
}

.overflow-hidden {
	overflow: hidden;
}

/* Components */
.section-title {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.section-title .divider {
	max-width: 4rem;
	height: 2px;
	align-self: stretch;
	background-color: var(--discover-color-primary);
}

/* Header */
.discover-header {
	display: flex;
	align-items: center;

	background-color: var(--discover-color-white);
	box-shadow: 0 0 16px 0 rgba(17, 17, 17, 0.10);

	position: fixed;
	top: 0;
	width: 100%;
	height: 6.5rem;
	z-index: 1000;

	transition: all 300ms ease;
}

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

body.discover-scroll .discover-header {
	height: 4.5rem;
}

.discover-header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.discover-header-logo {
	max-width: 173px;
}

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

.discover-header-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.discover-header-nav .nav-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .5rem;

	text-decoration: none;
	color: var(--discover-color-link);

	cursor: pointer;

	position: relative;
}

.discover-header-nav .nav-item:hover {
	color: var(--discover-color-link-hover);
}

.discover-header-nav .nav-item-dropdown-list ul {
	display: flex;
	flex-direction: column;
	gap: 1rem;

	list-style: none;

	margin: 0;
	padding: 0;
}

.discover-header-nav .nav-item-dropdown-list ul a {
	text-decoration: none;
}

@media (min-width: 1025px) {
	.discover-header-nav .nav-item .nav-item-dropdown-list {
		position: absolute;
		top: 100%;
		left: 0;

		background-color: var(--discover-color-white);
		box-shadow: 0 0 16px 0 rgba(17, 17, 17, 0.10);

		padding: 1rem;
		border-radius: .5rem;

		min-width: 240px;

		opacity: 0;
		pointer-events: none;

		transition: opacity 300ms ease;
	}

	.discover-header-nav .nav-item:hover .nav-item-dropdown-list {
		opacity: 1;
		pointer-events: auto;
	}
}

@media (max-width: 1024px) {
	.discover-header {
		height: 4.5rem;
	}

	.discover-header-logo {
		max-width: 128px;
	}

	.discover-header-nav-toggle {
		display: flex;
		justify-content: center;
		align-items: center;
		padding: .5rem !important;
		width: 2.5rem;
		height: 2.5rem;
		font-size: 1.5rem !important;
		background-color: var(--discover-cp-qsw-100) !important;
		color: var(--discover-cp-gray-800) !important;
		border-radius: .5rem !important;
		border: none !important;
	}

	.discover-header-nav-toggle.nav-close {
		align-self: flex-end;
		background-color: transparent !important;
		color: var(--discover-cp-gray-600) !important;
	}

	.discover-header-nav {
		position: fixed;
		z-index: 1001;
		bottom: 0;
		right: -100%;
		overflow: auto;

		width: 100%;
		max-width: 420px;
		height: 100vh;

		padding: 1.5rem;

		flex-direction: column;

		background-color: var(--discover-color-white);

		transition: right 300ms ease;
	}

	.discover-header-nav.discover-header-nav-open {
		right: 0;
	}

	body.admin-bar .discover-header-nav {
		height: calc(100vh - 32px);
	}

	.discover-header-nav .nav-item .nav-item-dropdown-list {
		flex: 0 0 auto;
		width: 100%;

		margin-top: 1rem;
	}

	.discover-header-nav .nav-item-dropdown-list ul {
		align-items: center;
	}
}

@media (max-width: 782px) {
	body.admin-bar .discover-header {
		top: 46px;
	}

	body.admin-bar .discover-header-nav {
		height: calc(100vh - 46px);
	}
}

@media (max-width: 600px) {
	body.admin-bar.discover-scroll .discover-header {
		top: 0;
	}
}

/* Footer */
.discover-footer {
	border-top: 2px solid var(--discover-border-color);

	padding-bottom: 50px;

	background-image: url(images/shapes-pattern-bottom.svg);
	background-position: center calc(100% + 1px);
	background-repeat: repeat-x;
	background-size: 444px;
}

.discover-footer-container {
	padding-block: 80px;
	display: flex;
	justify-content: space-between;
	gap: 48px;
}

.discover-footer-content {
	display: flex;
	max-width: 640px;
	flex-direction: column;
	gap: 48px;
	flex: 1 0 0;
}

.discover-footer-logo {
	max-width: 173px;
}

.discover-footer-shortcuts {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.discover-footer-logo-container {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.discover-footer-more-container {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
}

.discover-footer-badge {
	max-width: 10rem;
	align-self: flex-start;
}

.discover-footer-social-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.discover-footer-social-list {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;

	padding: 0;
	margin: 0;
}

.discover-footer-social-link {
	font-size: 24px;
	line-height: 1;
}

.discover-footer-menu-container {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.discover-footer-menu-container ul {
	display: flex;
	flex-direction: column;
	gap: 16px;

	margin: 0;
	padding: 0;
	list-style: none;
}

.discover-footer-menu-container ul li a {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;

	color: var(--discover-color-text);
}

.discover-footer-menu-container ul li a:hover {
	color: var(--discover-color-link-hover);
}

.discover-footer-menu-container ul li a::before {
	content: "\f285";
	display: inline-block;
	font-family: bootstrap-icons !important;
	font-style: normal;
	font-weight: 400 !important;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	vertical-align: -.125em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: all 300ms ease;
}

.discover-footer-menu-container ul li a:hover::before {
	transform: translateX(2px);
}

.discover-footer-menu-name {
	color: var(--discover-color-secondary);
	font-size: 16px;
	font-style: normal;
}

.discover-footer-compliance-container {
	display: flex;
	align-items: flex-end;
	gap: 48px;
}

.discover-bottom-footer-content {
	border-top: 2px solid var(--discover-border-color);
	padding-block: 2.5rem;

	display: flex;
	justify-content: space-between;
	align-items: center;

	font-size: 14px;
}

.discover-bottom-footer-content .credits {
	display: flex;
	align-items: center;
}

@media (max-width: 1024px) {
	.discover-footer-container {
		flex-direction: column;
	}
}

@media (max-width: 768px) {
	.discover-footer-container {
		padding-block: 40px;
	}

	.discover-footer-container,
	.discover-footer-content,
	.discover-footer-shortcuts {
		gap: 24px;
	}

	.discover-footer-more-container,
	.discover-footer-compliance-container {
		flex-direction: column;
		gap: 24px;
		align-items: flex-start;
	}

	.discover-bottom-footer-content {
		flex-direction: column;
		gap: 1.5rem;

		text-align: center;
	}
}

/* Content */
.discover-content-page {
	padding-top: 6.5rem;
	/* header height */
	min-height: 50vh;
}

@media (max-width: 1024px) {
	.discover-content-page {
		padding-top: 4.5rem;
	}
}

/* Breadcrumbs */
.discover-breadcrumbs {
	margin: 0;
	padding: 0;

	list-style: none;

	display: flex;
	align-items: center;
	gap: .5rem;
}

.discover-breadcrumbs .discover-breadcrumb-item {
	display: flex;
	align-items: center;
	gap: .5rem;
}

.discover-breadcrumbs .discover-breadcrumb-item a {
	text-decoration: none;

	color: var(--discover-color-text);
}

.discover-breadcrumbs .discover-breadcrumb-item a:hover {
	color: var(--discover-color-link-hover);
}

.discover-breadcrumbs .discover-breadcrumb-item span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 10rem;
}

/* Page title */
.discover-page-title {
	position: relative;
	aspect-ratio: 4/1;
}

.discover-page-title::after {
	content: '';
	position: absolute;
	z-index: -1;
	inset: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.5);
}

.discover-page-title-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2.5rem;

	padding-top: 5rem;
}

.discover-page-image {
	position: absolute;
	z-index: -1;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 1024px) {
	.discover-page-title {
		aspect-ratio: 2/1;
	}
}

@media (max-width: 768px) {
	.discover-page-title {
		aspect-ratio: 3/2;
	}

	.discover-page-title-container {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;

		padding-top: 2.5rem;
	}
}

/* Page content */
.discover-page-content.container {
	padding-block: 2rem;
}

/* Gutenberg */
.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
	aspect-ratio: 16/9;
}

.wp-block-embed iframe {
	width: 100%;
	height: 100%;
}

/* Contact Form 7 */
.cf7-row {
	display: flex;
	gap: 1.5rem;

	margin-bottom: 24px;
}

.cf7-field {
	display: flex;
	flex-direction: column;
	gap: .5rem;

	flex: 1 0 0;
}

.cf7-field p {
	font-size: 80%;
}

.cf7-row-submit {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.wpcf7-list-item {
	margin: 0;
}

.wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: .5rem;
}

.wpcf7-list-item label input[type="checkbox"] {
	width: auto;
}

.wpcf7-spinner {
	margin: 0;
}

.wpcf7-not-valid-tip {
	font-size: 80%;
	color: var(--discover-color-brand-orange);
}

.wpcf7 form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 16px;
	border-radius: 8px;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	color: #664d03;
	background-color: #fff3cd;
	border-color: #ffe69c;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	color: #58151c;
	background-color: #f8d7da;
	border-color: #f1aeb5;
}

.wpcf7 form.sent .wpcf7-response-output {
	color: #0a3622;
	background-color: #d1e7dd;
	border-color: #a3cfbb;
}

@media (max-width: 768px) {
	.cf7-row {
		flex-direction: column;
	}
}

/* Swiper */
.swiper-button-next,
.swiper-button-prev {
	color: var(--discover-color-secondary) !important;
	width: 3rem !important;
	height: 3rem !important;
	background-color: white;
	border-radius: 3rem;
}

.swiper-button-next:after,
.swiper-button-prev:after {
	font-size: 1.5rem !important;
}

.swiper-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .25rem;
}

.swiper-pagination-bullet {
	width: 1rem !important;
	height: 1rem !important;
	background-color: transparent !important;
	border-radius: 1rem !important;
	border: 2px solid white;
	opacity: 1 !important;
	margin: 0 !important;
}

.swiper-pagination-bullet-active {
	background-color: white !important;
}

/* Social Share */
.discover-social-share {
	display: flex;
	gap: 1rem;
	align-items: center;
	flex-wrap: wrap;
}

.discover-social-share .share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--discover-cp-qsw-100);
	color: var(--discover-color-secondary);
	text-decoration: none;
	font-size: 1.25rem;
	transition: all 300ms ease;
	gap: 0;
}

.discover-social-share .share-copy {
	width: auto;
	height: 40px;
	padding-inline: 1rem;
	border-radius: 20px;
	gap: .5rem;
}

.discover-social-share .share-btn-text {
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.discover-social-share .share-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.discover-social-share .share-copy:hover {
	background-color: var(--discover-color-primary);
	color: white;
}

.discover-social-share .share-facebook:hover {
	background-color: #3B5998;
	color: white;
}

.discover-social-share .share-linkedin:hover {
	background-color: #0077b5;
	color: white;
}

.discover-social-share .share-whatsapp:hover {
	background-color: #25d366;
	color: white;
}

.discover-social-share .share-btn.copied {
	background-color: var(--discover-color-brand-green);
	color: white;
}

@media (max-width: 768px) {
	.discover-social-share {
		gap: .75rem;
	}

	.discover-social-share .share-btn {
		width: 36px;
		height: 36px;
		font-size: 1.1rem;
	}

	.discover-social-share .share-copy {
		width: auto;
	}
}

