/* Inner pages: ported service pages (.block/.row/.col from the old site), contact, about, products, blog post. */

/* ---- ported content fragments (pages/templates/pages/content/*.html) ---- */
.page-content { padding-bottom: var(--s4); }
.page-content .block {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4);
  max-width: var(--w); margin: 0 auto var(--s3); padding: var(--s5) var(--s4);
  border-radius: var(--r-xl); background: var(--card); box-shadow: inset 0 0 0 1px #fff, var(--sh-sm);
}
.page-content .block:empty { display: none; }
.page-content .row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); flex: 1 1 100%; }
.page-content .col { flex: 1 1 300px; min-width: 0; }
.page-content .block > .col:only-child { display: flex; flex-wrap: wrap; gap: var(--s3); }
.page-content .block > .col:only-child > h2 { flex: 1 1 100%; text-align: center; }
.page-content .block > .col:only-child > .col { flex: 1 1 240px; }
.page-content h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 900; }
.page-content h3 { font-size: 1.25rem; }
.page-content p, .page-content li { color: var(--ink-2); }
.page-content ul { padding-inline-start: 1.2em; }
.page-content li { margin: 0.25em 0; }
.page-content img { border-radius: var(--r); }
.page-content .btn { color: #fff; background: var(--blue); }
.page-content details { margin: 10px 0; padding: 4px 22px; border-radius: var(--r); background: #fff; box-shadow: var(--sh-sm); }
.page-content summary { padding: 12px 0; font-weight: 700; cursor: pointer; }
@media (max-width: 720px) { .page-content .block { padding: var(--s4) var(--s3); margin-inline: var(--gutter); } }

/* ---- contact page ---- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s3); max-width: var(--w); margin: 0 auto; padding-inline: var(--gutter); }
.contact-cards { display: grid; gap: var(--s2); align-content: start; }
.c-card { display: flex; align-items: center; gap: var(--s2); padding: var(--s3); border-radius: var(--r-lg); background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px #fff, var(--sh-sm); }
.c-card .c-ic { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--tint-sky); color: var(--blue); }
.c-card small { display: block; color: var(--muted); font-size: 0.85rem; }
.c-card b { font-size: 1.1rem; }
a.c-card:hover { box-shadow: inset 0 0 0 1.5px var(--blue), var(--sh); }
.c-card--dark { background: var(--navy); color: #fff; }
.c-card--dark small { color: var(--on-dark-muted); }
.c-card--dark .c-ic { background: var(--blue); color: #fff; }
.form-card { padding: var(--s4); border-radius: var(--r-xl); background: var(--card); box-shadow: inset 0 0 0 1px #fff, var(--sh); }
.form-card h2 { font-size: 1.5rem; }
.form-card > p { color: var(--ink-2); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-card { padding: var(--s3); } }

/* ---- about page ---- */
.about-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s5); align-items: center; }
.about-intro img { border-radius: var(--r-xl); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); list-style: none; padding: 0; margin: 0; }
.team li { padding: 10px 10px var(--s2); border-radius: var(--r-lg); background: var(--card); text-align: center; box-shadow: inset 0 0 0 1px #fff, var(--sh-sm); }
.team img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); margin-bottom: var(--s2); }
.team h3 { margin: 0; font-size: 1.1rem; }
.team p { margin: 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 900px) { .about-intro { grid-template-columns: 1fr; } .team { grid-template-columns: repeat(2, 1fr); } }

/* ---- products page ---- */
.prod-rows { display: grid; gap: var(--s3); }
.prod-row { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: var(--s5); align-items: center; padding: var(--s4); border-radius: var(--r-xl); background: var(--card); box-shadow: inset 0 0 0 1px #fff, var(--sh-sm); }
.prod-row .h2 { text-align: start; }
.prod-row .tags { margin-top: var(--s2); }
.prod-row--beautypanel { --c: var(--beauty); }
.prod-row--amlakpanel { --c: var(--amlak); }
.prod-row--oilpanel { --c: var(--oil); }
.prod-vis { position: relative; aspect-ratio: 16 / 11; padding: 22px; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); }
.prod-vis::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at 0% 0%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%); }
.prod-vis-ui { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; direction: ltr; }
.prod-vis-ui i { min-height: 46px; border-radius: 10px; background: rgb(255 255 255 / 0.1); }
.prod-vis-ui i:first-child { grid-column: span 3; min-height: 14px; background: rgb(255 255 255 / 0.22); }
.prod-vis-ui i:nth-child(3) { background: var(--c); }
.prod-vis-ui i:nth-child(6) { grid-column: span 2; }
.prod-vis-name { position: absolute; inset-block-end: 18px; inset-inline-end: 22px; color: #fff; font-size: 1.6rem; font-weight: 900; z-index: 1; }
@media (max-width: 900px) { .prod-row { grid-template-columns: 1fr; gap: var(--s3); padding: var(--s3); } }

/* ---- blog post ---- */
.page-hero--post .h1 { max-width: 28ch; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s4); align-items: start; }
.post { padding: var(--s4); border-radius: var(--r-xl); background: var(--card); box-shadow: inset 0 0 0 1px #fff, var(--sh-sm); }
.post-cover { width: 100%; border-radius: var(--r-lg); margin-bottom: var(--s4); }
.prose { font-size: 1.08rem; line-height: 2.1; color: var(--ink-2); max-width: 72ch; }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose img { border-radius: var(--r); margin: var(--s2) 0; }
.prose a { border-bottom: 2px solid var(--pale); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s4); }
.prevnext a { display: flex; align-items: center; gap: 10px; padding: var(--s2); border-radius: var(--r); background: var(--base); color: var(--ink); font-weight: 700; line-height: 1.6; }
.prevnext small { display: block; color: var(--muted); font-weight: 400; }
.prevnext-older { grid-column: 2; justify-content: flex-end; text-align: end; }
.post-aside { position: sticky; top: 110px; display: grid; gap: var(--s2); }
.aside-card { padding: var(--s3); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px #fff, var(--sh-sm); }
.aside-card h2 { font-size: 1.1rem; }
.aside-card ul { list-style: none; padding: 0; }
.aside-card li + li { border-top: 1px solid var(--line); }
.aside-card li a { display: block; padding: 10px 0; color: var(--ink); line-height: 1.7; }
.aside-card li a:hover { color: var(--blue); }
.aside-card--dark { background: var(--navy); color: var(--on-dark); }
.aside-card--dark h2 { color: #fff; }
.pager { display: flex; align-items: center; justify-content: center; gap: var(--s2); margin-top: var(--s4); }
@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; }
  .post { padding: var(--s3); }
  .post-aside { position: static; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext-older { grid-column: auto; }
}

/* ---- service pages (pages/service.html) ---- */
.svc-intro-sec { padding-top: 0; }
.svc-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s5); align-items: center; }
.svc-intro .h2 { text-align: start; }
.svc-intro .sub { margin-inline: 0; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; list-style: none; padding: 0; margin: var(--s3) 0 0; color: var(--ink-2); font-size: 0.95rem; }
.ticks li { display: flex; align-items: flex-start; gap: 8px; }
.ticks .i { flex: none; width: 22px; height: 22px; padding: 4px; margin-top: 3px; border-radius: 50%; background: var(--tint-sky); color: var(--blue); }

/* navy card with the light logo mark in front of arches, four tiles floating around it */
.svc-visual { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1 / 0.86; border-radius: var(--r-xl); background: var(--navy);
  background-image: radial-gradient(420px circle at 30% 30%, rgb(19 81 232 / 0.45), transparent 65%), radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1.4px);
  background-size: auto, 26px 26px; box-shadow: var(--sh-lg); }
.svc-visual .arch { position: absolute; z-index: -1; inset-block-end: -2%; left: 50%; translate: -50% 0; border-radius: 999px 999px 0 0; background: rgb(255 255 255 / 0.035); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.svc-visual .arch--1 { width: 82%; height: 92%; }
.svc-visual .arch--2 { width: 62%; height: 72%; }
.svc-visual .arch--3 { width: 42%; height: 52%; background: rgb(19 81 232 / 0.2); }
.svc-visual-mark { position: absolute; left: 50%; top: 52%; width: 40%; height: auto; translate: -50% -50%; filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.45)); }
.svc-tile { position: absolute; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #fff; color: var(--blue); box-shadow: 0 16px 34px -12px rgb(0 0 0 / 0.55); animation: svc-bob 6s ease-in-out infinite; }
.svc-tile .i { width: 28px; height: 28px; }
.svc-tile--1 { inset-block-start: 12%; inset-inline-start: 12%; rotate: -8deg; }
.svc-tile--2 { inset-block-start: 16%; inset-inline-end: 12%; background: var(--blue); color: #fff; rotate: 7deg; animation-delay: -1.5s; }
.svc-tile--3 { inset-block-end: 14%; inset-inline-start: 9%; background: var(--navy-2); color: var(--sky); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), 0 16px 34px -12px rgb(0 0 0 / 0.55); animation-delay: -3s; }
.svc-tile--4 { inset-block-end: 20%; inset-inline-end: 8%; background: #7c5cff; color: #fff; rotate: -6deg; animation-delay: -4.5s; }
@keyframes svc-bob { 50% { translate: 0 -9px; } }

.plans--4 { grid-template-columns: repeat(4, 1fr); max-width: var(--w); }
.plan-price-ask { font-size: 1.25rem !important; }
.related { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.related-card { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); border-radius: var(--r); background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px #fff, var(--sh-sm); }
.related-card:hover { box-shadow: inset 0 0 0 1.5px var(--blue), var(--sh); }
.related-card .link-arrow { color: var(--blue); font-size: 0.9rem; }

@media (max-width: 1100px) { .plans--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .plans--4 { grid-template-columns: none; } }
@media (max-width: 960px) {
  .svc-intro { grid-template-columns: 1fr; gap: var(--s4); }
  .svc-visual { max-width: 480px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
  .ticks { grid-template-columns: 1fr; }
  .svc-visual { aspect-ratio: 1 / 0.8; }
  .svc-tile { width: 46px; height: 46px; border-radius: 14px; }
  .svc-tile .i { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .svc-tile { animation: none; } }

/* ---- legal pages (terms, privacy) ---- */
.legal { max-width: 860px; padding: var(--s5) var(--s5) var(--s4); border-radius: var(--r-xl); background: var(--card); box-shadow: inset 0 0 0 1px #fff, var(--sh-sm); line-height: 2.1; }
.legal h2 { margin: var(--s4) 0 var(--s1); font-size: 1.3rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-inline-start: 1.3em; }
.legal-updated { margin: 0 0 var(--s2); color: var(--muted) !important; font-size: 0.9rem; }
.legal-toc { margin: var(--s3) 0; padding: var(--s2) var(--s3); border-radius: var(--r); background: var(--base); }
.legal-toc ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px var(--s2); margin: 8px 0 0; padding-inline-start: 1.3em; }
.legal-toc a { display: inline-block; padding: 6px 0; color: var(--ink-2); }
.legal-toc a:hover { color: var(--blue); }
.legal-sec, .legal-body h2 { scroll-margin-top: calc(var(--header-h) + 30px); }
.related--start { justify-content: flex-start; margin: var(--s2) 0; }
@media (max-width: 720px) { .legal { padding: var(--s3) var(--s2); line-height: 2; } .legal-toc ol { grid-template-columns: 1fr 1fr; } }

/* ---- case study / product detail (portfolio/detail.html) ---- */
.case { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: var(--s4); align-items: start; }
.frame--lg { margin: 0; box-shadow: var(--sh-lg); }
.shot--tall { aspect-ratio: 16 / 12.8; }
.case-vis { display: grid; place-items: center; align-content: center; gap: 6px; aspect-ratio: 16 / 11; border-radius: var(--r-xl); background: var(--navy);
  background-image: radial-gradient(380px circle at 50% 35%, color-mix(in srgb, var(--c, var(--blue)) 45%, transparent), transparent 70%); color: #fff; box-shadow: var(--sh-lg); }
.case-vis img { width: 30%; height: auto; margin-bottom: var(--s2); }
.case-vis b { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; color: var(--c, #fff); }
.case-vis small { color: var(--on-dark-muted); }
.case-vis--beautypanel { --c: var(--beauty); }
.case-vis--amlakpanel { --c: var(--amlak); }
.case-vis--oilpanel { --c: var(--oil); }
.case-info { position: sticky; top: calc(var(--header-h) + 30px); padding: var(--s3); border-radius: var(--r-xl); background: var(--card); box-shadow: inset 0 0 0 1px #fff, var(--sh-sm); }
.case-facts { display: grid; gap: 12px; margin: 0 0 var(--s3); padding-bottom: var(--s3); border-bottom: 1px dashed var(--line); }
.case-facts div { display: flex; align-items: baseline; gap: var(--s2); }
.case-facts dt { flex: none; width: 64px; color: var(--muted); font-size: 0.9rem; }
.case-facts dd { margin: 0; font-weight: 700; }
.ticks--one { grid-template-columns: 1fr; margin-top: var(--s1); }
.case-body { max-width: 760px; margin: var(--s4) auto 0; color: var(--ink-2); line-height: 2.1; }
.work-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pcard-link { color: inherit; }
.pcard-link:hover { color: var(--blue); }
.pcard-more { display: inline-flex; margin-top: var(--s2); color: var(--blue); font-size: 0.92rem; }
@media (max-width: 960px) { .case { grid-template-columns: 1fr; } .case-info { position: static; } .work-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .work-grid--3 { grid-template-columns: 1fr; } }
.case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s4); }
.case-gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: var(--sh-sm); }
.case-gallery figcaption { padding: 8px 12px; color: var(--muted); font-size: 0.85rem; }
.case-vis .case-vis-logo { width: 34%; max-height: 40%; object-fit: contain; }
@media (max-width: 720px) { .case-gallery { grid-template-columns: 1fr 1fr; } }

/* ---- blog search (blog/_search.html) ---- */
.blog-search { display: flex; gap: 6px; max-width: 460px; margin: var(--s3) auto 0; padding: 6px; border-radius: var(--pill); background: #fff; box-shadow: var(--sh); }
.blog-search input { flex: 1; min-width: 0; border: 0; box-shadow: none; background: transparent; border-radius: var(--pill); }
.blog-search input:focus { box-shadow: none; }
.blog-search:focus-within { box-shadow: 0 0 0 4px rgb(111 163 245 / 0.4), var(--sh); }
.blog-search .btn { flex: none; width: 44px; padding: 0; }
.aside-card .blog-search { margin: 0; box-shadow: inset 0 0 0 1px var(--line); }
.search-note { margin: 0 0 var(--s3); color: var(--ink-2); }
