/* SC & CO — layout and look follow a light, pill-and-card agency style:
   grey hero with an animated shader, white pill nav, rounded cards, numbered section badges.
   Accent is the logo blue. Tokens first; everything else uses them. */

:root {
  --ink: #111827;          /* gray-900 */
  --ink-2: #4b5563;        /* gray-600 */
  --ink-3: #6b7280;        /* gray-500 */
  --line: #e5e7eb;         /* gray-200 */
  --line-2: #d1d5db;       /* gray-300 */
  --hero: #efefef;
  --soft: #f5f5f5;
  --accent: #1f93d1;
  --accent-hover: #1a80b7;
  --accent-ink: #15709f;
  --wa: #25d366;
  --wrap: 1440px;
  --gutter: 20px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
[x-cloak] { display: none !important; }
[hidden] { display: none !important; } /* beats component display rules, e.g. .wa-chip */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */

.display { font-weight: 500; line-height: 1.08; letter-spacing: -.03em; font-size: clamp(1.75rem, 7vw, 4.2rem); }
@media (min-width: 640px) { .display { font-size: clamp(2.5rem, 5vw, 4.2rem); } }
.h2 { font-weight: 500; line-height: 1.12; letter-spacing: -.02em; font-size: clamp(1.5rem, 4vw, 3.2rem); }
.display em, .h2 em { font-style: normal; color: var(--ink-3); }
.br-sm { display: none; }
@media (min-width: 640px) { .br-sm { display: block; } .sp-sm { display: none; } }

/* numbered section badge:  (1) [ Introducing SC & CO ] */
.badge-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
@media (min-width: 640px) { .badge-row { margin-bottom: 32px; } }
.badge-num { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.badge-label { font-size: 12px; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.section--soft .badge-label { border-color: var(--line-2); }
@media (min-width: 640px) {
  .badge-num { width: 28px; height: 28px; font-size: 12px; }
  .badge-label { font-size: 13px; padding: 6px 16px; }
}

/* ---------- buttons: text roll + rotating arrow ---------- */

.btn { --h: 20px; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; border: 0; cursor: pointer; border-radius: 999px; padding: 8px 8px 8px 20px; font-size: 13px; font-weight: 500; line-height: var(--h); white-space: nowrap; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--lg { font-size: 13px; }
@media (min-width: 640px) { .btn--lg { font-size: 14px; padding-left: 24px; } }
.btn[disabled] { opacity: .6; cursor: progress; }

.roll { display: block; height: var(--h); overflow: hidden; }
.roll-in { display: flex; flex-direction: column; transition: transform .5s var(--ease); }
.roll-in > span { display: block; height: var(--h); }
.btn:hover .roll-in, .btn:focus-visible .roll-in { transform: translateY(-50%); }

.btn-icon { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; flex: none; }
.btn--accent .btn-icon { color: var(--accent); }
.btn--lg .btn-icon { width: 28px; height: 28px; }
@media (min-width: 640px) { .btn--lg .btn-icon { width: 32px; height: 32px; } }
.btn-icon svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.btn:hover .btn-icon svg, .btn:focus-visible .btn-icon svg { transform: rotate(-45deg); }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* WhatsApp contact chip (white pill, soft shadow) — app.js fills href + number from config.js */
.wa-chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 4px; padding: 8px 12px; text-decoration: none; font-size: 13px; font-weight: 500; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transition: box-shadow .3s var(--ease); }
.wa-chip:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .12); }
.wa-chip svg { width: 20px; height: 20px; fill: var(--wa); }
.wa-chip .tag { font-size: 10px; background: var(--ink); color: #fff; padding: 2px 6px; border-radius: 4px; }
@media (min-width: 640px) { .wa-chip { font-size: 14px; } .wa-chip svg { width: 24px; height: 24px; } .wa-chip .tag { font-size: 11px; padding: 2px 8px; } }

/* ---------- header: white pill nav ---------- */

/* above the hero content (20) and the WhatsApp bubble (40), so the mobile menu sheet covers both */
.site-header { position: relative; z-index: 45; }
/* nav-wrap sits above the mobile menu's backdrop (z 50, same header stacking context) so logo + Close stay bright and tappable */
.nav-wrap { position: relative; z-index: 51; width: 100%; max-width: var(--wrap); margin-inline: auto; padding: 8px; }
@media (min-width: 640px) { .nav-wrap { padding: 12px; } }
.navbar { background: #fff; border-radius: 999px; padding: 5px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-left { display: flex; align-items: center; gap: 24px; }
.logo { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; flex: none; }
@media (min-width: 640px) { .logo { height: 40px; padding: 0 16px; font-size: 13px; } }
.nav-links { display: none; gap: 24px; }
.nav-links a { font-size: 14px; white-space: nowrap; text-decoration: none; color: var(--ink); transition: color .3s; }
.nav-links a:hover { color: var(--ink-3); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-right { display: none; align-items: center; gap: 20px; }
.nav-note { display: none; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; color: var(--ink-2); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; cursor: pointer; font-size: 12px; white-space: nowrap; padding: 4px 10px; border-radius: 999px; color: var(--ink-2); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.menu-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 500; }
.menu-toggle .icon { width: 16px; height: 16px; }
/* desktop nav from 900px: BM labels (Perkhidmatan, Soalan Lazim…) need the room */
@media (min-width: 900px) {
  .nav-links, .nav-right { display: flex; }
  .menu-toggle { display: none; }
}
@media (min-width: 1280px) { .nav-note { display: inline-flex; } }

/* mobile menu: dim backdrop + bottom sheet that slides up */
.mobile-menu { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: flex-end; visibility: hidden; transition: visibility 0s .5s; }
.mobile-menu.open { visibility: visible; transition: none; }
.mm-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .5s var(--ease-sheet); }
.mobile-menu.open .mm-backdrop { opacity: 1; }
.mm-sheet { position: relative; margin: 0 12px 12px; background: #fff; border-radius: 16px; padding: 20px; transform: translateY(calc(100% + 12px)); transition: transform .5s var(--ease-sheet); }
.mobile-menu.open .mm-sheet { transform: none; }
.mm-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.mm-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; color: var(--ink-2); background: var(--soft); border-radius: 999px; padding: 6px 12px; }
.mm-links { display: grid; gap: 4px; margin-bottom: 24px; }
.mm-links a { font-size: 28px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; line-height: 1.3; }
@media (min-width: 640px) { .mm-links a { font-size: 32px; } }
.mm-sheet .btn { width: 100%; justify-content: space-between; }
html.menu-open { overflow: hidden; } /* page stays put behind the open sheet */
@media (min-width: 900px) { .mobile-menu { display: none; } html.menu-open { overflow: visible; } }

/* ---------- home hero ---------- */

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--hero); overflow: hidden; }
/* CSS stand-in for the shader (and the fallback where WebGPU isn't available) */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(60% 55% at 78% 30%, rgba(31, 147, 209, .28), transparent 70%),
  radial-gradient(45% 40% at 20% 85%, rgba(31, 147, 209, .14), transparent 70%),
  linear-gradient(180deg, #f6f6f6, var(--hero)); }
.hero-shader { position: absolute; inset: 0; z-index: 10; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-shader.on { opacity: 1; }
.hero-content { position: relative; z-index: 20; }
.hero-spacer { flex: 1; }
.hero-content { padding-bottom: 56px; }
@media (min-width: 640px) { .hero-content { padding-bottom: 64px; } }
@media (min-width: 1024px) { .hero-content { padding-bottom: 80px; } }
.hero-label { font-size: 13px; letter-spacing: .025em; margin-bottom: 20px; }
.hero-lead { margin-top: 20px; max-width: 560px; font-size: 15px; color: var(--ink-2); }
.hero-actions { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
@media (min-width: 640px) {
  .hero-label { font-size: 14px; margin-bottom: 32px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { margin-top: 48px; flex-direction: row; align-items: center; gap: 20px; }
}

/* inner-page hero: same grey, no shader */
.page-hero { position: relative; background: var(--hero); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 85% 10%, rgba(31, 147, 209, .18), transparent 70%); pointer-events: none; }
.page-hero-inner { position: relative; padding-top: 64px; padding-bottom: 56px; }
@media (min-width: 1024px) { .page-hero-inner { padding-top: 112px; padding-bottom: 80px; } }
.page-hero .hero-lead { margin-top: 20px; }

/* ---------- sections ---------- */

.section { padding: 64px 0 48px; overflow: hidden; }
.section--soft { background: var(--soft); padding-bottom: 64px; }
@media (min-width: 640px) { .section { padding: 80px 0 64px; } .section--soft { padding-bottom: 80px; } }
@media (min-width: 1024px) { .section { padding: 128px 0 96px; } .section--soft { padding: 112px 0; } }
.section-title { margin-bottom: 48px; }
@media (min-width: 640px) { .section-title { margin-bottom: 64px; } }
@media (min-width: 1024px) { .section-title { margin-bottom: 112px; } .section--soft .section-title { margin-bottom: 64px; } }
.section-lead { margin-top: 20px; max-width: 640px; font-size: 15px; color: var(--ink-2); }
@media (min-width: 640px) { .section-lead { font-size: 17px; } }

/* about: stacked on mobile, 3-column composition on desktop */
.about-text { font-size: 15px; line-height: 1.6; font-weight: 500; max-width: 520px; }
.about-text + .btn { margin-top: 24px; }
@media (min-width: 640px) { .about-text { font-size: 17px; } }
.about-mobile { display: grid; gap: 40px; }
.about-imgs { display: flex; flex-direction: column; gap: 16px; }
.about-imgs img, .about-desk img { width: 100%; object-fit: cover; border-radius: 12px; }
/* team photo is a 4:5 portrait; beside the 3:2 illustration the two end up about the same height */
.about-imgs .a-small, .about-desk .a-small { aspect-ratio: 4 / 5; object-position: 50% 20%; }
.about-imgs .a-small { max-width: 320px; }
.about-imgs .a-large { aspect-ratio: 900 / 600; }
@media (min-width: 640px) {
  .about-imgs { flex-direction: row; align-items: flex-end; gap: 20px; }
  .about-imgs .a-small { width: 38%; max-width: none; }
  .about-imgs .a-large { width: 62%; }
  .about-imgs img { border-radius: 16px; }
}
.about-desk { display: none; }
@media (min-width: 1024px) {
  .about-mobile { display: none; }
  .about-desk { display: grid; grid-template-columns: 26% 1fr 48%; align-items: end; gap: 24px; }
  .about-desk img { border-radius: 16px; }
  .about-desk .a-large { aspect-ratio: 3 / 2; }
  .about-desk .a-mid { align-self: start; display: flex; justify-content: flex-end; }
  .about-desk .about-text { font-size: 16px; line-height: 1.65; }
}
@media (min-width: 1280px) { .about-desk { gap: 32px; } .about-desk .about-text { font-size: 18px; } }

/* ---------- cards (services, blog) ---------- */

.cards { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 640px) { .cards { gap: 24px; } }
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { gap: 28px; } }
.cards--3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card { display: block; text-decoration: none; color: inherit; }
.card-media { position: relative; overflow: hidden; border-radius: 16px; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card-media--contain img { object-fit: contain; }
.card:hover .card-media img { transform: scale(1.03); }
.ar-wide { aspect-ratio: 329 / 246; }
.ar-square { aspect-ratio: 1; }
.ar-pano { aspect-ratio: 329 / 246; }
@media (min-width: 768px) { .card--span { grid-column: 1 / -1; } .card--span .ar-pano { aspect-ratio: 21 / 9; } }
.card-title { margin-top: 16px; font-size: 14px; font-weight: 600; }
.card-desc { margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
@media (min-width: 640px) { .card-desc { font-size: 14px; } .card-title { font-size: 15px; } }

/* hover pill: a circle in the corner that widens to reveal its label */
.pill-btn { position: absolute; left: 16px; bottom: 16px; height: 36px; max-width: 36px; border-radius: 999px; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: flex-end; overflow: hidden; transition: max-width .45s ease-in-out; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.pill-btn span { padding: 0 8px 0 16px; font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.pill-btn svg { width: 14px; height: 14px; margin-right: 11px; flex: none; transform: rotate(-45deg); transition: transform .3s ease-in-out; }
.pill-btn--dark { background: var(--ink); color: #fff; }
/* the pill sizes to its label (any language); max-width animates the reveal */
.card:hover .pill-btn, .card:focus-visible .pill-btn { max-width: 260px; }
.card:hover .pill-btn span, .card:focus-visible .pill-btn span { opacity: 1; transition-delay: .1s; }
.card:hover .pill-btn svg, .card:focus-visible .pill-btn svg { transform: none; }
@media (hover: none) { .pill-btn { max-width: 260px; } .pill-btn span { opacity: 1; } .pill-btn svg { transform: none; } }

/* why cards */
.why-grid { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.why-card { background: var(--soft); border-radius: 16px; padding: 28px; }
.why-card .num { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.why-card h3 { margin-top: 40px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.why-card p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* faq */
.faq-list { display: grid; gap: 12px; max-width: 960px; }
.faq-list details { background: #fff; border-radius: 16px; padding: 0 24px; }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 16px; font-weight: 500; }
@media (min-width: 640px) { .faq-list summary { font-size: 17px; } }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .4s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding-bottom: 22px; color: var(--ink-2); font-size: 15px; }

/* ---------- services page ---------- */

.subnav { position: sticky; top: 0; z-index: 15; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.subnav a { flex: none; font-size: 13px; font-weight: 500; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; transition: background-color .3s, color .3s; }
.subnav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.service { padding: 64px 0; scroll-margin-top: 64px; }
.service + .service { border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .service { padding: 96px 0; } }
.service-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .service:nth-of-type(even) .service-media { order: 2; }
}
.service-media { border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service h2 { margin-bottom: 20px; }
.svc-h { display: flex; align-items: center; gap: 16px; }
.svc-h .badge-num { width: 32px; height: 32px; font-size: 13px; flex: none; }
.service p { color: var(--ink-2); font-size: 15px; }
.service .includes { margin-top: 24px; font-weight: 600; color: var(--ink); font-size: 14px; }
.service .btn { margin-top: 28px; }
.checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* ---------- blog ---------- */

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 16px; font-size: 13px; cursor: pointer; transition: background-color .3s, color .3s; }
.chip[aria-pressed="true"], .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar input { font: inherit; font-size: 14px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 10px 18px; min-width: min(100%, 280px); }
.post-card .card-media { background: #fff; }
.post-card .card-media img { object-position: top; }
.card-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #e6f3fb, #c9e5f5); color: var(--accent-ink); font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; letter-spacing: -.03em; transition: transform .7s var(--ease); }
.card:hover .card-fallback { transform: scale(1.03); }
.post-card time { display: block; margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.post-card .card-title { margin-top: 2px; font-size: 16px; font-weight: 500; line-height: 1.35; }
.empty { color: var(--ink-2); padding: 24px 0; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pager button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; min-width: 40px; height: 40px; padding: 0 14px; cursor: pointer; font-size: 14px; }
.pager button[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager button:disabled { opacity: .4; cursor: default; }
/* only page 1 shows before blog.js takes over paging (no jump on load) */
.js main:not(.ready) [data-post]:nth-child(n+10) { display: none; }

/* post page */
.article { max-width: 780px; margin-inline: auto; }
.article .back { font-size: 14px; text-decoration: none; color: var(--ink-2); }
.article .back:hover { color: var(--ink); }
.article h1 { margin-top: 24px; }
.article time { display: block; margin-top: 16px; color: var(--ink-3); font-size: 14px; }
.article p { margin-top: 1em; font-size: 17px; color: var(--ink-2); }
.article h2 { margin-top: 2em; font-size: 24px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.article ul { margin: 1em 0 0; padding-left: 1.2em; font-size: 17px; color: var(--ink-2); }
.article li + li { margin-top: .6em; }
.article strong { color: var(--ink); font-weight: 600; }
.article p a, .article li a { color: var(--accent); }
.article .slides { display: grid; gap: 18px; margin: 40px 0; }
.article .slides img { width: 100%; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; flex-wrap: wrap; }
.btn--ghost { background: #fff; border: 1px solid var(--line-2); padding: 10px 20px; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 32px; } }
.form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: var(--soft); }
@media (min-width: 640px) { .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.form-row { display: grid; gap: 16px; }
.field label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 6px; }
.field label i { color: #c0392b; font-style: normal; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 15px; padding: 13px 18px; border: 1px solid transparent; border-radius: 14px; background: #fff; color: var(--ink); transition: border-color .3s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 14px; font-size: 14px; }
.notice--ok { background: #e6f6ec; color: #1d6b3a; }
.notice--warn { background: #fdf0e7; color: #8a4512; }
.contact-side { display: grid; gap: 16px; }
.side-card { background: var(--soft); border-radius: 24px; padding: 28px; }
.side-card h2 { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.side-card address, .side-card p { font-size: 16px; }
.side-card a { font-weight: 500; }
.side-card .wa-chip { margin-top: 4px; }

/* ---------- footer ---------- */

.site-footer { background: #fff; padding-top: 24px; overflow: hidden; }
.footer-cta { background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 64px); display: grid; gap: 28px; align-items: end; }
@media (min-width: 1024px) { .footer-cta { grid-template-columns: 1fr auto; } }
.footer-cta h2 { color: #fff; }
.footer-cta p { margin-top: 16px; color: #c4cbd3; max-width: 520px; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-cta .wa-chip { color: var(--ink); }
.footer-grid { display: grid; gap: 32px; padding: 56px 0 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.3fr 1fr; } }
.footer-grid h3 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.footer-grid p, .footer-grid address, .footer-grid li { font-size: 14px; color: var(--ink-2); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.copyright a { color: var(--ink-2); }
.wordmark { font-size: clamp(5rem, 19vw, 18rem); font-weight: 600; letter-spacing: -.06em; line-height: .8; text-align: center; color: var(--soft); white-space: nowrap; user-select: none; margin-bottom: -.12em; }

/* floating WhatsApp button (added by app.js when config.whatsapp is set) */
.wa-bubble { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 28px rgba(17, 24, 39, .22); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.wa-bubble svg { width: 30px; height: 30px; fill: currentColor; }
.wa-bubble:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 34px rgba(17, 24, 39, .28); }

/* ---------- motion ---------- */

/* hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: rise .9s var(--ease) both; }
  .hero-content > :nth-child(2) { animation-delay: .08s; }
  .hero-content > :nth-child(3) { animation-delay: .16s; }
  .hero-content > :nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }

  /* scroll reveal — app.js adds .in; content stays visible without JS */
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .cards > .reveal:nth-child(2n) { --rd: .1s; }
  .why-grid > .reveal:nth-child(2) { --rd: .08s; }
  .why-grid > .reveal:nth-child(3) { --rd: .16s; }
  .why-grid > .reveal:nth-child(4) { --rd: .24s; }

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