/* ==========================================================================
   Adera Uniform — Main Stylesheet
   Font: Poppins (headings) / Plus Jakarta Sans (body)
   Palette: Navy (brand) + Amber/Orange (accent) — seragam kerja & profesional
   ========================================================================== */

:root {
	--navy-900: #0b1f3a;
	--navy-800: #10294c;
	--navy-700: #16345f;
	--navy-600: #1d4276;
	--amber-500: #f2994a;
	--amber-600: #e07f28;
	--amber-100: #fdeee0;
	--ink: #1a2233;
	--gray-600: #5c6478;
	--gray-300: #dfe3ea;
	--gray-100: #f5f7fa;
	--white: #ffffff;
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
	--shadow-md: 0 8px 24px rgba(11, 31, 58, 0.10);
	--container: 1180px;
	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Plus Jakarta Sans', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--white);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; color: var(--navy-900); }
p { margin: 0 0 1em; color: var(--gray-600); }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px;
	border: 2px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--amber-500); color: var(--white); }
.btn-primary:hover { background: var(--amber-600); transform: translateY(-1px); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--amber-100); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-wa { gap: 6px; }

/* ---------- Top bar ---------- */
.top-bar { background: var(--navy-900); color: rgba(255,255,255,.85); font-size: 13px; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; flex-wrap: wrap; gap: 6px; }
.top-bar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.social-links { display: flex; gap: 8px; }
.social-icon {
	width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.12);
	display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
	color: var(--white); transition: background .2s;
}
.social-icon:hover { background: var(--amber-500); }

/* ---------- Header ---------- */
.site-header { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.site-branding img { max-height: 52px; width: auto; }
.site-title-link { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--navy-900); }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
	display: block; padding: 12px 14px; font-weight: 600; font-size: 15px; color: var(--navy-900); border-radius: var(--radius-sm);
	transition: color .2s, background .2s;
}
.nav-menu > li > a:hover { color: var(--amber-600); background: var(--amber-100); }

/* Dropdown / mega-menu style submenu (uses default WP nested <ul>) */
.nav-menu li ul.sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white);
	box-shadow: var(--shadow-md); border-radius: var(--radius-md); padding: 10px; opacity: 0; visibility: hidden;
	transform: translateY(8px); transition: all .2s ease; z-index: 50;
}
.nav-menu li:hover > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu li ul.sub-menu li a { padding: 10px 14px; display: block; border-radius: var(--radius-sm); font-size: 14px; color: var(--ink); font-weight: 500; }
.nav-menu li ul.sub-menu li a:hover { background: var(--gray-100); color: var(--amber-600); }
.nav-menu li ul.sub-menu .sub-menu { top: 0; left: 100%; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; }

/* ---------- Breadcrumb ---------- */
.adera-breadcrumb { padding: 14px 0; font-size: 13px; color: var(--gray-600); }
.adera-breadcrumb a { color: var(--navy-700); font-weight: 600; }
.adera-breadcrumb span { margin: 0 4px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); padding: 80px 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; color: var(--amber-500); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.hero-content h1 { color: var(--white); font-size: 42px; margin-bottom: 18px; }
.hero-content p { color: rgba(255,255,255,.78); font-size: 16px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.hero-placeholder {
	aspect-ratio: 1/1; border-radius: var(--radius-lg); background: rgba(255,255,255,.06);
	border: 2px dashed rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center;
	color: rgba(255,255,255,.4); font-family: var(--font-heading); font-weight: 800; font-size: 24px; text-align: center;
}

/* ---------- About ---------- */
.about-section { padding: 80px 0; }
.about-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 30px; }
.about-stats { display: grid; gap: 20px; }
.stat { background: var(--gray-100); border-radius: var(--radius-md); padding: 24px; text-align: center; }
.stat strong { display: block; font-size: 30px; font-family: var(--font-heading); color: var(--navy-900); }
.stat span { font-size: 13px; color: var(--gray-600); font-weight: 600; }

/* ---------- Section heading ---------- */
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-heading h1, .section-heading h2 { font-size: 32px; }
.section-cta { text-align: center; margin-top: 36px; }

/* ---------- Portfolio grid ---------- */
.portfolio-section, .products-section, .order-steps, .testimoni-section { padding: 70px 0; background: var(--gray-100); }
.about-section, .portfolio-section:nth-of-type(odd) { background: var(--white); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portfolio-grid-archive { grid-template-columns: repeat(3, 1fr); }
.portfolio-card { display: block; border-radius: var(--radius-md); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.portfolio-thumb { aspect-ratio: 1/1; overflow: hidden; background: var(--gray-300); }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-caption { padding: 14px 16px; font-weight: 600; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.portfolio-caption span { font-weight: 400; color: var(--gray-600); font-size: 12px; }
.thumb-placeholder { width: 100%; height: 100%; aspect-ratio: 1/1; background: repeating-linear-gradient(45deg, var(--gray-300), var(--gray-300) 10px, var(--gray-100) 10px, var(--gray-100) 20px); }
.thumb-placeholder-lg { aspect-ratio: 4/3; border-radius: var(--radius-lg); }

/* ---------- Order steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { background: var(--white); border-radius: var(--radius-md); padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.step-icon {
	width: 48px; height: 48px; border-radius: 50%; background: var(--navy-900); color: var(--amber-500);
	display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-heading);
	margin: 0 auto 16px; font-size: 18px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14px; margin: 0; }

/* ---------- Product categories on homepage ---------- */
.product-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s; }
.cat-card:hover { transform: translateY(-4px); }
.cat-card img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.cat-card span { display: block; padding: 12px; font-weight: 600; font-size: 14px; }

/* ---------- Testimoni ---------- */
.testimoni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimoni-card { background: var(--white); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); }
.star-rating { color: var(--amber-500); letter-spacing: 2px; margin-bottom: 10px; }
.testimoni-text { font-style: italic; font-size: 14px; }
.testimoni-author { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.testimoni-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimoni-author strong { display: block; font-size: 14px; }
.testimoni-author span { font-size: 12px; color: var(--gray-600); }

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(120deg, var(--amber-600), var(--amber-500)); padding: 48px 0; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.final-cta h2 { color: var(--white); font-size: 26px; margin-bottom: 6px; }
.final-cta p { color: rgba(255,255,255,.9); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 14px; }
.footer-widget-title, .site-footer h3, .site-footer h4 { color: var(--white); font-size: 16px; }
.footer-links li, .footer-contact li { margin-bottom: 10px; font-size: 14px; }
.footer-links a { color: rgba(255,255,255,.65); }
.footer-links a:hover { color: var(--amber-500); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; margin-top: 10px; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.footer-legal-menu { display: flex; gap: 16px; }
.footer-legal-menu a { color: rgba(255,255,255,.6); }

/* ---------- Floating WA + scroll top ---------- */
.floating-wa {
	position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%;
	background: #25D366; color: var(--white); display: flex; align-items: center; justify-content: center;
	font-size: 26px; box-shadow: var(--shadow-md); z-index: 200; animation: pulse-wa 2.4s infinite;
}
@keyframes pulse-wa { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0);} }
.scroll-top {
	position: fixed; bottom: 24px; right: 92px; width: 44px; height: 44px; border-radius: 50%;
	background: var(--navy-900); color: var(--white); border: 0; font-size: 18px; box-shadow: var(--shadow-md);
	z-index: 200; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; }

/* ---------- Generic page / archive layout ---------- */
.page-content { padding: 56px 0 80px; }
.content-with-sidebar { display: grid; grid-template-columns: 2.4fr 1fr; gap: 40px; align-items: start; }
.sidebar { position: sticky; top: 100px; }
.widget { background: var(--gray-100); border-radius: var(--radius-md); padding: 22px; margin-bottom: 20px; }
.widget-title { font-size: 15px; margin-bottom: 12px; }
.widget-cta p { font-size: 14px; }

.filter-list li { margin-bottom: 6px; }
.filter-list > li > a { font-weight: 700; display: block; padding: 8px 0; color: var(--navy-900); }
.filter-sublist { margin-left: 12px; border-left: 2px solid var(--gray-300); padding-left: 12px; }
.filter-sublist li a { font-size: 13px; color: var(--gray-600); display: block; padding: 6px 0; }
.filter-sublist li a:hover { color: var(--amber-600); }

/* Product grid (archive/related) */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-thumb { aspect-ratio: 1/1; background: var(--gray-300); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 14px 16px; }
.product-card-body h3 { font-size: 15px; margin-bottom: 4px; }
.product-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--amber-600); background: var(--amber-100); padding: 3px 10px; border-radius: 20px; display: inline-block; }

/* Blog page (styled to match product grid) */
.blog-post-card .product-card-body h3 { margin: 10px 0 6px; }
.blog-card-excerpt { font-size: 13px; color: var(--gray-600); margin-bottom: 10px; }
.blog-post-card .read-more { font-size: 13px; }
.filter-list .cat-count { font-weight: 400; color: var(--gray-600); font-size: 12px; }

/* Foto artikel blog: tampil utuh (tidak di-crop), rasio asli dipertahankan */
.blog-thumb-uncropped { aspect-ratio: auto; background: var(--gray-100); }
.blog-thumb-uncropped img { width: 100%; height: auto; object-fit: initial; display: block; }

/* Halaman single post: tambahan jarak kiri-kanan supaya teks & gambar tidak mepet layar */
.single-post-page { padding-left: 20px; padding-right: 20px; }
@media (max-width: 782px) {
	.single-post-page { padding-left: 16px; padding-right: 16px; }
}

/* Product single */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.product-detail-media img { border-radius: var(--radius-lg); }
.product-detail-info h1 { font-size: 28px; margin: 10px 0 18px; }
.product-cta-box { background: var(--gray-100); border-radius: var(--radius-md); padding: 24px; margin-top: 26px; }
.product-cta-box h3 { font-size: 17px; }
.related-products h2 { font-size: 22px; margin-bottom: 20px; }

/* Portfolio single */
.portfolio-meta { display: flex; gap: 20px; font-size: 14px; color: var(--gray-600); margin-bottom: 20px; flex-wrap: wrap; }
.single-thumb img { border-radius: var(--radius-lg); margin-bottom: 24px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.blog-thumb { aspect-ratio: 16/10; overflow: hidden; display: block; background: var(--gray-300); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 18px 20px; }
.blog-date { font-size: 12px; color: var(--amber-600); font-weight: 700; text-transform: uppercase; }
.blog-card-body h2 { font-size: 18px; margin: 8px 0; }
.read-more { color: var(--navy-700); font-weight: 700; font-size: 13px; }

/* Single post/page */
.single-article h1, .page-title { font-size: 32px; }
.post-meta { display: flex; gap: 16px; font-size: 13px; color: var(--gray-600); margin-bottom: 20px; }
.entry-content { font-size: 15px; }
.entry-content img { border-radius: var(--radius-md); margin: 20px 0; }
.entry-content h2 { font-size: 22px; margin-top: 32px; }
.entry-content h3 { font-size: 18px; margin-top: 24px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-details { margin: 24px 0; }
.contact-details li { margin-bottom: 16px; font-size: 14px; }
.contact-map iframe, .map-placeholder { border-radius: var(--radius-md); width: 100%; }
.map-placeholder { height: 420px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-600); text-align: center; padding: 20px; }

/* Gallery */
.gallery-masonry { column-count: 4; column-gap: 16px; }
.gallery-item { display: block; margin-bottom: 16px; border-radius: var(--radius-md); overflow: hidden; break-inside: avoid; }

/* Size chart */
.size-chart-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.size-chart-content th, .size-chart-content td { border: 1px solid var(--gray-300); padding: 10px 14px; text-align: center; font-size: 14px; }
.size-chart-content th { background: var(--navy-900); color: var(--white); }
.size-chart-note { font-weight: 600; margin-top: 24px; }

/* 404 */
.not-found { text-align: center; padding: 80px 0; }
.not-found h1 { font-size: 90px; color: var(--gray-300); }

.empty-state { color: var(--gray-600); text-align: center; padding: 40px 0; grid-column: 1/-1; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: var(--radius-sm); background: var(--gray-100); font-weight: 600; font-size: 14px; }
.pagination .page-numbers.current { background: var(--navy-900); color: var(--white); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
	.hero-inner, .about-inner, .product-detail, .contact-grid { grid-template-columns: 1fr; }
	.hero-media { order: -1; max-width: 360px; margin: 0 auto; }
	.steps-grid, .product-cat-grid, .testimoni-grid { grid-template-columns: repeat(2, 1fr); }
	.portfolio-grid, .portfolio-grid-archive, .product-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
	.content-with-sidebar { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.gallery-masonry { column-count: 3; }
}

@media (max-width: 782px) {
	.top-bar-left span:nth-child(2) { display: none; }
	.primary-nav {
		position: fixed; inset: 0 0 0 auto; width: 82%; max-width: 320px; background: var(--white);
		box-shadow: var(--shadow-md); transform: translateX(100%); transition: transform .25s ease;
		padding: 90px 24px 24px; overflow-y: auto; z-index: 150;
	}
	.primary-nav.is-open { transform: translateX(0); }
	.nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-menu li ul.sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 12px; display: none; }
	.nav-menu li.submenu-open > ul.sub-menu { display: block; }
	.header-cta .btn span:not(.btn-wa-icon) { display: none; }
	.menu-toggle { display: flex; }
	.hero-content h1 { font-size: 30px; }
	.final-cta-inner { flex-direction: column; text-align: center; }
	.steps-grid, .product-cat-grid, .testimoni-grid, .portfolio-grid, .portfolio-grid-archive, .product-grid, .blog-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.gallery-masonry { column-count: 2; }
}

@media (max-width: 480px) {
	.footer-grid { grid-template-columns: 1fr; }
	.gallery-masonry { column-count: 1; }
	.header-cta .btn { padding: 10px 14px; font-size: 0; }
	.header-cta .btn-wa-icon { font-size: 18px; }
}
