/**
 * FLOWERIOPOT HEADER - V5 Premium Design
 * Single source of truth for: top bar, header, desktop nav, mobile drawer.
 * Namespace: fp-
 * Design: Deep purple + gold accent, glassmorphism header, premium feel
 */

/* ============ CONTAINER ============ */
.fp-container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* ============ TOP BAR ============ */
.fp-topbar {
	background: linear-gradient(135deg, #3B1A40 0%, #2a1030 50%, #1e0a25 100%);
	padding: 0;
	font-size: 0.78rem;
	position: relative;
	z-index: 991;
	border-bottom: 1px solid rgba(200, 163, 95, 0.15);
}

.fp-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
}

.fp-topbar__left {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.fp-topbar__tagline {
	color: rgba(255, 255, 255, 0.92);
	font-weight: 500;
	letter-spacing: 0.02em;
	padding-right: 20px;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	position: relative;
}

.fp-topbar__tagline::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	background: #C8A35F;
	border-radius: 50%;
	margin-right: 8px;
	animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(0.8); }
}

.fp-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: all 0.25s ease;
	padding: 4px 0;
}

.fp-topbar__item:hover {
	color: #C8A35F;
	transform: translateX(2px);
}

.fp-topbar__item svg {
	opacity: 0.7;
	transition: opacity 0.25s ease;
}

.fp-topbar__item:hover svg {
	opacity: 1;
}

.fp-topbar__right {
	display: flex;
	align-items: center;
	gap: 6px;
}

.fp-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.75);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fp-social:hover {
	color: #C8A35F;
	background: rgba(200, 163, 95, 0.15);
	border-color: rgba(200, 163, 95, 0.3);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(200, 163, 95, 0.2);
}

/* ============ HEADER ============ */
.fp-header {
	background: rgba(245, 241, 232, 0.92);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 990;
	border-bottom: 2px solid #C8A35F;
	box-shadow: 0 2px 20px rgba(59, 26, 64, 0.06);
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.fp-header::before {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, #C8A35F 20%, #d4a84a 50%, #C8A35F 80%, transparent);
}

.fp-header.is-sticky {
	box-shadow: 0 4px 30px rgba(59, 26, 64, 0.12);
	background: rgba(250, 248, 244, 0.97);
}

.fp-header.is-hidden {
	transform: translateY(-110%);
}

body.fp-menu-open .fp-header.is-hidden {
	transform: none;
}

.fp-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 70px;
	padding: 8px 0;
}

/* ============ LOGO ============ */
.fp-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	position: relative;
	min-width: 0;
}

.fp-logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.fp-logo img,
.fp-logo .custom-logo {
	max-height: 55px;
	width: auto;
	display: block;
	filter: drop-shadow(0 2px 8px rgba(59, 26, 64, 0.1));
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.fp-logo:hover img,
.fp-logo:hover .custom-logo {
	filter: drop-shadow(0 4px 16px rgba(59, 26, 64, 0.18));
	transform: scale(1.03);
}

.fp-logo__text {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.65rem;
	font-weight: 700;
	color: #3B1A40;
	text-decoration: none;
	letter-spacing: -0.02em;
	line-height: 1.1;
	transition: color 0.3s ease;
}

.fp-logo__text:hover {
	color: #C8A35F;
}

/* ============ DESKTOP NAV ============ */
.fp-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.fp-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fp-nav__list li {
	position: relative;
}

.fp-nav__list a {
	display: block;
	padding: 10px 16px;
	color: #3B1A40;
	font-weight: 500;
	font-size: 0.92rem;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.25s ease;
	position: relative;
	letter-spacing: 0.01em;
}

/* Underline hover effect */
.fp-nav__list a::after {
	content: '';
	position: absolute;
	bottom: 4px;
	left: 16px;
	right: 16px;
	height: 2px;
	background: linear-gradient(90deg, #C8A35F, #d4a84a);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fp-nav__list a:hover::after,
.fp-nav__list .current-menu-item > a::after,
.fp-nav__list .current_page_item > a::after {
	transform: scaleX(1);
}

.fp-nav__list a:hover {
	color: #C8A35F;
	background: rgba(200, 163, 95, 0.06);
}

.fp-nav__list .current-menu-item > a,
.fp-nav__list .current_page_item > a {
	color: #C8A35F;
	font-weight: 600;
	background: rgba(200, 163, 95, 0.08);
}

/* Dropdown submenu */
.fp-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	border-radius: 0 0 12px 12px;
	box-shadow: 0 12px 40px rgba(59, 26, 64, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 50;
	border: 1px solid rgba(200, 163, 95, 0.1);
	border-top: 2px solid #C8A35F;
}

.fp-nav__list li:hover > .sub-menu,
.fp-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.fp-nav__list .sub-menu a {
	padding: 11px 20px;
	border-radius: 0;
	font-size: 0.88rem;
	font-weight: 450;
}

.fp-nav__list .sub-menu a::after {
	display: none;
}

.fp-nav__list .sub-menu a:hover {
	background: rgba(200, 163, 95, 0.08);
	color: #C8A35F;
	padding-left: 24px;
}

/* ============ CTA BUTTON ============ */
.fp-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 26px;
	min-width: 140px;
	text-align: center;
	background: linear-gradient(135deg, #C8A35F 0%, #d4a84a 50%, #C8A35F 100%);
	background-size: 200% 200%;
	color: #1e0a25;
	font-weight: 600;
	font-size: 0.88rem;
	border-radius: 8px;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	flex-shrink: 0;
	letter-spacing: 0.02em;
	box-shadow: 0 4px 15px rgba(200, 163, 95, 0.3);
	position: relative;
	overflow: hidden;
}

.fp-cta::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.fp-cta:hover {
	background-position: 100% 0;
	color: #1e0a25;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(200, 163, 95, 0.4);
}

.fp-cta:hover::before {
	left: 100%;
}

.fp-cta:active {
	transform: translateY(0);
	box-shadow: 0 2px 10px rgba(200, 163, 95, 0.3);
}

/* ============ HAMBURGER (hidden on desktop) ============ */
.fp-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 46px;
	height: 46px;
	background: rgba(200, 163, 95, 0.1);
	border: 2px solid rgba(59, 26, 64, 0.15);
	border-radius: 10px;
	cursor: pointer;
	padding: 10px;
	flex-shrink: 0;
	transition: all 0.3s ease;
	-webkit-tap-highlight-color: transparent;
}

.fp-hamburger:hover {
	background: rgba(200, 163, 95, 0.18);
	border-color: #C8A35F;
	transform: scale(1.05);
}

.fp-hamburger:active {
	transform: scale(0.95);
}

.fp-hamburger span {
	display: block;
	width: 22px;
	height: 2.5px;
	background: #3B1A40;
	border-radius: 2px;
	transition: all 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.fp-hamburger.is-active {
	background: rgba(200, 163, 95, 0.2);
	border-color: #C8A35F;
}

.fp-hamburger.is-active span {
	background: #3B1A40;
}

.fp-hamburger.is-active span:nth-child(1) {
	transform: translateY(7.5px) rotate(45deg);
}

.fp-hamburger.is-active span:nth-child(2) {
	opacity: 0;
	width: 0;
}

.fp-hamburger.is-active span:nth-child(3) {
	transform: translateY(-7.5px) rotate(-45deg);
}

/* ============ OVERLAY ============ */
.fp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(30, 10, 37, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 9000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.35s ease;
}

.fp-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

/* ============ MOBILE DRAWER ============ */
.fp-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 85%;
	max-width: 360px;
	height: 100vh;
	height: 100dvh;
	background: #fff;
	z-index: 9001;
	display: flex;
	flex-direction: column;
	transform: translateX(105%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: -8px 0 40px rgba(0, 0, 0, 0.25);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.fp-drawer.is-open {
	transform: translateX(0);
}

.fp-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid rgba(200, 163, 95, 0.15);
	background: linear-gradient(135deg, #F5F1E8 0%, #faf8f4 100%);
}

.fp-drawer__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	color: #3B1A40;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
}

.fp-drawer__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(59, 26, 64, 0.06);
	border: none;
	cursor: pointer;
	color: #3B1A40;
	border-radius: 10px;
	transition: all 0.25s ease;
}

.fp-drawer__close:hover {
	background: rgba(59, 26, 64, 0.12);
	transform: rotate(90deg);
}

.fp-drawer__menu {
	flex: 1;
	padding: 8px 0;
}

.fp-drawer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fp-drawer__list li {
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fp-drawer__list a {
	display: flex;
	align-items: center;
	padding: 16px 20px;
	color: #3B1A40;
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.25s ease;
	position: relative;
}

.fp-drawer__list a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 3px;
	height: 100%;
	background: #C8A35F;
	transform: scaleY(0);
	transition: transform 0.25s ease;
}

.fp-drawer__list a:hover,
.fp-drawer__list a:active {
	background: rgba(200, 163, 95, 0.06);
	color: #C8A35F;
	padding-left: 24px;
}

.fp-drawer__list a:hover::before,
.fp-drawer__list .current-menu-item > a::before {
	transform: scaleY(1);
}

.fp-drawer__list .current-menu-item > a {
	color: #C8A35F;
	font-weight: 600;
	background: rgba(200, 163, 95, 0.08);
}

/* Submenus inside drawer */
.fp-drawer__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	background: rgba(245, 241, 232, 0.5);
}

.fp-drawer__list .sub-menu a {
	padding: 13px 20px 13px 36px;
	font-size: 0.88rem;
	font-weight: 450;
}

.fp-drawer__contact {
	padding: 16px 20px 24px;
	border-top: 1px solid rgba(200, 163, 95, 0.15);
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: linear-gradient(135deg, #F5F1E8 0%, #faf8f4 100%);
}

.fp-drawer__contact a {
	color: #3B1A40;
	font-weight: 600;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: color 0.25s ease;
}

.fp-drawer__contact a:hover {
	color: #C8A35F;
}

.fp-drawer__whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
	color: #fff !important;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.fp-drawer__whatsapp:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Lock body scroll while drawer is open */
body.fp-menu-open {
	overflow: hidden;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
	.fp-nav,
	.fp-cta {
		display: none;
	}

	.fp-hamburger {
		display: flex;
	}

	.fp-topbar__tagline {
		display: none;
	}

	.fp-header__inner {
		min-height: 60px;
	}

	.fp-logo img,
	.fp-logo .custom-logo {
		max-height: 50px;
	}
}

@media (min-width: 901px) {
	.fp-hamburger,
	.fp-drawer,
	.fp-overlay {
		display: none;
	}
}

@media (max-width: 480px) {
	.fp-topbar {
		font-size: 0.72rem;
	}

	.fp-topbar__item {
		gap: 4px;
	}

	.fp-topbar__item span {
		font-size: 0.72rem;
	}

	.fp-logo img,
	.fp-logo .custom-logo {
		max-height: 45px;
	}

	.fp-header__inner {
		min-height: 56px;
		gap: 12px;
	}

	.fp-hamburger {
		width: 42px;
		height: 42px;
	}
}

/* ============ SCROLL PROGRESS BAR ============ */
.fp-scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 3px;
	background: linear-gradient(90deg, #C8A35F 0%, #d4a84a 40%, #3B1A40 100%);
	z-index: 9999;
	transition: width 0.1s ease;
	box-shadow: 0 0 8px rgba(200, 163, 95, 0.5);
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
	.fp-header,
	.fp-topbar,
	.fp-nav__list a,
	.fp-cta,
	.fp-hamburger,
	.fp-drawer,
	.fp-overlay,
	.fp-social,
	.fp-drawer__close,
	.fp-drawer__list a,
	.fp-logo img,
	.fp-logo .custom-logo {
		transition: none;
	}

	.fp-topbar__tagline::before {
		animation: none;
	}
}
