/* ==========================================================================
   Cebu Food Trays — global UI polish (Astra child)
   Rounded fields, bold headings, modern buttons, hero slider, page sections.
   ========================================================================== */

:root {
	--cft-blue-grey: #8FA3C4;
	--cft-teal-blue: #3D7A94;
	--cft-orange: #E8862E;
	--cft-gold: #F0C877;
	--cft-olive: #C3C14A;
	--cft-dark: #2B2B2B;
	--cft-cream: #FBF8F3;
	--cft-radius: 12px;
	--cft-radius-pill: 999px;
	--cft-nav-hover-bg: #e4eef1;
}

html, body { overflow-x: hidden; }

body, p, li, a, input, textarea, select, button {
	font-family: 'Montserrat', sans-serif;
}

/* Root fix for the recurring "not full width / squeezed to the left /
   content too close together" issues: our page templates never use a
   sidebar, but Astra's Sidebar Layout setting still reserves space for one
   and floats #primary into a narrower column — which also clips our
   full-bleed breakout below via its own overflow. Force full width, no
   sidebar, no float, regardless of the Customizer's sidebar setting. */
html body #primary,
html body #content,
html body .site-content,
html body .ast-container #primary {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	flex: 1 1 100% !important;
	flex-basis: 100% !important;
	grid-column: 1 / -1 !important;
	float: none !important;
	overflow: visible !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
html body #secondary,
html body .ast-sidebar,
html body .widget-area {
	display: none !important;
	width: 0 !important;
	flex-basis: 0 !important;
}

/* .ast-container is also the class Astra's own header uses for its
   logo/nav flex row. Re-using it for our content sections (so content
   lines up with the header) accidentally inherited that flex-row
   behavior, causing sibling blocks inside a section to sit side-by-side
   instead of stacking. Force block layout + a fixed, predictable
   1200px centered width specifically where WE use it (as a direct child
   of .cft-section) — this also guarantees it matches the header, since
   the header uses the exact same class. */
.cft-section > .ast-container {
	display: block !important;
	max-width: 1200px !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}

/* Full-bleed breakout: makes a section span the full viewport width no
   matter what max-width/padding Astra's container settings put on its
   ancestors (#primary, #content, etc). Standard "100vw breakout" trick. */
.cft-hero,
.cft-section,
.cft-why-section {
	width: 100vw !important;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	max-width: 100vw !important;
}

/* Headings: bold everywhere */
h1, h2, h3, h4, h5, h6 {
	font-weight: 700 !important;
	font-family: 'Montserrat', sans-serif;
}

/* Rounded, modern form fields site-wide */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="search"],
input[type="url"],
textarea,
select,
.cft-input {
	border: 1px solid #dcdcdc;
	border-radius: var(--cft-radius);
	padding: 12px 16px;
	font-size: 15px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
	width: 100%;
	box-sizing: border-box;
}
input:focus, textarea:focus, select:focus, .cft-input:focus {
	outline: none;
	border-color: var(--cft-teal-blue);
	box-shadow: 0 0 0 3px rgba(61, 122, 148, 0.15);
}
textarea { border-radius: var(--cft-radius); min-height: 120px; }

/* Buttons: pill-shaped, bold, modern */
button,
input[type="submit"],
.ast-button,
.wp-block-button__link,
.cft-btn {
	border-radius: var(--cft-radius-pill) !important;
	font-weight: 700;
	letter-spacing: .02em;
	cursor: pointer;
	transition: transform .1s ease, opacity .15s ease;
}
button:hover, .cft-btn:hover { opacity: .92; }
button:active, .cft-btn:active { transform: scale(0.98); }

/* Astra's global link-hover color (a bluish accent, meant for plain text
   links) was leaking onto .cft-btn's white label whenever it's rendered as
   an <a> — e.g. the "Order Now" pill — turning the text an illegible
   blue-gray on top of the orange background on hover. Force it to stay
   white (or dark, on the light "outline" variant) and add a small lift
   instead so hover still reads as an obvious, good-looking interaction. */
a.cft-btn,
a.cft-btn:visited {
	color: #fff !important;
}
a.cft-btn:hover,
a.cft-btn:focus {
	color: #fff !important;
	opacity: 1 !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
a.cft-hero-outline-btn:hover,
a.cft-hero-outline-btn:focus {
	color: var(--cft-dark) !important;
}

/* Header "Order Now" button placement (used when it was injected as a
   fake menu item — kept in case any existing menu still references it). */
.cft-header-order-btn { display: flex; align-items: center; margin-left: 24px; }
.cft-header-order-item {
	display: flex !important;
	align-items: center;
	margin-left: 16px;
	list-style: none;
}
.cft-header-order-item::after,
.cft-header-order-item::before { content: none !important; }
.cft-header-order-item .cft-btn { padding: 10px 22px; }

/* "Log In" text link placed next to the Order Now button in the header's
   Right zone (Customize > Header Builder > Right > add an HTML element
   with: <a href="/my-orders/" class="cft-header-login-link">Log In</a>) */
.cft-header-login-link {
	color: var(--cft-dark);
	font-weight: 600;
	text-decoration: none;
	margin-right: 18px;
	white-space: nowrap;
	transition: color .15s ease;
}
.cft-header-login-link:hover { color: var(--cft-teal-blue); }

/* Sticky header on scroll (also available with no code via Appearance
   > Customize > Header > Primary Header > Sticky Header if you'd rather
   toggle it there instead). */
.site-header,
#masthead,
.main-header-bar-wrap {
	position: sticky !important;
	top: 0;
	z-index: 999;
	background: #fff;
}

/* Remove Astra's default content-top spacing so heroes touch the header directly */
#content,
.ast-container,
#primary,
.site-content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* Primary nav: background highlight on hover + current page, not just text
   color. Astra's nav links stretch to the full header-bar height by
   default (align-items: stretch), so a border-radius pill on them becomes
   a huge oval; force the link to size to its own text instead. */
.main-header-menu .menu-item,
.main-header-menu .menu-item > a,
.main-header-menu .menu-link {
	align-items: center !important;
}
.main-header-menu .menu-item > a,
.main-header-menu .menu-link {
	display: inline-flex !important;
	height: auto !important;
	align-self: center !important;
	line-height: 1.2 !important;
	padding: 10px 18px !important;
	border-radius: 999px !important;
	transition: background-color .15s ease, color .15s ease;
}
.main-header-menu .menu-item > a:hover,
.main-header-menu .menu-item.current-menu-item > a,
.main-header-menu .menu-item.current_page_item > a {
	background-color: var(--cft-orange) !important;
	color: #fff !important;
	border-radius: var(--cft-radius-pill) !important;
}

/* Astra's header builder only ever centers the menu within whatever space
   is left over between the logo and the right-side elements — since the
   logo is wider than the Log In + Order Now group, that "centered" menu
   actually sits noticeably left of the header's true midpoint. This forces
   genuine, pixel-exact centering regardless of how wide the logo or the
   right-side items are. (Verified against the live header's real width.) */
@media (min-width: 1025px) {
	.ast-builder-grid-row-has-sides { position: relative; }
	.main-header-bar-navigation {
		position: absolute !important;
		left: 50% !important;
		top: 50% !important;
		transform: translate(-50%, -50%) !important;
		width: max-content !important;
	}
}

/* Make the primary nav match the "Log In" link's font treatment (not
   Astra's bold uppercase default) — same size, weight, sentence case, and
   colors — so the whole header reads as one consistent typographic style. */
.main-header-menu .menu-item > a,
.main-header-menu .menu-link {
	font-size: 15px !important;
	font-weight: 600 !important;
	text-transform: none !important;
	color: var(--cft-dark) !important;
}
.main-header-menu .menu-item > a:hover,
.main-header-menu .menu-item.current-menu-item > a,
.main-header-menu .menu-item.current_page_item > a {
	color: #fff !important;
	background-color: var(--cft-orange) !important;
	border-radius: var(--cft-radius-pill) !important;
}

/* Utility card */
.cft-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.06);
	overflow: hidden;
	padding: 26px;
}

/* Section wrapper helpers (used in page templates).
   .cft-section = full-width background band, padding only.
   Inner content uses Astra's own .ast-container so it lines up exactly
   with the logo/menu in the header — not a separately guessed max-width. */
.cft-section { padding: 64px 0; width: 100%; }
.cft-section > .ast-container { padding-left: 24px; padding-right: 24px; }
.cft-section-narrow { max-width: 760px; margin: 0 auto; }
.cft-section-wide { max-width: 1100px; margin: 0 auto; }

/* My Orders "Sign in to view your orders." prompt: center the copy and the
   Google Sign-In button under it (the button itself is a Google-rendered
   iframe of fixed width, so it needs a flex wrapper rather than text-align
   to center reliably). */
.cft-signin-prompt {
	text-align: center;
}
.cft-signin-prompt #cft-google-btn {
	display: flex;
	justify-content: center;
	margin-top: 8px;
	overflow: visible;
	max-width: 100%;
}
.cft-section-cream { background: var(--cft-cream); }
.cft-section-teal { background: var(--cft-teal-blue); color: #fff; }
.cft-section-orange { background: var(--cft-orange); color: #fff; }
.cft-section-teal h1, .cft-section-teal h2, .cft-section-orange h2 { color: #fff !important; }
.cft-text-center { text-align: center; }

/* Order Now button needs to stay visible on a same-color (orange) section */
.cft-section-orange .cft-btn,
.cft-section-orange .cft-open-order-modal {
	background: #fff !important;
	color: var(--cft-orange) !important;
	padding: 14px 34px !important;
	font-size: 15px;
}
.cft-section-orange .cft-btn:hover { background: var(--cft-dark) !important; color: #fff !important; }

/* Checklist (legacy plain style, still available) */
.cft-check-list { list-style: none; padding-left: 0; max-width: 620px; margin: 24px auto 0; }
.cft-check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.cft-check-list li::before {
	content: "✓"; position: absolute; left: 0; top: 0;
	color: var(--cft-teal-blue); font-weight: 700;
}

/* Modern 2-column feature grid (Why Choose Us) */
.cft-feature-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
	max-width: 780px;
	margin: 28px auto 0;
	text-align: left;
}
.cft-feature-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: #fff;
	border-radius: 14px;
	padding: 18px 20px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.cft-feature-icon {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--cft-teal-blue);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
}
.cft-feature-text { font-size: 15px; padding-top: 4px; }
@media (max-width: 640px) {
	.cft-feature-grid { grid-template-columns: 1fr; }
}

/* Lead paragraph — for intro copy that should feel intentional, not plain body text */
.cft-lead {
	font-size: 20px;
	line-height: 1.6;
	color: var(--cft-teal-blue);
	font-weight: 500;
	border-left: 4px solid var(--cft-orange);
	padding-left: 20px;
	margin-bottom: 28px !important;
}
.cft-lead::first-letter {
	font-size: 1.6em;
	font-weight: 700;
	color: var(--cft-orange);
}

/* Pill list */
.cft-pill-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.cft-pill-list span {
	display: inline-block; background: var(--cft-cream); border: 1px solid var(--cft-gold);
	color: var(--cft-dark); padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
}
.cft-section-teal .cft-pill-list span,
.cft-section-orange .cft-pill-list span { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); color: #fff; }

/* Contact info card */
.cft-contact-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.cft-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	color: currentColor;
}
/* Explicit pixel size (not a % of the parent) — an SVG sized only by its
   own width/height attribute can collapse to 0 width in some layout
   contexts (seen with the header's search/cart icons); pinning it in CSS
   is what actually prevents that. */
.cft-contact-icon svg { width: 16px; height: 16px; flex: none; }
.cft-contact-label { color: #888; font-size: 13px; }
.cft-contact-row a { color: var(--cft-dark); text-decoration: none; }
.cft-contact-row a:hover { color: var(--cft-orange); }

/* ---------- Hero background slider with dark overlay ---------- */
.cft-hero {
	position: relative;
	overflow: hidden;
	min-height: 520px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 24px;
}
.cft-hero-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.6s ease-in-out;
	z-index: 1;
}
.cft-hero-slide.is-active { opacity: 1; }
.cft-hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 2;
}
.cft-hero-content {
	position: relative;
	z-index: 3;
	max-width: 780px;
	text-align: center;
	color: #fff;
}
.cft-hero-content h1 { color: #fff !important; font-size: clamp(30px, 5vw, 46px); margin-bottom: 18px; }
.cft-hero-content p { font-size: 18px; margin-bottom: 28px; }

.cft-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cft-hero-actions .cft-btn,
.cft-hero-actions .cft-open-order-modal {
	padding: 20px 44px !important;
	font-size: 18px !important;
}
/* Named distinctly from the plugin's own .cft-btn-outline (teal-bordered,
   used inside the order form) so the two never collide/override each other. */
.cft-hero-outline-btn {
	background: transparent !important;
	color: #fff !important;
	border: 2px solid #fff !important;
	text-decoration: none;
	border-radius: var(--cft-radius-pill) !important;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
}
.cft-hero-outline-btn:hover { background: #fff !important; color: var(--cft-dark) !important; }

.cft-hero-fullscreen {
	/* The header sits above the hero in normal flow (it isn't overlaid on
	   top of it), so sizing the hero to a flat 100vh always pushed its
	   bottom — headline, buttons — below the first screenful, requiring a
	   scroll before the hero visually "filled the screen". --cft-header-h
	   is set by layout-fix.js to the header's real, currently-rendered
	   height (it changes with breakpoint, logo size, and whether the WP
	   admin bar is showing), so header + hero together always equal
	   exactly one screen, with no scroll needed. Falls back to a flat
	   100vh/100svh if JS hasn't run yet (e.g. no-JS or the instant before
	   first paint). */
	min-height: 100vh;   /* fallback for older browsers */
	min-height: 100svh;  /* accounts for mobile browser address bar so it truly fills the visible screen */
	min-height: calc(100vh - var(--cft-header-h, 0px));
	min-height: calc(100svh - var(--cft-header-h, 0px));
	/* NOTE: do not set width here — .cft-hero already gets width:100vw plus
	   left:50%/margin-left:-50vw from the full-bleed breakout rule above.
	   A plain width:100% here was cascading after that rule and overriding
	   just the width (same specificity, declared later), while leaving the
	   50vw-based positioning in place — the mismatch is exactly what made
	   the homepage hero render shifted left and cut off on the right. */
}

@media (max-width: 600px) {
	.cft-hero { min-height: 420px; }
}

/* ---------- Hero entrance animation (heading, then subheading, then buttons) ---------- */
/* The hero sits above the fold, so it's already in the viewport on load and
   never triggers the scroll-based .cft-reveal observer below — these play
   automatically on page load instead, staggered in sequence. */
@keyframes cftHeroFadeUp {
	from { opacity: 0; transform: translateY(26px); }
	to   { opacity: 1; transform: translateY(0); }
}
.cft-hero-anim {
	opacity: 0;
	animation: cftHeroFadeUp 0.9s ease forwards;
}
.cft-hero-anim-1 { animation-delay: 0.15s; }
.cft-hero-anim-2 { animation-delay: 0.42s; }
.cft-hero-anim-3 { animation-delay: 0.7s; }
@media (prefers-reduced-motion: reduce) {
	.cft-hero-anim { opacity: 1; animation: none; }
}

/* ---------- Scroll-in reveal effects ---------- */
.cft-reveal {
	opacity: 0;
	transition: opacity .7s ease, transform .7s ease;
	will-change: transform, opacity;
}
.cft-reveal.is-visible { opacity: 1; transform: none !important; }
.cft-reveal-up { transform: translateY(36px); }
.cft-reveal-left { transform: translateX(-40px); }
.cft-reveal-right { transform: translateX(40px); }
@media (prefers-reduced-motion: reduce) {
	.cft-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- "Why Choose Us" dark icon-card grid (own brand colors, not a literal copy) ---------- */
.cft-why-section { background: var(--cft-dark); color: #fff; }
.cft-why-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.cft-why-header .cft-eyebrow { color: var(--cft-gold); }
.cft-why-header h2 { color: #fff !important; font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.cft-why-header h2 .cft-accent { color: var(--cft-orange); }
.cft-why-header p { color: rgba(255,255,255,0.72); font-size: 16px; }

.cft-why-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.cft-why-card {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 16px;
	padding: 28px 24px;
	transition: transform .25s ease, background-color .25s ease;
}
.cft-why-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.08); }
.cft-why-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--cft-orange);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	margin-bottom: 18px;
}
.cft-why-card h3 { color: #fff !important; font-size: 17px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .02em; }
.cft-why-card p { color: rgba(255,255,255,0.68); font-size: 14px; margin: 0; }

@media (max-width: 900px) { .cft-why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cft-why-grid { grid-template-columns: 1fr; } }

/* ---------- "How Order Tracking Works" — My Orders page ---------- */
.cft-track-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.cft-track-header h2 { font-size: clamp(24px, 3.5vw, 32px); margin: 8px 0 10px; }
.cft-track-header p { color: #666; font-size: 15px; }
.cft-track-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 36px;
}
.cft-track-card {
	background: #fff;
	border-radius: 16px;
	padding: 26px 22px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.cft-track-num {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--cft-teal-blue);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 14px;
}
.cft-track-card h3 { font-size: 16px; margin: 0 0 8px; }
.cft-track-card p { font-size: 14px; color: #666; margin: 0; line-height: 1.6; }
.cft-track-cta { text-align: center; }
.cft-track-cta .cft-btn { display: inline-flex; }

@media (max-width: 720px) { .cft-track-grid { grid-template-columns: 1fr; } }

/* ---------- Statement block: a nicer treatment for plain intro paragraphs
   than raw <p> text — used on Home + About Us ---------- */
.cft-statement {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	background: #fff;
	border-radius: 20px;
	padding: 40px 36px;
	box-shadow: 0 10px 34px rgba(0,0,0,0.06);
	position: relative;
}
.cft-statement-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--cft-teal-blue);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin: 0 auto 22px;
}
.cft-statement-text {
	font-size: 21px;
	line-height: 1.65;
	color: var(--cft-dark);
	font-weight: 600;
	margin-bottom: 16px;
}
.cft-statement-sub {
	font-size: 15px;
	line-height: 1.7;
	color: #777;
	margin-bottom: 0;
}
.cft-statement-sub + .cft-statement-sub { margin-top: 10px; }
.cft-statement-note {
	display: inline-block;
	margin-top: 20px;
	padding: 8px 20px;
	background: var(--cft-cream);
	border-radius: var(--cft-radius-pill);
	font-style: italic;
	font-size: 14px;
	color: var(--cft-teal-blue);
}
.cft-statement.cft-statement-left { text-align: left; }
.cft-statement.cft-statement-left .cft-statement-icon { margin-left: 0; }

/* ---------- About Us: eyebrow/heading + split photo/story layout ---------- */
.cft-eyebrow {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cft-orange);
	margin-bottom: 10px;
}
.cft-about-heading-block {
	text-align: center !important;
	max-width: 700px;
	margin: 0 auto 56px;
	padding-bottom: 8px;
}
.cft-about-heading-block .cft-eyebrow { display: block; text-align: center; }
.cft-about-heading { font-size: clamp(32px, 5vw, 48px); margin-bottom: 14px; text-align: center; }
.cft-about-heading .cft-accent { color: var(--cft-orange); }
.cft-about-subtitle { max-width: 620px; margin: 0 auto; color: #666; font-size: 16px; text-align: center; }

.cft-about-split {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 40px;
	align-items: stretch;
	margin-top: 24px;
}
.cft-about-photo-wrap {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	min-height: 380px;
}
.cft-about-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 380px; }
.cft-about-badge {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(0,0,0,0.65);
	color: #fff;
	border-radius: 12px;
	padding: 10px 16px;
	text-align: center;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.cft-about-badge strong { display: block; font-size: 20px; color: var(--cft-gold); }
.cft-about-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 26px 24px;
	background: linear-gradient(0deg, rgba(0,0,0,0.75) 20%, rgba(0,0,0,0) 100%);
	color: #fff;
}
.cft-about-caption .cft-eyebrow { color: var(--cft-gold); }
.cft-about-caption h3 { color: #fff !important; margin: 0 0 6px; font-size: 20px; }
.cft-about-caption p { margin: 0; font-size: 14px; opacity: .9; }

.cft-about-card {
	background: var(--cft-teal-blue);
	color: #fff;
	border-radius: 18px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.cft-about-card .cft-eyebrow { color: var(--cft-gold); }
.cft-about-card h3 { color: #fff !important; font-size: 26px; margin: 0 0 14px; }
.cft-about-card p { opacity: .92; margin-bottom: 24px; }
.cft-about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.cft-stat-box {
	background: rgba(255,255,255,0.1);
	border-radius: 12px;
	padding: 14px 10px;
	text-align: center;
}
.cft-stat-box .cft-stat-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; opacity: .75; margin-bottom: 4px; }
.cft-stat-box .cft-stat-value { display: block; font-size: 22px; font-weight: 700; color: var(--cft-gold); }
.cft-about-card .cft-btn { align-self: flex-start; background: var(--cft-gold); color: var(--cft-dark); }
.cft-about-card .cft-btn:hover { background: #fff; }

@media (max-width: 820px) {
	.cft-about-split { grid-template-columns: 1fr; }
	.cft-about-photo-wrap, .cft-about-photo-wrap img { min-height: 280px; }
}

/* ---------- Menu category tabs: pill switcher with a sliding highlight,
   replacing the old stacked "scroll past every category" layout. Only the
   active category's panel is shown; switching tabs crossfades + nudges the
   new panel up slightly instead of a hard cut. ---------- */
.cft-menu-tabs {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	background: #fff;
	border: 1px solid #ECE7DD;
	border-radius: var(--cft-radius-pill);
	padding: 6px;
	margin: 0 0 34px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.cft-menu-tabs-indicator {
	position: absolute;
	top: 6px;
	/* left is intentionally 0, not 6px (matching the wrap's own padding) —
	   frontend.js's moveIndicatorTo() already measures each tab's position
	   relative to the wrap's own edge (which includes that padding) and
	   applies it via `transform: translateX()`. A left:6px base PLUS that
	   transform was double-counting the padding, drifting the indicator
	   ~6-7px too far right on every tab — invisible except on the very
	   last tab (Package), where there's nothing to its right to hide the
	   sliver of orange poking out past the pill's rounded corner. */
	left: 0;
	height: calc(100% - 12px);
	width: 0;
	background: var(--cft-orange);
	border-radius: var(--cft-radius-pill);
	transition: transform .32s cubic-bezier(.65,0,.35,1), width .32s cubic-bezier(.65,0,.35,1);
	z-index: 0;
}
.cft-menu-tab {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	white-space: nowrap;
	background: transparent;
	border: none;
	padding: 12px 22px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: var(--cft-dark);
	opacity: .65;
	border-radius: var(--cft-radius-pill);
	cursor: pointer;
	transition: color .25s ease, opacity .25s ease;
}
.cft-menu-tab:hover,
.cft-menu-tab:focus { color: var(--cft-dark) !important; opacity: .9; }
.cft-menu-tab-active,
.cft-menu-tab-active:hover,
.cft-menu-tab-active:focus { color: #fff !important; opacity: 1; }
/* Astra applies its own global-color background to <button> on :focus/
   :active with enough specificity to paint over our transparent tab
   background — the same class of override we've hit on every other button
   in this build (Order Now hover, header icons, etc). Without this, a
   clicked tab flashes Astra's own accent color behind our orange sliding
   indicator. */
.cft-menu-tab,
.cft-menu-tab:focus,
.cft-menu-tab:active,
.cft-menu-tab:hover,
.cft-menu-tab-active,
.cft-menu-tab-active:focus,
.cft-menu-tab-active:active {
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}
.cft-menu-tab:focus-visible {
	outline: 2px solid var(--cft-teal-blue) !important;
	outline-offset: 2px;
}
/* A tab that's already selected (solid orange fill) doesn't need an extra
   focus ring on top of it — some browsers apply :focus-visible on a plain
   click (not just keyboard nav), which was stacking a teal outline on top
   of the already-visible active/gold rings, showing as a "double ring". */
.cft-menu-tab-active:focus-visible {
	outline: none !important;
}
/* The Package tab is a different kind of thing than the dish categories
   around it (a cross-category bundle, not a category) — it always sits
   last in the tab order (see food_menu_grid()) and gets a persistent gold
   ring + richer text color so it reads as "different" even at rest, not
   just when selected.
   This uses an INSET box-shadow rather than a border on purpose: a real
   border adds to the button's own box size (even at 0 visible width via
   transparent), which very slightly changes how wide the sliding orange
   indicator calculates itself for this one tab — since Package is also the
   last, right-most flex item, that few-pixel mismatch was enough to poke
   past the outer pill's rounded corner when active. A box-shadow is purely
   visual and never affects layout, so the indicator and this ring always
   agree on the button's true size. */
.cft-menu-tab-package {
	box-shadow: inset 0 0 0 2px var(--cft-gold) !important;
	color: var(--cft-teal-blue);
	opacity: 1;
}
.cft-menu-tab-package:hover,
.cft-menu-tab-package:focus {
	color: var(--cft-teal-blue) !important;
	opacity: 1;
}
.cft-menu-tab-package.cft-menu-tab-active,
.cft-menu-tab-package.cft-menu-tab-active:hover,
.cft-menu-tab-package.cft-menu-tab-active:focus {
	color: #fff !important;
	box-shadow: none !important;
}

.cft-menu-panels { position: relative; }
.cft-menu-panel {
	animation: cft-panel-in .35s ease;
}
@keyframes cft-panel-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
	.cft-menu-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.cft-menu-tabs::-webkit-scrollbar { display: none; }
	.cft-menu-tab { padding: 10px 18px; font-size: 13px; }
}

/* ---------- Menu grid: 3-column cards with editable feature bullets ---------- */
.cft-menu-grid-3col {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.cft-menu-card-v2 {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.06);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.cft-menu-card-v2 .cft-menu-card-img { height: 180px; display: block; }
.cft-menu-card-v2 .cft-menu-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cft-menu-card-v2-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cft-menu-card-v2-title { margin: 0; font-size: 18px; }
.cft-menu-card-title-link { color: var(--cft-dark); text-decoration: none; }
.cft-menu-card-title-link:hover { color: var(--cft-orange); }
.cft-menu-card-rating { display: flex; align-items: center; gap: 6px; margin-top: -4px; }
.cft-menu-card-rating-count { font-size: 12.5px; color: #888; }

/* ---------- Star ratings (grid cards, single dish page, review list/form) ---------- */
.cft-stars { display: inline-flex; align-items: center; gap: 1px; line-height: 1; }
.cft-star { color: #ddd; font-size: 14px; }
.cft-star-full { color: var(--cft-gold); }
.cft-star-half {
	position: relative;
	color: #ddd;
}
.cft-star-half::before {
	content: "\2605";
	position: absolute;
	left: 0;
	top: 0;
	width: 50%;
	overflow: hidden;
	color: var(--cft-gold);
}
.cft-stars-sm .cft-star { font-size: 13px; }
.cft-stars-lg .cft-star { font-size: 22px; }
.cft-menu-card-v2-features { list-style: none; padding: 0; margin: 0 -20px; flex: 1; }
.cft-menu-card-v2-features li {
	font-size: 13.5px;
	color: #555;
	padding: 8px 20px 8px 34px;
	position: relative;
}
.cft-menu-card-v2-features li:nth-child(odd) { background: var(--cft-cream); }
.cft-menu-card-v2-features li:nth-child(even) { background: #fff; }
.cft-menu-card-v2-features li::before {
	content: "✓";
	position: absolute;
	left: 14px;
	top: 8px;
	color: var(--cft-orange);
	font-weight: 700;
	font-size: 12px;
}
.cft-menu-card-v2-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding-top: 8px;
	padding-bottom: 4px;
}
.cft-menu-card-v2-price {
	font-weight: 700;
	color: var(--cft-teal-blue);
	font-size: 16px;
	background: var(--cft-cream);
	padding: 8px 20px;
	border-radius: var(--cft-radius-pill);
	display: inline-block;
}
.cft-add-to-order-btn {
	width: 100%;
	background: var(--cft-orange) !important;
	color: #fff !important;
	padding: 12px !important;
	font-size: 14px !important;
	border: none;
}
.cft-add-to-order-btn:hover { background: var(--cft-dark) !important; }
@media (max-width: 900px) {
	.cft-menu-grid-3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.cft-menu-grid-3col { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.cft-footer {
	background: var(--cft-dark);
	color: #d8d8d8;
	padding: 56px 0 0;
}
.cft-footer a { color: #d8d8d8; text-decoration: none; }
.cft-footer a:hover { color: var(--cft-gold); }
.cft-footer h3 { color: #fff !important; margin-bottom: 16px; font-size: 16px; }
.cft-footer-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	padding-bottom: 40px;
}
.cft-footer-grid ul { list-style: none; padding: 0; margin: 0; }
.cft-footer-grid ul li { margin-bottom: 10px; }
/* "Important Links" column gets its own card treatment (teal accent,
   matching the About Us story card elsewhere on the site) so the footer
   isn't one flat block of dark background — an easy visual anchor for the
   site's internal links. */
.cft-footer-grid > div:nth-child(2) {
	background: var(--cft-teal-blue);
	border-radius: 14px;
	padding: 26px 28px;
	margin: -10px 0;
}
.cft-footer-grid > div:nth-child(2) h3 {
	color: var(--cft-gold) !important;
}
.cft-footer-grid > div:nth-child(2) ul li a {
	color: #fff;
	opacity: .9;
	transition: opacity .2s ease, color .2s ease;
}
.cft-footer-grid > div:nth-child(2) ul li a:hover {
	opacity: 1;
	color: var(--cft-gold);
}
@media (max-width: 780px) {
	.cft-footer-grid > div:nth-child(2) { margin: 0; }
}
.cft-footer .cft-contact-row a,
.cft-footer .cft-contact-row { color: #d8d8d8; }
.cft-footer .cft-contact-row a:hover { color: var(--cft-gold); }
.cft-footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding: 20px 24px;
	text-align: center;
	font-size: 13px;
	color: #999;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 16px;
}
.cft-footer-legal-links a { color: #999; text-decoration: none; }
.cft-footer-legal-links a:hover { color: #fff; }

/* ---------- Single dish page ---------- */
.cft-dish-breadcrumb { margin: 0 0 20px; }
.cft-dish-breadcrumb a { color: var(--cft-teal-blue); text-decoration: none; font-weight: 600; font-size: 14px; }
.cft-dish-breadcrumb a:hover { color: var(--cft-orange); }
.cft-dish-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}
.cft-dish-photo img {
	width: 100%;
	border-radius: var(--cft-radius);
	box-shadow: 0 4px 18px rgba(0,0,0,0.08);
	display: block;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}
.cft-dish-title { margin: 0 0 8px; font-size: 30px; }
.cft-dish-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cft-dish-rating-text { font-size: 14px; color: #666; }
.cft-dish-rating-none { font-size: 14px; color: #888; margin-bottom: 16px; }
.cft-dish-features { list-style: none; padding: 0; margin: 0 0 16px; }
.cft-dish-features li {
	font-size: 14px;
	color: #555;
	padding: 6px 0 6px 24px;
	position: relative;
}
.cft-dish-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--cft-orange);
	font-weight: 700;
}
.cft-dish-description { font-size: 15px; line-height: 1.7; color: #444; margin-bottom: 18px; }
.cft-dish-variations { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.cft-dish-variations td { padding: 10px 0; border-bottom: 1px solid #eee; font-size: 14.5px; }
.cft-dish-variation-serves { display: block; font-size: 12.5px; color: #888; }
.cft-dish-variation-price { text-align: right; font-weight: 700; color: var(--cft-teal-blue); }
.cft-dish-price {
	font-weight: 700;
	color: var(--cft-teal-blue);
	font-size: 22px;
	margin-bottom: 20px;
}
.cft-dish-info .cft-add-to-order-btn { width: auto; padding: 14px 34px !important; }
@media (max-width: 820px) {
	.cft-dish-layout { grid-template-columns: 1fr; }
}

/* ---------- Reviews (single dish page) ---------- */
.cft-dish-reviews-heading { margin: 0 0 24px; font-size: 24px; text-align: center; }
.cft-reviews { max-width: 720px; margin: 0 auto; }
.cft-reviews-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.cft-reviews-count { font-size: 14px; color: #666; }
.cft-reviews-none { color: #888; }
.cft-review-gate {
	background: #fff;
	border: 1px solid #eee;
	border-radius: var(--cft-radius);
	padding: 18px 20px;
	margin-bottom: 28px;
	font-size: 14px;
	color: #555;
}
.cft-review-gate p { margin: 0 0 10px; }
.cft-review-gate p:last-child { margin-bottom: 0; }
.cft-review-form {
	background: #fff;
	border-radius: var(--cft-radius);
	box-shadow: 0 4px 18px rgba(0,0,0,0.06);
	padding: 22px;
	margin-bottom: 28px;
}
.cft-star-picker { display: flex; gap: 4px; margin-bottom: 16px; }
.cft-star-pick {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 26px;
	color: #ddd;
	padding: 0;
	line-height: 1;
	transition: color .15s ease, transform .1s ease;
}
.cft-star-pick:hover { transform: scale(1.1); }
.cft-star-pick.cft-star-pick-active,
.cft-star-pick.cft-star-pick-hover { color: var(--cft-gold); }
.cft-review-list { list-style: none; padding: 0; margin: 0; }
.cft-review-item {
	background: #fff;
	border-radius: var(--cft-radius);
	padding: 16px 18px;
	margin-bottom: 14px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.cft-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.cft-review-author { font-weight: 700; color: var(--cft-dark); font-size: 14px; }
.cft-review-date { font-size: 12.5px; color: #999; margin-left: auto; }
.cft-review-body { margin: 0; font-size: 14px; color: #555; line-height: 1.6; }
.cft-success { color: #2a7d3f; font-size: 13.5px; margin: 8px 0; }
.cft-footer-legal-links span { margin: 0 2px; opacity: .5; }
@media (max-width: 780px) {
	.cft-footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile delivery-address suggestions dropdown ---------- */
/* A plain, site-drawn list (built in frontend.js via the New Places API's
   data-only AutocompleteSuggestion service) instead of Google's own
   PlaceAutocompleteElement widget, whose full-screen mobile layout used to
   take over the whole order form. .cft-field already needs position:
   relative for this to anchor correctly under the input. */
.cft-field { position: relative; }
.cft-address-suggestions {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	margin: 4px 0 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #eee;
	border-radius: var(--cft-radius);
	box-shadow: 0 8px 24px rgba(0,0,0,0.14);
	max-height: 220px;
	overflow-y: auto;
	z-index: 40;
}
.cft-address-suggestion-item {
	padding: 10px 14px;
	font-size: 14px;
	color: var(--cft-dark);
	cursor: pointer;
}
.cft-address-suggestion-item:hover,
.cft-address-suggestion-item:active {
	background: var(--cft-cream);
}
