/* ==========================================================================
   Fortune Flavor — brand styles (loaded by the Fortune Flavor Site Kit plugin)
   Header & menu (Hello Elementor), WooCommerce, Contact Form 7, small helpers.
   ========================================================================== */

:root {
	--ff-green: #1F4A3C;
	--ff-green-dark: #12302A;
	--ff-gold: #E0A43A;
	--ff-ink: #16181A;
	--ff-cream: #FBFAF6;
	--ff-sand: #F1EEE6;
	--ff-body: #45484A;
	--ff-muted: #5B5E60;
	--ff-line: #E0DBCF;
	--ff-serif: "Bodoni Moda", Didot, "Times New Roman", serif;
	--ff-sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
}

body {
	background: var(--ff-cream);
	color: var(--ff-body);
	font-family: var(--ff-sans);
	-webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }
[id="story"], [id="packages"], [id="occasions"], [id="contact"] { scroll-margin-top: 24px; }

/* ---------- Customizer variables (defaults; Appearance → Customize overrides them) ---------- */
:root {
	--ff-a-bg: #E0A43A;
	--ff-a-color: #16181A;
	--ff-h-bg: #FBFAF6;
	--ff-h-text: #16181A;
	--ff-h-hover: #1F4A3C;
	--ff-h-border: #E6E2D8;
	--ff-h-height: 96px;
	--ff-logo: 56px;
	--ff-title-size: 30px;
	--ff-cart-bg: #1F4A3C;
	--ff-cart-color: #FBFAF6;
	--ff-f-bg: #16181A;
	--ff-f-text: #C8CACB;
	--ff-f-heading: #FBFAF6;
	--ff-f-accent: #E0A43A;
}

/* ---------- Announcement bar ---------- */
.ff-announce-bar {
	background: var(--ff-a-bg);
	color: var(--ff-a-color);
	padding: 10px 20px;
	text-align: center;
	font-family: var(--ff-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}
.ff-announce-bar p { margin: 0; }
.ff-announce-bar a { color: inherit !important; font-weight: 700; text-decoration: underline; }

/* ---------- Header (Hello Elementor) ---------- */
.site-header {
	max-width: none !important;
	width: 100%;
	padding: 0 !important;
	background: var(--ff-h-bg);
	border-bottom: 1px solid var(--ff-h-border);
	position: relative;
	z-index: 50;
}
body.ff-sticky-header .site-header { position: sticky; top: 0; }
body.ff-sticky-header.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.ff-sticky-header.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.ff-sticky-header.admin-bar .site-header { top: 0; } }

.site-header .header-inner {
	max-width: 1312px;
	width: 100%;
	margin: 0 auto;
	min-height: var(--ff-h-height);
	padding: 0 32px;
	align-items: center;
	flex-wrap: nowrap;
	gap: 24px;
}
.site-header .site-branding {
	flex-direction: row !important;
	align-items: center;
	flex-wrap: wrap;
	column-gap: 12px;
	row-gap: 0 !important;
	flex-shrink: 0;
	max-width: 380px;
}
.site-header .site-branding .site-logo img,
.site-header .custom-logo {
	width: var(--ff-logo) !important;
	height: var(--ff-logo) !important;
	max-width: none;
	object-fit: contain;
	display: block;
}
.site-header .site-title,
.site-header .site-title a {
	font-family: var(--ff-serif) !important;
	font-size: var(--ff-title-size) !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	color: var(--ff-h-text) !important;
	letter-spacing: 0.01em;
}
.site-header .site-description {
	flex-basis: 100%;
	margin: 4px 0 0 calc(var(--ff-logo) + 12px) !important;
	font-family: var(--ff-sans);
	font-size: 10px !important;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--ff-h-text) !important;
	opacity: 0.75;
}
body.ff-hide-title .site-header .site-title { display: none !important; }
body.ff-hide-tagline .site-header .site-description { display: none !important; }
body.ff-hide-title .site-header .site-description { margin-left: calc(var(--ff-logo) + 12px) !important; }

/* Desktop menu: centred (or right-aligned) links; account + cart on the right */
.site-header .site-navigation { flex-grow: 1; justify-content: flex-end; }
.site-header .site-navigation ul.menu {
	width: 100%;
	align-items: center;
	flex-wrap: nowrap;
	gap: 6px;
	margin: 0;
}
.site-header .site-navigation ul.menu > li:first-child { margin-left: auto; }
body.ff-menu-center .site-header .site-navigation ul.menu > li.ff-menu-account { margin-left: auto; }
body.ff-menu-right .site-header .site-navigation ul.menu > li.ff-menu-account { margin-left: 12px; }
body.ff-hide-account .ff-menu-account,
body.ff-hide-cart .ff-menu-cart { display: none !important; }
body.ff-menu-center.ff-hide-account .site-header .site-navigation ul.menu > li.ff-menu-cart { margin-left: auto; }

.site-header .site-navigation ul.menu li a {
	font-family: var(--ff-sans);
	font-size: 15px;
	font-weight: 500;
	color: var(--ff-h-text);
	padding: 12px 14px;
	white-space: nowrap;
}
.site-header .site-navigation ul.menu > li > a:hover,
.site-header .site-navigation ul.menu > li > a:focus-visible { color: var(--ff-h-hover); }
.site-header .site-navigation ul.menu li.menu-item-has-children::after { font-size: 1em; color: var(--ff-h-text); padding-right: 4px; }

/* Shop dropdown */
.site-header .site-navigation ul.menu li ul.sub-menu {
	min-width: 300px;
	background: #fff;
	border: 1px solid #E6E2D8;
	border-radius: 8px;
	box-shadow: 0 18px 40px rgba(22, 24, 26, 0.14);
	padding: 8px;
	margin-top: 4px;
}
.site-header .site-navigation ul.menu li ul.sub-menu li { border: 0; }
.site-header .site-navigation ul.menu li ul.sub-menu a {
	padding: 12px 14px;
	border-radius: 6px;
	color: var(--ff-ink);
	font-weight: 600;
	width: 100%;
}
.site-header .site-navigation ul.menu li ul.sub-menu a:hover { background: var(--ff-sand); color: var(--ff-ink); }
.site-header .site-navigation ul.menu li ul.sub-menu li.ff-menu-highlight a { background: #F7EEDC; }

/* Account (icon) and Cart (button) */
.site-header .site-navigation ul.menu li.ff-menu-account a {
	font-size: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.site-header .site-navigation ul.menu li.ff-menu-account a::before {
	content: "";
	width: 22px;
	height: 22px;
	background: var(--ff-h-text);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.site-header .site-navigation ul.menu li.ff-menu-cart a {
	background: var(--ff-cart-bg);
	color: var(--ff-cart-color) !important;
	border-radius: 4px;
	padding: 12px 20px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
}
.site-header .site-navigation ul.menu li.ff-menu-cart a:hover { filter: brightness(0.88); }
.site-header .site-navigation ul.menu li.ff-menu-cart a::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ff-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--ff-gold);
	color: var(--ff-ink);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

/* Mobile / tablet menu (hamburger) */
.site-header .site-navigation-toggle-holder { margin-left: auto; }
.site-header .site-navigation-toggle {
	width: 44px;
	height: 44px;
	background: transparent !important;
	border: 0 !important;
	color: var(--ff-h-text) !important;
}
.site-navigation-dropdown ul.menu { box-shadow: 0 24px 40px rgba(22, 24, 26, 0.18); }
.site-navigation-dropdown ul.menu li a {
	font-family: var(--ff-sans);
	font-size: 17px;
	color: var(--ff-ink) !important;
	background: #fff !important;
	padding: 16px 20px !important;
	min-height: 56px;
}
.site-navigation-dropdown ul.menu li ul.sub-menu a { padding-left: 36px !important; font-size: 16px; }
.site-navigation-dropdown ul.menu li.ff-menu-highlight a { background: #F7EEDC !important; }
.site-navigation-dropdown ul.menu li.ff-menu-cart a { background: var(--ff-cart-bg) !important; color: var(--ff-cart-color) !important; font-weight: 600; }

@media (max-width: 992px) {
	.site-header .header-inner { min-height: 68px; padding: 0 12px 0 16px; }
	.site-header .site-branding .site-logo img,
	.site-header .custom-logo { width: min(var(--ff-logo), 44px) !important; height: min(var(--ff-logo), 44px) !important; }
	.site-header .site-title,
	.site-header .site-title a { font-size: min(var(--ff-title-size), 22px) !important; }
	.site-header .site-description { margin-left: calc(min(var(--ff-logo), 44px) + 12px) !important; font-size: 9px !important; letter-spacing: 0.2em; }
	.site-header .site-branding { flex: 1 1 auto; min-width: 0; max-width: none; }
	.site-header .site-navigation-toggle-holder { flex: 0 0 auto; padding: 0; }
}

/* ---------- Footer (site-wide, from the plugin; edit in Customize) ---------- */
body.ff-has-footer #site-footer,
body.ff-has-footer .site-footer:not(.ff-footer) { display: none !important; }
.ff-footer {
	background: var(--ff-f-bg);
	color: var(--ff-f-text);
	font-family: var(--ff-sans);
	padding: 64px 24px 32px;
}
.ff-footer__inner { max-width: 1248px; margin: 0 auto; }
.ff-footer__grid {
	display: grid;
	grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
	gap: 48px;
}
.ff-footer a { color: var(--ff-f-text); text-decoration: none; }
.ff-footer a:hover { color: var(--ff-f-accent); }
.ff-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.ff-footer__name-row { display: flex; align-items: center; gap: 14px; }
.ff-footer__logo {
	width: 68px;
	height: 68px;
	flex: 0 0 68px;
	border-radius: 50%;
	background: #FBFAF6;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ff-footer__logo img { width: 56px; height: 56px; object-fit: contain; }
body.ff-hide-footer-logo .ff-footer__logo { display: none; }
.ff-footer__name { font-family: var(--ff-serif); font-size: 30px; color: var(--ff-f-heading); line-height: 1.1; }
.ff-footer__name-row:hover .ff-footer__name { color: var(--ff-f-heading); }
.ff-footer__tagline { margin: 0; font-family: var(--ff-serif); font-style: italic; font-size: 19px; color: var(--ff-f-accent); }
.ff-footer__meta { margin: 0; font-size: 14px; line-height: 1.6; }
.ff-footer__social { display: flex; gap: 10px; margin-top: 4px; }
.ff-footer__social-link {
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ff-footer__heading {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ff-f-heading);
}
.ff-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ff-footer__links a { display: inline-flex; min-height: 32px; align-items: center; font-size: 15px; }
.ff-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 8px 24px;
	flex-wrap: wrap;
	margin-top: 48px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 13px;
}
.ff-footer__bottom p { margin: 0; }
@media (max-width: 1024px) {
	.ff-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
	.ff-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	.ff-footer { padding: 44px 20px 28px; }
	.ff-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
	.ff-footer__col:last-child { grid-column: 1 / -1; }
	.ff-footer__name { font-size: 26px; }
	.ff-footer__bottom { flex-direction: column; margin-top: 32px; }
}

/* ---------- Home page helpers ---------- */
/* Flex helpers: a growing column next to fixed-width items (prices, buttons, numbers). */
.e-con.ff-grow { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; --width: auto; }
.elementor-element.ff-fixed { flex: 0 0 auto !important; width: auto !important; max-width: none !important; }
@media (max-width: 767px) {
	.elementor-element.ff-fixed--desktop { width: 100% !important; flex-basis: auto !important; }
	.elementor-element.ff-fixed--desktop .elementor-button { width: 100%; }
}
.ff-nowrap .elementor-heading-title { white-space: nowrap; }
.ff-plus .elementor-button { min-width: 44px; min-height: 44px; justify-content: center; }
.ff-hero-title em,
.elementor-heading-title em { font-style: italic; }
.ff-card { position: relative; }
.ff-card--best { outline: 2px solid var(--ff-gold); outline-offset: -2px; }
.ff-card .ff-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	background: var(--ff-gold);
	padding: 6px 10px;
	border-radius: 4px;
	width: auto !important;
}
.ff-card .elementor-widget-image img { display: block; }

@media (max-width: 767px) {
	/* Swipeable package cards on phones */
	.ff-card-grid.e-grid > .e-con-inner,
	.ff-card-grid.e-grid {
		display: flex !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 14px !important;
		padding-bottom: 8px;
		-webkit-overflow-scrolling: touch;
	}
	.ff-card-grid .ff-card {
		flex: 0 0 82% !important;
		max-width: 300px;
		scroll-snap-align: start;
	}
	.ff-special { grid-column: 1 / -1; min-height: 0 !important; }
}

/* ---------- WooCommerce ---------- */
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link),
.wp-block-button__link {
	background: var(--ff-green) !important;
	color: var(--ff-cream) !important;
	border: 0 !important;
	border-radius: 4px !important;
	font-family: var(--ff-sans) !important;
	font-weight: 600 !important;
	padding: 14px 22px !important;
	min-height: 44px;
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--ff-green-dark) !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title,
.woocommerce-products-header__title,
.wc-block-components-product-name,
.woocommerce-cart h1, .woocommerce-checkout h1, .page-header .entry-title {
	font-family: var(--ff-serif) !important;
	font-weight: 400 !important;
	color: var(--ff-ink);
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--ff-ink) !important; font-weight: 600; }
.woocommerce span.onsale { background: var(--ff-gold); color: var(--ff-ink); }
.woocommerce ul.products li.product a img { border-radius: 8px; aspect-ratio: 1 / 1; object-fit: cover; }
.woocommerce-message,
.woocommerce-info { border-top-color: var(--ff-green) !important; }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--ff-green) !important; }
.woocommerce .site-main,
.woocommerce-page .site-main { padding-top: 40px; padding-bottom: 64px; }

/* ---------- Contact Form 7 ---------- */
.ff-cf7 { display: flex; flex-direction: column; gap: 14px; }
.ff-cf7 p { margin: 0; }
.ff-cf7__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ff-cf7__field label {
	display: block;
	font-family: var(--ff-sans);
	font-size: 14px;
	font-weight: 600;
	color: var(--ff-ink);
	margin-bottom: 6px;
}
.ff-cf7 input[type="text"],
.ff-cf7 input[type="email"],
.ff-cf7 input[type="date"],
.ff-cf7 input[type="number"],
.ff-cf7 textarea {
	width: 100%;
	min-height: 48px;
	border: 1px solid #CFCABD;
	border-radius: 4px;
	padding: 10px 14px;
	font-family: var(--ff-sans);
	font-size: 16px; /* 16px stops iPhones zooming in */
	background: #fff;
	color: var(--ff-ink);
	box-sizing: border-box;
}
.ff-cf7 textarea { height: 110px; resize: vertical; }
.ff-cf7 input:focus,
.ff-cf7 textarea:focus { outline: 2px solid var(--ff-green); outline-offset: 1px; border-color: var(--ff-green); }
.ff-cf7 .wpcf7-submit {
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: 4px;
	background: var(--ff-ink);
	color: var(--ff-cream);
	font-family: var(--ff-sans);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}
.ff-cf7 .wpcf7-submit:hover { background: var(--ff-green); }
.ff-form-card .wpcf7-spinner { display: block; margin: 8px auto 0; }
.ff-form-card .wpcf7-response-output { margin: 12px 0 0 !important; border-radius: 4px; font-size: 14px; }
@media (max-width: 480px) {
	.ff-cf7__row { gap: 12px; }
}
