/*
Theme Name: Tulianbox (WPVibe Draft)
Theme URI: https://tulianbox.co.ke
Description: Child theme of Twenty Twenty-Five, built for Tulianbox, a Nairobi flower delivery brand. Keeps all customizations separate from the parent theme so core WordPress updates never overwrite them.
Author: Tulianbox
Template: twentytwentyfive
Version: 1.1.0-verify
Text Domain: tulianbox
*/

/* Small custom CSS additions go below this line.        */
/* Almost everything else (colors, fonts, spacing) should */
/* live in theme.json instead, since that's what keeps    */
/* it editable through Appearance > Editor > Styles.      */

/*
 * WooCommerce's "Sale!" badge is hardcoded in WooCommerce's own stylesheet,
 * not driven by theme.json, so it has to be overridden here directly.
 * Recolored to the real brand magenta with the plum text on top.
 */
.woocommerce span.onsale {
	background-color: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
}

/* =========================================================
   HOMEPAGE DESIGN
   Everything below styles the front-page.html template only
   (hero, shop-by-flower, occasions band, spotlight, trust
   strip). Class names are unique to that template's markup,
   so nothing here touches product or category pages.

   Colors and fonts reference the real site design tokens
   (--wp--preset--color--*, --wp--preset--font-family--*) set
   in theme.json, rather than repeating hex codes here, so if
   the palette ever changes in Appearance > Editor > Styles,
   the homepage stays in sync automatically instead of drifting.
   ========================================================= */
.th {
	--plum: var(--wp--preset--color--contrast);
	--magenta: var(--wp--preset--color--accent-1);
	--blush: var(--wp--preset--color--accent-2);
	--wine: var(--wp--preset--color--wine);
	--gold: var(--wp--preset--color--gold);
	--cream: var(--wp--preset--color--base);
	--cream-deep: var(--wp--preset--color--cream-deep);
	--ink: var(--wp--preset--color--contrast);
	--ink-soft: var(--wp--preset--color--accent-4);
	--font-display: var(--wp--preset--font-family--fraunces);
	--font-body: var(--wp--preset--font-family--manrope);
	--radius-lg: 28px;
	--radius-md: 16px;
}

.th .wrap { width: min(1180px, 92vw); margin-inline: auto; }
.th svg, .th img { max-width: 100%; display: block; }

.th .btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.95rem;
	padding: 0.85em 1.6em;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, background 0.15s ease;
}
.th .btn-primary { background: var(--magenta); color: var(--cream); }
.th .btn-primary:hover { background: var(--wine); }
.th .btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--plum) 70%, transparent); }
.th .btn-ghost:hover { border-color: var(--magenta); color: var(--magenta); }
@media (prefers-reduced-motion: no-preference) { .th .btn:active { transform: scale(0.97); } }

/* hero */
.th-hero { padding: clamp(1rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 5rem); background: var(--cream); overflow: hidden; }
.th-hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .th-hero .wrap { grid-template-columns: 1fr; } .th-hero-art { order: -1; } }
.th-hero-copy h1 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; font-size: clamp(2.4rem, 6vw, 4.1rem); max-width: 11ch; color: var(--ink); margin: 0; }
.th-hero-copy p.lede { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-soft); max-width: 34ch; margin: 1.4rem 0 2rem; font-family: var(--font-body); }
.th-hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-bottom: 2.2rem; }
.th-hero-facts { display: flex; flex-wrap: wrap; gap: 1.6rem; font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; font-family: var(--font-body); }
.th-hero-art { position: relative; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; }
.th-hero-glow { position: absolute; inset: -10%; background: radial-gradient(circle at 45% 40%, color-mix(in srgb, var(--gold) 55%, transparent), transparent 62%); z-index: 0; }
.th-hero-cluster { position: relative; z-index: 1; width: 100%; height: 100%; }
.th-hero-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }

/* full-bleed overlay hero variant, toggled via Settings > Tulianbox Homepage */
.th-hero-overlay { position: relative; min-height: 640px; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; padding: 4rem 1.5rem 0; }
.th-hero-overlay img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.th-hero-overlay .overlay-wash { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, color-mix(in srgb, var(--plum) 35%, transparent) 0%, color-mix(in srgb, var(--plum) 55%, transparent) 55%, color-mix(in srgb, var(--plum) 80%, transparent) 100%); }
.th-hero-overlay .content { position: relative; z-index: 2; text-align: center; max-width: 640px; }
.th-hero-overlay h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 1.1rem; color: var(--cream); }
.th-hero-overlay p.lede { font-size: 1.05rem; color: color-mix(in srgb, var(--cream) 85%, transparent); margin: 0 0 2rem; line-height: 1.5; max-width: 52ch; font-family: var(--font-body); }
.th-hero-overlay .btn-primary { background: var(--cream); color: var(--plum); }
.th-hero-overlay .btn-primary:hover { background: color-mix(in srgb, var(--cream) 88%, var(--plum)); }
.th-hero-stats { position: relative; z-index: 2; display: flex; align-items: center; margin-top: 3rem; padding-bottom: 2.2rem; flex-wrap: wrap; justify-content: center; }
.th-hero-stats .stat-item { padding: 0.3rem 1.4rem; color: color-mix(in srgb, var(--cream) 85%, transparent); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-body); }
.th-hero-stats .stat-divider { width: 1px; height: 14px; background: color-mix(in srgb, var(--cream) 30%, transparent); }
@media (prefers-reduced-motion: no-preference) {
	.th-hero-overlay .content > * { animation: th-rise 0.7s ease both; }
	.th-hero-overlay .content .lede { animation-delay: 0.15s; }
	.th-hero-overlay .content .btn { animation-delay: 0.25s; }
}

/* section shells */
.th-section { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--cream); }
.th-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); flex-wrap: wrap; }
.th-section-head h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: 16ch; color: var(--ink); margin: 0; }
.th-section-head p { color: var(--ink-soft); max-width: 34ch; margin: 0; font-size: 0.98rem; font-family: var(--font-body); }

/* shop by flower */
.th-flower-row { display: flex; gap: 1.1rem; overflow-x: auto; padding-bottom: 0.6rem; scroll-snap-type: x proximity; }
.th-flower-tile { scroll-snap-align: start; flex: 0 0 auto; width: clamp(150px, 24vw, 200px); border-radius: var(--radius-md); padding: 1.4rem 1.2rem 1.2rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 0.9rem; transition: transform 0.18s ease; }
.th-flower-tile:hover { transform: translateY(-4px); }
.th-flower-tile svg { width: 64px; height: 64px; }
.th-flower-tile img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; }
.th-flower-tile .name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.th-flower-tile .price { font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; font-family: var(--font-body); }
.th-tone-1 { background: var(--blush); }
.th-tone-2 { background: var(--cream-deep); }
.th-tone-3 { background: color-mix(in srgb, var(--gold) 22%, var(--cream-deep)); }
.th-tone-4 { background: color-mix(in srgb, var(--wine) 14%, var(--cream-deep)); }

/* occasions band */
.th-band-dark { background: var(--plum); color: var(--cream); }
.th-band-dark .th-section-head p { color: color-mix(in srgb, var(--cream) 65%, transparent); }
.th-band-dark .th-section-head h2 { color: var(--cream); }
.th-occasion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-top: 1px solid color-mix(in srgb, var(--cream) 18%, transparent); }
.th-occasion-item { padding: 1.5rem 0.4rem; border-bottom: 1px solid color-mix(in srgb, var(--cream) 18%, transparent); border-right: 1px solid color-mix(in srgb, var(--cream) 18%, transparent); text-decoration: none; color: inherit; display: block; font-family: var(--font-display); font-size: 1.15rem; transition: color 0.15s ease, padding-left 0.15s ease; }
.th-occasion-item:hover { color: var(--gold); padding-left: 0.8rem; }

/* spotlight */
.th-spotlight .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .th-spotlight .wrap { grid-template-columns: 1fr; } }
.th-spotlight-art { position: relative; aspect-ratio: 4/3.2; border-radius: 24px; background: linear-gradient(155deg, var(--cream-deep), var(--blush)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.th-spotlight-art .th-hero-glow { inset: -20%; }
.th-spotlight-art svg.cluster { width: 62%; position: relative; z-index: 1; }
.th-spotlight-photo { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.th-spotlight .kicker { font-family: var(--font-body); font-weight: 700; color: var(--magenta); font-size: 0.85rem; margin-bottom: 0.8rem; display: block; }
.th-spotlight h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 0.9rem; color: var(--ink); }
.th-spotlight p.desc { color: var(--ink-soft); max-width: 46ch; margin: 0 0 1.4rem; font-family: var(--font-body); }
.th-spotlight .price-row { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 1.6rem; }
.th-spotlight .price-was { text-decoration: line-through; color: var(--ink-soft); font-size: 1rem; font-family: var(--font-body); }
.th-spotlight .price-now { font-family: var(--font-display); font-size: 1.9rem; color: var(--wine); }

/* trust strip */
.th-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; padding: clamp(2.4rem, 5vw, 3.2rem) 0; border-top: 1px solid color-mix(in srgb, var(--plum) 12%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--plum) 12%, transparent); }
.th-trust-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.th-trust-item svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--magenta); }
.th-trust-item h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin: 0 0 0.3rem; color: var(--ink); }
.th-trust-item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); font-family: var(--font-body); }
@media (prefers-reduced-motion: no-preference) {
	.th-hero-copy > * { animation: th-rise 0.7s ease both; }
	.th-hero-copy p.lede { animation-delay: 0.15s; }
	.th-hero-copy .th-hero-cta-row { animation-delay: 0.25s; }
	.th-hero-copy .th-hero-facts { animation-delay: 0.35s; }
	.th-hero-art { animation: th-fade-in 0.9s ease 0.1s both; }
	@keyframes th-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
	@keyframes th-fade-in { from { opacity: 0; } to { opacity: 1; } }
}
