/* ============================================================
	Udman Convention – Custom styles on top of Tailwind.
	============================================================ */

html { scroll-behavior: smooth; }

body {
	font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
	color: #1a1108;
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Editorial italic used for accent words throughout */
.display-italic {
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-weight: 500;
}

/* -----------------------------------------------------
	Reveal on scroll
   ----------------------------------------------------- */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
	            transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* -----------------------------------------------------
	Header (sticky / transparent on hero)
   ----------------------------------------------------- */
.site-header                     { transition: background 0.35s ease, box-shadow 0.35s ease, color 0.3s ease; }
.site-header.is-scrolled         { background: #ffffff !important; box-shadow: 0 6px 28px -14px rgba(0,0,0,0.15); }
.site-header.is-scrolled .nav-link,
.site-header.is-scrolled .nav-phone,
.site-header.is-scrolled .nav-brand-text,
.site-header.is-scrolled .hamburger-btn { color: #211d1a; }
.site-header.is-scrolled .logo-mark { filter: none; }

/* -----------------------------------------------------
	Dual logo swap (dark logo for white headers, light logo for dark hero)
	----------------------------------------------------- */
.site-header .logo-light,
.site-header .logo-dark { display: none; }

/* Dark-hero pages, before scroll → show light logo */
.site-header.text-cream:not(.is-scrolled) .logo-light { display: block; }

/* Regular pages OR scrolled state → show dark logo */
.site-header:not(.text-cream) .logo-dark,
.site-header.text-cream.is-scrolled .logo-dark { display: block; }

/* Fallback: if only ONE logo is uploaded, always show that one */
.site-header .logo-light:only-child,
.site-header .logo-dark:only-child  { display: block; }

/* Menu link underline */
.nav-link              { position: relative; padding-bottom: 2px; }
.nav-link::after       { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.35s ease; }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Nav fallback lists */
.udman-nav ul          { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.udman-nav-mobile ul   { flex-direction: column; gap: 0.25rem; align-items: stretch; }
.udman-nav a           { color: inherit; text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s; }
.udman-nav a:hover     { color: #714f3c; }
.udman-nav-mobile a    { display: block; padding: 14px 4px; border-bottom: 1px solid #f4efe8; font-size: 16px; font-weight: 500; }
.udman-nav-mobile li:last-child a { border-bottom: 0; }

/* -----------------------------------------------------
	Right-slide hamburger drawer (mobile)
   ----------------------------------------------------- */
.drawer-backdrop {
	position: fixed; inset: 0;
	background: rgba(0,0,0,0.55);
	backdrop-filter: blur(2px);
	opacity: 0; pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 60;
}
.drawer-backdrop.is-open {
	opacity: 1; pointer-events: auto;
}
.drawer-panel {
	position: fixed; top: 0; right: 0; bottom: 0;
	width: 80%; max-width: 360px;
	background: #ffffff;
	color: #211d1a;
	transform: translateX(100%);
	transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 61;
	box-shadow: -30px 0 60px -30px rgba(0,0,0,0.35);
	overflow-y: auto;
}
.drawer-panel.is-open { transform: translateX(0); }
body.drawer-open      { overflow: hidden; }

/* -----------------------------------------------------
	Udman Brand Marquee – isolated namespace, pure CSS animation
	(no Swiper, no library — runs on every browser, GPU-accelerated)
	----------------------------------------------------- */
.udman-marquee {
	position: relative;
	width: 100%;
	overflow: hidden;
	/* Soft fade at left + right edges so logos dissolve in */
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 100px,
		#000 calc(100% - 100px),
		transparent 100%
	);
	mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 100px,
		#000 calc(100% - 100px),
		transparent 100%
	);
}
.udman-marquee__track {
	display: flex;
	align-items: center;
	gap: 60px;
	width: max-content;             /* track is as wide as all items combined */
	animation: udman-marquee-scroll 40s linear infinite;
	will-change: transform;
}
.udman-marquee__item {
	flex: 0 0 auto;                 /* don't shrink/grow — natural logo width */
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
}
.udman-marquee__img {
	max-height: 100%;
	width: auto;
	filter: brightness(0) invert(1); /* turn any logo white */
	opacity: 0.9;
	transition: opacity 0.25s ease;
	pointer-events: none;
	-webkit-user-drag: none;
}
.udman-marquee:hover .udman-marquee__track {
	animation-play-state: paused;   /* pause on hover */
}
.udman-marquee:hover .udman-marquee__img {
	opacity: 1;
}

/* The keyframe — moves the duplicated track left by exactly 50%
   (since JS clones the children, that 50% mark is identical to the start = seamless) */
@keyframes udman-marquee-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(var(--udman-marquee-shift, -50%), 0, 0); }
}

/* Tablet+ : a bit more breathing room */
@media (min-width: 640px) {
	.udman-marquee__track { gap: 70px; }
}
@media (min-width: 1024px) {
	.udman-marquee__track { gap: 90px; }
}

/* Reduced-motion: stop the animation entirely */
@media (prefers-reduced-motion: reduce) {
	.udman-marquee__track {
		animation: none !important;
		transform: none !important;
	}
}

/* -----------------------------------------------------
	Event-categories hover-expand (desktop)
   ----------------------------------------------------- */
.expand-row { display: flex; gap: 2px; }
.expand-row > .expand-item {
	flex: 1;
	min-width: 0;
	transition: flex-grow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 1024px) {
	.expand-row:hover > .expand-item        { flex-grow: 0.6; }
	.expand-row:hover > .expand-item:hover  { flex-grow: 2.2; }
}
@media (max-width: 1023px) {
	.expand-row              { flex-direction: column; gap: 8px; }
	.expand-row > .expand-item { min-height: 280px; }
}

/* -----------------------------------------------------
	Card hover states
   ----------------------------------------------------- */

/* Venue card (homepage popular venues) */
.venue-card                  { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease; }
.venue-card:hover            { transform: translateY(-6px); }
.venue-card .venue-img       { transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.venue-card:hover .venue-img { transform: scale(1.06); }

/* Amenity card (homepage amenities grid) */
.amenity-card                  { transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
.amenity-card:hover            { transform: translateY(-4px); border-color: #d4b480; box-shadow: 0 14px 30px -12px rgba(113,79,60,0.22); }
.amenity-card .amen-icon       { transition: transform 0.4s ease; }
.amenity-card:hover .amen-icon { transform: scale(1.08) rotate(-4deg); }

/* Testimonial card */
.testi-card        { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.testi-card:hover  { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(74,45,26,0.25); }

/* Quick contact card (Contact / Compare pages) */
.contact-card                          { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.4s ease; }
.contact-card:hover                    { transform: translateY(-6px); box-shadow: 0 24px 48px -18px rgba(74, 45, 26, 0.25); border-color: #d4b480; }
.contact-card:hover .contact-card-icon { transform: scale(1.08) rotate(-4deg); }
.contact-card-icon                     { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

/* Stat tile (Trusted by Thousands) */
.stat-card                       { transition: transform 0.4s ease; }
.stat-card:hover                 { transform: translateY(-4px); }
.stat-card:hover .stat-icon-tile { transform: scale(1.06); box-shadow: 0 14px 30px -10px rgba(193, 152, 106, 0.45); }
.stat-icon-tile                  { transition: transform 0.4s ease, box-shadow 0.4s ease; }

/* Stars */
.star-gold { color: #d4a23c; }

/* Services Page – icon circle hover */
.svc-icon-circle {
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
	            box-shadow 0.45s ease;
}
.svc-icon-circle:hover {
	transform: scale(1.06) translateY(-3px);
	box-shadow: 0 16px 36px -10px rgba(95, 62, 46, 0.45);
}

/* -----------------------------------------------------
	Compare Venues page – checkbox chips + table
   ----------------------------------------------------- */
.cmp-chip {
	transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.cmp-chip.is-selected {
	border-color: #714f3c;
	background: #faf6f0;
	box-shadow: 0 6px 18px -8px rgba(113, 79, 60, 0.25);
}
.cmp-row {
	transition: background-color 0.2s ease, opacity 0.25s ease;
}

/* Homepage compare table */
.compare-table             { border-collapse: separate; border-spacing: 0; }
.compare-table tr:hover td { background: #faf6f0; }

/* -----------------------------------------------------
	How It Works arrows
   ----------------------------------------------------- */
.hiw-arrow                  { opacity: 0.55; }
.hiw-step                   { transition: transform 0.4s ease; }
.hiw-step:hover             { transform: translateY(-4px); }
.hiw-step:hover .hiw-circle { box-shadow: 0 10px 30px -8px rgba(95, 62, 46, 0.5); transform: scale(1.05); }
.hiw-circle                 { transition: transform 0.4s ease, box-shadow 0.4s ease; }

/* -----------------------------------------------------
	Map / office card
   ----------------------------------------------------- */

/* Make any pasted Google Maps iframe fill its container neatly */
#booking-form .relative > iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Office card always sits above the map */
.office-card { z-index: 2; }

/* -----------------------------------------------------
	Contact Form 7 styling – matches design
   ----------------------------------------------------- */

/* Neutralise CF7's auto-inserted <br> tags inside form rows */
.cta-form .wpcf7-form br { display: none; }

.cta-form .wpcf7-form p {
	margin: 0 0 14px 0;
}
.cta-form .wpcf7-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #211d1a;
	letter-spacing: 0.01em;
	margin-bottom: 6px;
}
.cta-form .wpcf7-form input[type="text"],
.cta-form .wpcf7-form input[type="email"],
.cta-form .wpcf7-form input[type="tel"],
.cta-form .wpcf7-form input[type="date"],
.cta-form .wpcf7-form input[type="number"],
.cta-form .wpcf7-form select,
.cta-form .wpcf7-form textarea {
	width: 100%;
	padding: 12px 14px;
	background: #ffffff;
	border: 1px solid #e8dcc8;
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	color: #1a1108;
	outline: none;
	transition: border 0.2s, box-shadow 0.2s;
}
.cta-form .wpcf7-form input:focus,
.cta-form .wpcf7-form select:focus,
.cta-form .wpcf7-form textarea:focus {
	border-color: #714f3c;
	box-shadow: 0 0 0 3px rgba(113, 79, 60, 0.15);
}
.cta-form .wpcf7-form textarea {
	min-height: 90px;
	resize: vertical;
}
.cta-form .wpcf7-form input[type="submit"] {
	width: 100%;
	background: #5f3e2e;
	color: #f4efe8;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 14px 18px;
	border-radius: 8px;
	border: 0;
	cursor: pointer;
	transition: background 0.25s, transform 0.25s;
	font-size: 15px;
}
.cta-form .wpcf7-form input[type="submit"]:hover {
	background: #4a2f23;
	transform: translateY(-1px);
}

/* Form two-column grid helper – when wrapped in .cf7-grid */
.cta-form .cf7-grid .wpcf7-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 14px;
}
.cta-form .cf7-grid .wpcf7-form > p {
	margin: 0;
}
.cta-form .cf7-grid .wpcf7-form > p:nth-last-child(1),
.cta-form .cf7-grid .wpcf7-form > p:nth-last-child(2) {
	grid-column: span 2;
}
@media (max-width: 640px) {
	.cta-form .cf7-grid .wpcf7-form {
		grid-template-columns: 1fr;
	}
	.cta-form .cf7-grid .wpcf7-form > p:nth-last-child(1),
	.cta-form .cf7-grid .wpcf7-form > p:nth-last-child(2) {
		grid-column: span 1;
	}
}

/* -----------------------------------------------------
	Page base + print
   ----------------------------------------------------- */
.content-wrap { padding-top: 0; }

@media print {
	.drawer-backdrop, .drawer-panel, .site-header { display: none !important; }
}
/* ============================================================
    Mobile Sticky CTA Bar — Call + WhatsApp
    ============================================================ */
.mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(
        to top,
        rgba(33, 29, 26, 0.96) 0%,
        rgba(33, 29, 26, 0.92) 70%,
        rgba(33, 29, 26, 0) 100%
    );
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.mobile-cta-bar.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}
.mobile-cta-bar__inner {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}
.mobile-cta-bar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}
.mobile-cta-bar__btn:active {
    transform: scale(0.97);
}
.mobile-cta-bar__btn--call {
    background: linear-gradient(135deg, #714f3c 0%, #5f3e2e 100%);
}
.mobile-cta-bar__btn--whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1ca851 100%);
}
.mobile-cta-bar__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    animation: udman-cta-pulse 2.4s ease-in-out infinite;
}
.mobile-cta-bar__btn--whatsapp .mobile-cta-bar__icon {
    animation-delay: 1.2s;
}
.mobile-cta-bar__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}
.mobile-cta-bar__label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffffff;
}
.mobile-cta-bar__sub {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Subtle pulse on the icon — draws the eye without being annoying */
@keyframes udman-cta-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08); }
}

/* When the bar is visible on mobile, add bottom padding to body so it doesn't cover content */
@media (max-width: 1023px) {
    body.has-mobile-cta {
        padding-bottom: 86px;
    }
}

/* Reduced motion — kill the pulse */
@media (prefers-reduced-motion: reduce) {
    .mobile-cta-bar__icon { animation: none; }
    .mobile-cta-bar       { transition: none; }
}
/* ============================================================
    Venue Archive – filter chips + card filtering
    ============================================================ */
.va-filter__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #e8dcc8;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1108;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.va-filter__chip:hover {
    border-color: #d4b480;
    background: #faf6f0;
}
.va-filter__chip.is-active {
    background: #714f3c;
    border-color: #714f3c;
    color: #ffffff;
    box-shadow: 0 6px 14px -6px rgba(113, 79, 60, 0.45);
}
.va-filter__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
}
.va-filter__chip.is-active .va-filter__count {
    background: rgba(255, 255, 255, 0.22);
}
[data-va-card] {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
[data-va-card].is-hidden {
    display: none;
}
/* ============================================================
    Global Form Popup
    Triggered by any <a href="#form"> link site-wide
    ============================================================ */
.form-popup {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.form-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease, visibility 0s;
}
.form-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(33, 29, 26, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.form-popup__card {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 30px 80px -20px rgba(33, 29, 26, 0.55),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.form-popup.is-open .form-popup__card {
    transform: translateY(0) scale(1);
}
.form-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    background: #f5f0eb;
    color: #5f3e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}
.form-popup__close:hover {
    background: #e8dcc8;
    transform: rotate(90deg);
}
.form-popup__header {
    padding: 36px 32px 8px;
    text-align: center;
    background: linear-gradient(180deg, #faf8f5 0%, #ffffff 100%);
    border-radius: 18px 18px 0 0;
}
.form-popup__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #d4b480;
    margin-bottom: 14px;
}
.form-popup__line {
    width: 36px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}
.form-popup__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    color: #1a1108;
    line-height: 1.15;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.form-popup__sub {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: rgba(26, 17, 8, 0.6);
    margin: 0;
    line-height: 1.5;
}
.form-popup__body {
    padding: 24px 32px 32px;
}

/* When popup is open, lock body scroll */
body.form-popup-open {
    overflow: hidden;
}

/* Larger headings on bigger screens */
@media (min-width: 640px) {
    .form-popup__title { font-size: 32px; }
    .form-popup__header { padding: 44px 40px 8px; }
    .form-popup__body   { padding: 28px 40px 36px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .form-popup,
    .form-popup__card { transition: opacity 0.15s ease; transform: none !important; }
}

/* Transport-icon and Seating-icon image/SVG sizing inside the circle badge */
.udman-transport-icon svg,
.udman-transport-icon img,
.udman-seating-icon svg,
.udman-seating-icon img {
    width: 26px;
    height: 26px;
    display: block;
    object-fit: contain;
}