/* =========================================================
   Vegto · brand and editorial pages
   about.html, contact.html, blog.html, blog-post.html
   Loaded after style.css + inner.css. New components only; shared
   classes are only adjusted under a page body class.
   ========================================================= */

/* ---------- Shared helpers ---------- */
/* hover lift that survives the reveal animation (same fix as .pcard) */
.lift { transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s; }
.lift:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: transparent; }
.js-anim .lift.rv { transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.js-anim .lift.rv.in:hover { transform: translateY(-3px); }
.js-anim .page-blog .post.rv, .js-anim .page-post .post.rv { transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .3s var(--ease); }
.js-anim .page-blog .post.rv.in:hover, .js-anim .page-post .post.rv.in:hover { transform: translateY(-3px); }
.jr-grid[hidden], .art-layout[hidden], .art-hero[hidden], .art-tag[hidden] { display: none; }

/* =========================================================
   ABOUT
   ========================================================= */
.ab-head { padding: 30px 0 44px; }
.ab-head .page-head-in { grid-template-columns: minmax(0, 1fr) 500px; gap: 56px; }
.ab-head .eyebrow { margin-top: 20px; }
.ab-head .page-title { margin-top: 10px; max-width: 640px; font-size: 42px; }
.ab-head .page-sub { font-size: 16.5px; }
.ab-head-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ab-art { position: relative; }
.ab-art .ph-art { width: 100%; aspect-ratio: 5 / 4; border-radius: 20px; }
.ab-badge { position: absolute; left: -28px; bottom: 28px; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--sh-lg); }
.ab-badge-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green); color: #fff; }
.ab-badge b { display: block; font: 700 22px/1 var(--head); color: var(--green-dk); }
.ab-badge small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* story */
.ab-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ab-collage { position: relative; padding-bottom: 56px; }
.ab-main { width: 86%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 18px; box-shadow: var(--sh-md); }
.ab-inset { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 6px solid var(--bg); box-shadow: var(--sh-lg); }
.ab-stamp { position: absolute; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(247, 239, 221, .95); box-shadow: var(--sh-sm); font: 600 13px var(--head); color: var(--ink); }
.ab-stamp .ic { color: var(--green); }
.ab-story-body .sec-title { max-width: 560px; }
.ab-lede { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--ink); }
.ab-story-body > p:not(.ab-lede) { margin-top: 14px; color: var(--ink-2); line-height: 1.7; }
.ab-story-body .checklist { margin-top: 24px; }
.ab-story-body .btn { margin-top: 28px; }

/* =========================================================
   CONTACT
   ========================================================= */
.ct-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ct-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.ct-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.ct-ic svg { width: 25px; height: 25px; }
.ct-card--wa .ct-ic { background: var(--green); color: #fff; }
.ct-card h3 { margin-top: 18px; font: 600 12.5px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ct-card b { display: block; margin-top: 6px; font: 600 19px/1.3 var(--head); color: var(--ink); }
.ct-card small { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ct-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font: 600 14.5px var(--head); color: var(--green); }
.ct-go .ic { transition: transform .25s var(--ease); }
.ct-card:hover .ct-go .ic { transform: translateX(4px); }
.ct-hours { margin-top: auto; padding-top: 14px; }
.ct-hours li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13.5px; color: var(--ink-2); }
.ct-hours li + li { border-top: 1px dashed var(--line); }
.ct-hours li b { display: inline; margin: 0; font: 600 13.5px var(--head); color: var(--green-dk); }

/* form */
.ct-layout { align-items: start; }
.ct-form-panel { padding: 32px; }
.ct-form-head { margin-bottom: 24px; }
.ct-form-head h2 { margin-top: 8px; font: 600 28px/1.2 var(--head); }
.ct-form-head p { margin-top: 8px; color: var(--ink-2); }
.ct-form .textarea { min-height: 150px; font-family: var(--body); }
.field-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.field-foot .hint:last-child { margin-left: auto; white-space: nowrap; }
.field.has-error .check input { border-color: #E57373; }
.ct-form .form-actions { margin-top: 24px; }
.ct-form .form-actions .hint { display: inline-flex; align-items: center; gap: 6px; }
.ct-form .form-actions .hint .ic { width: 16px; height: 16px; color: var(--green); }
.ct-form .check a { color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ct-success { padding: 20px 4px 8px; text-align: center; outline: none; }
.ct-success-ic { width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green); animation: ctPop .5s var(--ease); }
.ct-success-ic svg { width: 46px; height: 46px; stroke-width: 1.6; }
@keyframes ctPop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: none; opacity: 1; } }
.ct-success h3 { font: 600 24px/1.3 var(--head); }
.ct-success-lead { margin-top: 8px; font: 500 17px/1.5 var(--head); color: var(--green-dk); }
.ct-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; max-width: 560px; margin: 24px auto 0; padding: 16px 18px; border-radius: 12px; background: var(--tint); text-align: left; }
.ct-sum dt { font-size: 12.5px; color: var(--muted); }
.ct-sum dd { margin: 2px 0 0; font: 600 14.5px var(--head); color: var(--ink); overflow-wrap: anywhere; }
.ct-success .muted { margin-top: 16px; font-size: 14px; }
.ct-success .form-actions { justify-content: center; }

/* side panel */
.ct-side { display: grid; gap: 20px; }
.ct-map { position: relative; aspect-ratio: 16 / 10; max-height: 260px; width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #F1F0DF; }

.ct-address { margin-top: 16px; font-style: normal; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.ct-address b { font: 600 16px var(--head); color: var(--ink); }
.ct-office-note { margin: 6px 0 16px; font-size: 13.5px; color: var(--muted); }

/* =========================================================
   JOURNAL (blog list) + shared post cards
   ========================================================= */
.jr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: 28px; }
.jr-pills { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.jr-pills::-webkit-scrollbar { display: none; }
.jr-pills .tab { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.jr-pills .tab em { padding: 2px 7px; border-radius: 999px; background: var(--card); font: 600 11.5px var(--body); font-style: normal; color: var(--muted); }
.jr-pills .tab.is-active em { background: var(--green-50); color: var(--green-dk); }
.jr-count { font-size: 14.5px; color: var(--ink-2); }
.jr-count b { color: var(--ink); font-weight: 600; }
.jr-feature, .jr-grid { transition: opacity .2s; }
.jr-feature.is-swapping, .jr-grid.is-swapping { opacity: 0; }
.jr-feature:empty { display: none; }

.post-excerpt { color: var(--ink-2); line-height: 1.65; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.post-author { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font: 500 13.5px var(--head); color: var(--ink); }
.post-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.post-av svg { width: 17px; height: 17px; }
.post-foot .post-more { flex: none; font-size: 14px; }

/* featured (wide) */
.post--wide { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-bottom: 28px; }
.post--wide .post-media { min-height: 400px; }
.post--wide .post-media img { position: absolute; inset: 0; }
.post--wide .post-body { display: flex; flex-direction: column; justify-content: center; padding: 40px 44px; }
.post--wide h3 { font-size: 30px; line-height: 1.25; letter-spacing: -.01em; }
.post--wide .post-excerpt { font-size: 16px; }
.post--wide .post-foot { margin-top: 24px; }
.jr-flag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; padding: 5px 10px; border-radius: 7px; background: var(--green-50); color: var(--green-dk); font: 600 12px var(--body); letter-spacing: .06em; text-transform: uppercase; }
.jr-flag .ic { width: 14px; height: 14px; }

/* grid cards: 6-column grid so rows of 2 (halves) and 3 (thirds) can mix */
.jr-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.post--card { display: flex; flex-direction: column; grid-column: span 2; }
.post--card .post-media { aspect-ratio: 16 / 10; }
.post--card .post-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.post--card h3 { font-size: 19px; }
.post--card .post-excerpt { margin-bottom: 18px; font-size: 14.5px; }
/* half-width and full-width cards lie on their side: image left, text right */
.post--half, .post--solo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-column: span 3; }
.post--solo { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.post--half .post-media, .post--solo .post-media { aspect-ratio: auto; min-height: 270px; }
.post--half .post-media img, .post--solo .post-media img { position: absolute; inset: 0; }
.post--half .post-body, .post--solo .post-body { padding: 24px 26px; }
.post--half h3 { font-size: 21px; }
.post--solo h3 { font-size: 24px; }

/* =========================================================
   ARTICLE (blog-post.html)
   ========================================================= */
.page-post .art-head { padding-bottom: 140px; }
.art-head-in { max-width: 940px; }
.art-tag { display: inline-flex; align-items: center; margin-top: 18px; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-xs); font: 600 13px var(--head); color: var(--c, var(--green)); transition: border-color .2s; }
.art-tag:hover { border-color: currentColor; }
.art-tag[hidden] { display: none; }
.art-title { margin-top: 14px; font-size: 44px; line-height: 1.15; }
.art-dek { max-width: 760px; font-size: 18px; }
.art-dek:empty { display: none; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.art-meta:empty { display: none; }
.art-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.art-meta .ic { color: var(--green); }
.art-meta .post-author { font-size: 14.5px; }
.art-sec { padding-top: 0; }
.art-hero { position: relative; margin: -110px 0 0; aspect-ratio: 21 / 9; max-height: 560px; width: 100%; border-radius: 20px; overflow: hidden; background: var(--tint); box-shadow: var(--sh-md); }
.art-hero img { width: 100%; height: 100%; object-fit: cover; }
.art-layout { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; gap: 56px; margin-top: 48px; align-items: start; }
.art-body { max-width: 720px; }
.art-body .lead { font-size: 19px; line-height: 1.7; color: var(--ink); }
.art-body h2 { scroll-margin-top: 140px; }
.art-body figure { margin: 32px 0; }
.art-body figure img { aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--sh-sm); }
.art-body blockquote { position: relative; padding-left: 26px; }
.art-body h3 + p { margin-top: 6px; }
.art-back { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.art-back .link-more { padding-bottom: 0; }
.art-back .link-more .ic { transform: rotate(180deg); }
.art-back .link-more:hover .ic { transform: rotate(180deg) translateX(4px); }

/* mini product rows (aside) */
.art-empty { max-width: 640px; margin: 0 auto; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .ab-head .page-head-in { grid-template-columns: minmax(0, 1fr) 420px; gap: 44px; }
  .ab-head .page-title { font-size: 38px; }
  .post--wide .post-body { padding: 32px 34px; }
  .post--wide h3 { font-size: 26px; }
}
@media (max-width: 1100px) {
  .ab-badge { left: -16px; }
  .art-layout { grid-template-columns: minmax(0, 720px); gap: 40px; }
}
@media (max-width: 1080px) {
  .ab-split { gap: 44px; }
  .ct-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jr-grid > .post--card { grid-column: span 1; display: flex; }
  .post--half .post-media { min-height: 0; aspect-ratio: 16 / 10; }
  .post--half .post-media img { position: static; }
  .post--half .post-body { padding: 20px 22px 22px; }
  .post--half h3 { font-size: 19px; }
  .jr-grid > .is-tail, .jr-grid > .post--solo { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .jr-grid > .is-tail .post-media { aspect-ratio: auto; min-height: 260px; }
  .jr-grid > .is-tail .post-media img { position: absolute; inset: 0; }
}
@media (max-width: 960px) {
  .ab-head .page-head-in { grid-template-columns: 1fr; gap: 28px; }
  .ab-art { max-width: 640px; }
  .ab-art .ph-art { aspect-ratio: 16 / 9; max-width: none; }
  .ab-badge { left: 16px; bottom: 16px; }
  .ab-split { grid-template-columns: 1fr; }
  .ab-collage { max-width: 640px; }
  .ct-side { grid-template-columns: 1fr 1fr; align-items: start; }
  .post--wide { grid-template-columns: 1fr; }
  .post--wide .post-media { min-height: 0; aspect-ratio: 16 / 9; }
  .art-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .art-body { max-width: 720px; }
  .art-title { font-size: 36px; }
}
@media (max-width: 760px) {
  .ct-side { grid-template-columns: 1fr; }
  .ct-sum { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ab-head { padding: 18px 0 30px; }
  .ab-head .page-title { font-size: 28px; }
  .ab-head .page-sub { font-size: 15px; }
  .ab-head-btns { margin-top: 20px; }
  .ab-head-btns .btn { flex: 1 1 auto; }
  .ab-art .ph-art { aspect-ratio: 4 / 3; border-radius: 16px; }
  .ab-badge { left: 12px; bottom: 12px; padding: 10px 14px 10px 10px; }
  .ab-badge-ic { width: 40px; height: 40px; }
  .ab-badge b { font-size: 19px; }
  .ab-collage { padding-bottom: 40px; }
  .ab-main { width: 92%; }
  .ab-inset { width: 46%; border-width: 4px; }
  .ab-stamp { left: 10px; top: 10px; font-size: 12px; padding: 6px 10px; }
  .ab-lede { font-size: 16px; }
  .ab-story-body .btn { width: 100%; }
  /* vertical timeline */

  .page-contact .ph-art, .page-blog .ph-art { display: none; }
  .ct-cards { grid-template-columns: 1fr; gap: 12px; }
  .ct-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .ct-ic { grid-row: span 5; width: 48px; height: 48px; }
  .ct-card h3 { margin-top: 0; }
  .ct-card b { margin-top: 2px; font-size: 17px; }
  .ct-go { padding-top: 10px; }
  .ct-hours { padding-top: 8px; }
  .ct-form-panel { padding: 20px 18px; }
  .ct-form-head h2 { font-size: 23px; }
  .ct-form .form-actions .btn { width: 100%; }
  .ct-sum { grid-template-columns: 1fr; }
  .ct-success .form-actions .btn { width: 100%; }

  .jr-bar { margin-bottom: 20px; }
  .jr-pills { max-width: calc(100% + 16px); margin-right: -16px; border-right: 0; border-radius: 12px 0 0 12px; }
  .post--wide { margin-bottom: 16px; }
  .post--wide .post-body { padding: 20px 18px; }
  .post--wide h3 { font-size: 22px; }
  .post--wide .post-excerpt { font-size: 14.5px; }
  .jr-flag { margin-bottom: 12px; }
  .jr-grid { grid-template-columns: 1fr; gap: 16px; }
  .jr-grid > .post--card, .jr-grid > .is-tail, .jr-grid > .post--solo { grid-column: auto; display: flex; flex-direction: column; }
  .jr-grid > .post--card .post-media { min-height: 0; aspect-ratio: 16 / 10; }
  .jr-grid > .post--card .post-media img { position: static; }
  .post--card .post-body, .post--solo .post-body { padding: 16px 18px 18px; }
  .post--card h3, .post--solo h3 { font-size: 18px; }
  .post-foot { padding-top: 14px; }

  .page-post .art-head { padding-bottom: 84px; }
  .art-title { font-size: 28px; }
  .art-dek { font-size: 16px; }
  .art-meta { gap: 8px 16px; margin-top: 16px; font-size: 13.5px; }
  .art-hero { margin-top: -64px; aspect-ratio: 4 / 3; border-radius: 14px; }
  .art-layout { margin-top: 28px; gap: 32px; }
  .art-body { font-size: 16px; }
  .art-body .lead { font-size: 17px; }
  .art-body h2 { margin-top: 32px; font-size: 22px; }
  .art-body h3 { font-size: 18px; }
  .art-body blockquote { padding: 16px 18px; font-size: 16.5px; }
  .art-body figure { margin: 24px 0; }
  .crumbs [aria-current] { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* contact: embedded Google map */
.ct-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
