/*
Theme Name: Fidalgo Child
Theme URI: https://fidalgo.qodeinteractive.com
Description: A child theme of Fidalgo
Author: Elated Themes
Author URI: https://qodeinteractive.com
Version: 1.0
Text Domain: fidalgo
Template: fidalgo
*/

/* --------------------------------------------------------------------------
 * Footer alignment
 * Fidalgo's demo footer logo is a wide wordmark; ours is a square 1024px PNG,
 * and the theme's `max-height: 50%` cannot resolve against an auto-height
 * parent, so the logo rendered full size and blew the bottom area open.
 * -------------------------------------------------------------------------- */
#qodef-page-footer #qodef-footer-logo-holder {
	align-items: center;
	gap: 0;
}

#qodef-page-footer #qodef-footer-logo-holder a {
	top: 0;
	flex: 0 0 auto;
	margin: 0 32px;
}

#qodef-page-footer #qodef-footer-logo-holder img {
	width: auto;
	max-width: 132px;
	max-height: 132px;
	height: auto;
}

/* Even columns, aligned to a common top edge. */
#qodef-page-footer-top-area .qodef-grid-inner {
	align-items: start;
}

#qodef-page-footer-top-area .widget {
	margin-bottom: 0;
}

#qodef-page-footer-top-area .qodef-widget-title {
	margin-bottom: 18px;
}

#qodef-page-footer-top-area .textwidget p {
	margin: 0 0 14px;
}

#qodef-page-footer-top-area .textwidget p:last-child {
	margin-bottom: 0;
}

/* Bottom bar: copyright left, social right. */
#qodef-page-footer-bottom-area .qodef-grid-inner {
	align-items: center;
}

#qodef-page-footer-bottom-area .qodef-grid-item:last-child .widget {
	text-align: right;
}

#qodef-page-footer-bottom-area .textwidget p {
	margin: 0;
}

.madina-footer-sep {
	display: inline-block;
	margin: 0 8px;
	opacity: 0.6;
}

@media (max-width: 1024px) {
	#qodef-page-footer #qodef-footer-logo-holder img {
		max-width: 108px;
		max-height: 108px;
	}
}

@media (max-width: 880px) {
	/* Grid drops to one column here — keep every block on the same left edge. */
	#qodef-page-footer-top-area .qodef-grid {
		--qode-columns-row-gap: 38px;
	}

	#qodef-page-footer-top-area .qodef-grid-item {
		text-align: left;
	}

	#qodef-page-footer #qodef-footer-logo-holder a {
		margin: 0 20px;
	}

	#qodef-page-footer #qodef-footer-logo-holder img {
		max-width: 96px;
		max-height: 96px;
	}

	#qodef-page-footer-bottom-area .qodef-grid {
		--qode-columns-row-gap: 12px;
	}

	#qodef-page-footer-bottom-area .qodef-grid-item .widget,
	#qodef-page-footer-bottom-area .qodef-grid-item:last-child .widget {
		text-align: center;
	}
}

@media (max-width: 680px) {
	/* Clear the fixed social buttons and TOP button at the page end. */
	#qodef-page-footer-bottom-area-inner {
		padding-bottom: 170px;
	}
}

/* --------------------------------------------------------------------------
 * Floating Instagram + WhatsApp buttons (bottom-right)
 * Position synced above #qodef-back-to-top via floating-social.php JS.
 * -------------------------------------------------------------------------- */
.madina-floating-social {
	position: fixed;
	right: 24px;
	bottom: 25px;
	z-index: 9998;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: bottom;
}

@media (prefers-reduced-motion: reduce) {
	.madina-floating-social {
		transition: none;
	}
}

/* Match social column to Fidalgo TOP button edge. */
#qodef-back-to-top {
	right: 24px !important;
}

.madina-floating-social__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid #c4a574;
	border-radius: 50%;
	background: rgba(26, 46, 42, 0.92);
	color: #c4a574 !important;
	text-decoration: none !important;
	transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.madina-floating-social__item:hover,
.madina-floating-social__item:focus {
	background: #c4a574;
	border-color: #c4a574;
	color: #1a2e2a !important;
}

.madina-floating-social__icon {
	display: inline-flex;
	line-height: 0;
}

@media (max-width: 680px) {
	.madina-floating-social {
		right: 16px;
		gap: 8px;
	}

	.madina-floating-social__item {
		width: 42px;
		height: 42px;
	}

	#qodef-back-to-top {
		right: 16px !important;
	}
}

/* --------------------------------------------------------------------------
 * About Us — spacing below page hero; image + heading aligned at 150px.
 * -------------------------------------------------------------------------- */
.page-id-4615 .elementor-element-e675804 {
	align-items: flex-start !important;
	padding-top: 96px !important;
	padding-bottom: 160px !important;
}

.page-id-4615 .elementor-element-e3e1f0b {
	justify-content: flex-start !important;
	align-items: flex-start !important;
}

/* Balanced image / copy split (demo was 82% / 12%). */
@media (min-width: 881px) {
	.page-id-4615 .elementor-element-e3e1f0b {
		--width: 45%;
		width: 45% !important;
		max-width: 45% !important;
		flex: 0 0 45% !important;
	}

	.page-id-4615 .elementor-element-7bdcc88 {
		--width: 52%;
		width: 52% !important;
		max-width: 52% !important;
		flex: 1 1 52% !important;
	}

	.page-id-4615 .elementor-element-a7e3e8d {
		--width: 100%;
		width: 100% !important;
		max-width: 100% !important;
	}

	.page-id-4615 .elementor-element-a7e3e8d .qodef-info-section .qodef-m-text {
		max-width: none;
	}
}

@media (min-width: 1367px) {
	/* Image only — sits mid-way against the right copy for a less boxy layout. */
	.page-id-4615 .elementor-element-e3e1f0b {
		padding-top: 75px !important;
	}

	.page-id-4615 .elementor-element-b704042 {
		padding-top: 0 !important;
	}
}

@media (max-width: 1366px) {
	.page-id-4615 .elementor-element-e3e1f0b {
		padding-top: 0 !important;
	}
}

@media (max-width: 880px) {
	.page-id-4615 .elementor-element-e675804 {
		padding-top: 56px !important;
		padding-bottom: 120px !important;
	}

	.page-id-4615 .elementor-element-e3e1f0b {
		justify-content: flex-start !important;
	}
}

/* What we offer — demo min-height + centered column left a large empty band above the copy. */
.page-id-4615 .elementor-element-2aa05c4 {
	min-height: 0 !important;
}

.page-id-4615 .elementor-element-57f1cdc {
	justify-content: flex-start !important;
	align-self: flex-start !important;
}

@media (min-width: 881px) {
	.page-id-4615 .elementor-element-57f1cdc {
		padding-top: 48px !important;
		padding-bottom: 72px !important;
	}
}

/* Hide leftover restaurant CTA + testimonials on About (keep on Home). */
.page-id-4615 .elementor-element-77fed5a,
.page-id-4615 .elementor-element-b4132ce,
.page-id-4615 .elementor-element-0f45a71 {
	display: none !important;
}

/* --------------------------------------------------------------------------
 * Inner-page hero — compact breadcrumbs + page heading
 * -------------------------------------------------------------------------- */
/* Hide duplicate Elementor hero band on About (theme title replaces it). */
.madina-has-image-page-hero.page-id-4615 .elementor-element-e683e2d {
	display: none !important;
}

.madina-has-image-page-hero .qodef-page-title {
	height: 66.67vh;
	min-height: 280px;
	background-position: center center;
	background-size: cover;
}

.madina-has-page-hero .qodef-page-title .qodef-m-content {
	justify-content: flex-end;
	padding-bottom: 36px;
}

.madina-has-page-hero .qodef-page-title .qodef-m-title {
	margin: 0;
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(2rem, 3.6vw, 3.25rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
}

.madina-has-page-hero .qodef-page-title.qodef-title--standard-with-breadcrumbs .qodef-breadcrumbs {
	margin-top: 10px;
}

.madina-has-page-hero .qodef-page-title .qodef-breadcrumbs a,
.madina-has-page-hero .qodef-page-title .qodef-breadcrumbs span {
	font-family: "Jost", sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
}

.madina-has-page-hero .qodef-page-title .qodef-breadcrumbs .qodef-breadcrumbs-separator {
	margin: 0 6px;
	opacity: 0.65;
}

@media (max-width: 680px) {
	.madina-has-page-hero .qodef-page-title .qodef-m-content {
		padding-bottom: 24px;
	}

	.madina-has-page-hero .qodef-page-title .qodef-m-title {
		font-size: clamp(1.65rem, 7vw, 2.25rem);
		letter-spacing: 0.08em;
	}

	.madina-has-page-hero .qodef-page-title .qodef-breadcrumbs a,
	.madina-has-page-hero .qodef-page-title .qodef-breadcrumbs span {
		font-size: 10px;
		letter-spacing: 0.1em;
	}
}

/* Soft cap for interactive showcase only — do not touch stacked-images
 * (Fidalgo absolute overlays + scroll need native widget sizing).
 */
.qodef-interactive-link-showcase .qodef-m-image img,
.qodef-interactive-link-showcase .qodef-e-image img {
	max-height: min(640px, 80vh);
	object-fit: cover;
}

/* --------------------------------------------------------------------------
 * Contact Us — theme-matched locations page (page-contact-us.php)
 * -------------------------------------------------------------------------- */
.madina-contact {
	padding: 96px 0 160px;
	color: var(--qode-paragraph-color, #ced8d8);
}

.madina-contact > .qodef-content-grid {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}

.madina-contact__intro-wrap {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 0 0 96px;
	padding: 20px 40px 0;
	box-sizing: border-box;
}

.madina-contact__intro {
	display: block;
	width: 100%;
	max-width: 680px;
	margin: 0;
	padding: 0;
	text-align: center !important;
	font-family: "Jost", sans-serif;
	font-size: 17px;
	line-height: 1.8;
	letter-spacing: 0.01em;
	color: var(--qode-paragraph-color, #ced8d8);
	text-wrap: balance;
}

.madina-contact__label {
	margin: 0 0 18px;
	font-family: "Jost", sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--qode-main-color, #b58c67);
}

.madina-contact__offices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px 56px;
	margin-bottom: 72px;
	align-items: stretch;
}

.madina-contact__office {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 52px 44px 44px;
	border: 1px solid var(--qode-border-color, #c9a581);
	background: var(--qode-box-background-color, #1f3634);
	text-align: center;
}

.madina-contact__office .madina-contact__label {
	margin: 0 0 20px;
	text-align: center;
}

.madina-contact__office-title {
	margin: 0 auto 36px;
	width: 100%;
	max-width: 100%;
	min-height: calc(3 * 1.35em);
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(1.35rem, 2vw, 1.85rem);
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
	color: var(--qode-header-light-color, #fff);
}

.madina-contact__office-title-line {
	display: block;
}

.madina-contact__details {
	margin: 0 auto;
	max-width: 100%;
	width: 100%;
	text-align: left;
}

.madina-contact__detail {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr);
	gap: 8px 20px;
	margin-bottom: 18px;
}

.madina-contact__detail:last-child {
	margin-bottom: 0;
}

.madina-contact__detail dt {
	margin: 0;
	font-family: "Jost", sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(206, 216, 216, 0.62);
}

.madina-contact__detail dt.madina-contact__detail--empty {
	visibility: hidden;
}

.madina-contact__detail dd {
	margin: 0;
	font-family: "Jost", sans-serif;
	font-size: 15px;
	line-height: 1.65;
	color: var(--qode-paragraph-color, #ced8d8);
}

.madina-contact__detail a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(201, 165, 129, 0.45);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.madina-contact__detail a:hover,
.madina-contact__detail a:focus {
	color: var(--qode-main-color, #b58c67);
	border-bottom-color: var(--qode-main-color, #b58c67);
}

.madina-contact__actions {
	margin: auto 0 0;
	padding-top: 36px;
	text-align: center;
}

.madina-contact__directions.qodef-button {
	margin: 0;
}

.madina-contact__hours,
.madina-contact__connect {
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
}

.madina-contact__hours {
	margin-bottom: 56px;
	padding-top: 32px;
	border-top: 1px solid rgba(201, 165, 129, 0.25);
}

.madina-contact__hours-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px 56px;
	margin-bottom: 16px;
}

.madina-contact__hours-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 220px;
}

.madina-contact__hours-day {
	font-family: "Jost", sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--qode-main-color, #b58c67);
}

.madina-contact__hours-time {
	font-family: "Cormorant Garamond", serif;
	font-size: 1.35rem;
	line-height: 1.3;
	color: var(--qode-header-light-color, #fff);
}

.madina-contact__hours-note {
	margin: 0;
	font-family: "Jost", sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(206, 216, 216, 0.72);
}

.madina-contact__connect-links {
	margin: 0;
	font-family: "Jost", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	letter-spacing: 0.04em;
	color: var(--qode-paragraph-color, #ced8d8);
}

.madina-contact__connect-links a {
	color: var(--qode-header-light-color, #fff);
	text-decoration: none;
	border-bottom: 1px solid rgba(201, 165, 129, 0.45);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.madina-contact__connect-links a:hover,
.madina-contact__connect-links a:focus {
	color: var(--qode-main-color, #b58c67);
	border-bottom-color: var(--qode-main-color, #b58c67);
}

.madina-contact__sep {
	display: inline-block;
	margin: 0 10px;
	opacity: 0.55;
}

@media (max-width: 880px) {
	.madina-contact {
		padding: 56px 0 120px;
	}

	.madina-contact__intro-wrap {
		margin-bottom: 56px;
		padding: 16px 24px 0;
	}

	.madina-contact__intro {
		font-size: 16px;
		line-height: 1.75;
		text-align: center !important;
	}

	.madina-contact__offices {
		grid-template-columns: 1fr;
		gap: 32px;
		margin-bottom: 48px;
	}

	.madina-contact__office {
		padding: 40px 28px 32px;
	}

	.madina-contact__office-title {
		max-width: none;
		margin-bottom: 28px;
	}

	.madina-contact__detail {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.madina-contact__detail dt.madina-contact__detail--empty {
		display: none;
	}

	.madina-contact__hours,
	.madina-contact__connect {
		text-align: left;
	}

	.madina-contact__hours-grid {
		justify-content: flex-start;
	}
}

/* --------------------------------------------------------------------------
 * Home inquiry form (replaces OpenTable reservation fields)
 * Compact two-column fields so the underlines match the photo column.
 * -------------------------------------------------------------------------- */
.madina-inquiry-form .madina-inquiry-form__hp {
	position: absolute;
	left: -9999px;
	height: 0;
	width: 0;
	overflow: hidden;
}

.madina-inquiry-form.qodef-reservation-form.qodef-layout--block {
	max-width: 520px;
}

.madina-inquiry-form.qodef-reservation-form.qodef-layout--block .qodef-m-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 20px;
	row-gap: 14px;
	align-items: end;
}

.madina-inquiry-form.qodef-reservation-form.qodef-layout--block .qodef-m-field {
	flex: none;
	flex-basis: auto;
	width: auto;
	margin-bottom: 0;
}

.madina-inquiry-form.qodef-reservation-form.qodef-layout--block .qodef-m-field:not(.qodef-m-field-time) {
	margin-bottom: 0;
}

.madina-inquiry-form.qodef-reservation-form.qodef-layout--block .qodef-m-field.qodef-m-field-book {
	margin-bottom: 0;
}

.madina-inquiry-form.qodef-reservation-form.qodef-layout--block button {
	margin-top: 4px;
}

.madina-inquiry-form .madina-inquiry-form__wide,
.madina-inquiry-form .qodef-m-copyright {
	grid-column: 1 / -1;
}

.madina-inquiry-form .qodef-m-field input,
.madina-inquiry-form .qodef-m-field textarea {
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 0;
	box-shadow: none;
	color: #fff;
	font-weight: 300;
	padding: 6px 2px 8px;
}

.madina-inquiry-form .qodef-m-field textarea {
	height: 56px;
	min-height: 56px;
	resize: vertical;
}

.madina-inquiry-form .qodef-m-field input::placeholder,
.madina-inquiry-form .qodef-m-field textarea::placeholder {
	color: var(--qode-paragraph-color, #ced8d8);
	opacity: 0.85;
}

.madina-inquiry-form .qodef-m-field input:focus,
.madina-inquiry-form .qodef-m-field textarea:focus {
	outline: none;
	border-bottom-color: var(--qode-main-color, #c9a581);
}

.madina-inquiry-form.qodef-reservation-form .qodef-m-copyright {
	margin: 4px 0 0;
	font-size: 13px;
	text-align: left;
	justify-content: flex-start;
}

.madina-inquiry-form__notice {
	margin: 0 0 16px;
	color: var(--qode-paragraph-color, #ced8d8);
}

.madina-inquiry-form__notice--ok {
	color: #fff;
}

@media (max-width: 680px) {
	.madina-inquiry-form.qodef-reservation-form.qodef-layout--block .qodef-m-inner {
		grid-template-columns: 1fr;
		row-gap: 12px;
	}
}