/* AppTrade 2026 brand refresh — loaded after the legacy stylesheet. */
:root {
    --brand-navy: #0b1f3a;
    --brand-navy-soft: #16395f;
    --brand-blue: #0f83c7;
    --brand-blue-dark: #086aa5;
    --brand-sky: #e8f7ff;
    --brand-ice: #f5fbff;
    --brand-line: #dcebf4;
    --brand-copy: #52657a;
    --brand-white: #ffffff;
    --brand-shadow: 0 22px 55px rgba(23, 61, 93, 0.12);
    --max-width: 1320px;

    /* Legacy variable aliases keep existing content pages in the new palette. */
    --primary-color: #0f83c7;
    --primary-dark: #086aa5;
    --secondary-color: #0b1f3a;
    --text-color: #52657a;
    --text-dark: #0b1f3a;
    --light-bg: #f5fbff;
    --white: #ffffff;
    --border-color: #dcebf4;
    --gray: #7890a3;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    background: var(--brand-white);
    color: var(--brand-copy);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
}

.container {
    max-width: var(--max-width);
    padding-left: 28px;
    padding-right: 28px;
}

main {
    overflow: hidden;
}

a {
    color: var(--brand-blue-dark);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(11, 31, 58, 0.07);
    box-shadow: 0 8px 30px rgba(22, 57, 95, 0.04);
    backdrop-filter: blur(16px);
}

.header-content {
    min-height: 76px;
    padding: 10px 0;
    gap: 28px;
}

.logo img {
    width: 260px;
    height: auto;
    max-height: 58px;
}

.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 30px;
}

.main-nav ul {
    align-items: center;
    gap: 6px;
}

.main-nav a {
    color: var(--brand-navy);
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.94rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--brand-blue-dark);
    background: var(--brand-ice);
    text-decoration: none;
}

.main-nav .header-demo {
    color: var(--brand-white);
    background: linear-gradient(135deg, var(--brand-blue), #0a72b8);
    padding: 12px 20px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(15, 131, 199, 0.2);
}

.main-nav .header-demo:hover {
    color: var(--brand-white);
    background: var(--brand-blue-dark);
}

.mobile-menu-toggle span {
    background: var(--brand-navy);
    border-radius: 999px;
}

.home-eyebrow {
    margin: 0 0 14px;
    color: #54728f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    line-height: 1.4;
}

.home-benefits h2,
.home-solutions h2,
.home-industries h2,
.home-cta h2 {
    color: var(--brand-navy);
    font-size: clamp(2rem, 3.1vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.home-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-sky);
    color: var(--brand-blue-dark);
    font-size: 1.45rem;
}

.home-hero {
    background: linear-gradient(90deg, #ffffff 0%, #fbfdff 42%, #eef8fd 100%);
    border-bottom: 1px solid var(--brand-line);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.17fr);
    min-height: 470px;
    align-items: stretch;
}

.home-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px 28px 58px 0;
}

.home-hero h1 {
    margin: 0;
    max-width: 660px;
    color: var(--brand-navy);
    font-size: clamp(3.6rem, 5.5vw, 6.1rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.home-hero h1 span {
    display: block;
    color: var(--brand-blue);
}

.home-hero-lede {
    max-width: 650px;
    margin: 22px 0 0;
    color: #425a72;
    font-size: clamp(1.06rem, 1.3vw, 1.28rem);
    line-height: 1.55;
}

.home-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.home-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.home-button-primary {
    color: var(--brand-white);
    background: linear-gradient(135deg, var(--brand-blue), #0a73b8);
    box-shadow: 0 12px 28px rgba(15, 131, 199, 0.22);
}

.home-button-primary:hover {
    color: var(--brand-white);
    background: var(--brand-blue-dark);
}

.home-button-secondary {
    color: var(--brand-navy);
    background: rgba(255, 255, 255, 0.9);
    border-color: #b9d1e1;
}

.home-button-secondary:hover {
    color: var(--brand-blue-dark);
    border-color: var(--brand-blue);
}

.home-hero-visual {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 78% 15%, rgba(255, 255, 255, 0.95), transparent 35%),
        linear-gradient(135deg, rgba(230, 247, 255, 0.25), rgba(205, 234, 247, 0.58));
}

.home-hero-visual::after {
    content: "";
    position: absolute;
    inset: auto -12% -20% 0;
    height: 46%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.78));
    pointer-events: none;
    z-index: 4;
}

.visual-a {
    position: absolute;
    left: 3%;
    top: 5%;
    width: 46%;
    height: 72%;
    opacity: 0.48;
}

.visual-a::before,
.visual-a::after {
    content: "";
    position: absolute;
    top: 0;
    width: 24%;
    height: 100%;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 131, 199, 0.12), rgba(15, 131, 199, 0.04));
}

.visual-a::before {
    left: 26%;
    transform: rotate(28deg);
}

.visual-a::after {
    right: 26%;
    transform: rotate(-28deg);
}

.visual-call-panel {
    position: absolute;
    z-index: 2;
    top: 11%;
    right: 10%;
    width: 58%;
    height: 62%;
    display: grid;
    grid-template-columns: 28% 1fr;
    overflow: hidden;
    border: 1px solid rgba(102, 148, 179, 0.34);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--brand-shadow);
    transform: perspective(1200px) rotateY(-2deg);
}

.visual-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 12px;
    color: #d4e8f5;
    background: linear-gradient(180deg, #17314c, #10263c);
    font-size: 0.62rem;
}

.visual-sidebar span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visual-sidebar span:first-of-type {
    margin-top: 4px;
    padding: 8px;
    color: #ffffff;
    background: rgba(95, 197, 255, 0.16);
    border-radius: 7px;
}

.visual-mini-logo {
    width: 76px;
    margin-bottom: 5px;
}

.visual-call-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 18px 15px;
    color: var(--brand-navy);
    text-align: center;
}

.visual-call-topline {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.67rem;
    font-weight: 800;
}

.visual-live {
    color: #0c8c66;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
}

.visual-avatar {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    margin: 25px 0 10px;
    border-radius: 50%;
    color: var(--brand-white);
    background: linear-gradient(135deg, #63c7eb, var(--brand-blue));
    font-size: 1.1rem;
    font-weight: 700;
}

.visual-call-content strong {
    font-size: 0.92rem;
}

.visual-time {
    margin-top: 3px;
    color: #64798d;
    font-size: 0.68rem;
}

.visual-call-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.visual-call-actions i {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef4f8;
    color: var(--brand-navy);
    font-size: 0.7rem;
}

.visual-call-actions .visual-hangup {
    color: var(--brand-white);
    background: #ea4d50;
}

.visual-phone {
    position: absolute;
    z-index: 3;
    left: 7%;
    bottom: 8%;
    width: 35%;
    height: 34%;
    border-radius: 12px 18px 10px 10px;
    background: linear-gradient(145deg, #1f2b37, #0c131b);
    box-shadow: 0 22px 45px rgba(13, 33, 52, 0.3);
    transform: rotate(-2deg);
}

.visual-handset {
    position: absolute;
    left: -8%;
    top: -22%;
    width: 34%;
    height: 122%;
    border-radius: 28px;
    background: linear-gradient(90deg, #1b2834, #31404c 48%, #15202a);
    box-shadow: inset -6px 0 10px rgba(255, 255, 255, 0.05), 5px 7px 14px rgba(0, 0, 0, 0.25);
}

.visual-phone-screen {
    position: absolute;
    top: 14%;
    left: 35%;
    width: 44%;
    height: 25%;
    border: 2px solid #4a5d69;
    border-radius: 4px;
    background:
        linear-gradient(#416071 0 0) 50% 30% / 52% 4px no-repeat,
        linear-gradient(#274454 0 0) 50% 52% / 70% 3px no-repeat,
        #15252e;
}

.visual-keypad {
    position: absolute;
    left: 42%;
    bottom: 12%;
    width: 38%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.visual-keypad span {
    aspect-ratio: 1.3;
    border-radius: 3px;
    background: linear-gradient(180deg, #394957, #222f3a);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.visual-card {
    position: absolute;
    z-index: 5;
    right: 1.5%;
    width: 30%;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid rgba(117, 161, 189, 0.26);
    border-radius: 11px;
    color: var(--brand-navy);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 36px rgba(32, 76, 109, 0.13);
}

.visual-card-top {
    top: 16%;
}

.visual-card-bottom {
    top: 50%;
}

.visual-card-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--brand-blue-dark);
    background: var(--brand-sky);
}

.visual-card strong,
.visual-card span {
    display: block;
}

.visual-card strong {
    margin-bottom: 4px;
    font-size: 0.72rem;
}

.visual-card span {
    color: #62778b;
    font-size: 0.62rem;
    line-height: 1.4;
}

.home-benefits {
    padding: 38px 0 34px;
    background: var(--brand-white);
    border-bottom: 1px solid #edf4f8;
}

.home-benefits h2 {
    margin: 0 0 26px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.benefit-item {
    display: flex;
    gap: 20px;
    padding: 4px 36px 4px 0;
}

.benefit-item + .benefit-item {
    padding-left: 36px;
    border-left: 1px solid var(--brand-line);
}

.benefit-item h3,
.foundation-item h3 {
    margin: 0 0 6px;
    color: var(--brand-navy);
    font-size: 1rem;
}

.benefit-item p,
.foundation-item p {
    margin: 0;
    color: #60758a;
    line-height: 1.55;
}

.home-solutions {
    padding: 30px 0 34px;
    background: linear-gradient(180deg, #f6fbff 0%, #f1f9fe 100%);
    border-top: 1px solid #edf5f9;
    border-bottom: 1px solid var(--brand-line);
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.section-heading-row h2 {
    margin: 0;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-blue-dark);
    font-weight: 700;
    white-space: nowrap;
}

.home-text-link:hover {
    text-decoration: none;
    color: var(--brand-navy);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.solution-card {
    min-height: 114px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border* 1px solid #deebf3;
    border-radius: 8px;
    color: var(--brand-navy);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 7px 18px rgba(23, 61, 93, 0.03);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.solution-card:hover {
    transform: translateY(-3px);
    border-color: #b9dbea;
    box-shadow: 0 16px 30px rgba(23, 61, 93, 0.09);
    text-decoration: none;
}

.solution-card-copy {
    min-width: 0;
}

.solution-card-copy strong,
.solution-card-copy span {
    display: block;
}

.solution-card-copy strong {
    margin-bottom: 6px;
    color: var(--brand-navy);
    font-size: 1rem;
}

.solution-card-copy span {
    color: #61778d;
    font-size: 0.86rem;
    line-height: 1.4;
}

.solution-arrow {
    color: var(--brand-blue-dark);
    font-size: 0.9rem;
}

.home-foundation {
    padding: 34px 0;
    background: var(--brand-white);
}

.foundation-grid {
    display: grid;
    grid-template-columns: 1.18fr repeat(3, 1fr);
    align-items: stretch;
}

.foundation-brand,
.foundation-item {
    min-width: 0;
}

.foundation-brand {
    padding-right: 32px;
}

.foundation-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    color: var(--brand-navy);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.foundation-title img {
    width: 220px;
    height: auto;
}

.foundation-item {
    display: flex;
    gap: 16px;
    padding: 4px 26px;
    border-left: 1px solid var(--brand-line);
}

.foundation-item > i {
    margin-top: 2px;
    color: var(--brand-blue-dark);
    font-size: 1.75rem;
}

.home-industries {
    padding: 62px 0;
    background: var(--brand-ice);
    border-top: 1px solid var(--brand-line);
}

.industries-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 70px;
}

.industries-layout h2 {
    margin: 0 0 16px;
    max-width: 700px;
}

.industries-layout p:not(.home-eyebrow) {
    max-width: 700px;
    margin: 0;
    color: #5d7186;
    font-size: 1.06rem;
}

.industry-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.industry-chips a {
    padding: 18px 20px;
    border: 1px solid #d8e9f2;
    border-radius: 8px;
    color: var(--brand-navy);
    background: var(--brand-white);
    font-weight: 700;
    text-decoration: none;
}

.industry-chips a::after {
    content: "→";
    float: right;
    color: var(--brand-blue-dark);
}

.industry-chips a:hover {
    border-color: #afd6e9;
    color: var(--brand-blue-dark);
    box-shadow: 0 12px 24px rgba(23, 61, 93, 0.07);
}

.home-cta {
    padding: 58px 0;
    color: var(--brand-white);
    background: linear-gradient(120deg, var(--brand-navy), var(--brand-navy-soft));
}

.home-cta .home-eyebrow {
    color: #9fdcff;
}

.home-cta h2 {
    max-width: 880px;
    margin: 0;
    color: var(--brand-white);
}

.home-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.home-button-light {
    flex: 0 0 auto;
    color: var(--brand-navy);
    background: var(--brand-white);
}

.home-button-light:hover {
    color: var(--brand-blue-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.site-footer {
    padding: 50px 0 24px;
    color: #52677c;
    background: #f7fbfd;
    border-top: 1px solid var(--brand-line);
}

.footer-grid {
    grid-template-columns: 1.2fr 1fr 0.7fr;
    gap: 54px;
    margin-bottom: 34px;
}

.footer-brand-logo {
    width: 235px;
    margin-bottom: 16px;
}

.site-footer h3 {
    color: var(--brand-navy);
    font-size: 0.95rem;
}

.site-footer a {
    color: var(--brand-blue-dark);
}

.footer-bottom {
    color: #7890a3;
    border-top-color: var(--brand-line);
}

.cookie-consent {
    color: var(--brand-white);
    background: var(--brand-navy);
}

.cookie-consent .btn-primary {
    color: var(--brand-white);
    background: var(--brand-blue);
}

.cookie-consent .btn-primary:hover {
    background: var(--brand-blue-dark);
}

@media (max-width: 1080px) {
    .logo img { width: 220px; }
    .main-nav { gap: 14px; }
    .main-nav a { padding: 9px 8px; font-size: 0.88rem; }
    .home-hero-grid { grid-template-columns: 0.95fr 1.05fr; }
    .visual-call-panel { right: 7%; width: 64%; }
    .visual-card { right: 0; width: 32%; }
    .solution-grid { grid-template-columns: repeat(2, 1fr); }
    .foundation-grid { grid-template-columns: 1fr 1fr; row-gap: 26px; }
    .foundation-brand { grid-column: 1 / -1; }
    .foundation-item:nth-child(2) { border-left: none; padding-left: 0; }
}

@media (max-width: 860px) {
    .container { padding-left: 22px; padding-right: 22px; }
    .header-content { min-height: 68px; }
    .mobile-menu-toggle { display: flex; margin-left: auto; padding: 8px; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 16px 22px 22px;
        background: var(--brand-white);
        border-top: 1px solid var(--brand-line);
        box-shadow: 0 18px 34px rgba(23, 61, 93, 0.12);
    }
    .main-nav.active { display: flex; }
    .main-nav ul { width: 100%; align-items: stretch; padding: 0; gap: 2px; }
    .main-nav a { display: block; width: 100%; color: var(--brand-navy); }
    .main-nav .header-demo { text-align: center; }
    .home-hero-grid { grid-template-columns: 1fr; }
    .home-hero-copy { padding: 54px 0 36px; }
    .home-hero-visual { min-height: 400px; margin: 0 -22px; }
    .home-hero-visual::after { display: none; }
    .benefit-grid { grid-template-columns: 1fr; gap: 20px; }
    .benefit-item,
    .benefit-item + .benefit-item { padding: 0; border-left: none; }
    .benefit-item + .benefit-item { padding-top: 20px; border-top: 1px solid var(--brand-line); }
    .industries-layout { grid-template-columns: 1fr; gap: 30px; }
    .home-cta-inner { align-items: flex-start; flex-direction: column; gap: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .container { padding-left: 18px; padding-right: 18px; }
    .logo img { width: 200px; }
    .home-hero-copy { padding-top: 42px; }
    .home-hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
    .home-hero-lede { font-size: 1.02rem; }
    .home-actions { align-items: stretch; flex-direction: column; }
    .home-button { width: 100%; }
    .home-hero-visual { min-height: 340px; margin: 0 -18px; }
    .visual-call-panel { top: 10%; right: 7%; width: 70%; height: 64%; grid-template-columns: 26% 1fr; }
    .visual-sidebar span { font-size: 0; justify-content: center; }
    .visual-sidebar span i { font-size: 0.75rem; }
    .visual-mini-logo { width: 54px; }
    .visual-phone { left: 5%; width: 39%; height: 31%; }
    .visual-card { right: 1%; width: 38%; padding: 10px; }
    .visual-card-top { top: 13%; }
    .visual-card-bottom { top: 52%; }
    .visual-card-icon { display: none; }
    .visual-card span { display: none; }
    .solution-grid { grid-template-columns: 1fr; }
    .section-heading-row { align-items: flex-start; flex-direction: column; }
    .foundation-grid { grid-template-columns: 1fr; }
    .foundation-brand { grid-column: auto; padding-right: 0; }
    .foundation-item,
    .foundation-item:nth-child(2) { padding: 18px 0 0; border-left: none; border-top: 1px solid var(--brand-line); }
    .industry-chips { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .home-button,
    .solution-card { transition: none; }
}


/* Hero visual: the approved concept uses a finished rendered scene, not assembled icon characters. */
.home-hero-visual {
    min-height: 470px;
    overflow: hidden;
    background: linear-gradient(135deg, #f4fbff 0%, #eaf6fc 100%);
}

.home-hero-visual::after {
    display: none;
}

.home-hero-visual > img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    display: block;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 860px) {
    .home-hero-visual > img {
        min-height: 400px;
    }
}

@media (max-width: 620px) {
    .home-hero-visual > img {
        min-height: 340px;
        object-position: 58% center;
    }
}


/* Approved concept assets — direct crops from the user-approved proposal. */
.logo img {
    width: 265px;
    height: auto;
    max-height: none;
}

.home-hero-grid {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    min-height: 410px;
}

.home-hero-copy {
    padding-top: 44px;
    padding-bottom: 44px;
}

.home-hero-visual {
    min-height: 410px;
    background: #eef8fc;
}

.home-hero-visual > img {
    width: 100%;
    height: 100%;
    min-height: 410px;
    display: block;
    object-fit: contain;
    object-position: center;
}

.foundation-title img {
    width: 220px;
    height: auto;
}

.footer-brand-logo {
    width: 235px;
    height: auto;
}

@media (max-width: 1080px) {
    .logo img { width: 220px; }
    .home-hero-grid { grid-template-columns: 0.9fr 1.1fr; }
}

@media (max-width: 860px) {
    .home-hero-grid { grid-template-columns: 1fr; }
    .home-hero-visual {
        min-height: 0;
        margin: 0 -22px;
    }
    .home-hero-visual > img {
        height: auto;
        min-height: 0;
        object-fit: contain;
    }
}

@media (max-width: 620px) {
    .logo img { width: 200px; }
    .home-hero-visual { margin: 0 -18px; }
    .home-hero-visual > img {
        height: auto;
        min-height: 0;
        object-fit: contain;
        object-position: center;
    }
}


/* Canonical AppTrade identity: user-approved logo with "The Care Company". */
.logo img,
.foundation-title img,
.footer-brand-logo {
    object-fit: contain;
}



/* Approved AppTrade logo refresh — full Care Company mark everywhere. */
.logo img {
    width: 230px;
    height: auto;
    max-height: none;
    object-fit: contain;
}

.foundation-title img {
    width: 220px;
    height: auto;
    object-fit: contain;
}

.footer-brand-logo {
    width: 235px;
    height: auto;
    object-fit: contain;
}

.page-content img[src$="apptrade-logo-care.svg"] {
    max-width: 440px;
    width: min(100%, 440px);
    height: auto;
    object-fit: contain;
}

.home-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 900 / 507;
}

.home-hero-media > .home-hero-scene {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    object-fit: contain;
    object-position: center;
}

.home-hero-logo {
    position: absolute;
    z-index: 6;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.home-hero-logo-main {
    left: 52.9%;
    top: 49.2%;
    width: 16.2%;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: none;
}

@media (max-width: 1080px) {
    .logo img { width: 215px; }
}

@media (max-width: 860px) {
    .home-hero-media { aspect-ratio: 900 / 507; }
    .home-hero-media > .home-hero-scene {
        height: auto;
        min-height: 0;
        object-fit: contain;
    }
}

@media (max-width: 620px) {
    .logo img { width: 190px; }
    .foundation-title img { width: 205px; }
    .footer-brand-logo { width: 220px; }
}

/* Unternehmensphilosophie: replace the legacy logo baked into the phone photo
   with the current AppTrade + "The Care Company" brand mark. */
.page-image-logo-swap {
    position: relative;
    display: inline-block;
    width: 100%;
    line-height: 0;
}

.page-image-logo-swap__patch {
    position: absolute;
    left: 54%;
    top: 39%;
    width: 39%;
    height: 22%;
    transform: rotate(4deg) skewY(0.3deg);
    transform-origin: center;
    clip-path: polygon(2% 0, 100% 4%, 97% 100%, 0 96%);
    background: linear-gradient(
        135deg,
        rgba(249, 253, 255, 0.99) 0%,
        rgba(245, 251, 254, 0.99) 62%,
        rgba(229, 244, 253, 0.98) 100%
    );
    box-shadow: 0 0 10px 7px rgba(245, 251, 254, 0.68);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7% 4% 6%;
    box-sizing: border-box;
    overflow: hidden;
    pointer-events: none;
}

.page-image-logo-swap__patch img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0 !important;
    box-shadow: none !important;
}


/* 2026-10-07: force the current logo to fully cover the legacy mark in the Unternehmensphilosophie photo. */
.page-image-logo-swap__patch {
    left: 52.5%;
    top: 36.5%;
    width: 43%;
    height: 27%;
    z-index: 5;
    background: #f8fcff;
    box-shadow: 0 0 14px 10px rgba(248, 252, 255, 0.92);
}
.page-image-logo-swap__patch img {
    width: 94%;
    max-width: 94%;
    max-height: 94%;
}

/* 2026-10-07: keep long content-page headings fully readable on phones. */
@media (max-width: 768px) {
    .content-page .page-header h1 {
        max-width: 100%;
        font-size: clamp(1.85rem, 8.5vw, 2.3rem);
        line-height: 1.12;
        letter-spacing: -0.025em;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: auto;
        text-wrap: balance;
    }
}

/* Extend the complete hero scene to the viewport edge, beyond the text container. */
@media (min-width: 861px) {
    .home-hero-visual {
        margin-right: calc(-28px - max(0px, (100vw - var(--max-width)) / 2));
    }
}
