/* ==============================================
   SOP Modern 2025 — main.css
   Style: Modern SaaS / Glass nav / Bento grid
=============================================== */

:root {
  --g1: #065f46;
  --g2: #059669;
  --g3: #10b981;
  --g4: #34d399;
  --g-light: #ecfdf5;
  --g-pale:  #f0fdf4;
  --ink:     #0a0f0d;
  --ink2:    #374151;
  --muted:   #6b7280;
  --border:  #e5e7eb;
  --bg:      #f9fafb;
  --white:   #ffffff;
  --sh-sm:   0 2px 8px rgba(0,0,0,.07);
  --sh:      0 4px 24px rgba(0,0,0,.08);
  --sh-lg:   0 12px 48px rgba(0,0,0,.12);
  --r:       12px;
  --r-lg:    20px;
  --r-xl:    28px;
  --max:     1200px;
  --font:    'IBM Plex Sans Thai', system-ui, sans-serif;
  --font-h:  'Plus Jakarta Sans', 'IBM Plex Sans Thai', sans-serif;
  --t:       0.15s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink2); background: var(--white); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--g1); text-decoration: none; transition: var(--t); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-h); color: var(--ink); line-height: 1.2; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: var(--t); white-space: nowrap; font-family: var(--font); text-decoration: none; }
.btn-primary { background: var(--g1); color: #fff; }
.btn-primary:hover { background: var(--g2); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(6,95,70,.3); }
.btn-ghost { background: transparent; color: var(--ink2); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--g1); color: var(--g1); }
.btn-line { background: #06C755; color: #fff; }
.btn-line:hover { background: #05a847; color: #fff; }
.btn-white { background: #fff; color: var(--g1); font-weight: 700; }
.btn-white:hover { background: var(--g-light); }
.btn-ghost-w { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn-ghost-w:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ── NAV ── */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(229,231,235,.7); }
.header-inner { display: flex; align-items: center; height: 64px; gap: 12px; }

.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-logo:hover { opacity: .85; }
.logo-mark { width: 38px; height: 38px; background: linear-gradient(135deg, var(--g1), var(--g2)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-h); font-size: 14px; font-weight: 800; color: #fff; flex-shrink: 0; letter-spacing: -.5px; }
.logo-img { height: 38px; width: auto; border-radius: 8px; }
.custom-logo-link img { height: 38px; width: auto; }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.15; font-family: var(--font-h); }
.logo-sub { font-size: 10.5px; color: var(--muted); line-height: 1.3; }

.nav-menu { display: flex; align-items: center; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu > li > a { display: block; padding: 7px 14px; font-size: 13.5px; font-weight: 500; color: var(--ink2); white-space: nowrap; border-radius: 8px; transition: var(--t); }
.nav-menu > li > a:hover, .nav-menu > li.current-menu-item > a, .nav-menu > li.current_page_item > a, .nav-menu > li.current-menu-ancestor > a { background: var(--g-light); color: var(--g1); }
.nav-menu li { position: relative; }
.nav-menu .sub-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); min-width: 210px; box-shadow: var(--sh); z-index: 300; padding: 6px; }
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu a { display: block; padding: 9px 12px; font-size: 13.5px; color: var(--ink2); border-radius: 8px; transition: var(--t); }
.nav-menu .sub-menu a:hover { background: var(--g-light); color: var(--g1); }

.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--border); padding: 7px 9px; border-radius: 8px; cursor: pointer; flex-direction: column; gap: 4px; margin-left: auto; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; }

/* ── HERO ── */
.hero { background: var(--white); padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -200px; right: -150px; width: 650px; height: 650px; background: radial-gradient(circle, rgba(16,185,129,.1) 0%, transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -120px; left: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(6,95,70,.06) 0%, transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; background: var(--g-light); color: var(--g1); font-size: 12.5px; font-weight: 600; padding: 5px 12px 5px 8px; border-radius: 20px; margin-bottom: 20px; border: 1px solid rgba(16,185,129,.25); }
.hero-eyebrow-dot { width: 20px; height: 20px; background: linear-gradient(135deg, var(--g1), var(--g2)); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.hero h1 { font-family: var(--font-h); font-size: clamp(36px, 4.5vw, 58px); font-weight: 800; color: var(--ink); line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 20px; }
.hero h1 .accent { background: linear-gradient(135deg, var(--g1), var(--g3)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 17px; color: var(--muted); line-height: 1.75; margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.hero-trust-item svg { color: var(--g2); flex-shrink: 0; }
.hero-trust-divider { width: 1px; height: 14px; background: var(--border); }

/* Hero right card */
.hero-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--sh-lg); }
.hero-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.hc-ico { width: 44px; height: 44px; background: linear-gradient(135deg, var(--g1), var(--g3)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.hc-title { font-size: 15px; font-weight: 700; color: var(--ink); font-family: var(--font-h); }
.hc-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hc-badge { margin-left: auto; background: var(--g-light); color: var(--g1); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; flex-shrink: 0; }
.svc-rows { display: flex; flex-direction: column; gap: 8px; }
.svc-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; background: var(--bg); border-radius: var(--r); border: 1px solid var(--border); transition: var(--t); cursor: pointer; }
.svc-row:hover { border-color: var(--g3); background: var(--g-light); }
.svc-ico { width: 34px; height: 34px; background: var(--white); border: 1px solid var(--border); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.svc-name { font-size: 13.5px; font-weight: 600; color: var(--ink); flex: 1; }
.svc-price { font-size: 12.5px; font-weight: 700; color: var(--g1); background: var(--g-light); padding: 3px 9px; border-radius: 8px; flex-shrink: 0; }

/* ── STATS ── */
.stats-bar { background: var(--ink); padding: 18px 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-col { text-align: center; padding: 8px 20px; border-right: 1px solid rgba(255,255,255,.08); }
.stat-col:last-child { border-right: none; }
.stat-num { font-family: var(--font-h); font-size: 28px; font-weight: 800; background: linear-gradient(135deg, var(--g3), var(--g4)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.stat-lbl { font-size: 12.5px; color: rgba(255,255,255,.45); margin-top: 4px; }

/* ── SECTIONS ── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--ink); }

.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--g1); margin-bottom: 12px; }
.eyebrow-line { width: 20px; height: 2px; background: var(--g3); border-radius: 2px; }
.section-dark .eyebrow { color: var(--g4); }
.section-dark .eyebrow-line { background: var(--g4); }

.section-title { font-family: var(--font-h); font-size: clamp(26px, 3vw, 40px); font-weight: 800; color: var(--ink); letter-spacing: -.8px; line-height: 1.15; margin-bottom: 12px; }
.section-dark .section-title { color: #fff; }
.section-desc { font-size: 16px; color: var(--muted); max-width: 520px; line-height: 1.75; }
.section-dark .section-desc { color: rgba(255,255,255,.5); }
.section-header { margin-bottom: 48px; }

/* ── BENTO SERVICES ── */
.bento { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.bento-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; position: relative; overflow: hidden; transition: .2s; }
.bento-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--g1), var(--g3)); transform: scaleX(0); transform-origin: left; transition: .25s; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.bento-card:hover { box-shadow: var(--sh); border-color: rgba(16,185,129,.3); transform: translateY(-2px); }
.bento-card:hover::after { transform: scaleX(1); }
.bento-card.dark { background: var(--ink); border-color: transparent; }
.bento-card.dark::after { background: linear-gradient(90deg, var(--g3), var(--g4)); }
.bento-card.wide { grid-column: span 2; }
.bento-icon { width: 48px; height: 48px; background: var(--g-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.bento-card.dark .bento-icon { background: rgba(255,255,255,.08); }
.bento-price { position: absolute; top: 22px; right: 22px; background: var(--g-light); color: var(--g1); font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(16,185,129,.2); }
.bento-card.dark .bento-price { background: rgba(52,211,153,.15); color: var(--g4); border-color: rgba(52,211,153,.2); }
.bento-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 9px; line-height: 1.3; font-family: var(--font-h); }
.bento-card.dark .bento-title { color: #fff; }
.bento-desc { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin-bottom: 18px; }
.bento-card.dark .bento-desc { color: rgba(255,255,255,.45); }
.bento-link { font-size: 13px; font-weight: 600; color: var(--g1); display: inline-flex; align-items: center; gap: 5px; transition: var(--t); }
.bento-link:hover { gap: 8px; }
.bento-card.dark .bento-link { color: var(--g4); }

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; position: relative; }
.steps::before { content: ''; position: absolute; top: 28px; left: calc(12.5% + 14px); right: calc(12.5% + 14px); height: 1px; background: linear-gradient(90deg, var(--g3), rgba(16,185,129,.2)); z-index: 0; }
.step { text-align: center; padding: 0 8px; position: relative; z-index: 1; }
.step-num { width: 56px; height: 56px; background: linear-gradient(135deg, var(--g1), var(--g2)); border-radius: 16px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-family: var(--font-h); font-size: 22px; font-weight: 800; color: #fff; box-shadow: 0 8px 20px rgba(6,95,70,.25); }
.step-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 7px; font-family: var(--font-h); }
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.price-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-xl); padding: 32px; position: relative; transition: .2s; display: flex; flex-direction: column; }
.price-card:hover { box-shadow: var(--sh); transform: translateY(-3px); }
.price-card.popular { border-color: var(--g1); box-shadow: 0 0 0 4px rgba(6,95,70,.06); }
.popular-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 16px; border-radius: 20px; white-space: nowrap; }
.price-icon { font-size: 32px; margin-bottom: 14px; }
.price-name { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; font-family: var(--font-h); }
.price-val { font-family: var(--font-h); font-size: 48px; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.price-card.popular .price-val { color: var(--g1); }
.price-unit { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.price-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; flex: 1; }
.pf-item { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink2); }
.pf-check { width: 18px; height: 18px; background: var(--g-light); border-radius: 5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.pf-check svg { stroke: var(--g1); }

/* ── TESTIMONIALS ── */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.testi-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-xl); padding: 24px; transition: .2s; }
.testi-card:hover { background: rgba(255,255,255,.08); }
.testi-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testi-star { width: 16px; height: 16px; background: #f59e0b; clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.testi-text { font-size: 14.5px; color: rgba(255,255,255,.7); line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 11px; }
.testi-av { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--g1), var(--g3)); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 15px; flex-shrink: 0; }
.testi-name { font-size: 14px; font-weight: 600; color: #fff; font-family: var(--font-h); }
.testi-role { font-size: 12px; color: rgba(255,255,255,.35); }

/* ── BLOG LAYOUT ── */
.archive-header { background: linear-gradient(135deg, var(--g1), var(--g2)); padding: 56px 0 48px; text-align: center; }
.archive-header .arch-label { display: inline-block; background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 12px; }
.archive-header h1 { font-size: clamp(24px,3vw,36px); font-weight: 800; color: #fff; margin-bottom: 8px; }
.archive-header p { font-size: 14px; color: rgba(255,255,255,.7); }

.blog-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 32px; padding: 48px 0 72px; }
.blog-grid { display: flex; flex-direction: column; gap: 20px; }

.post-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 240px 1fr; transition: .2s; }
.post-card:hover { box-shadow: var(--sh); border-color: rgba(16,185,129,.25); transform: translateY(-2px); }
.post-thumb { position: relative; overflow: hidden; background: var(--bg); min-height: 170px; display: flex; align-items: center; justify-content: center; }
.post-thumb-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.post-thumb-placeholder { font-size: 40px; }
.post-body { padding: 22px 24px; display: flex; flex-direction: column; }
.post-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; flex-wrap: wrap; }
.post-cat { background: var(--g-light); color: var(--g1); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.post-date, .post-readtime { font-size: 12px; color: var(--muted); }
.post-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 10px; line-height: 1.4; font-family: var(--font-h); }
.post-title a { color: inherit; }
.post-card:hover .post-title a { color: var(--g1); }
.post-excerpt { font-size: 13.5px; color: var(--muted); line-height: 1.75; flex: 1; margin-bottom: 14px; }
.post-readmore { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--g1); align-self: flex-start; transition: var(--t); }
.post-readmore:hover { gap: 8px; }

/* ── PAGE BODY (front-page + page.php) ── */
.page-body { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 32px; padding: 48px 0 72px; }

/* Article */
.article-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.article-inner { padding: 36px 40px; }

/* Entry content */
.entry-content { font-size: 16px; line-height: 1.85; color: var(--ink2); }
.entry-content p { margin-bottom: 20px; }
.entry-content strong { color: var(--ink); font-weight: 700; }
.entry-content img { border-radius: var(--r-lg); margin: 24px 0; box-shadow: var(--sh-sm); max-width: 100%; }
.entry-content h2 { font-family: var(--font-h); font-size: 22px; font-weight: 800; color: var(--ink); margin: 36px 0 14px; padding-left: 16px; border-left: 3px solid var(--g3); letter-spacing: -.3px; }
.entry-content h3 { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: var(--ink); margin: 28px 0 12px; }
.entry-content ul { margin-bottom: 20px; }
.entry-content ul li { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; font-size: 15.5px; }
.entry-content ul li::before { content: ''; width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; border-radius: 5px; background: linear-gradient(135deg, var(--g1), var(--g3)); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain; }
.entry-content ol { list-style: decimal; padding-left: 22px; margin-bottom: 20px; }
.entry-content ol li { margin-bottom: 8px; font-size: 15.5px; line-height: 1.8; }
.entry-content a { color: var(--g1); text-decoration: underline; }
.entry-content a:hover { color: var(--g2); }
.entry-content blockquote { background: var(--g-pale); border-left: 4px solid var(--g1); padding: 18px 22px; margin: 24px 0; border-radius: 0 var(--r) var(--r) 0; font-style: italic; font-size: 15.5px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.entry-content th { background: var(--g1); color: #fff; padding: 10px 14px; text-align: left; }
.entry-content td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.entry-content tr:nth-child(even) td { background: var(--bg); }

/* Special boxes */
.line-contact-box { background: var(--g-pale); border: 1px solid rgba(16,185,129,.2); border-left: 4px solid var(--g1); border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: 20px 24px; margin: 28px 0; font-size: 15px; }
.line-contact-box img { max-width: 130px; border-radius: var(--r); margin: 12px 0 6px; }
.sample-box { background: #f8fffe; border: 1px solid rgba(16,185,129,.15); border-radius: var(--r-lg); padding: 24px 28px; margin: 28px 0; font-size: 14.5px; line-height: 1.85; font-style: italic; color: var(--ink2); }
.sample-box h3 { font-style: normal; font-size: 15px; font-weight: 700; color: var(--g1); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; font-family: var(--font-h); }

/* Tags */
.post-tags-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.post-tags-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tag, a.tag { font-size: 12.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--border); padding: 5px 12px; border-radius: 20px; cursor: pointer; transition: var(--t); text-decoration: none; }
.tag:hover, a.tag:hover { background: var(--g-light); border-color: var(--g3); color: var(--g1); }

/* Recent posts in article */
.post-recent-section { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.post-recent-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 14px; font-family: var(--font-h); }
.post-recent-list { display: flex; flex-direction: column; }
.post-recent-list li a { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; font-size: 14px; color: var(--ink2); border-bottom: 1px solid var(--bg); transition: var(--t); }
.post-recent-list li:last-child a { border-bottom: none; }
.post-recent-list li a:hover { color: var(--g1); padding-left: 4px; }
.post-recent-dot { width: 6px; height: 6px; background: var(--g3); border-radius: 50%; flex-shrink: 0; margin-top: 7px; }

/* Post nav */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; padding-top: 24px; border-top: 1px solid var(--border); }
.post-nav-link { display: block; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); font-size: 13px; color: var(--ink2); transition: var(--t); line-height: 1.5; text-decoration: none; }
.post-nav-link:hover { border-color: var(--g1); color: var(--g1); background: var(--g-pale); }
.post-nav-link small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.post-nav-next { text-align: right; }

/* Single post header */
.post-header { background: linear-gradient(135deg, var(--g1), var(--g2)); padding: 56px 0 48px; text-align: center; }
.post-header-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.post-header .post-meta { justify-content: center; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-header-title { font-size: clamp(22px,3vw,36px); font-weight: 800; color: #fff; line-height: 1.25; }
.post-featured-wrap { max-width: var(--max); margin: 0 auto; padding: 32px 24px 0; }
.post-featured-img { border-radius: var(--r-xl); width: 100%; max-height: 480px; object-fit: cover; box-shadow: var(--sh-lg); }
.single-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 32px; padding: 40px 0 72px; }

/* Page banner */
.page-banner { background: linear-gradient(135deg, var(--g1), var(--g2)); padding: 60px 0 52px; text-align: center; }
.page-banner-label { display: inline-block; background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 14px; }
.page-banner h1 { font-size: clamp(24px,3.5vw,40px); font-weight: 800; color: #fff; max-width: 680px; margin: 0 auto 12px; line-height: 1.2; }
.page-banner p { font-size: 16px; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 24px; }

/* Service layout */
.service-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 32px; padding: 48px 0 72px; }
.service-body { min-width: 0; }
.service-body .entry-content h2 { font-size: 22px; }

/* Order box */
.order-box { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm); position: sticky; top: 80px; }
.order-box-head { background: linear-gradient(135deg, var(--g1), var(--g2)); padding: 24px; }
.order-box-head h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; font-family: var(--font-h); }
.order-box-price { font-family: var(--font-h); font-size: 38px; font-weight: 800; color: #fff; line-height: 1; }
.order-box-unit { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 3px; }
.order-box-body { padding: 22px; }
.order-feature { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 11px; font-size: 13.5px; color: var(--ink2); }
.order-feature::before { content: '✓'; color: var(--g2); font-weight: 700; flex-shrink: 0; }
.order-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.order-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.6; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; align-self: start; min-width: 0; }
.sidebar-cta { background: linear-gradient(160deg, var(--g1), var(--g2)); border-radius: var(--r-xl); padding: 24px 20px; text-align: center; }
.sidebar-cta h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 7px; font-family: var(--font-h); }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 18px; line-height: 1.6; }
.sidebar-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 20px; }
.sidebar-box-title { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 14px; padding-bottom: 11px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; font-family: var(--font-h); }
.sidebar-box-title::before { content: ''; width: 3px; height: 14px; background: var(--g2); border-radius: 2px; flex-shrink: 0; }
.sb-links { display: flex; flex-direction: column; gap: 4px; }
.sb-link { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; font-size: 13px; color: var(--ink2); transition: var(--t); text-decoration: none; }
.sb-link:hover { background: var(--g-light); color: var(--g1); }
.sb-link-ico { font-size: 16px; flex-shrink: 0; }
.sb-arrow { margin-left: auto; color: var(--muted); font-size: 14px; }
.sb-link:hover .sb-arrow { color: var(--g1); }
.qr-box { text-align: center; padding: 4px 0 8px; }
.qr-box img { max-width: 110px; margin: 0 auto 8px; border-radius: var(--r); }
.qr-box p { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* Recent posts in sidebar */
.recent-list-items { display: flex; flex-direction: column; gap: 0; }
.recent-item a { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; font-size: 13px; color: var(--ink2); border-bottom: 1px solid var(--bg); transition: var(--t); }
.recent-item:last-child a { border-bottom: none; }
.recent-item a:hover { color: var(--g1); padding-left: 4px; }
.recent-dot { width: 5px; height: 5px; background: var(--g3); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.recent-date { font-size: 11px; color: var(--muted); padding-left: 14px; padding-bottom: 4px; }

/* Tag cloud in sidebar */
.tag-cloud-wrap { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── NO RESULTS / SEARCH ── */
.no-results { text-align: center; padding: 64px 20px; }
.no-results-icon { font-size: 52px; margin-bottom: 14px; }
.no-results-title { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.no-results p { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.search-form { display: flex; border: 2px solid var(--border); border-radius: var(--r-lg); overflow: hidden; max-width: 440px; margin: 0 auto 24px; transition: var(--t); }
.search-form:focus-within { border-color: var(--g1); }
.search-field { flex: 1; padding: 12px 16px; border: none; outline: none; font-family: var(--font); font-size: 14.5px; color: var(--ink); background: var(--white); }
.search-submit { padding: 10px 18px; background: var(--g1); border: none; cursor: pointer; color: #fff; font-size: 15px; transition: var(--t); }
.search-submit:hover { background: var(--g2); }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.pagination .page-numbers { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); border-radius: var(--r); font-size: 13.5px; color: var(--muted); transition: var(--t); padding: 0 10px; text-decoration: none; font-family: var(--font-h); }
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: var(--g1); color: #fff; border-color: var(--g1); font-weight: 700; }

/* ── 404 ── */
.error-wrap { min-height: 55vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 72px 20px; }
.error-code { font-family: var(--font-h); font-size: 120px; font-weight: 800; color: var(--bg); line-height: 1; letter-spacing: -4px; margin-bottom: 12px; }
.error-title { font-size: 28px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.error-desc { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }

/* ── COMMENTS ── */
.comments-area { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.comments-title { font-size: 18px; font-weight: 800; margin-bottom: 22px; font-family: var(--font-h); }
.comment-body { background: var(--bg); border-radius: var(--r); padding: 16px 20px; margin-bottom: 16px; }
.comment-author .fn { font-weight: 700; font-size: 14px; }
.comment-metadata { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.comment-content p { font-size: 14px; line-height: 1.75; }
.comment-respond { background: var(--bg); border-radius: var(--r-lg); padding: 24px; margin-top: 24px; }
.comment-reply-title { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--r); font-family: var(--font); font-size: 14px; background: var(--white); margin-bottom: 12px; transition: var(--t); outline: none; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--g1); }
.comment-form .submit { background: var(--g1); color: #fff; padding: 10px 24px; border: none; border-radius: var(--r); font-weight: 700; font-size: 14px; cursor: pointer; transition: var(--t); display: inline-flex; align-items: center; }
.comment-form .submit:hover { background: var(--g2); }

/* ── CTA BAND ── */
.cta-band { background: linear-gradient(135deg, var(--g1) 0%, #065f46 50%, #047857 100%); padding: 72px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E"); }
.cta-inner { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--font-h); font-size: clamp(26px,3.5vw,44px); font-weight: 800; color: #fff; letter-spacing: -1px; margin-bottom: 12px; }
.cta-band p { font-size: 17px; color: rgba(255,255,255,.7); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.site-footer { background: #0a0f0d; padding-top: 56px; }
.site-footer::before { content: ''; display: block; height: 1px; background: linear-gradient(90deg, transparent, var(--g2), transparent); margin-bottom: 56px; }
.footer-grid { display: grid; grid-template-columns: 270px 1fr 1fr; gap: 44px; padding-bottom: 44px; }
.footer-brand-name { font-family: var(--font-h); font-size: 17px; font-weight: 800; color: #fff; margin: 12px 0 10px; }
.footer-desc { font-size: 13.5px; color: rgba(255,255,255,.28); line-height: 1.8; margin-bottom: 20px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-ci { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255,255,255,.35); }
.fc-l { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.18); min-width: 44px; }
.footer-ci a { color: rgba(255,255,255,.35); transition: var(--t); }
.footer-ci a:hover { color: var(--g4); }
.footer-col-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,.28); display: flex; align-items: center; gap: 6px; transition: var(--t); }
.footer-links a::before { content: '›'; color: var(--g2); font-size: 14px; }
.footer-links a:hover { color: rgba(255,255,255,.65); padding-left: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.05); padding: 18px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-copy, .footer-pw { font-size: 12px; color: rgba(255,255,255,.2); }
.footer-pw a { color: var(--g2); }

/* ── FLOAT BUTTONS ── */
.float-buttons { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.float-btn { display: flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 14px; font-size: 13.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 20px rgba(0,0,0,.2); transition: .2s; text-decoration: none; }
.float-btn-line { background: #06C755; color: #fff; }
.float-btn-line:hover { background: #05a847; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(6,199,85,.3); }
.float-btn-phone { background: var(--g1); color: #fff; }
.float-btn-phone:hover { background: var(--g2); color: #fff; transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .blog-layout, .single-layout, .page-body, .service-layout { grid-template-columns: 1fr; }
  .order-box, .sidebar { position: static; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px; }
  .steps::before { display: none; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; flex-direction: column; flex-wrap: nowrap; position: absolute; top: 64px; left: 0; right: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 12px 20px; z-index: 99; }
  .nav-menu.is-open { display: flex; }
  .nav-menu > li > a { padding: 11px 0; border-bottom: 1px solid var(--bg); border-radius: 0; font-size: 15px; }
  .nav-menu .sub-menu { display: none !important; }
  .menu-toggle { display: flex; }
  .nav-right .btn-ghost { display: none; }
  .post-card { grid-template-columns: 1fr; }
  .post-thumb { min-height: 180px; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .testi-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-col:nth-child(2) { border-right: none; }
  .stat-col:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
  .sidebar { grid-template-columns: 1fr; }
  .float-buttons { bottom: 14px; right: 14px; }
  .float-btn { font-size: 12.5px; padding: 9px 14px; }
  .article-inner { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { letter-spacing: -1px; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .section { padding: 56px 0; }
  .cta-band { padding: 52px 0; }
  .cta-btns { flex-direction: column; align-items: center; }
  .steps { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .error-actions { flex-direction: column; }
}
