:root {
    --ink: #17284c;
    --ink-soft: #2d3d63;
    --orange: #f15a24;
    --orange-dark: #c94619;
    --paper: #ffffff;
    --wash: #f4f6fb;
    --line: #dce2ee;
    --muted: #66728a;
    --shadow: 0 22px 60px rgba(23, 40, 76, 0.12);
    --radius: 24px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--wash); color: var(--ink); line-height: 1.6; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem clamp(1rem, 4vw, 4rem); background: rgba(255,255,255,0.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.site-header nav a { color: var(--ink-soft); font-weight: 650; font-size: .95rem; }

main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2.5rem 0 4rem; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2.5rem; background: radial-gradient(circle at top right, rgba(241,90,36,.12), transparent 42%), var(--paper); border-radius: 34px; padding: clamp(2rem, 5vw, 5rem); box-shadow: var(--shadow); margin-bottom: 2rem; }
.hero.compact { display: block; padding: clamp(2rem, 4vw, 3.5rem); }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -.055em; margin: .2rem 0 1.2rem; }
.hero p { font-size: 1.15rem; color: var(--ink-soft); max-width: 72ch; }
.hero figure { margin: 0; text-align: center; }
.home-hero figure img { background: white; border-radius: 18px; padding: 1rem; }
.about-hero figure img { border-radius: 30px; max-height: 520px; object-fit: cover; box-shadow: var(--shadow); }
.eyebrow { color: var(--orange-dark) !important; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: .82rem !important; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.button, button.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--orange); color: white; padding: .78rem 1.15rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 20px rgba(241,90,36,.18); }
.button:hover, button.button:hover { background: var(--orange-dark); color: white; text-decoration: none; }
.button.secondary { background: var(--ink); color: white; box-shadow: none; }

.grid { display: grid; gap: 1.25rem; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.45rem; box-shadow: 0 8px 28px rgba(23, 40, 76, 0.06); }
.card h2, .card h3 { margin-top: 0; line-height: 1.18; }
.lead-small { font-weight: 700; color: var(--ink-soft); }
.stack { margin: 2rem 0; }
.stack > h2 { font-size: 2rem; letter-spacing: -.035em; }
.list-item { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 1.3rem; margin: 1rem 0; }
.list-item h3 { margin: 0 0 .35rem; }
.meta { color: var(--muted); font-size: .9rem; font-weight: 650; }
.note { background: #fff8ec; border: 1px solid #ffd7a8; padding: 1rem; border-radius: 14px; }
.notice { padding: 1rem 1.25rem; border-radius: 16px; font-weight: 700; }
.notice.success { background: #edf8ef; border: 1px solid #b7e3bf; }
.notice.error { background: #fff0f0; border: 1px solid #f2bbbb; }

.archive-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.category-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; position: sticky; top: 100px; }
.category-panel h2 { margin-top: 0; }
.category-link { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .75rem; border-radius: 12px; color: var(--ink); font-weight: 700; }
.category-link.active, .category-link:hover { background: var(--wash); text-decoration: none; }
.category-link span { color: var(--muted); }

.article { background: var(--paper); border-radius: 32px; padding: clamp(1.3rem, 4vw, 4rem); box-shadow: var(--shadow); margin-bottom: 2rem; }
.article h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.045em; }
.legacy-content { font-size: 1.05rem; }
.formatted-article h2 { margin-top: 2.2rem; font-size: 1.85rem; letter-spacing: -.03em; }
.formatted-article h3 { margin-top: 1.6rem; }
.formatted-article table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.formatted-article th, .formatted-article td { border: 1px solid var(--line); padding: .65rem; vertical-align: top; }
.formatted-article blockquote { border-left: 5px solid var(--orange); margin: 1.5rem 0; padding: .8rem 1rem; background: var(--wash); border-radius: 0 14px 14px 0; }
.kpi-section { background: #f7f9fd; border: 1px solid var(--line); padding: 1.4rem; border-radius: 22px; margin: 1.3rem 0; }
.kpi-list li { margin: .75rem 0; }
.article-note { background: #fff8ec; border: 1px solid #ffd7a8; padding: 1rem; border-radius: 16px; }

.testimonial-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.testimonial-card { margin: 0; }
.testimonial-card p { font-size: 1.05rem; }
.testimonial-card.featured { border-color: rgba(241,90,36,.45); box-shadow: 0 12px 30px rgba(241,90,36,.12); }
.testimonial-card footer { display: grid; gap: .15rem; color: var(--muted); }
.testimonial-card footer strong { color: var(--ink); }
.testimonial-evidence { margin: 0 0 1rem; }
.testimonial-evidence img { border-radius: 18px; border: 1px solid var(--line); }
.testimonial-card.compact p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }

.price-card .price { color: var(--orange-dark); font-weight: 900; font-size: 1.55rem; margin: .2rem 0 .7rem; }
.brand-history { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; }
.legacy-brand-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.legacy-brand-row img { max-height: 110px; width: auto; background: white; border: 1px solid var(--line); border-radius: 16px; padding: .5rem; }
.link-list { padding-left: 1.1rem; }
.link-list li { margin: .4rem 0; }

.editor-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-top: 2rem; }
.editor-list, .editor-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.editor-list { max-height: 78vh; overflow: auto; position: sticky; top: 100px; }
.editor-row { display: block; padding: .75rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.editor-row:hover { background: var(--wash); text-decoration: none; }
.editor-row strong { display: block; font-size: .92rem; }
.editor-row span { display: block; color: var(--muted); font-size: .8rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 750; color: var(--ink-soft); margin: .8rem 0; }
label.checkbox { display: flex; align-items: center; gap: .5rem; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .7rem; font: inherit; background: white; color: var(--ink); }
textarea { min-height: 140px; }

.small-status { opacity: .85; }
table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: .7rem; }
.site-footer { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; color: var(--muted); padding: 2rem; border-top: 1px solid var(--line); background: white; }

@media (max-width: 900px) {
    .site-header { align-items: flex-start; flex-direction: column; }
    .hero, .home-hero, .about-hero { grid-template-columns: 1fr; }
    .cards, .archive-layout, .editor-layout { grid-template-columns: 1fr; }
    .category-panel, .editor-list { position: static; max-height: none; }
    .form-grid { grid-template-columns: 1fr; }
}

.project-card { display: flex; flex-direction: column; }
.project-logo { max-height: 105px; width: auto; object-fit: contain; align-self: flex-start; margin: 0 0 1rem; background: white; border: 1px solid var(--line); border-radius: 16px; padding: .5rem; }
.project-card .project-logo[src*="handsanaus"] { max-height: 130px; }
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 4vw, 2rem); margin: 2rem 0; box-shadow: 0 8px 28px rgba(23, 40, 76, 0.06); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.contact-form label { margin: 0; }
.full-span { grid-column: 1 / -1; }
.link-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin: 2rem 0; align-items: start; }
.link-column .link-list { list-style: none; padding-left: 0; margin: 0; }
.link-column .link-list li { border-top: 1px solid var(--line); padding: .8rem 0; margin: 0; }
.link-column .link-list li:first-child { border-top: 0; }
.link-column .link-list a { font-weight: 850; color: var(--ink); display: inline-block; }
.link-column .link-list span { display: block; color: var(--muted); font-size: .92rem; margin-top: .15rem; }
.contact-message { background: var(--wash); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.inline-form { margin-top: 1rem; }

@media (max-width: 900px) {
    .contact-panel, .contact-form { grid-template-columns: 1fr; }
    .full-span { grid-column: auto; }
}
