/* ═══════════════════════════════════════════════════════════
   HVAC Applied — International B2B Design System
   Inspired by enterprise applied-HVAC patterns (light, photo-led)
═══════════════════════════════════════════════════════════ */


:root {
    --ha-blue: #00A1E4;
    --ha-blue-deep: #0077B6;
    --ha-blue-soft: #E8F7FC;
    --ha-ink: #1C2430;
    --ha-muted: #5B6775;
    --ha-line: #E3E8EF;
    --ha-paper: #FFFFFF;
    --ha-mist: #F5F7FA;
    --ha-eco: #2E9E5B;
    --ha-amber: #E8A317;
    --ha-shadow: 0 18px 50px rgba(28, 36, 48, .08);
    --ha-font: 'Vazirmatn', 'Sora', system-ui, sans-serif;
    --ha-display: 'Sora', 'Vazirmatn', system-ui, sans-serif;
}

/* ── Landing shell ── */
.svc-body {
    margin: 0;
    background: var(--ha-paper);
    font-family: var(--ha-font);
    color: var(--ha-ink);
}

.svc-app.lp-wrap {
    min-height: 100vh;
    background: var(--ha-paper);
    color: var(--ha-ink);
}

/* ── Utility bar ── */
.ha-util {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    padding: 8px 40px;
    background: var(--ha-mist);
    border-bottom: 1px solid var(--ha-line);
    font-size: .78rem;
}
.ha-util a {
    color: var(--ha-muted);
    text-decoration: none;
    transition: color .2s;
}
.ha-util a:hover { color: var(--ha-blue-deep); }
.ha-util__eco {
    color: var(--ha-eco) !important;
    font-weight: 700;
    letter-spacing: .02em;
}

/* ── Main header ── */
.ha-header {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px 40px;
    background: var(--ha-paper);
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    z-index: 80;
    transition: box-shadow .25s, border-color .25s;
}
.ha-header--scrolled {
    box-shadow: 0 4px 24px rgba(28, 36, 48, .06);
    border-bottom-color: var(--ha-line);
}
.ha-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}
.ha-brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--ha-blue) 0%, var(--ha-blue-deep) 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--ha-display);
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: -.02em;
    box-shadow: 0 8px 20px rgba(0, 161, 228, .28);
}
.ha-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.ha-brand__name {
    font-family: var(--ha-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.03em;
    color: var(--ha-ink);
}
.ha-brand__name em {
    font-style: normal;
    color: var(--ha-blue);
}
.ha-brand__sub {
    font-size: .68rem;
    color: var(--ha-muted);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ha-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
    margin-left: 0;
}
.ha-nav a {
    color: var(--ha-ink);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background .2s, color .2s;
}
.ha-nav a:hover { background: var(--ha-blue-soft); color: var(--ha-blue-deep); }
.ha-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: var(--ha-blue);
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 161, 228, .28);
    transition: transform .2s, background .2s, box-shadow .2s;
}
.ha-header__cta:hover {
    background: var(--ha-blue-deep);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 119, 182, .32);
}

/* ── Hero — light applied composition (Daikin-like) ── */
.ha-hero {
    position: relative;
    min-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1200px 480px at 85% -10%, rgba(0, 161, 228, .12), transparent 60%),
        linear-gradient(180deg, #FFFFFF 0%, #F7FBFD 55%, #EEF5F9 100%);
    overflow: hidden;
}
.ha-hero__content {
    position: relative;
    z-index: 2;
    padding: 40px 40px 20px;
    max-width: 920px;
    flex-shrink: 0;
    animation: ha-rise .9s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes ha-rise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ha-hero__brand {
    font-family: var(--ha-display);
    font-size: clamp(1.75rem, 3.8vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--ha-ink);
    margin: 0 0 18px;
    line-height: 1.05;
}
.ha-hero__brand span { color: var(--ha-blue); }
.ha-hero h1 {
    margin: 0 0 14px;
    font-family: var(--ha-display);
    font-size: clamp(1.85rem, 4.4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.12;
    color: var(--ha-ink);
    text-transform: uppercase;
}
.ha-hero h1 em {
    font-style: normal;
    color: var(--ha-blue);
}
.ha-hero__lead {
    margin: 0 0 28px;
    max-width: 540px;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--ha-muted);
    font-weight: 400;
}
.ha-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.ha-hero__media {
    position: relative;
    flex: 1 1 auto;
    min-height: 46vh;
    height: 46vh;
    margin-top: auto;
    background-color: #1a2a36;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, 0) 22%),
        url('/acc-engine/assets/img/portals/service/hero-hvac.jpg');
    background-position: center 30%;
    background-size: cover;
    background-repeat: no-repeat;
}
.ha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.ha-btn--primary {
    background: var(--ha-blue);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 161, 228, .35);
}
.ha-btn--primary:hover {
    background: #0089c4;
    transform: translateY(-2px);
}
.ha-btn--ghost {
    background: transparent;
    color: var(--ha-ink);
    border: 1.5px solid #C9D3DE;
}
.ha-btn--ghost:hover {
    border-color: var(--ha-blue);
    color: var(--ha-blue-deep);
    background: var(--ha-blue-soft);
    transform: translateY(-2px);
}
.ha-btn--dark {
    background: var(--ha-ink);
    color: #fff;
}
.ha-btn--dark:hover { background: #0f1720; transform: translateY(-2px); }
.ha-btn--outline {
    background: transparent;
    color: var(--ha-ink);
    border: 1.5px solid var(--ha-line);
}
.ha-btn--outline:hover {
    border-color: var(--ha-blue);
    color: var(--ha-blue-deep);
}

/* ── Sections ── */
.ha-section {
    padding: 72px 40px;
}
.ha-section--mist { background: var(--ha-mist); }
.ha-section--ink {
    background: linear-gradient(135deg, #0f1a24 0%, #163048 55%, #0f1a24 100%);
    color: #fff;
}
.ha-section__head {
    max-width: 680px;
    margin: 0 0 40px;
}
.ha-section__head h2 {
    margin: 0 0 12px;
    font-family: var(--ha-display);
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
    color: inherit;
}
.ha-section__head p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--ha-muted);
}
.ha-section--ink .ha-section__head p { color: rgba(255, 255, 255, .68); }
.ha-kicker {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ha-blue);
    margin-bottom: 10px;
}
.ha-section--ink .ha-kicker { color: #7dd3fc; }

/* Solutions — one job per block, not card-heavy clutter */
.ha-solutions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--ha-line);
    border-radius: 4px;
    overflow: hidden;
    background: var(--ha-paper);
}
.ha-sol {
    padding: 32px 28px;
    border-left: 1px solid var(--ha-line);
    transition: background .25s;
}
.ha-sol:first-child { border-left: none; }
.ha-sol:hover { background: var(--ha-blue-soft); }
.ha-sol__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    color: var(--ha-blue);
}
.ha-sol__icon svg { width: 100%; height: 100%; }
.ha-sol h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ha-ink);
}
.ha-sol p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--ha-muted);
}

/* Intelligence band */
.ha-iq {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
}
.ha-iq__visual {
    position: relative;
    min-height: 340px;
    border-radius: 4px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 161, 228, .2), rgba(15, 26, 36, .45)),
        url('/acc-engine/assets/img/portals/service/story-tech.jpg') center/cover;
    box-shadow: var(--ha-shadow);
    animation: ha-fade-in 1.1s ease both .2s;
}
@keyframes ha-fade-in {
    from { opacity: 0; transform: scale(.98); }
    to   { opacity: 1; transform: scale(1); }
}
.ha-iq__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}
.ha-iq__stat strong {
    display: block;
    font-family: var(--ha-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
}
.ha-iq__stat span {
    font-size: .82rem;
    color: rgba(255, 255, 255, .65);
}

/* Access portals — interaction containers (allowed) */
.ha-portals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
}
.ha-portal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px 24px;
    background: var(--ha-paper);
    border: 1px solid var(--ha-line);
    border-radius: 4px;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    color: inherit;
    transition: border-color .2s, transform .2s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}
.ha-portal::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--ha-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease;
}
.ha-portal:hover {
    border-color: var(--ha-blue);
    transform: translateY(-3px);
    box-shadow: var(--ha-shadow);
}
.ha-portal:hover::before { transform: scaleX(1); }
.ha-portal__tag {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ha-blue);
}
.ha-portal strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ha-ink);
    letter-spacing: -.02em;
}
.ha-portal small {
    font-size: .88rem;
    color: var(--ha-muted);
    line-height: 1.55;
}
.ha-portal__go {
    margin-top: auto;
    padding-top: 14px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--ha-blue-deep);
}
.ha-portal--talent { background: linear-gradient(180deg, #fff 0%, #F0FBFF 100%); }
.ha-portal--marketer { background: linear-gradient(180deg, #fff 0%, #FFFBF2 100%); }
.ha-portal--marketer::before { background: var(--ha-amber); }
.ha-portal--marketer .ha-portal__tag { color: #b45309; }

/* Case / proof */
.ha-case {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--ha-paper);
    border: 1px solid var(--ha-line);
    overflow: hidden;
}
.ha-case__media {
    min-height: 320px;
    background:
        linear-gradient(135deg, rgba(0, 161, 228, .15), rgba(28, 36, 48, .45)),
        url('/acc-engine/assets/img/portals/service/story-building.jpg') center/cover;
}
.ha-case__body { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.ha-case__body h3 {
    margin: 0 0 14px;
    font-family: var(--ha-display);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.3;
}
.ha-case__body p {
    margin: 0 0 22px;
    color: var(--ha-muted);
    line-height: 1.7;
    font-size: .95rem;
}

/* Demo scenarios + HVAC Assistant */
.ha-demos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}
.ha-demos__loading {
    grid-column: 1 / -1;
    color: var(--ha-muted);
    font-size: .95rem;
}
.ha-demo-card {
    background: #fff;
    border: 1px solid var(--ha-line);
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 180px;
    transition: border-color .2s, box-shadow .2s;
}
.ha-demo-card:hover {
    border-color: #7dd3fc;
    box-shadow: 0 8px 24px rgba(12, 74, 110, .08);
}
.ha-demo-card__icon { font-size: 1.4rem; }
.ha-demo-card strong {
    font-family: var(--ha-display);
    font-size: 1rem;
    color: var(--ha-ink);
    line-height: 1.35;
}
.ha-demo-card small {
    color: var(--ha-muted);
    font-size: .8rem;
    line-height: 1.45;
}
.ha-demo-card__code {
    font-size: .75rem;
    background: #f0f9ff;
    color: #0369a1;
    padding: 4px 8px;
    border-radius: 6px;
    width: fit-content;
}
.ha-demo-card__actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ha-btn--sm {
    padding: 8px 14px;
    font-size: .8rem;
}
.ha-demos__hint {
    font-size: .78rem;
    color: var(--ha-muted);
    margin: 0;
}
.ha-demos__hint code {
    font-size: .72rem;
    background: rgba(255,255,255,.7);
    padding: 2px 6px;
    border-radius: 4px;
}
.ha-assistant {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 55%, #0e7490 100%);
    color: #fff;
    border-radius: 18px;
    padding: 28px 24px;
    margin-bottom: 20px;
}
.ha-assistant__head .ha-kicker { color: #7dd3fc; }
.ha-assistant__head h3 {
    margin: 6px 0 8px;
    font-family: var(--ha-display);
    font-size: 1.45rem;
}
.ha-assistant__head p {
    margin: 0 0 16px;
    opacity: .85;
    font-size: .92rem;
}
.ha-assist-input {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: .95rem;
    resize: vertical;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.ha-assist-out {
    margin-top: 14px;
    background: rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: .9rem;
}
.ha-assist-result ul { margin: 6px 0 10px; padding-right: 18px; }
.ha-assist-conf {
    display: inline-block;
    margin-right: 8px;
    background: rgba(125, 211, 252, .25);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .75rem;
}
.ha-assist-hint { opacity: .8; font-size: .82rem; }
.ha-assist-err { color: #fecaca; margin: 0; }
.svc-demo-hint {
    margin-top: 12px;
    font-size: .8rem;
    color: #64748b;
}
.svc-case-card--focus {
    outline: 2px solid #0ea5e9;
    background: #f0f9ff;
}
.cw-sup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-top: 8px;
}
.cw-sup-table th, .cw-sup-table td {
    border: 1px solid #e2e8f0;
    padding: 4px 6px;
    text-align: right;
}
.cw-sup-table th { background: #f1f5f9; }

/* Help strip — Daikin-style */
.ha-help {
    background: var(--ha-ink);
    color: #fff;
    padding: 48px 40px;
}
.ha-help__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.ha-help h2 {
    margin: 0 0 8px;
    font-family: var(--ha-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
}
.ha-help p {
    margin: 0;
    color: rgba(255, 255, 255, .65);
    font-size: .95rem;
}
.ha-help__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ha-help__actions .ha-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    border-radius: 4px;
    padding: 12px 18px;
    font-size: .88rem;
}
.ha-help__actions .ha-btn:hover {
    background: var(--ha-blue);
    border-color: var(--ha-blue);
}
.ha-help__actions .ha-btn--solid {
    background: var(--ha-blue);
    border-color: var(--ha-blue);
}

/* Footer */
.ha-footer {
    padding: 28px 40px;
    background: #0a1118;
    color: rgba(255, 255, 255, .45);
    font-size: .8rem;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.ha-footer a { color: rgba(255, 255, 255, .55); text-decoration: none; }
.ha-footer a:hover { color: #fff; }

/* Scroll reveal */
.ha-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}
.ha-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Auth screens — light applied theme */
.svc-app:not(.lp-wrap):not(.svc-app--workspace):not(.svc-talent) {
    min-height: 100vh;
    background: var(--ha-mist);
    color: var(--ha-ink);
}
.svc-app:not(.lp-wrap):not(.svc-app--workspace) .svc-header {
    background: var(--ha-paper);
    border-bottom: 1px solid var(--ha-line);
    color: var(--ha-ink);
}
.svc-app:not(.lp-wrap):not(.svc-app--workspace) .svc-brand {
    color: var(--ha-ink);
    font-family: var(--ha-display);
    font-weight: 800;
}
.svc-auth-card {
    max-width: 420px;
    margin: 48px auto;
    padding: 36px 32px;
    background: var(--ha-paper);
    border: 1px solid var(--ha-line);
    border-radius: 4px;
    box-shadow: var(--ha-shadow);
}
.svc-auth-card h3 {
    margin: 0 0 8px;
    font-family: var(--ha-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ha-ink);
    letter-spacing: -.02em;
}
.svc-auth-card p { color: var(--ha-muted); }
.svc-inp {
    background: var(--ha-mist);
    border: 1px solid var(--ha-line);
    color: var(--ha-ink);
    border-radius: 4px;
}
.svc-inp:focus { border-color: var(--ha-blue); box-shadow: 0 0 0 3px rgba(0, 161, 228, .15); }
.svc-btn--primary {
    background: var(--ha-blue);
    border-radius: 4px;
    padding: 12px 20px;
}
.svc-btn--primary:hover { background: var(--ha-blue-deep); }

/* Workspace header polish */
.svc-app--workspace .svc-header {
    background: #0f1a24;
    height: 60px;
}
.svc-app--workspace .svc-brand {
    font-family: var(--ha-display);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}
.svc-app--workspace .svc-brand::before {
    content: 'HA';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 8px;
    border-radius: 6px;
    background: var(--ha-blue);
    font-size: .65rem;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 1024px) {
    .ha-solutions { grid-template-columns: 1fr 1fr; }
    .ha-sol:nth-child(3) { border-right: none; }
    .ha-sol { border-top: 1px solid var(--ha-line); }
    .ha-sol:nth-child(-n+2) { border-top: none; }
    .ha-portals { grid-template-columns: 1fr 1fr; }
    .ha-iq, .ha-case { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .ha-util, .ha-header, .ha-section, .ha-help, .ha-footer, .ha-hero__content {
        padding-left: 20px;
        padding-right: 20px;
    }
    .ha-nav { display: none; }
    .ha-util { display: none; }
    .ha-hero { min-height: auto; }
    .ha-hero__media { min-height: 38vh; }
    .ha-solutions, .ha-portals { grid-template-columns: 1fr; }
    .ha-sol { border-left: none !important; border-top: 1px solid var(--ha-line); }
    .ha-sol:first-child { border-top: none; }
    .ha-iq__stats { grid-template-columns: 1fr 1fr; }
    .ha-help__inner { flex-direction: column; align-items: flex-start; }
}
