/* Funoon Ceramics: brand styling on top of Atelier WP.
   Colours: charcoal #252E2A, deep #1E2925, gold #C5A46B, bronze #8F6E3A, ivory #F8F6F1, cream #F3EFE7. */

:root {
	--funoon-charcoal: #252e2a;
	--funoon-deep: #1e2925;
	--funoon-gold: #c5a46b;
	--funoon-bronze: #8f6e3a;
	--funoon-ivory: #f8f6f1;
	--funoon-cream: #f3efe7;
	--funoon-line: #e4dccd;
	--funoon-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--funoon-sans: 'DM Sans', Arial, Helvetica, sans-serif;
	--funoon-arabic: 'Tajawal', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
html.funoon-lang-pending body { opacity: 0; }
body { transition: opacity .15s ease; }
#kubio [id] { scroll-margin-top: 90px; }

/* ---------- Type ---------- */
#kubio h1, #kubio h2, #kubio h3, #kubio h4, #kubio h5,
#kubio .wp-block-kubio-heading__text,
#kubio .funoon-stat-number,
#kubio .funoon-brand p {
	font-family: var(--funoon-serif);
	letter-spacing: 0;
}
#kubio h6 { font-family: var(--funoon-sans); }
#kubio .funoon-kicker { font-family: var(--funoon-sans); }

/* Logo: gold monogram before the name */
#kubio [data-kubio-partial-refresh='logo'] a,
#kubio .wp-block-kubio-logo a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
#kubio [data-kubio-partial-refresh='logo'] .wp-block-kubio-logo__text,
#kubio .wp-block-kubio-logo__text {
	font-family: var(--funoon-serif);
	font-weight: 600;
	letter-spacing: .3px;
}
#kubio [data-kubio-partial-refresh='logo'] a::before {
	content: '';
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 8px;
	background: url('../img/favicon.svg') center / cover no-repeat;
	box-shadow: 0 0 0 1px rgba(197, 164, 107, .45);
}

/* ---------- Header: menu and language switch ---------- */
#kubio .wp-block-kubio-menu-items ul.menu { --kubio-gap-fallback: 30px !important; }
@media (min-width: 1024px) {
	#kubio .wp-block-kubio-navigation-items .h-row { flex-wrap: nowrap !important; }
	#kubio .wp-block-kubio-navigation-items .h-row > .wp-block-kubio-column__container { min-width: 0; }
}
@media (min-width: 1024px) and (max-width: 1240px) {
	#kubio .wp-block-kubio-menu-items ul.menu { --kubio-gap-fallback: 20px !important; }
}
.funoon-lang-item { display: flex !important; align-items: center; }
#kubio .funoon-lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border: 1px solid rgba(197, 164, 107, .7);
	border-radius: 60px;
	font-size: 13px;
	line-height: 1;
	color: #fff;
	background: rgba(20, 28, 25, .25);
}
#kubio .funoon-lang-switch > span { opacity: .45; padding: 0 1px; }
#kubio .funoon-lang-switch button {
	appearance: none;
	-webkit-appearance: none;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 60px !important;
	color: inherit !important;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 7px 11px !important;
	line-height: 1;
	text-transform: none;
	transition: background-color .2s, color .2s;
}
#kubio .funoon-lang-switch button[lang='ar'] { font-family: var(--funoon-arabic); font-size: 14px; }
#kubio .funoon-lang-switch button.is-active,
#kubio .funoon-lang-switch button[aria-pressed='true'] {
	background: var(--funoon-gold) !important;
	color: var(--funoon-deep) !important;
}
#kubio .funoon-lang-switch button:focus-visible { outline: 2px solid var(--funoon-gold); outline-offset: 2px; }

/* ---------- Hero ---------- */
#kubio #hero .wp-block-kubio-heading__text { font-weight: 600; line-height: 1.08; }
#kubio #hero .wp-block-kubio-text__text { max-width: 640px; }
#kubio #hero [data-kubio-partial-refresh='buttons'] .wp-block-kubio-button__link {
	border-radius: 60px !important;
	padding: 16px 34px !important;
	font-family: var(--funoon-sans);
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 1px !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
#kubio #hero [data-kubio-partial-refresh='buttons'] .kubio-button-container:first-child .wp-block-kubio-button__link {
	background: var(--funoon-gold) !important;
	border: 1px solid var(--funoon-gold) !important;
	color: var(--funoon-deep) !important;
	box-shadow: 0 12px 28px -14px rgba(197, 164, 107, .9);
}
#kubio #hero [data-kubio-partial-refresh='buttons'] .kubio-button-container:nth-child(2) .wp-block-kubio-button__link {
	background: rgba(255, 255, 255, .06) !important;
	border: 1px solid rgba(255, 255, 255, .75) !important;
	color: #fff !important;
	backdrop-filter: blur(4px);
}
#kubio #hero [data-kubio-partial-refresh='buttons'] .wp-block-kubio-button__link:hover { transform: translateY(-2px); }
#kubio #hero [data-kubio-partial-refresh='buttons'] .kubio-button-container:nth-child(2) .wp-block-kubio-button__link:hover { background: #fff !important; color: var(--funoon-deep) !important; }
#kubio #hero [data-kubio-partial-refresh='buttons'] .wp-block-kubio-button__text { color: inherit !important; }

/* ---------- Sections ---------- */
/* The theme leaves the browser's default 40px side margin on figures. */
#kubio #content figure.wp-block-image,
#kubio #content figure.wp-block-table { margin-left: 0; margin-right: 0; }
#kubio #content figure.wp-block-image.aligncenter { margin-left: auto; margin-right: auto; }
.funoon-section { position: relative; }
#kubio .funoon-section .wp-block-separator { height: 2px; border: 0; opacity: 1; }

/* Why choose us */
.funoon-pillar {
	background: #fff;
	border: 1px solid var(--funoon-line);
	border-radius: 18px;
	padding: 34px 24px 26px;
	transition: transform .25s ease, box-shadow .25s ease;
}
.funoon-pillar:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(37, 46, 42, .45); }
.funoon-pillar .funoon-icon img { width: 56px; height: 56px; }

/* Collection cards */
#kubio .funoon-collections .funoon-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.funoon-card > .wp-block-group__inner-container { display: flex; flex-direction: column; height: 100%; }
.funoon-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--funoon-line);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.funoon-card:hover {
	transform: translateY(-5px);
	border-color: var(--funoon-gold);
	box-shadow: 0 22px 44px -26px rgba(37, 46, 42, .5);
}
.funoon-card .wp-block-image { margin-block-start: 0 !important; overflow: hidden; width: 100%; align-self: stretch; }
.funoon-card .wp-block-image img { width: 100% !important; height: auto; display: block; }
.funoon-split .wp-block-column > .wp-block-cover { width: 100%; }
.funoon-finishes-row .wp-block-image, .funoon-finishes-row img { width: 100% !important; display: block; }
.funoon-card .wp-block-image img { transition: transform .6s ease; }
.funoon-card:hover .wp-block-image img { transform: scale(1.05); }
.funoon-card .wp-block-heading { margin-block-start: 6px !important; }
#kubio .funoon-card .funoon-card-link { margin-top: auto !important; padding-top: 6px; }
.funoon-card-link a { text-decoration: none; }
.funoon-card-link a:hover { text-decoration: underline; text-underline-offset: 3px; }
.funoon-collections .funoon-grid + .funoon-kicker { margin-top: 44px; }

/* Split image / text sections */
.funoon-split .wp-block-cover { height: 100%; }
.funoon-split .wp-block-column > .wp-block-cover { min-height: 640px; }
.funoon-split--reverse { background: var(--funoon-ivory); }
.funoon-finishes-row figure { margin-bottom: 0; }
.funoon-sizes .wp-block-button__link { padding: 11px 20px !important; letter-spacing: .5px !important; text-transform: none !important; font-size: 15px !important; }
.funoon-sizes .wp-block-button__link:hover,
.funoon-btn.is-style-outline .wp-block-button__link:hover { background: var(--funoon-charcoal); color: #fff !important; border-color: var(--funoon-charcoal); }
.funoon-cta .funoon-btn.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--funoon-charcoal) !important; border-color: #fff; }
.funoon-btn:not(.is-style-outline) .wp-block-button__link { box-shadow: 0 10px 24px -14px rgba(197, 164, 107, .9); transition: transform .2s ease, filter .2s ease; }
.funoon-btn:not(.is-style-outline) .wp-block-button__link:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* Numbers */
#kubio .funoon-stat-number { font-weight: 600; line-height: 1; margin-bottom: 6px; color: var(--funoon-bronze); }
.funoon-stats .wp-block-column { border-inline-start: 1px solid var(--funoon-line); padding: 10px 0; }
.funoon-stats .wp-block-column:first-child { border-inline-start: 0; }

/* Brands */
#kubio .funoon-brands { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#kubio .funoon-countries { max-width: 980px !important; }
.funoon-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 110px;
	border: 1px solid rgba(197, 164, 107, .35);
	transition: transform .25s ease, border-color .25s ease;
}
.funoon-brand:hover { transform: translateY(-3px); border-color: var(--funoon-gold); }
.funoon-brand p { margin: 0; }
.funoon-country { background: #fff; }
.funoon-country p { margin: 0 !important; white-space: nowrap; }
.funoon-flag { margin: 0 !important; }
.funoon-flag img { width: 30px; height: 20px; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

/* Visit */
.funoon-visit .wp-block-cover__inner-container { width: 100%; }
.funoon-visit-card { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.funoon-contact-list { list-style: none; padding: 0 !important; margin: 8px 0 0; display: grid; gap: 16px; }
.funoon-contact-list li { margin: 0; padding-inline-start: 16px; border-inline-start: 2px solid var(--funoon-gold); }
.funoon-contact-list strong {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--funoon-bronze);
	margin-bottom: 2px;
}
.funoon-contact-list a { font-weight: 600; text-decoration: none; }
.funoon-contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.funoon-hours { margin: 0; }
.funoon-hours table { border-collapse: collapse; width: 100%; font-size: 15px; }
.funoon-hours td { color: var(--funoon-charcoal); border: 0; border-bottom: 1px solid var(--funoon-line); padding: 12px 4px; vertical-align: top; }
.funoon-hours td:first-child { font-weight: 700; padding-inline-end: 16px; }
.funoon-hours td:last-child { text-align: end; white-space: nowrap; }
.funoon-map { border-radius: 16px; overflow: hidden; background: var(--funoon-cream); border: 1px solid var(--funoon-line); }
.funoon-map iframe { display: block; width: 100%; height: 300px; border: 0; }

/* Footer */
.funoon-footer-tagline { display: block; margin-top: 6px; opacity: .75; font-size: .92em; }

/* Floating WhatsApp button */
.funoon-whatsapp-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px 12px 14px;
	border-radius: 60px;
	background: #1fa855;
	color: #fff !important;
	font-family: var(--funoon-sans);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45);
	transition: transform .2s ease, background-color .2s ease;
}
.funoon-whatsapp-float:hover { transform: translateY(-2px); background: #178c45; }
.funoon-whatsapp-float svg { width: 26px; height: 26px; }
.funoon-whatsapp-float:focus-visible { outline: 3px solid var(--funoon-gold); outline-offset: 3px; }

.funoon-ltr { unicode-bidi: isolate; direction: ltr; display: inline-block; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
	#kubio .funoon-collections .funoon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	#kubio .funoon-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	#kubio .funoon-collections .funoon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	#kubio .funoon-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.funoon-brand { min-height: 86px; }
	.funoon-card h3 { font-size: 1.05em !important; }
	.funoon-card p { font-size: 13.5px !important; }
	.funoon-card .wp-block-heading, .funoon-card p { padding-left: 14px !important; padding-right: 14px !important; }
	.funoon-split .wp-block-column > .wp-block-cover { min-height: 300px !important; border-radius: 0 !important; }
	.funoon-split .wp-block-column > .wp-block-group { padding: 48px 20px !important; }
	.funoon-split--reverse > .wp-block-columns { flex-direction: column-reverse; }
	.funoon-stats { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px 0 !important; }
	.funoon-stats .wp-block-column { border-inline-start: 0; }
	.funoon-stats .wp-block-column:nth-child(even) { border-inline-start: 1px solid var(--funoon-line); }
	.funoon-visit-card { padding: 28px 20px !important; }
	.funoon-pillar { padding: 26px 20px 20px; }
	.funoon-whatsapp-float { padding: 14px; right: 16px; bottom: 16px; }
	.funoon-whatsapp-float__label { display: none; }
	.funoon-lang-switch { margin: 14px 0 0; }
}

/* ---------- Arabic (right to left) ---------- */
html.funoon-ar body,
html.funoon-ar #kubio,
html.funoon-ar #kubio h1, html.funoon-ar #kubio h2, html.funoon-ar #kubio h3,
html.funoon-ar #kubio h4, html.funoon-ar #kubio h5, html.funoon-ar #kubio h6,
html.funoon-ar #kubio p, html.funoon-ar #kubio a, html.funoon-ar #kubio li,
html.funoon-ar #kubio td, html.funoon-ar #kubio span, html.funoon-ar #kubio button,
html.funoon-ar #kubio .wp-block-kubio-heading__text,
html.funoon-ar #kubio .wp-block-kubio-text__text,
html.funoon-ar #kubio .funoon-stat-number,
html.funoon-ar .funoon-whatsapp-float {
	font-family: var(--funoon-arabic) !important;
	letter-spacing: 0 !important;
}
html.funoon-ar #kubio h1, html.funoon-ar #kubio h2, html.funoon-ar #kubio h3,
html.funoon-ar #kubio .wp-block-kubio-heading__text { font-weight: 800 !important; line-height: 1.3 !important; }
html.funoon-ar #kubio .funoon-kicker { font-size: 14px !important; }
html.funoon-ar #kubio p, html.funoon-ar #kubio li { line-height: 1.85; }

/* Theme sets left alignment in a few places; mirror them. */
html[dir='rtl'] #kubio #hero [data-kubio-partial-refresh='title'] .wp-block-kubio-heading,
html[dir='rtl'] #kubio #hero [data-kubio-partial-refresh='subtitle'] .wp-block-kubio-text,
html[dir='rtl'] #kubio [data-kubio-partial-refresh='buttons'],
html[dir='rtl'] #kubio .has-text-align-left { text-align: right !important; }
html[dir='rtl'] #kubio .wp-block-kubio-row__inner.justify-content-lg-start { justify-content: flex-start !important; }
html[dir='rtl'] .funoon-split .wp-block-cover[style*='border-top-right-radius'] { border-radius: 20px 0 0 20px !important; }
html[dir='rtl'] .funoon-split--reverse .wp-block-cover { border-radius: 0 20px 20px 0 !important; }
html[dir='rtl'] .funoon-whatsapp-float { right: auto; left: 22px; padding: 12px 14px 12px 18px; }
html[dir='rtl'] #kubio .kubio-offscreen ul.menu > li > a { padding-right: 40px !important; padding-left: 20px !important; }
html[dir='rtl'] .funoon-hours td:last-child { text-align: left; }
@media (max-width: 781px) {
	html[dir='rtl'] .funoon-whatsapp-float { left: 16px; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.funoon-card, .funoon-card img, .funoon-pillar, .funoon-brand, .funoon-btn .wp-block-button__link { transition: none !important; }
}
