/*
Theme Name: NomadVerse
Theme URI: https://nomadverse.my/
Author: Nomad Verse Digital
Author URI: https://nomadverse.my/
Description: Tema WordPress hybrid moden untuk laman affiliate dan produk digital. Menyokong Gutenberg, Customizer, menu dinamik dan susun atur responsif.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nomadverse
Tags: blog, e-commerce, custom-logo, custom-menu, featured-images, full-site-editing, block-styles, wide-blocks
*/
:root {
  --nv-green: #16794b;
  --nv-green-dark: #105b38;
  --nv-red: #d94141;
  --nv-yellow: #ffd34e;
  --nv-blue: #2463c7;
  --nv-ink: #18221d;
  --nv-muted: #65716a;
  --nv-bg: #f7f9f7;
  --nv-surface: #ffffff;
  --nv-border: #e1e8e2;
  --nv-radius: 18px;
  --nv-shadow: 0 12px 36px rgba(20, 50, 32, .08);
  --nv-container: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--nv-ink); background: var(--nv-bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: var(--nv-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--nv-green-dark); }
button, input, select, textarea { font: inherit; }
button, .button, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 999px; padding: .82rem 1.25rem; background: var(--nv-green); color: #fff; text-decoration: none; font-weight: 750; cursor: pointer; transition: transform .2s ease, background .2s ease; }
button:hover, .button:hover, .wp-block-button__link:hover { background: var(--nv-green-dark); color: #fff; transform: translateY(-1px); }
.button--yellow { background: var(--nv-yellow); color: #172219; }
.button--yellow:hover { background: #f1c332; color: #172219; }
.button--outline { background: transparent; border: 1px solid var(--nv-border); color: var(--nv-ink); }
.button--outline:hover { background: #eef5ef; color: var(--nv-ink); }
:focus-visible { outline: 3px solid var(--nv-blue); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; background: #fff; padding: .8rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }
.container { width: min(var(--nv-container), calc(100% - 2.5rem)); margin-inline: auto; }
.site-header { position: relative; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--nv-border); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; color: var(--nv-ink); text-decoration: none; font-size: 1.25rem; font-weight: 850; letter-spacing: -.04em; }
.custom-logo { width: auto; max-height: 48px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #fff; background: var(--nv-green); font-size: 1.1rem; font-weight: 900; }
.brand-name span { color: var(--nv-green); }
.primary-nav ul { display: flex; align-items: center; gap: 1.35rem; list-style: none; padding: 0; margin: 0; }
.primary-nav a { color: var(--nv-ink); text-decoration: none; font-size: .94rem; font-weight: 650; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--nv-green); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.menu-toggle { display: none; color: var(--nv-ink); background: #edf4ee; padding: .65rem .9rem; }
.hero { padding: clamp(3rem, 7vw, 6.5rem) 0 3.5rem; background: radial-gradient(circle at 85% 20%, rgba(255,211,78,.24), transparent 26%), radial-gradient(circle at 10% 80%, rgba(36,99,199,.08), transparent 30%), var(--nv-bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border: 1px solid #d5e8d9; border-radius: 999px; background: #eef7f0; color: var(--nv-green-dark); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 1rem 0; font-size: clamp(2.5rem, 5.2vw, 4.7rem); line-height: 1.04; letter-spacing: -.065em; }
.hero h1 em { color: var(--nv-green); font-style: normal; }
.hero-copy { max-width: 610px; color: var(--nv-muted); font-size: clamp(1.05rem, 1.7vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-note { display: flex; align-items: center; gap: .7rem; margin-top: 1.5rem; color: var(--nv-muted); font-size: .88rem; }
.hero-note strong { color: var(--nv-ink); }
.hero-visual { position: relative; min-height: 390px; display: grid; place-items: center; }
.hero-card { position: relative; width: min(100%, 420px); min-height: 340px; padding: 1.5rem; border: 1px solid rgba(255,255,255,.9); border-radius: 28px; background: linear-gradient(145deg, #fff, #edf6ef); box-shadow: 0 28px 80px rgba(24,70,43,.14); transform: rotate(2deg); }
.hero-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--nv-muted); font-size: .8rem; font-weight: 750; }
.hero-orb { display: grid; place-items: center; width: 150px; height: 150px; margin: 1.6rem auto 1rem; border-radius: 42px; background: linear-gradient(135deg, var(--nv-green), #35a66e); color: white; font-size: 3.5rem; box-shadow: 0 18px 38px rgba(22,121,75,.24); transform: rotate(-7deg); }
.hero-card h3 { text-align: center; margin: .5rem 0 .2rem; font-size: 1.25rem; }
.hero-card p { margin: 0; text-align: center; color: var(--nv-muted); font-size: .9rem; }
.floating-tag { position: absolute; padding: .75rem 1rem; border: 1px solid var(--nv-border); border-radius: 14px; background: #fff; box-shadow: var(--nv-shadow); font-size: .84rem; font-weight: 800; }
.floating-tag--one { top: 8%; right: -2%; color: var(--nv-red); }
.floating-tag--two { bottom: 8%; left: -4%; color: var(--nv-blue); }
.trust-strip { padding: 1.2rem 0; background: #fff; border-block: 1px solid var(--nv-border); }
.trust-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--nv-muted); font-size: .9rem; }
.trust-inner strong { color: var(--nv-ink); }
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--white { background: #fff; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.8rem; }
.section-heading h2 { max-width: 680px; margin: .5rem 0 0; font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.15; letter-spacing: -.045em; }
.section-heading p { max-width: 500px; margin: 0; color: var(--nv-muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.feature-card, .post-card, .product-card { overflow: hidden; border: 1px solid var(--nv-border); border-radius: var(--nv-radius); background: #fff; box-shadow: 0 4px 20px rgba(20,50,32,.025); }
.feature-card { padding: 1.5rem; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.2rem; border-radius: 15px; background: #eaf5ed; color: var(--nv-green); font-size: 1.35rem; }
.feature-card:nth-child(2) .feature-icon { background: #fff4d0; color: #8a6500; }
.feature-card:nth-child(3) .feature-icon { background: #eaf1ff; color: var(--nv-blue); }
.feature-card h3, .post-card h2, .post-card h3 { margin: 0 0 .5rem; line-height: 1.3; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--nv-muted); }
.product-card { display: flex; flex-direction: column; }
.product-card__media { display: grid; place-items: center; min-height: 180px; padding: 1.5rem; background: linear-gradient(145deg, #f1f8f2, #fff8df); font-size: 3rem; }
.product-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.product-card__body h3 { margin: .5rem 0; font-size: 1.15rem; line-height: 1.35; }
.product-card__body p { margin: 0 0 1rem; color: var(--nv-muted); font-size: .94rem; }
.product-card__body .button { margin-top: auto; align-self: flex-start; }
.pill { display: inline-flex; width: fit-content; padding: .25rem .6rem; border-radius: 999px; background: #edf7ef; color: var(--nv-green-dark); font-size: .75rem; font-weight: 850; }
.disclosure { color: var(--nv-muted); font-size: .8rem; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.6rem, 4vw, 3rem); border-radius: 26px; background: var(--nv-green-dark); color: #fff; }
.cta-band h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; }
.cta-band p { margin: 0; color: rgba(255,255,255,.78); }
.cta-band .button { flex-shrink: 0; }
.site-footer { padding: 3rem 0 1.3rem; background: #13251a; color: rgba(255,255,255,.76); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.site-footer .brand { color: #fff; }
.site-footer p { max-width: 420px; }
.site-footer h3 { color: #fff; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .45rem 0; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--nv-yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; }
.page-header { padding: 3rem 0 2rem; background: #fff; border-bottom: 1px solid var(--nv-border); }
.page-header h1 { margin: .5rem 0; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.05em; line-height: 1.1; }
.page-header p { color: var(--nv-muted); max-width: 720px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; padding: 3rem 0; }
.content-main { min-width: 0; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.post-card__image { display: block; aspect-ratio: 16/9; overflow: hidden; background: #eaf2eb; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card__image img { transform: scale(1.04); }
.post-card__body { padding: 1.2rem; }
.post-card__body h2, .post-card__body h3 { font-size: 1.2rem; }
.post-card__body p { color: var(--nv-muted); }
.entry-meta { color: var(--nv-muted); font-size: .82rem; }
.entry-content { max-width: 800px; }
.entry-content > * { margin-block: 1.25em; }
.entry-content h2, .entry-content h3 { line-height: 1.25; letter-spacing: -.03em; }
.entry-content img { border-radius: 14px; }
.entry-content blockquote { margin-inline: 0; padding: .5rem 1.2rem; border-left: 4px solid var(--nv-green); color: var(--nv-muted); }
.sidebar-widget { padding: 1.2rem; margin-bottom: 1rem; border: 1px solid var(--nv-border); border-radius: 16px; background: #fff; }
.sidebar-widget h2 { font-size: 1rem; margin-top: 0; }
.search-form { display: flex; gap: .5rem; }
.search-form label { flex: 1; }
.search-field, input[type="text"], input[type="email"], input[type="search"], input[type="url"], textarea, select { width: 100%; min-width: 0; padding: .75rem .85rem; border: 1px solid #cfd9d1; border-radius: 10px; background: #fff; color: var(--nv-ink); }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.page-numbers { display: inline-flex; padding: .55rem .85rem; border-radius: 9px; background: #fff; border: 1px solid var(--nv-border); text-decoration: none; }
.page-numbers.current { background: var(--nv-green); color: #fff; }
.comment-list { padding-left: 1.2rem; }
.comment-respond { margin-top: 2rem; padding: 1.5rem; background: #fff; border: 1px solid var(--nv-border); border-radius: 16px; }
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image img, .wp-block-cover { border-radius: 14px; }
.wp-block-button__link { border-radius: 999px; }
.wp-block-quote { border-left: 4px solid var(--nv-green); padding-left: 1rem; }
.wp-block-table { overflow-x: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: 1rem; margin: 0; background: #fff; color: #000; z-index: 100000; }
@media (max-width: 900px) {
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 1rem 1.25rem; border-bottom: 1px solid var(--nv-border); background: #fff; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: .7rem; }
  .primary-nav a { display: block; padding: .45rem 0; }
  .menu-toggle { display: inline-flex; }
  .header-actions .button { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 330px; }
  .hero-card { min-height: 300px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container { width: min(var(--nv-container), calc(100% - 1.5rem)); }
  .header-inner { min-height: 68px; }
  .brand { font-size: 1.08rem; }
  .hero { padding-top: 3rem; }
  .hero h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .hero-visual { min-height: 300px; }
  .hero-card { width: 90%; min-height: 275px; padding: 1rem; }
  .hero-orb { width: 115px; height: 115px; font-size: 2.7rem; margin: 1.1rem auto .8rem; }
  .floating-tag--one { right: -1%; }
  .floating-tag--two { left: -1%; }
  .card-grid, .post-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .cta-band { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 1rem; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
