/*
Theme Name: Elteni Insights
Author: Elteni
Description: Custom editorial theme matching the Elteni website.
Version: 1.0.0
Text Domain: elteni-insights
*/

:root {
  --ink: #071827;
  --navy: #06131f;
  --green: #79d155;
  --paper: #f4f8f9;
  --white: #fff;
  --muted: #60727d;
  --line: #cfdbdf;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: auto; }

.top { background: #03101a; color: #bdccd4; font-size: .82rem; }
.top .wrap { height: 34px; display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid #dfe8eb; }
.site-nav { height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: auto; height: 46px; }
.navlinks { display: flex; align-items: center; gap: 27px; margin-left: auto; font-size: .9rem; font-weight: 700; }
.navlinks a:hover, .navlinks .current { color: #347552; }
.navcta, .button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; background: var(--green); color: var(--ink); font-weight: 800; font-size: .88rem; }
.menu-toggle { display: none; margin-left: auto; border: 0; background: none; font-size: 1.5rem; }

.insights-hero { padding: 90px 0 74px; background: var(--navy); color: var(--white); }
.eyebrow { color: #3d7b5a; font-size: .77rem; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.insights-hero .eyebrow { color: var(--green); }
.insights-hero h1 { max-width: 850px; margin: 12px 0 22px; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1.02; letter-spacing: -.045em; }
.insights-hero p { max-width: 760px; color: #c2d1d8; font-size: 1.18rem; }
.section { padding: 90px 0; }
.section.soft { background: var(--paper); }
.section-title { margin: 10px 0 34px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.04em; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; min-height: 360px; flex-direction: column; border: 1px solid var(--line); background: var(--white); }
.post-card-image { aspect-ratio: 16 / 9; overflow: hidden; background: #dfe8eb; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 27px; }
.post-meta { color: #4c8363; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.post-card h2 { margin: 16px 0 12px; font-size: 1.35rem; line-height: 1.25; }
.post-card p { margin: 0; color: var(--muted); }
.post-card .read-more { margin-top: auto; padding-top: 22px; color: #357a55; font-weight: 800; }
.pagination { margin-top: 44px; }
.pagination .page-numbers { display: inline-block; margin-right: 6px; padding: 8px 13px; border: 1px solid var(--line); }
.pagination .current { background: var(--navy); color: var(--white); }

.article-header { padding: 82px 0 55px; background: var(--navy); color: var(--white); }
.article-header h1 { max-width: 940px; margin: 15px 0 22px; font-size: clamp(2.35rem, 5vw, 4.6rem); line-height: 1.06; letter-spacing: -.045em; }
.article-header .post-meta { color: var(--green); }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 80px; align-items: start; }
.article-content { font-size: 1.08rem; }
.article-content h2, .article-content h3 { line-height: 1.2; }
.article-content h2 { margin-top: 2.2em; font-size: 2rem; }
.article-content h3 { margin-top: 1.8em; font-size: 1.4rem; }
.article-content a { color: #2d734d; text-decoration: underline; }
.article-content blockquote { margin: 34px 0; padding: 5px 0 5px 25px; border-left: 4px solid var(--green); font-size: 1.25rem; }
.article-content .wp-block-image { margin: 35px 0; }
.sidebar { padding: 26px; background: var(--paper); }
.sidebar h2 { margin-top: 0; font-size: 1.25rem; }
.sidebar ul { margin: 0; padding-left: 18px; }
.author-box { margin-top: 50px; padding: 28px; border-top: 4px solid var(--green); background: var(--paper); }
.author-box h2 { margin: 0 0 8px; font-size: 1.25rem; }
.cta { padding: 70px 0; background: var(--green); }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.cta h2 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; }
.cta .button { background: var(--navy); color: var(--white); }

.site-footer { padding: 65px 0 30px; background: #03101a; color: #a9bdc6; }
.footer-grid { display: grid; grid-template-columns: minmax(260px,1.5fr) repeat(3,minmax(135px,1fr)); gap: 40px; }
.site-footer .brand { margin-bottom: 20px; padding: 10px 14px; border-radius: 3px; background: var(--white); }
.site-footer .brand img { height: 48px; }
.site-footer h2 { margin: 0 0 17px; color: var(--white); font-size: 1rem; }
.site-footer a { display: block; margin: 8px 0; }
.site-footer a:hover { color: var(--green); }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 38px; font-size: .83rem; }
.legal-links a, .legal-links button { display: inline; margin: 0; padding: 0; border: 0; background: none; color: #a9bdc6; font: inherit; cursor: pointer; }
.legal-links a:hover, .legal-links button:hover { color: var(--green); }
.copyright { display: flex; justify-content: space-between; gap: 24px; margin-top: 50px; padding-top: 25px; border-top: 1px solid #233b47; font-size: .8rem; }

@media (max-width: 880px) {
  .navlinks { display: none; position: absolute; top: 78px; right: 0; left: 0; flex-direction: column; align-items: flex-start; padding: 25px 20px; background: var(--white); border-bottom: 1px solid var(--line); }
  .navlinks.open { display: flex; }
  .menu-toggle { display: block; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 45px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 580px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .top { display: none; }
  .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .insights-hero, .article-header { padding: 64px 0 55px; }
  .copyright { flex-direction: column; }
}
