/*
Theme Name: Fook Choon Landarch
Theme URI: https://fclandarch.com/
Author: Computer Solution Trio
Author URI: https://jwebconsultsmb.com/
Description: Custom theme for Fook Choon Landarch Sdn Bhd. Rebuilt from the old Joomla site. English and Chinese pages, home slideshow, gallery and contact form.
Version: 1.4.3
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: fookchoon
*/

:root {
	--fc-green: #2f7a1f;
	--fc-green-dark: #1f5a12;
	--fc-lime: #a8d05a;
	--fc-mint: #ecfddc;
	--fc-grey: #eeeeee;
	--fc-text: #222222;
	--fc-brown: #7a4f12;
	--fc-sand: #fdf0e0;
	--fc-max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Poppins", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.75;
	color: var(--fc-text);
	background: #fff;
	letter-spacing: .2px;
}
em, i, cite, address { font-style: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fc-green); }
a:hover { color: var(--fc-green-dark); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1.2em; }

.fc-wrap { max-width: var(--fc-max); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ---------- Header ---------- */
.fc-header {
	position: sticky; top: 0; z-index: 50;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.admin-bar .fc-header { top: 32px; }
.fc-header .fc-wrap {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; min-height: 86px;
}
.fc-logo img { max-height: 76px; width: auto; }
.fc-logo a { text-decoration: none; color: var(--fc-green); font-weight: 600; font-size: 20px; }

.fc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.fc-nav li { margin: 0; }
.fc-nav a {
	display: block; padding: 14px 13px;
	color: #222; text-decoration: none; font-size: 14px; font-weight: 500;
	transition: background .2s;
}
.fc-nav a:hover { background: #f1f8e6; color: #222; }
.fc-nav .current-menu-item > a,
.fc-nav .current_page_item > a { background: var(--fc-lime); color: #111; }

.fc-tools { display: flex; align-items: center; gap: 26px; }
.fc-social a { color: var(--fc-green-dark); text-decoration: none; margin-right: 14px; display: inline-flex; }
.fc-social svg { width: 18px; height: 18px; fill: currentColor; }
.fc-lang {
	background: var(--fc-green-dark); color: #fff !important;
	text-decoration: none; font-weight: 600; font-size: 13px;
	padding: 4px 12px; border-radius: 3px; letter-spacing: 1px;
}
.fc-lang:hover { background: var(--fc-green); }

.fc-burger {
	display: none; background: none; border: 0; cursor: pointer;
	width: 44px; height: 44px; padding: 10px;
}
.fc-burger span { display: block; height: 2px; background: #222; margin: 6px 0; }

@media (max-width: 960px) {
	.fc-burger { display: block; }
	.fc-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.08);
	}
	.fc-nav.is-open { display: block; }
	.fc-nav ul { flex-direction: column; padding: 8px 20px 16px; }
	.fc-tools { gap: 14px; margin-left: auto; }
	.fc-social { display: none; }
}

/* ---------- Content ---------- */
.fc-main { min-height: 50vh; }
.entry-content > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.entry-content .alignwide { max-width: var(--fc-max); margin-left: auto; margin-right: auto; }
.entry-content > .wp-block-group.is-layout-constrained > *,
.entry-content .fc-inner { max-width: var(--fc-max); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

.fc-section { padding: 60px 0; }
.fc-bg-grey { background: var(--fc-grey); }
.fc-bg-mint { background: var(--fc-mint); }

/* Slideshow on home page */
.fc-slider { position: relative; overflow: hidden; background: #ddd; aspect-ratio: 16 / 6.5; margin: 0 !important; }
.fc-slider > figure, .fc-slider > .wp-block-image {
	position: absolute; inset: 0; margin: 0 !important; opacity: 0;
	transition: opacity 1.2s ease;
}
.fc-slider > figure.is-active, .fc-slider > .wp-block-image.is-active { opacity: 1; }
.fc-slider img { width: 100%; height: 100%; object-fit: cover; }
.fc-slider-dots { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; z-index: 3; }
.fc-slider-dots button {
	width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff;
	background: transparent; margin: 0 5px; cursor: pointer; padding: 0;
}
.fc-slider-dots button.is-active { background: #fff; }
@media (max-width: 700px) { .fc-slider { aspect-ratio: 4 / 3; } }

/* Page banner with title bar */
.fc-banner.wp-block-cover { min-height: 270px !important; padding: 0 !important; }
.fc-banner .wp-block-cover__inner-container { width: 100% !important; }
.fc-banner-bar {
	background: rgba(20,20,20,.62); padding: 16px 20px !important; margin: 0 !important;
	display: flex; justify-content: center; align-items: center; gap: 60px; flex-wrap: wrap;
}
.fc-banner-bar p {
	margin: 0 !important; color: #fff; font-weight: 700; font-size: 44px;
	letter-spacing: 1px; text-transform: uppercase; line-height: 1.2;
}
.fc-banner-bar p.fc-banner-sep { font-size: 34px; opacity: .85; font-weight: 400; }
.fc-banner-line { height: 12px; background: #6eb23a; margin: 0 !important; }
@media (max-width: 700px) {
	.fc-banner-bar { gap: 14px; }
	.fc-banner-bar p { font-size: 26px; }
	.fc-banner-bar p.fc-banner-sep { display: none; }
}

/* About / story layout */
.fc-story-img { position: relative; border-right: 14px solid #6eb23a; }
.fc-story-img img { width: 100%; height: 100%; object-fit: cover; }
.fc-story-label {
	position: absolute; top: 0; bottom: 0; left: 30%; width: 70px;
	background: rgba(90,90,90,.75); color: #fff; font-weight: 600;
	font-size: 40px; display: flex; align-items: center; justify-content: center;
	writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 6px;
}

.fc-big { font-size: 34px; font-weight: 700; color: #6eb23a; vertical-align: -3px; padding: 0 2px; }
.fc-heading-green { color: var(--fc-green-dark); font-weight: 700; font-size: 26px; text-transform: uppercase; }
.fc-list { list-style: none; padding: 0; margin: 0; }
.fc-list li { position: relative; padding-left: 18px; font-weight: 500; margin-bottom: 4px; }
.fc-list li:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #333; position: absolute; left: 2px; top: .8em; }

.fc-btn .wp-block-button__link, .wp-block-button.fc-btn .wp-block-button__link {
	background: var(--fc-green) !important; color: #fff !important; border-radius: 30px;
	font-weight: 700; letter-spacing: 3px; font-size: 14px; padding: 12px 36px;
	box-shadow: 0 6px 14px rgba(0,0,0,.18); text-transform: uppercase;
}
.fc-highlight { color: #8b2f1c; font-weight: 700; }

/* Image grid on home and services */
.fc-grid.wp-block-gallery { gap: 8px !important; margin: 0 !important; }
.fc-grid.wp-block-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Gallery page boxes */
.fc-box { padding: 30px 30px 20px !important; border: 1px solid; text-align: left; height: 100%; }
.fc-box h2 { text-align: center; font-size: 28px; font-weight: 500; }
.fc-box-res { background: var(--fc-sand); border-color: #b88a4e; }
.fc-box-res h2 { color: var(--fc-brown); }
.fc-box-com { background: #eafde2; border-color: #4f9a3a; }
.fc-box-com h2 { color: var(--fc-green); }
.fc-box-icon { text-align: center; font-size: 36px; margin-bottom: 6px !important; }

.fc-gallery.wp-block-gallery img { aspect-ratio: 1 / 1; object-fit: cover; }

/* Contact */
.fc-map iframe { width: 100%; height: 420px; border: 0; display: block; }
.fc-contact-info p { margin-bottom: 1em; }

.fc-form { display: grid; gap: 14px; }
.fc-form label { font-weight: 500; font-size: 14px; display: block; margin-bottom: 4px; }
.fc-form input, .fc-form textarea {
	width: 100%; padding: 11px 13px; border: 1px solid #c9c9c9; border-radius: 4px;
	font: inherit; background: #fff;
}
.fc-form textarea { min-height: 140px; }
.fc-form button {
	justify-self: start; background: var(--fc-green); color: #fff; border: 0;
	padding: 12px 36px; border-radius: 30px; font-weight: 700; letter-spacing: 2px;
	cursor: pointer; font: inherit; font-weight: 700;
}
.fc-form button:hover { background: var(--fc-green-dark); }
.fc-form .fc-hp { position: absolute; left: -9999px; }
.fc-notice { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; }
.fc-notice.ok { background: #e6f6dc; color: #1f5a12; }
.fc-notice.err { background: #fde8e6; color: #8b1c10; }

/* ---------- Footer ---------- */
.fc-footer { background: #7cb233; color: #fff; font-size: 15px; padding: 40px 0; text-align: center; }
.fc-footer p { margin: 2px 0; }
.fc-footer a { color: #fff; text-decoration: none; }

/* Mobile stacking */
@media (max-width: 781px) {
	.fc-section { padding: 40px 0; }
	.fc-story-label { font-size: 28px; width: 52px; }
}

/* Keep gallery tiles the same size, even on a short last row */
.wp-block-gallery.has-nested-images.fc-grid figure.wp-block-image,
.wp-block-gallery.has-nested-images.fc-gallery figure.wp-block-image { flex-grow: 0; }
.fc-grid figure, .fc-gallery figure { background: #e3eadb; }
@media (max-width: 781px) {
	.fc-story-label {
		writing-mode: horizontal-tb; text-orientation: mixed;
		top: auto; bottom: 0; left: 0; right: 0; width: auto;
		padding: 8px 0; font-size: 24px;
	}
}

/* ---------- Elementor pages ---------- */
html, body { overflow-x: clip; }
.elementor-widget-heading .elementor-heading-title { line-height: 1.25; }
.fc-el-grid .gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
/* Gallery page: masonry */
.fc-el-gallery .gallery { display: block !important; column-count: 4; column-gap: 12px; margin: 0 !important; }
.fc-el-gallery .gallery br { display: none; }
.fc-el-gallery .gallery .gallery-item {
	display: inline-block; float: none !important; width: 100% !important; max-width: none !important;
	margin: 0 0 12px !important; padding: 0 !important; break-inside: avoid; vertical-align: top;
}
.fc-el-gallery .gallery-item .gallery-icon { margin: 0; }
.fc-el-gallery .gallery-item img { aspect-ratio: auto !important; height: auto !important; width: 100%; display: block; }
@media (max-width: 1024px) { .fc-el-gallery .gallery { column-count: 3; } }
@media (max-width: 767px) { .fc-el-gallery .gallery { column-count: 2; column-gap: 8px; } .fc-el-gallery .gallery .gallery-item { margin-bottom: 8px !important; } }
.fc-el-grid .gallery-item { background: #e3eadb; }
.fc-banner-word .elementor-heading-title { letter-spacing: 1px; }
@media (max-width: 767px) { .fc-banner-icon { display: none; } }

/* Expertise carousel and list (Services page) */
.fc-exp-carousel .swiper-slide img { width: 100%; height: 570px; object-fit: cover; }
.fc-exp-carousel .elementor-swiper-button { background: rgba(0,0,0,.18); border-radius: 50%; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; transition: background-color .3s ease, transform .3s ease; }
.fc-exp-carousel .elementor-swiper-button:hover { background: rgba(31,90,18,.75); transform: scale(1.08); }
@media (max-width: 1024px) { .fc-exp-carousel .swiper-slide img { height: 440px; } }
@media (max-width: 767px) { .fc-exp-carousel .swiper-slide img { height: 300px; } }
.fc-icon-vertical .elementor-icon i, .fc-icon-vertical .elementor-icon svg { transform: rotate(90deg); }
.fc-banner-icon .elementor-icon { font-weight: 300; }
.fc-el-gallery .gallery.fc-masonry-js { display: flex !important; column-count: auto; gap: 12px; align-items: flex-start; }
.fc-el-gallery .gallery.fc-masonry-js .fc-mcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.fc-el-gallery .gallery.fc-masonry-js .gallery-item { margin: 0 !important; }
@media (max-width: 767px) {
	.fc-el-gallery .gallery.fc-masonry-js, .fc-el-gallery .gallery.fc-masonry-js .fc-mcol { gap: 8px; }
}
