/* ==========================================================================
   Viko — additions on top of styles.css
   Layout width, article pages, insight cards, forms and small utilities.
   ========================================================================== */

/* Keep content from stretching edge to edge on very wide screens. */
.container { max-width: 1320px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 300; padding: 10px 16px; background: var(--ink); color: #fff; font-size: 15px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.logo-name { margin: 0; font: 700 18px/1.1 var(--sans); letter-spacing: -.06em; }
.hero-lead { max-width: 540px !important; color: var(--muted) !important; }
.btn-lg { padding: 12px 30px; font-size: 15px; }

/* ---------- Footer ---------- */
.footer-brand { margin: 0 0 8px; color: var(--ink) !important; font: 500 24px/1.1 var(--serif) !important; }
.footer-heading { margin: 0 0 8px; color: var(--ink) !important; font-weight: 700; font-size: 13px !important; letter-spacing: .08em; text-transform: uppercase; }
.footer ul { margin: 0; }
.footer li { margin-bottom: 6px; }
.footer-legal { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Contact form ---------- */
.form-consent { display: flex; justify-content: center; margin-top: 14px; }
.form-consent label { display: flex; gap: 9px; align-items: flex-start; max-width: 520px; color: var(--muted); font-size: 14px; line-height: 1.5; cursor: pointer; }
.form-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin-top: 16px; }
.form-status { max-width: 560px; margin: 14px auto 0; padding: 10px 14px; border: 1px solid var(--line-strong); background: var(--paper-deep); font-size: 15px; text-align: center; }
.form-status.is-error { border-color: var(--accent); }
.form-status a { color: var(--accent-dark); }

.modal-content#calendlyContainer { width: min(100%, 900px); padding: 44px 12px 12px; }
#calendlyFrame iframe { display: block; width: 100%; height: min(72vh, 700px); border: 0; }

/* ---------- Thank-you / 404 ---------- */
.notice-panel { max-width: 640px; padding-block: clamp(60px, 12vh, 130px); text-align: center; }
.notice-panel h1 { margin: 0 0 12px; font: 500 clamp(38px, 6vw, 60px)/1.05 var(--serif); letter-spacing: -.04em; }
.notice-panel p { margin: 0 0 24px; color: var(--ink-soft); }
.notice-panel .cta-row { justify-content: center; }

/* ---------- Package pages ---------- */
.package-features--single { grid-template-columns: 1fr !important; }
.proof-callout { margin: 26px 0 20px; padding: 18px 22px; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); background: var(--paper-deep); }
.proof-callout p { margin: 0 0 8px !important; }
.package-others { margin-top: 26px !important; }

/* ---------- Long-form pages (articles, case studies, packages) ---------- */
.article-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.article-back:hover { color: var(--accent); }

.case-content { max-width: 820px; }
.article { max-width: 800px; padding-block: clamp(22px, 4vw, 44px) 46px; }
.article-header { padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
.article-header h1 { margin: 6px 0 12px; color: var(--ink); font: 500 clamp(34px, 5vw, 54px)/1.06 var(--serif); letter-spacing: -.04em; }
.article-lead { margin: 0 0 16px; color: var(--ink-soft); font: 400 clamp(19px, 2vw, 23px)/1.5 var(--serif); }
.article-header .post-meta { margin-bottom: 0; }
.article-cover { margin: 24px 0 0; }
.article-cover img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; border: 1px solid var(--line); }
.article .post-content { padding-top: 22px; }

.post-content img, .case-content img { display: block; width: auto; max-width: 100%; height: auto; margin: 26px auto 0; }
.post-content p:has(> img), .case-content p:has(> img) { margin: 0; }
/* An italic line directly under an image is its caption. */
.post-content p:has(> img) + p:has(> em:only-child),
.case-content p:has(> img) + p:has(> em:only-child) { margin: 9px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
.post-content p:has(> img) + p:has(> em:only-child) em,
.case-content p:has(> img) + p:has(> em:only-child) em { font-style: normal; }
.post-content blockquote { margin: 26px 0; padding: 5px 0 5px 19px; border-left: 2px solid var(--accent); color: var(--ink-soft); font: 400 22px/1.4 var(--serif); }
.post-content blockquote p { font: inherit; }
.post-content hr, .case-content hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.post-content code { padding: 2px 5px; background: var(--paper-deep); font-size: .88em; }
.post-content table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 16px; }
.post-content th, .post-content td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-content th { background: var(--paper-deep); }
.post-content iframe { aspect-ratio: 16 / 9; height: auto; margin-top: 22px; }

/* ---------- Insight cards ---------- */
.insights-section { padding-bottom: 46px; }
.more-insights { padding-block: 10px 46px; border-top: 1px solid var(--line-strong); }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.insight-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--paper); color: inherit; text-decoration: none; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.insight-card:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--viko-card); }
.insight-thumb { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.insight-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(.85); transition: filter .2s ease; }
.insight-card:hover .insight-thumb img { filter: saturate(1); }
.insight-thumb-fallback { display: grid; width: 100%; height: 100%; place-items: center; padding: 16px; background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(189,182,170,.28) 14px 15px), var(--paper-deep); }
.insight-thumb-fallback span { color: var(--accent); font: italic 500 clamp(26px, 3vw, 38px)/1.1 var(--serif); letter-spacing: -.03em; text-align: center; }
.insight-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.insight-body .section-kicker { margin: 0; }
.insight-body h3 { margin: 0; color: var(--ink); font: 500 25px/1.2 var(--serif); letter-spacing: -.03em; }
.insight-card:hover h3 { color: var(--accent-dark); }
.insight-body p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.insight-meta { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: 13.5px; }

/* The newest article gets a wide card at the top of the Insights page. */
.insight-card--featured { flex-direction: row; margin-top: 4px; }
.insight-card--featured .insight-thumb { flex: 0 0 54%; aspect-ratio: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--line); }
.insight-card--featured .insight-body { justify-content: center; gap: 12px; padding: clamp(20px, 3vw, 40px); }
.insight-card--featured h3 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; }
.insight-card--featured .insight-body p { font-size: 18px; }
.insight-card--featured .insight-meta { margin-top: 0; }

@media (max-width: 900px) {
    .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .insight-card--featured { flex-direction: column; }
    .insight-card--featured .insight-thumb { flex: none; aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
    .insight-grid { grid-template-columns: 1fr; }
    .insight-body h3 { font-size: 22px; }
    .logo-name { font-size: 16px; }
    .form-actions .btn { width: 100%; justify-content: center; }
}
