/*
Theme Name: The Chateau Escondido
Theme URI: https://thechateauescondido.com/
Description: Child theme of Hello Elementor for The Chateau Escondido.
Author: Amir Sohail
Author URI: https://amirence.com
Template: hello-elementor
Version: 1.0.0
Text Domain: thechateauescondido-theme
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

/* ==========================================================================
   Fullscreen menu (shortcode [fullscreen_menu]) – Lavender & Rose style
   ========================================================================== */

.tce-fullscreen-menu-toggle {
	/* position: fixed; */
	top: 1.5rem;
	left: 1.5rem;
	z-index: 1001;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	color: inherit;
	transition: opacity 0.2s ease;
}
.tce-fullscreen-menu-toggle:hover {
	opacity: 0.8;
}

.tce-hamburger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	width: 24px;
}
.tce-hamburger span {
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
	transition: transform 0.3s ease, opacity 0.3s ease;
}
.tce-fullscreen-menu.is-open .tce-hamburger span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.tce-fullscreen-menu.is-open .tce-hamburger span:nth-child(2) {
	opacity: 0;
}
.tce-fullscreen-menu.is-open .tce-hamburger span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Tablet: smaller button */
@media (max-width: 1024px) {
	.tce-fullscreen-menu-toggle {
		top: 1rem;
		left: 1rem;
		width: 40px;
		height: 40px;
	}
	.tce-fullscreen-menu .tce-hamburger {
		gap: 5px;
		width: 20px;
	}
	.tce-fullscreen-menu .tce-hamburger span {
		width: 20px;
		height: 2px;
	}
	.tce-fullscreen-menu.is-open .tce-hamburger span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	.tce-fullscreen-menu.is-open .tce-hamburger span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}

/* Mobile: smallest button */
@media (max-width: 767px) {
	.tce-fullscreen-menu-toggle {
		top: 0.75rem;
		left: 0.75rem;
		width: 36px;
		height: 36px;
	}
	.tce-fullscreen-menu .tce-hamburger {
		gap: 4px;
		width: 18px;
	}
	.tce-fullscreen-menu .tce-hamburger span {
		width: 18px;
		height: 1.5px;
	}
	.tce-fullscreen-menu.is-open .tce-hamburger span:nth-child(1) {
		transform: translateY(5.5px) rotate(45deg);
	}
	.tce-fullscreen-menu.is-open .tce-hamburger span:nth-child(3) {
		transform: translateY(-5.5px) rotate(-45deg);
	}
}

.tce-fullscreen-menu-overlay {
	position: fixed;
	inset: 0;
	/* Use dvh on supported browsers so height is correct when Mac/Safari UI shows or hides */
	height: 100vh;
	height: 100dvh;
	width: 100vw;
	width: 100dvw;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	color: #fff;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.3s ease, opacity 0.3s ease;
	/* Isolate scrolling to the nav; prevent rubber-band on body on Mac/iOS */
	overscroll-behavior: contain;
	overflow: hidden;
}
.tce-fullscreen-menu.is-open .tce-fullscreen-menu-overlay {
	visibility: visible;
	opacity: 1;
}

.tce-fullscreen-menu-nav {
	width: 100%;
	max-width: 90vw;
	max-height: 90vh;
	max-height: min(90dvh, 90vh);
	/* Allow flex item to shrink so overflow creates a scroll area (fixes scroll on Mac and all devices) */
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
}

.tce-fullscreen-menu-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.tce-fullscreen-menu-list > li {
	position: relative;
}

.tce-fullscreen-menu-list a {
	display: block;
	padding: 0.5rem 1rem;
	font-size: clamp(1.25rem, 4vw, 2rem);
	text-decoration: none;
	color: #fff;
}

/* Submenu dropdown – smooth slide */
.tce-fullscreen-menu-list .sub-menu {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
	min-width: 10rem;
	transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
	pointer-events: none;
}

.tce-fullscreen-menu-list .menu-item-has-children.is-expanded > .sub-menu {
	max-height: 50vh;
	opacity: 1;
	margin: 0.25rem 0 0;
	pointer-events: auto;
}

.tce-fullscreen-menu-list .sub-menu a {
	font-size: clamp(1rem, 3vw, 1.5rem);
	padding: 0.4rem 1rem;
	opacity: 0.9;
}

.tce-fullscreen-menu-list .sub-menu li {
	margin: 0;
}

/* Parent item: link and toggle button in one row – link is clickable, button toggles dropdown */
.tce-fullscreen-menu-list .tce-menu-item-row {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 0.25rem;
}

.tce-fullscreen-menu-list .tce-menu-item-row > a {
	flex: 1;
	min-width: 0;
}

.tce-fullscreen-menu-list .menu-item-has-children > .tce-menu-item-row > a {
	padding-right: 0.5rem;
}

.tce-fullscreen-menu-list .tce-submenu-toggle {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	background: transparent;
	color: #fff;
	cursor: pointer;
	position: relative;
}

.tce-fullscreen-menu-list .tce-submenu-toggle::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -4px;
	margin-top: -5px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	width: 8px;
	height: 8px;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.tce-fullscreen-menu-list .menu-item-has-children.is-expanded .tce-submenu-toggle::after {
	transform: rotate(-135deg);
	margin-top: -2px;
}

/* Fullscreen menu – responsive dropdown and touch */
@media (max-width: 767px) {
	.tce-fullscreen-menu-nav {
		padding: 1.5rem 0.75rem;
		align-items: flex-start;
		padding-top: 3rem;
	}
	.tce-fullscreen-menu-list {
		gap: 0.25rem;
		width: 100%;
	}
	.tce-fullscreen-menu-list a {
		padding: 0.6rem 1rem;
		min-height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.tce-fullscreen-menu-list .sub-menu {
		min-width: 100%;
	}
	.tce-fullscreen-menu-list .menu-item-has-children.is-expanded > .sub-menu {
		max-height: 40vh;
	}
	.tce-fullscreen-menu-list .sub-menu a {
		padding: 0.5rem 1rem;
		min-height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.tce-fullscreen-menu-list .tce-submenu-toggle {
		min-width: 44px;
		min-height: 44px;
	}
}

@media (max-width: 480px) {
	.tce-fullscreen-menu-list .menu-item-has-children.is-expanded > .sub-menu {
		max-height: 35vh;
	}
}

.elementor-kit-6 button.tce-fullscreen-menu-close {
    color: #ffffff;
    font-size: 50px;
}
.elementor-kit-6 .tce-fullscreen-menu-list a:hover {
    color: #e3e3e3;
}

.tce-fullscreen-menu-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 1002;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 2rem;
	line-height: 1;
	color: #fff;
}

body.tce-fullscreen-menu-open {
	overflow: hidden;
}

/* ==========================================================================
   Portfolio carousel (shortcode [portfolio_carousel]) – Lavender & Rose style
   ========================================================================== */

.tce-portfolio-carousel {
	position: relative;
	width: 100%;
	padding: 2rem 0 3rem;
	overflow: hidden;
}

.tce-portfolio-carousel .swiper-wrapper {
	align-items: stretch;
}

.tce-portfolio-carousel .swiper-slide {
	height: auto;
}

.tce-portfolio-carousel__card {
	height: 100%;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tce-portfolio-carousel__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tce-portfolio-carousel__link {
	display: block;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.tce-portfolio-carousel__image {
	width: 100%;
	padding-bottom: 75%;
	height: 450px;
	background-size: cover;
	background-position: center;
	background-color: #e0e0e0;
	transition: transform 0.4s ease;
}

.tce-portfolio-carousel__card:hover .tce-portfolio-carousel__image {
	transform: scale(1.02);
}

.tce-portfolio-carousel__image--placeholder {
	background-image: none;
}

.tce-portfolio-carousel__content {
	padding: 1.25rem 1.25rem 1.5rem;
}

.tce-portfolio-carousel__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.tce-portfolio-carousel__excerpt {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #555;
}

.tce-portfolio-carousel__cta {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 500;
	color: inherit;
	opacity: 0.85;
}

.tce-portfolio-carousel .swiper-button-prev,
.tce-portfolio-carousel .swiper-button-next {
	color: #333;
}

.tce-portfolio-carousel .swiper-pagination-bullet {
	background: #333;
	opacity: 0.4;
}

.tce-portfolio-carousel .swiper-pagination-bullet-active {
	opacity: 1;
}

.page-content a.tce-portfolio-carousel__link {
    text-decoration: none;
}


@media (max-width: 767px) {
	.tce-portfolio-carousel {
		padding: 1.5rem 0 2.5rem;
	}
	.tce-portfolio-carousel__content {
		padding: 1rem;
	}
	.tce-portfolio-carousel__title {
		font-size: 1.125rem;
	}
}

/* Portfolio grid – same card design as carousel */
.tce-portfolio-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	width: 100%;
	padding: 2rem 0 3rem;
}

.tce-portfolio-grid .tce-portfolio-carousel__card {
	height: auto;
}

.contactForm .nf-field-element textarea{
    height: 100px;
}

.contactForm .nf-before-form-content {
    display: none;
}

@media (min-width: 640px) {
	.tce-portfolio-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

@media (min-width: 1024px) {
	.tce-portfolio-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 28px;
	}
}

@media (max-width: 767px) {
	.tce-portfolio-grid {
		padding: 1.5rem 0 2.5rem;
		gap: 20px;
	}
}

/* ==========================================================================
   Portfolio by category (shortcode [portfolio_by_category])
   ========================================================================== */

.tce-portfolio-by-category {
	padding: 2rem 1.5rem 4rem;
	max-width: 1400px;
	margin: 0 auto;
}

.tce-portfolio-by-category__post {
	margin-bottom: 3rem;
}

.tce-portfolio-by-category__post:last-child {
	margin-bottom: 0;
}

.tce-portfolio-by-category__title {
	/* margin: 0 0 1.25rem; */
	/* font-size: 1.5rem; */
	/* font-weight: 700; */
	/* line-height: 1.3; */
	text-align: center;
}

.tce-portfolio-by-category__gallery {
	margin-top: 0;
}

.tce-portfolio-by-category .tce-gallery-masonry__item {
	overflow: hidden;
}

.tce-portfolio-by-category .tce-lightbox-link img {
	transition: transform 0.35s ease;
}

.tce-portfolio-by-category .tce-lightbox-link:hover img {
	transform: scale(1.03);
}

@media (max-width: 767px) {
	.tce-portfolio-by-category {
		padding: 1.5rem 1rem 3rem;
	}
	.tce-portfolio-by-category__post {
		margin-bottom: 2.5rem;
	}
	.tce-portfolio-by-category__title {
		font-size: 1.25rem;
		margin-bottom: 1rem;
	}
}

/* ==========================================================================
   Single portfolio (Lavender & Rose style – portfolio-eloise-and-gilles ref)
   ========================================================================== */

.tce-single-portfolio {
	max-width: 100%;
	padding: 2rem 1.5rem 4rem;
}

.tce-single-portfolio__header {
	text-align: center;
	margin-bottom: 3rem;
}

.tce-single-portfolio__header-inner {
	max-width: 720px;
	margin: 0 auto;
}

.tce-single-portfolio__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.tce-single-portfolio__excerpt {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: #555;
}

.tce-single-portfolio__excerpt p {
	margin: 0 0 0.5em;
}

.tce-single-portfolio__excerpt p:last-child {
	margin-bottom: 0;
}

/* 3-column masonry gallery */
.tce-gallery-masonry {
	display: block !important;
	column-count: 3;
	column-gap: 1.25rem;
	column-fill: balance;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.tce-gallery-masonry__item {
	break-inside: avoid;
	margin-bottom: 1.25rem;
	page-break-inside: avoid;
	overflow: hidden;
	background: #f0f0f0;
	display: inline-block;
	width: 100%;
	-webkit-column-break-inside: avoid;
}

.tce-gallery-masonry__item img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.tce-lightbox-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

/* Same hover effect as portfolio-by-category: slight scale, no shadow */
.tce-single-portfolio .tce-lightbox-link img {
	transition: transform 0.35s ease;
}
.tce-single-portfolio .tce-lightbox-link:hover img {
	transform: scale(1.03);
}

.tce-gallery-masonry__caption {
	margin: 0;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #555;
	text-align: center;
}

@media (max-width: 1024px) {
	.tce-gallery-masonry {
		column-count: 2;
		column-gap: 1rem;
	}
	.tce-gallery-masonry__item {
		margin-bottom: 1rem;
	}
}

@media (max-width: 567px) {
	.tce-single-portfolio {
		padding: 1.5rem 1rem 3rem;
	}
	.tce-single-portfolio__header {
		margin-bottom: 2rem;
	}
	.tce-gallery-masonry {
		column-count: 1;
		column-gap: 0.75rem;
	}
	.tce-gallery-masonry__item {
		margin-bottom: 0.75rem;
	}
}

/* Lightbox */
.tce-lightbox {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.85);
	z-index: 99999;
}

.tce-lightbox.is-open {
	display: flex;
}

.tce-lightbox__img {
	max-width: min(1200px, 96vw);
	max-height: 90vh;
	width: auto;
	height: auto;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.tce-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #111;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	z-index: 100000;
}

.tce-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 100000;
}
.tce-lightbox__nav:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.25);
}

.tce-lightbox__nav--prev {
	left: 16px;
}

.tce-lightbox__nav--next {
	right: 16px;
}

.elementor-kit-6 button.tce-lightbox__close,
/* ==========================================================================
   Testimonials (shortcode [testimonials]) – Lavender & Rose clone
   ========================================================================== */

.tce-testimonials {
	padding: 4rem 1.5rem 5rem;
}

.tce-testimonials__heading {
	margin: 0 0 3rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 600;
	letter-spacing: 0.2em;
	text-align: center;
	text-transform: uppercase;
	color: #ffffff;
}

.tce-testimonials-swiper {
	/* max-width: 820px; */
	margin: 0 auto;
	position: relative;
	padding-bottom: 3rem;
}

.tce-testimonials-swiper .swiper-slide {
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tce-testimonials__item {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
	margin: 0;
	padding: 0 1rem;
	border: none;
	width: 100%;
	text-align: center;
}

.tce-testimonials-swiper .swiper-button-prev,
.tce-testimonials-swiper .swiper-button-next {
	color: #fff;
}

.tce-testimonials-swiper .swiper-pagination-bullet {
	background: #1a1a1a;
	opacity: 0.4;
}

.tce-testimonials-swiper .swiper-pagination-bullet-active {
	opacity: 1;
}

.tce-testimonials__quote {
    width: 80%;
	margin: 0 0 1rem;
	font-size: 1.125rem;
	line-height: 1.75;
	color: #ffffff;
}

.tce-testimonials__quote::before {
	content: '"';
}

.tce-testimonials__quote::after {
	content: '"';
}

.tce-testimonials__author {
	display: block;
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	font-style: normal;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ffffff;
}

@media (max-width: 767px) {
	.tce-testimonials {
		padding: 3rem 1rem 4rem;
	}
	.tce-testimonials__heading {
		margin-bottom: 2rem;
		letter-spacing: 0.12em;
	}
	.tce-testimonials-swiper {
		padding-bottom: 2.5rem;
	}
	.tce-testimonials__quote {
		font-size: 1rem;
		line-height: 1.7;
	}
}

.elementor-kit-6 button.tce-lightbox__nav  {
    color: #ffffff;
}

.elementor-kit-6 button.tce-lightbox__close {
    font-size: 50px;
}

body .page-content a {
    text-decoration: none;
}