/* ============================================================
   Sinar Sejahtera Inti — Corporate site styles
   Design tokens + sections.
   ============================================================ */

:root {
  /* Brand — default INDIGO (matches SSi logo) */
  --brand:        #232270;
  --brand-deep:   #15143c;
  --brand-bright: #3a39a6;
  --accent:       #e1241b;

  /* Neutrals (cool-tinted) */
  --ink:     #14151c;
  --body:    #43454f;
  --muted:   #7c7f8c;
  --line:    #e4e6ee;
  --line-2:  #eef0f6;
  --bg:      #ffffff;
  --surface: #f5f6fb;
  --surface-2: #eef0f8;

  /* Type */
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 4px;

  --shadow-sm: 0 1px 2px rgba(20,21,28,.06), 0 2px 8px rgba(20,21,28,.05);
  --shadow-md: 0 10px 30px rgba(21,20,60,.10), 0 2px 6px rgba(21,20,60,.06);
  --shadow-lg: 0 30px 70px rgba(21,20,60,.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 800;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.on-dark { color: #fff; }
.eyebrow.on-dark::before { background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-bright); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline-light { background: transparent; color:#fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background:#fff; color: var(--brand-deep); border-color:#fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--brand-deep);
  color: rgba(255,255,255,.85);
  font-size: 13.5px;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.topbar .tb-left { display: flex; gap: 26px; align-items: center; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .tb-item svg { opacity: .8; }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }
.topbar .tb-right a { color: rgba(255,255,255,.7); font-weight: 600; letter-spacing: .02em; }
.topbar .tb-right a:hover { color:#fff; }
.tb-divider { width:1px; height:16px; background: rgba(255,255,255,.2); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 46px; width: auto; }
.brand .bt { line-height: 1.05; }
.brand .bt strong { display:block; font-family: var(--font-head); font-weight: 800; color: var(--brand); font-size: 18px; letter-spacing: -.01em; }
.brand .bt span { display:block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-weight: 600; font-size: 15px; color: var(--ink);
  padding: 10px 16px; border-radius: var(--radius); position: relative;
}
.nav a::after {
  content:""; position:absolute; left:16px; right:16px; bottom:4px; height:2px;
  background: var(--accent); transform: scaleX(0); transform-origin:left; transition: transform .2s ease;
}
.nav a:hover { color: var(--brand); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { display:flex; align-items:center; gap: 14px; }

/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  margin-right: -10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle .bar { display:block; width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; margin: 0 auto; }
body.menu-open .menu-toggle .bar:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
body.menu-open .menu-toggle .bar:nth-child(2){ opacity: 0; }
body.menu-open .menu-toggle .bar:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.98);
  backdrop-filter: saturate(140%) blur(10px);
  padding: 14px var(--gut) 24px;
  max-height: calc(100vh - 78px);
  overflow-y: auto;
}
.mobile-menu .mm-nav { display:flex; flex-direction: column; }
.mobile-menu .mm-nav a {
  font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--ink);
  padding: 15px 4px; border-bottom: 1px solid var(--line-2);
}
.mobile-menu .mm-nav a:active { color: var(--brand); }
.mobile-menu .mm-cta { display:flex; justify-content:center; margin-top: 20px; width: 100%; padding: 16px; }
.mobile-menu .mm-contact { margin-top: 22px; display:flex; flex-direction: column; gap: 14px; }
.mobile-menu .mm-contact a { display:inline-flex; align-items:center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--body); }
.mobile-menu .mm-contact svg { color: var(--accent); }
body.menu-open { overflow: hidden; }
.menu-toggle { display:none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--brand-deep); color:#fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width:100%; height:100%; display:block; object-fit: cover; }
.hero-scrim { position:absolute; inset:0; }
.hero .wrap { position: relative; z-index: 2; }

/* default = fullbleed */
.hero-scrim {
  background:
    linear-gradient(90deg, rgba(15,14,46,.92) 0%, rgba(15,14,46,.72) 42%, rgba(15,14,46,.30) 100%),
    linear-gradient(0deg, rgba(15,14,46,.55), rgba(15,14,46,0) 45%);
}
.hero-inner { padding: clamp(80px, 13vh, 168px) 0 clamp(60px, 9vh, 120px); max-width: 760px; }
.hero h1 {
  color:#fff;
  font-size: clamp(40px, 6.4vw, 82px);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.022em;
  margin: 22px 0 0;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin-top: 24px; font-size: clamp(17px, 1.4vw, 20px); color: rgba(255,255,255,.82); max-width: 560px; }
.hero-actions { margin-top: 38px; display:flex; gap: 14px; flex-wrap: wrap; }

/* hero credibility strip */
.hero-strip {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(10,9,38,.35);
  backdrop-filter: blur(4px);
}
.hero-strip .wrap { display:grid; grid-template-columns: repeat(4,1fr); }
.hs-item { padding: 26px 28px; border-left: 1px solid rgba(255,255,255,.12); }
.hs-item:first-child { border-left: none; padding-left: 0; }
.hs-item .n { font-family: var(--font-head); font-weight: 800; font-size: 30px; color:#fff; letter-spacing: -.02em; }
.hs-item .n b { color: var(--accent); }
.hs-item .l { font-size: 13.5px; color: rgba(255,255,255,.72); margin-top: 4px; }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 50px); margin-top: 16px; }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--body); }
.section.alt { background: var(--surface); }

/* ---------- About ---------- */
.about-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px,5vw,72px); align-items: center; }
.about-copy h2 { font-size: clamp(28px,3.6vw,46px); }
.about-copy .lead { margin-top: 20px; font-size: 19px; color: var(--ink); font-weight: 500; }
.about-copy p + p { margin-top: 16px; }
.about-points { margin-top: 30px; display:grid; gap: 14px; }
.about-points li { list-style: none; display:flex; gap: 14px; align-items:flex-start; }
.about-points .tick { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); display:grid; place-items:center; margin-top: 3px; }
.about-points li b { color: var(--ink); }
.about-media { position: relative; }
.about-media img { width:100%; height: 100%; min-height: 440px; display:block; box-shadow: var(--shadow-md); object-fit: cover; }
.about-badge {
  position:absolute; left: -22px; bottom: 30px; background: var(--brand); color:#fff;
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 210px;
}
.about-badge .y { font-family: var(--font-head); font-weight: 800; font-size: 40px; line-height: 1; }
.about-badge .y b { color: var(--accent); }
.about-badge .t { font-size: 13.5px; color: rgba(255,255,255,.82); margin-top: 6px; }

/* ---------- Services ---------- */
.svc-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border:1px solid var(--line); }
.svc-card { background: var(--bg); padding: 38px 34px 40px; transition: background .25s ease, transform .25s ease; position: relative; }
.svc-card:hover { background: var(--brand-deep); }
.svc-card .num { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .1em; color: var(--accent); }
.svc-card h3 { font-size: 22px; margin-top: 18px; transition: color .25s ease; }
.svc-card p { margin-top: 12px; font-size: 15.5px; color: var(--body); transition: color .25s ease; }
.svc-card .more { margin-top: 20px; font-weight:700; font-size: 14px; color: var(--brand); display:inline-flex; gap:8px; opacity:0; transform: translateY(6px); transition: .25s ease; }
.svc-card:hover h3 { color:#fff; }
.svc-card:hover p { color: rgba(255,255,255,.78); }
.svc-card:hover .num { color: var(--accent); }
.svc-card:hover .more { opacity:1; transform:none; color:#fff; }

/* ---------- Products / brands ---------- */
.prod-cats { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.prod-card { border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; background:var(--bg); transition: box-shadow .25s ease, transform .25s ease; }
.prod-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.prod-card .pc-media img { width:100%; height: 200px; display:block; object-fit: cover; }
.prod-card .pc-body { padding: 26px 26px 30px; }
.prod-card .pc-body h3 { font-size: 21px; }
.prod-card .pc-body p { margin-top: 10px; font-size: 15px; color: var(--body); }
.prod-card .tag { display:inline-block; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--brand); background: var(--surface-2); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }

.brands { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 44px; }
.brands .bl { text-align:center; font-size: 13px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color: var(--muted); }
.brand-row { margin-top: 28px; display:flex; flex-wrap:wrap; justify-content:center; gap: 14px; }
.brand-chip {
  font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -.01em;
  color: var(--brand-deep); padding: 16px 30px; border:1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); display:flex; align-items:center; gap:10px; transition: .2s ease;
}
.brand-chip:hover { border-color: var(--brand); color: var(--brand); }
.brand-chip small { font-family: var(--font-body); font-weight:600; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color: var(--muted); }

/* ---------- Projects ---------- */
.proj-grid { display:grid; grid-template-columns: repeat(12,1fr); gap: 18px; }
.proj { position: relative; overflow:hidden; border-radius: var(--radius); }
.proj img { width:100%; height:100%; display:block; object-fit: cover; }
.proj .pj-cap {
  position:absolute; inset:auto 0 0 0; z-index:2; padding: 28px 26px 24px; color:#fff;
  background: linear-gradient(0deg, rgba(15,14,46,.88), rgba(15,14,46,0));
}
.proj .pj-cap .k { font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color: var(--accent); }
.proj .pj-cap h3 { color:#fff; font-size: 22px; margin-top:6px; }
.proj.tall { grid-column: span 4; aspect-ratio: 3/4.2; }
.proj.wide { grid-column: span 8; aspect-ratio: 16/9; }
.proj.half { grid-column: span 6; aspect-ratio: 16/8; }
.proj.third { grid-column: span 4; aspect-ratio: 4/3.4; }
@media (max-width: 880px){
  .proj.tall,.proj.wide,.proj.half,.proj.third { grid-column: span 12; aspect-ratio: 16/9; }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color:#fff; }
.cta-band .wrap { display:flex; align-items:center; justify-content:space-between; gap: 40px; padding: clamp(48px,7vw,84px) var(--gut); flex-wrap: wrap; }
.cta-band h2 { color:#fff; font-size: clamp(28px,3.6vw,46px); max-width: 720px; }
.cta-band p { margin-top: 14px; color: rgba(255,255,255,.8); max-width: 560px; }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.addr-card { border:1px solid var(--line); border-radius: var(--radius); padding: 34px; background: var(--bg); }
.addr-card .lbl { display:inline-flex; align-items:center; gap:10px; font-weight:800; font-family:var(--font-head); color: var(--brand); font-size: 14px; letter-spacing:.06em; text-transform:uppercase; }
.addr-card .pin { width: 30px; height:30px; border-radius:50%; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); display:grid; place-items:center; }
.addr-card h3 { font-size: 22px; margin-top: 18px; }
.addr-card address { font-style: normal; margin-top: 12px; color: var(--body); font-size: 16px; line-height: 1.6; }
.addr-card .ph { margin-top: 18px; display:flex; align-items:center; gap:10px; font-weight:700; color: var(--ink); }
.addr-card .ph svg { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--brand-deep); color: rgba(255,255,255,.7); padding-top: clamp(56px,7vw,84px); }
.footer .f-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 52px; border-bottom:1px solid rgba(255,255,255,.12); }
.footer .f-logo { display:flex; align-items:center; gap: 14px; }
.footer .f-logo .tile { background:#fff; padding:8px; border-radius: var(--radius); display:grid; place-items:center; }
.footer .f-logo .tile img { height: 40px; }
.footer .f-logo strong { font-family:var(--font-head); color:#fff; font-size: 18px; }
.footer .f-logo span { font-size: 11px; letter-spacing:.16em; text-transform:uppercase; color: rgba(255,255,255,.55); }
.footer .f-about { margin-top: 22px; font-size: 15px; max-width: 360px; line-height: 1.6; }
.footer h4 { color:#fff; font-size: 14px; letter-spacing:.08em; text-transform:uppercase; font-family: var(--font-head); }
.footer ul { list-style:none; margin: 18px 0 0; padding:0; display:grid; gap: 12px; }
.footer ul a { font-size:15px; color: rgba(255,255,255,.7); }
.footer ul a:hover { color:#fff; }
.footer .f-bottom { display:flex; align-items:center; justify-content:space-between; padding: 26px 0 34px; font-size: 13.5px; flex-wrap:wrap; gap: 12px; }
.footer .f-bottom a:hover { color:#fff; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }

  /* Staggered children reveal (grids, brand row) */
  .stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
  .stagger.in > * { opacity: 1; transform: none; }
  .stagger.in > *:nth-child(1) { transition-delay: .03s; }
  .stagger.in > *:nth-child(2) { transition-delay: .11s; }
  .stagger.in > *:nth-child(3) { transition-delay: .19s; }
  .stagger.in > *:nth-child(4) { transition-delay: .27s; }
  .stagger.in > *:nth-child(5) { transition-delay: .35s; }
  .stagger.in > *:nth-child(6) { transition-delay: .43s; }
  .stagger.in > *:nth-child(n+7) { transition-delay: .5s; }

  /* Hero entrance */
  .hero-inner > * { opacity: 0; transform: translateY(26px); animation: heroUp .8s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero-inner > *:nth-child(1) { animation-delay: .1s; }
  .hero-inner > *:nth-child(2) { animation-delay: .22s; }
  .hero-inner > *:nth-child(3) { animation-delay: .34s; }
  .hero-inner > *:nth-child(4) { animation-delay: .46s; }
}
@keyframes heroUp { to { opacity: 1; transform: none; } }

/* ---------- Image hover motion ---------- */
.prod-card .pc-media img { transition: transform .45s ease; }
.prod-card:hover .pc-media img { transform: scale(1.06); }
.proj img { transition: transform .5s ease; }
.proj:hover img { transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px){
  .nav { display:none; }
  .header-cta { display:none; }
  .menu-toggle { display:flex; }
  .header .wrap { height: 68px; }
  .svc-grid { grid-template-columns: repeat(2,1fr); }
  .prod-cats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px){
  .about-grid { grid-template-columns: 1fr; }
  .about-media img { min-height: 320px; }
  .about-badge { left: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer .f-top { grid-template-columns: 1fr; gap: 36px; }
  .hero-strip .wrap { grid-template-columns: 1fr 1fr; }
  .hs-item:nth-child(3){ border-left:none; padding-left:0; }
  .hs-item { padding: 20px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; justify-content: center; }
}
@media (max-width: 560px){
  body { font-size: 16px; }
  .svc-grid, .prod-cats { grid-template-columns: 1fr; }
  .brand-chip { font-size: 18px; padding: 13px 20px; }
  /* Topbar: keep phone only, drop email + locations to avoid overflow */
  .topbar { font-size: 13px; }
  .topbar .tb-left .tb-item:nth-child(2){ display:none; }
  .topbar .tb-right { display:none; }
  .topbar .wrap { justify-content: flex-start; }
  /* Header brand: trim subtitle to save room */
  .brand img { height: 38px; }
  .brand .bt strong { font-size: 16px; }
  .brand .bt span { font-size: 9.5px; letter-spacing: .14em; }
  /* Hero */
  .hero-inner { padding-top: clamp(56px, 12vh, 96px); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* Section heads / cards */
  .section-head { margin-bottom: 38px; }
  .svc-card { padding: 30px 26px 32px; }
  .svc-card .more { opacity: 1; transform: none; }
  .about-badge { padding: 18px 20px; max-width: 180px; }
  .addr-card { padding: 26px 22px; }
  .footer .f-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Inner-page additions (Layanan, Portofolio, Tentang, Kontak,
   Blog, katalog produk) — shares the same tokens/components above.
   ============================================================ */

/* ---------- Page header (breadcrumb banner) ---------- */
.page-header { background: var(--brand-deep); color: #fff; padding: 44px 0 40px; }
.page-header .crumbs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:13.5px; color: rgba(255,255,255,.6); margin-bottom:14px; }
.page-header .crumbs a { color: rgba(255,255,255,.75); font-weight:600; }
.page-header .crumbs a:hover { color:#fff; }
.page-header .crumbs .sep { opacity:.5; }
.page-header .crumbs .current { color:#fff; }
.page-header h1 { color:#fff; font-size: clamp(30px, 4vw, 46px); margin-top: 8px; }
.page-header p { margin-top:14px; color: rgba(255,255,255,.75); max-width: 640px; font-size:16px; }

/* ---------- Prose (CMS-authored description HTML) ---------- */
.prose { color: var(--body); font-size: 16px; line-height:1.75; }
.prose p + p { margin-top: 14px; }
.prose h2, .prose h3 { margin-top: 28px; margin-bottom: 10px; }
.prose ul, .prose ol { margin: 14px 0 14px 22px; padding:0; }
.prose li { margin-bottom:8px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset:2px; }
.prose img { border-radius: var(--radius); margin: 20px 0; }
.prose strong { color: var(--ink); }

/* ---------- Forms ---------- */
.form-grid { display:grid; gap: 20px; }
.form-grid .row-2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.field { display:flex; flex-direction:column; gap:8px; }
.field label { font-weight:700; font-size:14px; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size:15px; padding:13px 16px; border:1.5px solid var(--line);
  border-radius: var(--radius); color: var(--ink); background:#fff; transition: border-color .2s ease; width:100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--brand); }
.field textarea { min-height: 140px; resize: vertical; }
.field .error { font-size:13px; color: var(--accent); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--accent); }

/* ---------- Blog layout ---------- */
.blog-layout { display:grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items:start; }
.blog-cards { display:grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px){ .blog-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px){ .blog-cards { grid-template-columns: 1fr; } }

/* ---------- Blog cards & sidebar widgets ---------- */
.blog-card { border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; background:var(--bg); transition: box-shadow .25s ease, transform .25s ease; display:flex; flex-direction:column; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card .bc-media { aspect-ratio: 16/10; overflow:hidden; background: var(--surface); }
.blog-card .bc-media img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .45s ease; }
.blog-card:hover .bc-media img { transform: scale(1.06); }
.blog-card .bc-body { padding: 22px 22px 26px; display:flex; flex-direction:column; gap:10px; flex:1; }
.blog-card .tag { align-self:flex-start; }
.blog-card h3 { font-size:19px; }
.blog-card h3 a { color: inherit; }
.blog-card p { font-size:14.5px; color: var(--body); }
.blog-card .bc-meta { margin-top:auto; padding-top:10px; font-size:13px; color: var(--muted); display:flex; gap:14px; align-items:center; }

.widget { border:1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--bg); }
.widget + .widget { margin-top: 24px; }
.widget h4 { font-family: var(--font-head); font-size:15px; text-transform:uppercase; letter-spacing:.06em; }
.widget-list { list-style:none; margin: 18px 0 0; padding:0; display:grid; gap:16px; }
.widget-list a { font-weight:600; font-size:14.5px; color: var(--ink); }
.widget-list a:hover { color: var(--brand); }
.widget-list .wl-meta { font-size:12.5px; color: var(--muted); margin-top:4px; }
.tag-chip-row { display:flex; flex-wrap:wrap; gap:8px; }
.tag-chip { display:inline-block; font-size:12.5px; font-weight:600; padding:6px 12px; border-radius:999px; background: var(--surface-2); color: var(--brand); }
.tag-chip:hover { background: var(--brand); color:#fff; }

/* ---------- Pagination ---------- */
.pager { display:flex; flex-wrap:wrap; gap:8px; margin-top: 44px; justify-content:center; list-style:none; padding:0; }
.pager li { display:contents; }
.pager a, .pager span { min-width:42px; height:42px; padding:0 14px; display:inline-flex; align-items:center; justify-content:center; border-radius: var(--radius); border:1.5px solid var(--line); font-weight:700; font-size:14px; color: var(--ink); }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .active { background: var(--brand); border-color: var(--brand); color:#fff; }
.pager .disabled { color: var(--muted); opacity:.5; }

@media (max-width: 640px){
  .form-grid .row-2 { grid-template-columns: 1fr; }
  .page-header { padding: 32px 0 28px; }
}
