/*
Theme Name: Jurinta
Theme URI: https://example.com/jurinta
Author: Jurinta Editorial
Author URI: https://example.com
Description: A responsive WordPress editorial theme with mobile layout refinements and performance improvements.
Version: 2.1.0
Requires at least: 6.0
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: jurinta
Tags: blog, news, editorial, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --j-ink: #111d2b;
  --j-ink-2: #192a3e;
  --j-blue: #8ebbe8;
  --j-accent: #3d83c5;
  --j-text: #1d2937;
  --j-muted: #687789;
  --j-line: #e6ebf0;
  --j-bg: #f5f7fa;
  --j-white: #fff;
  --j-radius: 18px;
  --j-shadow: 0 12px 36px rgba(20, 39, 60, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; color:var(--j-text); background:var(--j-bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height:1.7; }
a { color:var(--j-accent); text-decoration:none; }
a:hover { color:#205b91; }
img { max-width:100%; height:auto; }
button, input { font:inherit; }
.site-shell { min-height:100vh; display:flex; flex-direction:column; }
.container { width:min(1160px, calc(100% - 40px)); margin-inline:auto; }
.topbar { background:#0c1724; color:#b7c6d5; font-size:12px; letter-spacing:.04em; }
.topbar-inner { min-height:34px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.topbar a { color:#c9d7e5; }
.site-header { background:var(--j-ink); color:white; position:relative; z-index:10; }
.header-main { min-height:106px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.brand { display:flex; align-items:center; gap:14px; color:white; min-width:220px; }
.custom-logo { max-height:58px; width:auto; }
.brand-mark { width:48px; height:48px; display:grid; place-items:center; border:1px solid rgba(166,202,238,.45); border-radius:14px; color:#b9d8f5; font-size:22px; font-weight:800; letter-spacing:-.08em; }
.brand-name { display:block; font-size:26px; line-height:1.1; font-weight:800; letter-spacing:-.045em; color:#fff; }
.brand-tag { display:block; margin-top:5px; font-size:10px; font-weight:700; letter-spacing:.17em; color:#9dbbd8; }
.header-actions { display:flex; align-items:center; gap:14px; }
.header-search { display:flex; align-items:center; border:1px solid rgba(255,255,255,.2); border-radius:999px; padding:5px 6px 5px 14px; }
.header-search input { width:150px; color:white; border:0; outline:0; background:transparent; font-size:13px; }
.header-search input::placeholder { color:#aab8c7; }
.header-search button { border:0; background:#d7e9fa; color:#142438; width:32px; height:32px; border-radius:50%; cursor:pointer; }
.menu-toggle { display:none; border:1px solid rgba(255,255,255,.25); background:transparent; color:white; border-radius:9px; padding:9px 12px; }
.primary-nav { border-top:1px solid rgba(255,255,255,.1); }
.primary-nav .menu, .primary-nav ul { list-style:none; padding:0; margin:0; display:flex; align-items:center; gap:0; }
.primary-nav li { position:relative; }
.primary-nav a { display:block; padding:14px 17px; color:#d9e3ed; font-size:13px; font-weight:650; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color:white; background:rgba(255,255,255,.08); }
.hero { background:linear-gradient(90deg, rgba(10,22,36,.97) 0%, rgba(14,31,49,.88) 43%, rgba(18,44,68,.50) 100%), url("assets/images/jurinta-hero.jpg") center/cover no-repeat; color:white; overflow:hidden; position:relative; }
.hero:after { content:""; position:absolute; width:440px; height:440px; border:1px solid rgba(164,203,241,.13); border-radius:50%; right:-90px; top:-230px; box-shadow:0 0 0 48px rgba(164,203,241,.035), 0 0 0 96px rgba(164,203,241,.025); }
.hero-inner { min-height:410px; padding:74px 0 68px; display:grid; grid-template-columns:1.35fr .65fr; gap:55px; align-items:center; position:relative; z-index:1; }
.eyebrow { display:inline-flex; align-items:center; gap:9px; color:#a9c9e9; font-size:11px; font-weight:800; letter-spacing:.18em; text-transform:uppercase; }
.eyebrow:before { content:""; width:25px; height:2px; background:#79b4ed; }
.hero h1 { margin:18px 0 15px; max-width:720px; font-size:clamp(36px, 5vw, 59px); line-height:1.08; letter-spacing:-.055em; color:#fff; }
.hero p { max-width:650px; color:#c1cfdd; font-size:16px; margin:0 0 27px; }
.button-primary { display:inline-flex; align-items:center; gap:10px; border-radius:999px; padding:13px 21px; background:#dceeff; color:#13263a; font-size:13px; font-weight:800; box-shadow:0 8px 22px rgba(0,0,0,.12); }
.button-primary:hover { color:#13263a; background:white; transform:translateY(-1px); }
.hero-panel { padding:27px; border:1px solid rgba(192,218,242,.23); background:rgba(255,255,255,.055); backdrop-filter:blur(8px); border-radius:20px; }
.hero-panel .panel-kicker { color:#9dbbd8; font-size:10px; letter-spacing:.17em; font-weight:800; text-transform:uppercase; }
.hero-panel h2 { color:white; font-size:22px; line-height:1.25; margin:12px 0 18px; }
.hero-stat { display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-top:1px solid rgba(255,255,255,.12); color:#c7d4e1; font-size:12px; }
.hero-stat strong { color:white; font-size:14px; }
.topic-strip { background:white; border-bottom:1px solid var(--j-line); }
.topic-strip-inner { display:flex; align-items:center; gap:10px; overflow:auto; padding:15px 0; white-space:nowrap; }
.topic-label { color:#8995a3; font-size:10px; letter-spacing:.13em; font-weight:800; margin-right:8px; }
.topic-chip { border:1px solid #e3eaf1; color:#425369; border-radius:999px; padding:7px 13px; font-size:11px; font-weight:700; }
.topic-chip:hover { border-color:#a8c9e9; background:#f3f8fd; }
.section { padding:65px 0; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:25px; }
.section-kicker { color:#4384bf; font-size:10px; letter-spacing:.17em; text-transform:uppercase; font-weight:800; }
.section-title { margin:5px 0 0; color:#172638; font-size:clamp(25px,3vw,34px); letter-spacing:-.045em; line-height:1.15; }
.section-link { font-size:12px; font-weight:800; }
.feature-grid { display:grid; grid-template-columns:1.25fr .75fr; gap:22px; }
.post-card { background:white; border:1px solid var(--j-line); border-radius:var(--j-radius); overflow:hidden; box-shadow:0 5px 20px rgba(20,39,60,.035); transition:transform .2s, box-shadow .2s; }
.post-card:hover { transform:translateY(-3px); box-shadow:var(--j-shadow); }
.post-thumb { display:block; background:linear-gradient(135deg,#dce8f3,#a9c5df); aspect-ratio:16/9; overflow:hidden; }
.post-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s; }
.post-card:hover .post-thumb img { transform:scale(1.035); }
.thumb-placeholder { height:100%; min-height:150px; display:grid; place-items:center; color:#587b9c; font-size:42px; background:radial-gradient(circle at 70% 30%,#f7fbff,#c9dced); }
.post-body { padding:22px; }
.post-meta { display:flex; flex-wrap:wrap; gap:10px; align-items:center; color:#8793a1; font-size:10px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.post-category { color:#397eb9; }
.post-title { margin:10px 0 9px; font-size:21px; line-height:1.27; letter-spacing:-.035em; }
.post-title a { color:#192a3d; }
.post-title a:hover { color:#357cb7; }
.post-excerpt { margin:0; color:#697889; font-size:13px; line-height:1.7; }
.feature-main .post-title { font-size:27px; }
.feature-main .post-body { padding:25px 27px 28px; }
.side-feature-list { display:grid; gap:15px; }
.side-feature { display:grid; grid-template-columns:112px 1fr; gap:14px; background:white; border:1px solid var(--j-line); border-radius:14px; overflow:hidden; padding:9px; }
.side-feature .post-thumb { aspect-ratio:1/1; border-radius:9px; }
.side-feature .thumb-placeholder { min-height:100px; font-size:26px; }
.side-feature .post-body { padding:5px 5px 5px 0; }
.side-feature .post-title { font-size:15px; margin:6px 0 0; }
.category-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.category-card { background:white; border:1px solid var(--j-line); border-radius:16px; padding:22px; transition:.2s; }
.category-card:hover { transform:translateY(-3px); border-color:#bfd5e9; box-shadow:var(--j-shadow); }
.category-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; background:#edf5fc; color:#397eb9; font-size:19px; margin-bottom:15px; }
.category-card h3 { margin:0 0 6px; color:#1b2b3d; font-size:16px; }
.category-card p { margin:0; color:#788695; font-size:12px; }
.latest-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.newsletter { background:linear-gradient(115deg,#142438,#1e3c59); color:white; border-radius:22px; padding:38px; display:flex; justify-content:space-between; align-items:center; gap:28px; }
.newsletter h2 { color:white; margin:0 0 7px; font-size:25px; letter-spacing:-.04em; }
.newsletter p { margin:0; color:#bdcbd9; font-size:13px; }
.newsletter-note { color:#9dbbd8; font-size:11px; max-width:230px; }
.page-wrap { padding:48px 0 70px; }
.content-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:36px; align-items:start; }
.page-title { font-size:36px; line-height:1.15; letter-spacing:-.05em; margin:0 0 25px; color:#172638; }
.archive-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.sidebar-widget { background:white; border:1px solid var(--j-line); border-radius:15px; padding:22px; margin-bottom:18px; }
.sidebar-widget h2 { margin:0 0 15px; font-size:14px; color:#1b2b3d; }
.sidebar-widget ul { margin:0; padding-left:18px; color:#6b7b8b; font-size:13px; }
.sidebar-widget li { margin:8px 0; }
.entry { background:white; border:1px solid var(--j-line); border-radius:20px; overflow:hidden; }
.entry-header { padding:34px 40px 15px; }
.entry-title { font-size:clamp(30px,4vw,46px); line-height:1.12; letter-spacing:-.055em; color:#172638; margin:13px 0; }
.entry-content { padding:10px 40px 42px; font-size:16px; line-height:1.85; color:#344456; }
.entry-content h2,.entry-content h3 { color:#172638; line-height:1.25; letter-spacing:-.03em; margin-top:1.7em; }
.entry-content img { border-radius:12px; }
.entry-content blockquote { margin:25px 0; padding:8px 22px; border-left:3px solid #6fa6d7; color:#52677d; background:#f4f8fc; }
.entry-content table { border-collapse:collapse; width:100%; font-size:14px; }
.entry-content td,.entry-content th { border:1px solid var(--j-line); padding:10px; text-align:left; }
.pagination { display:flex; gap:8px; margin-top:28px; }
.pagination .page-numbers { padding:8px 13px; background:white; border:1px solid var(--j-line); border-radius:9px; font-size:12px; }
.pagination .current { background:var(--j-ink); color:white; }
.site-footer { margin-top:auto; background:#0d1825; color:#aab8c7; padding:48px 0 22px; }
.footer-grid { display:grid; grid-template-columns:1.3fr .7fr .7fr; gap:40px; padding-bottom:35px; }
.footer-brand { color:white; font-size:24px; font-weight:850; letter-spacing:-.05em; }
.footer-copy { max-width:390px; color:#9eacbb; font-size:12px; }
.footer-title { color:#eaf1f8; font-size:12px; font-weight:800; margin:4px 0 14px; letter-spacing:.08em; text-transform:uppercase; }
.footer-links { display:grid; gap:9px; font-size:12px; }
.footer-links a { color:#aab8c7; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:18px; display:flex; justify-content:space-between; gap:20px; font-size:11px; color:#7f8d9c; }
.screen-reader-text { position:absolute; left:-9999px; }
@media (max-width:900px) {
 .hero-inner { grid-template-columns:1fr; gap:30px; padding:58px 0; }
 .hero-panel { max-width:520px; }
 .feature-grid { grid-template-columns:1fr; }
 .side-feature-list { grid-template-columns:repeat(2,1fr); }
 .content-layout { grid-template-columns:1fr; }
 .sidebar { display:grid; grid-template-columns:repeat(2,1fr); gap:15px; }
 .sidebar-widget { margin:0; }
}
@media (max-width:680px) {
 .container { width:min(100% - 28px,1160px); }
 .topbar-inner { justify-content:center; }
 .header-main { min-height:82px; }
 .brand-name { font-size:22px; }
 .brand-mark { width:40px; height:40px; }
 .brand-tag { font-size:8px; }
 .header-search { display:none; }
 .menu-toggle { display:block; }
 .primary-nav { display:none; }
 .primary-nav.is-open { display:block; }
 .primary-nav .menu,.primary-nav ul { display:block; padding:7px 0; }
 .primary-nav a { padding:11px 4px; }
 .hero-inner { min-height:0; padding:52px 0; }
 .hero h1 { font-size:39px; }
 .hero p { font-size:14px; }
 .hero-panel { padding:21px; }
 .section { padding:46px 0; }
 .section-head { align-items:start; flex-direction:column; }
 .side-feature-list { grid-template-columns:1fr; }
 .category-grid,.latest-grid,.archive-grid { grid-template-columns:1fr; }
 .newsletter { padding:27px; display:block; }
 .newsletter-note { margin-top:15px; }
 .page-wrap { padding:32px 0 50px; }
 .page-title { font-size:30px; }
 .entry-header { padding:25px 22px 10px; }
 .entry-content { padding:5px 22px 30px; font-size:15px; }
 .sidebar { display:block; }
 .sidebar-widget { margin-bottom:15px; }
 .footer-grid { grid-template-columns:1fr; gap:24px; }
 .footer-bottom { flex-direction:column; }
}

/* Editorial refinements */
.post-meta a { color:inherit; }
.entry-content a { text-decoration:underline; text-underline-offset:3px; }
.entry-content h2 { font-size:27px; }
.entry-content h3 { font-size:21px; }
.entry-content ul, .entry-content ol { padding-left:24px; }
.entry-content li { margin:7px 0; }

.jurinta-contact-form { max-width:680px; margin:24px 0; }
.jurinta-contact-form label { display:block; font-size:13px; font-weight:700; color:#24364a; margin-bottom:6px; }
.jurinta-contact-form input, .jurinta-contact-form textarea { width:100%; border:1px solid #dce4ec; border-radius:10px; padding:12px 13px; background:#fff; color:#1d2937; }
.jurinta-contact-form p { margin:0 0 16px; }
.jurinta-contact-form button { border:0; cursor:pointer; }
.jurinta-honeypot { position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; }
.jurinta-form-success { padding:12px 15px; border-radius:10px; background:#edf8f1; color:#1e6b3c; }
.jurinta-form-error { padding:12px 15px; border-radius:10px; background:#fff1f0; color:#9a2e25; }


/* Mobile-first stability and performance refinements (v2.1.0). */
.container,
.hero-inner,
.feature-grid > *,
.latest-grid > *,
.category-grid > *,
.content-layout > * {
  min-width: 0;
}

/* Keep media dimensions reserved before image files finish downloading. */
.post-thumb {
  aspect-ratio: 16 / 9;
  contain: layout paint;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.side-feature .post-thumb {
  aspect-ratio: 1 / 1;
}
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
}
.custom-logo {
  display: block;
  max-width: min(100%, 240px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .container { width: min(100% - 36px, 1160px); }
  .category-grid,
  .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary-nav .menu,
  .primary-nav ul { flex-wrap: wrap; }
  .hero-inner { gap: 28px; }
  .hero-panel { backdrop-filter: none; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 28px); }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-inner span:last-child { display: none; }
  .header-main { min-height: 72px; gap: 10px; }
  .brand { min-width: 0; gap: 9px; flex: 1 1 auto; }
  .brand-name { font-size: clamp(18px, 5vw, 22px); overflow-wrap: anywhere; }
  .brand-tag { font-size: 8px; letter-spacing: .1em; }
  .custom-logo { max-width: min(48vw, 190px); max-height: 48px; }
  .header-actions { flex: 0 0 auto; gap: 8px; }
  .menu-toggle { min-height: 42px; padding: 8px 11px; }
  .primary-nav .menu,
  .primary-nav ul { display: block; }
  .primary-nav a { padding: 12px 4px; }
  .hero-inner { padding: 42px 0; }
  .hero h1 { font-size: clamp(31px, 9vw, 39px); overflow-wrap: anywhere; }
  .hero p { font-size: 14px; }
  .hero-panel { padding: 19px; }
  .topic-strip-inner { gap: 8px; }
  .section { padding: 40px 0; }
  .section-head { gap: 12px; }
  .category-grid,
  .latest-grid,
  .archive-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { gap: 16px; }
  .side-feature { grid-template-columns: minmax(88px, 30%) minmax(0, 1fr); }
  .post-body { padding: 17px; }
  .feature-main .post-body { padding: 19px; }
  .feature-main .post-title { font-size: 23px; }
  .post-title { overflow-wrap: anywhere; }
  .newsletter { padding: 23px; }
  .page-wrap { padding: 28px 0 42px; }
  .entry { border-radius: 14px; }
  .entry-header { padding: 22px 18px 8px; }
  .entry-content { padding: 5px 18px 26px; overflow-wrap: anywhere; }
  .entry-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .entry-content pre,
  .entry-content iframe,
  .entry-content video { max-width: 100%; }
  .footer-grid { gap: 20px; }
  .footer-bottom { gap: 8px; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 24px); }
  .brand-mark { width: 36px; height: 36px; flex: 0 0 36px; }
  .brand-name { font-size: 18px; }
  .brand-tag { letter-spacing: .06em; }
  .hero h1 { font-size: 30px; }
  .side-feature { grid-template-columns: 88px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
