/*
Theme Name: Organic Knowledge Myanmar
Theme URI: https://drmyintlwin.com/
Author: App.com.mm
Description: Mobile-first WordPress theme for Myanmar organic agriculture knowledge sharing.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: okm
*/

:root{--okm-green:#2f6f3e;--okm-green-2:#4f8a5b;--okm-earth:#8a6a43;--okm-bg:#f7f8f3;--okm-card:#fff;--okm-text:#1f2a22;--okm-muted:#66736a;--okm-border:#e5e9e3;--okm-radius:18px;--okm-shadow:0 8px 24px rgba(31,42,34,.07)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--okm-bg);color:var(--okm-text);font-family:system-ui,-apple-system,"Noto Sans Myanmar","Myanmar Text",sans-serif;line-height:1.7;font-size:16px}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:min(1120px,calc(100% - 28px));margin:auto}
.site-header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);border-bottom:1px solid var(--okm-border)}
.header-inner{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{font-weight:800;color:var(--okm-green);font-size:1.05rem}
.brand small{display:block;font-size:.72rem;color:var(--okm-muted);font-weight:600}
.desktop-nav{display:none;gap:20px;align-items:center}
.desktop-nav a{font-weight:650;color:#37443b;position:relative;padding:9px 2px;transition:color .2s ease}
.desktop-nav a:hover,.desktop-nav a:focus-visible{color:var(--okm-green)}
.desktop-nav a::after{content:"";position:absolute;left:0;right:100%;bottom:4px;height:2px;background:var(--okm-green);transition:right .2s ease}
.desktop-nav a:hover::after,.desktop-nav a:focus-visible::after{right:0}
.hero{padding:34px 0 20px}
.hero-card{background:linear-gradient(145deg,#fff,#eef5ea);border:1px solid var(--okm-border);border-radius:28px;padding:26px;box-shadow:var(--okm-shadow)}
.hero-card.hero-split{display:grid;gap:0;padding:18px;overflow:hidden}
.hero-copy{min-width:0}
.eyebrow{display:inline-flex;padding:6px 10px;border-radius:999px;background:#e9f3e8;color:var(--okm-green);font-size:.78rem;font-weight:800}
.hero h1{font-size:clamp(1.8rem,7vw,3.5rem);line-height:1.25;margin:14px 0 10px}
.hero-split h1{font-size:clamp(1.75rem,4.4vw,3rem);line-height:1.3}
.hero p{color:var(--okm-muted);margin:0 0 18px;max-width:720px}
.hero-visual{position:relative;margin:22px 0 0;border-radius:20px;overflow:hidden;aspect-ratio:16/10;background:#dfe9da}
.hero-visual img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero-visual figcaption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hero-points{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.hero-points span{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border:1px solid #d8e4d5;border-radius:999px;background:rgba(255,255,255,.78);color:#45604b;font-size:.78rem;font-weight:700}
.btn-row{display:flex;flex-wrap:wrap;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 16px;border-radius:14px;background:var(--okm-green);color:#fff;font-weight:800}
.btn.secondary{background:#fff;color:var(--okm-green);border:1px solid #cfdbd0}
.section{padding:24px 0}
.section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:14px}
.section-title h2{margin:0;font-size:1.35rem}
.section-title p{margin:0;color:var(--okm-muted);font-size:.9rem}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.card{background:var(--okm-card);border:1px solid var(--okm-border);border-radius:var(--okm-radius);padding:16px;box-shadow:0 3px 12px rgba(31,42,34,.04)}
.card-icon{font-size:1.7rem}
.card h3{font-size:1rem;margin:8px 0 4px;line-height:1.4}
.card p{font-size:.86rem;color:var(--okm-muted);margin:0}
.article-grid{display:grid;grid-template-columns:1fr;gap:14px}
.article-card{display:grid;grid-template-columns:100px 1fr;gap:14px;padding:12px;background:#fff;border:1px solid var(--okm-border);border-radius:18px}
.article-card .thumb{background:#edf3eb;border-radius:14px;min-height:92px;overflow:hidden}
.article-card .thumb img{width:100%;height:100%;object-fit:cover}
.article-card h3{font-size:1rem;line-height:1.45;margin:2px 0 6px}
.meta{font-size:.78rem;color:var(--okm-muted)}
.search-box{display:flex;gap:8px;background:#fff;border:1px solid var(--okm-border);padding:8px;border-radius:16px}
.search-box input{flex:1;border:0;outline:0;font-size:1rem;padding:8px;background:transparent}
.search-box button{border:0;background:var(--okm-green);color:#fff;border-radius:12px;padding:0 16px;font-weight:800}
.content-wrap{padding:28px 0 110px}
.content-card{background:#fff;border:1px solid var(--okm-border);border-radius:22px;padding:20px}
.content-card h1{line-height:1.35}
.content-card h2,.content-card h3{line-height:1.45}
.content-card p{margin:0 0 1em}
.post-list{display:grid;gap:14px}
.site-footer{padding:30px 0 90px;color:var(--okm-muted);font-size:.88rem}
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:50;background:#fff;border-top:1px solid var(--okm-border);display:grid;grid-template-columns:repeat(5,1fr);padding:7px 6px calc(7px + env(safe-area-inset-bottom))}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;font-size:.68rem;color:#59655d}
.bottom-nav span{font-size:1.15rem}
.empty{padding:24px;text-align:center;color:var(--okm-muted)}
.btn,.card,.article-card,.bottom-nav a{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.btn:hover,.btn:focus-visible{transform:translateY(-1px);box-shadow:0 8px 20px rgba(47,111,62,.18)}
.card:hover,.card:focus-visible,.article-card:hover,.article-card:focus-visible{transform:translateY(-2px);border-color:#cbdacb;box-shadow:0 10px 24px rgba(31,42,34,.09)}
.card:focus-visible,.article-card:focus-visible,.btn:focus-visible,.desktop-nav a:focus-visible,.bottom-nav a:focus-visible{outline:3px solid rgba(47,111,62,.28);outline-offset:3px}
.bottom-nav a:hover,.bottom-nav a:focus-visible{color:var(--okm-green)}
@media (min-width:760px){
  body{font-size:17px}
  .desktop-nav{display:flex}
  .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
  .article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bottom-nav{display:none}
  .site-footer{padding-bottom:30px}
  .content-wrap{padding-bottom:40px}
  .hero-card{padding:42px}
  .article-card{grid-template-columns:130px 1fr}
}
@media (min-width:900px){
  .hero-card.hero-split{grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr);align-items:stretch;padding:20px}
  .hero-copy{display:flex;flex-direction:column;justify-content:center;padding:22px}
  .hero-visual{margin:0;min-height:410px;aspect-ratio:auto;border-radius:22px}
  .hero-split h1{font-size:clamp(2.35rem,3.4vw,3.2rem)}
}
@media (max-width:480px){
  .container{width:min(100% - 20px,1120px)}
  .hero{padding-top:20px}
  .hero-card.hero-split{padding:15px;border-radius:22px}
  .hero-split h1{font-size:1.72rem}
  .btn-row{display:grid;grid-template-columns:1fr}
  .btn{width:100%}
  .search-box{flex-direction:column}
  .search-box button{min-height:44px}
  .section{padding:20px 0}
  .card{padding:14px}
  .bottom-nav a{font-size:.66rem}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn,.card,.article-card,.bottom-nav a,.desktop-nav a,.desktop-nav a::after{transition:none}
}

/* Myanmar typography rhythm */
body{line-height:1.75}
p,li{line-height:1.82}
.hero h1,.hero-split h1{line-height:1.5}
.hero p{line-height:1.85}
.desktop-nav a,.btn,.hero-points span{line-height:1.6}
.section-title h2{line-height:1.55}
.section-title p,.card p,.meta,.empty,.site-footer{line-height:1.78}
.card h3,.article-card h3{line-height:1.65}
.search-box input,.search-box button{line-height:1.6}
.content-card h1{line-height:1.58}
.content-card h2,.content-card h3{line-height:1.68}
.content-card p{line-height:1.85}
.bottom-nav a{line-height:1.55}
@media (max-width:480px){
  .hero h1,.hero-split h1{line-height:1.55}
}

/* Section heading icon alignment */
.section-heading{display:grid;grid-template-columns:2.2rem minmax(0,1fr);column-gap:10px;align-items:start}
.section-icon{display:flex;align-items:flex-start;justify-content:center;font-size:1.5rem;line-height:1.55;padding-top:.02em}
.section-copy{min-width:0}
.section-copy h2{margin:0}
.section-copy p{margin:2px 0 0}
@media (max-width:480px){
  .section-heading{grid-template-columns:1.9rem minmax(0,1fr);column-gap:8px}
  .section-icon{font-size:1.35rem}
}
