/* ==========================================================
   AppVeda shared styles for service, market, apps, story and
   blog pages. Loaded after style.css. All classes use av- prefix.
   ========================================================== */

:root {
    --av-navy: #0A2540;
    --av-navy-2: #1A365F;
    --av-gold: #F5A623;
    --av-gold-2: #E09500;
    --av-ink: #1f2937;
    --av-muted: #5b6676;
    --av-line: #e6eaf0;
    --av-soft: #f6f8fb;
    --av-radius: 18px;
}

.av-hero {
    background: linear-gradient(135deg, var(--av-navy) 0%, var(--av-navy-2) 100%);
    color: #fff;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.av-hero::after {
    content: '';
    position: absolute;
    right: -120px;
    top: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.18) 0%, rgba(245, 166, 35, 0) 70%);
    pointer-events: none;
}

.av-breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 18px;
}

.av-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.av-breadcrumb a:hover {
    color: var(--av-gold);
}

.av-eyebrow {
    display: inline-block;
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid var(--av-gold);
    color: var(--av-gold);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.av-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 820px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--av-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.av-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    max-width: 760px;
}

.av-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.av-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.av-btn-primary {
    background: linear-gradient(135deg, var(--av-gold) 0%, var(--av-gold-2) 100%);
    color: var(--av-navy);
}

.av-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(245, 166, 35, 0.35);
}

.av-btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: transparent;
}

.av-btn-outline:hover {
    border-color: var(--av-gold);
    color: var(--av-gold);
}

.av-btn-dark-outline {
    border-color: var(--av-gold-2);
    color: var(--av-gold-2);
    background: transparent;
}

.av-btn-dark-outline:hover {
    background: var(--av-gold);
    color: var(--av-navy);
}

/* Sections */
.av-section {
    padding: 90px 0;
    background: #fff;
    color: var(--av-ink);
}

.av-section.alt {
    background: var(--av-soft);
}

.av-section.dark {
    background: linear-gradient(135deg, var(--av-navy) 0%, var(--av-navy-2) 100%);
    color: #fff;
}

.av-section-head {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.av-section-head.left {
    margin-left: 0;
    text-align: left;
}

.av-section h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--av-navy);
    line-height: 1.2;
    margin-bottom: 14px;
}

.av-section.dark h2 {
    color: #fff;
}

.av-section-head p {
    font-size: 1.1rem;
    color: var(--av-muted);
    line-height: 1.7;
}

.av-section.dark .av-section-head p {
    color: rgba(255, 255, 255, 0.78);
}

.av-prose {
    max-width: 780px;
    margin: 0 auto;
}

.av-prose p,
.av-prose li {
    font-size: 1.06rem;
    line-height: 1.8;
    color: #333;
}

.av-prose p {
    margin-bottom: 18px;
}

.av-prose h2 {
    margin-top: 40px;
}

.av-prose h3 {
    font-size: 1.3rem;
    color: var(--av-navy);
    margin: 28px 0 10px;
}

.av-prose ul,
.av-prose ol {
    padding-left: 22px;
    margin-bottom: 18px;
}

.av-prose li {
    margin-bottom: 8px;
}

.av-prose a {
    color: var(--av-gold-2);
    font-weight: 600;
}

/* Cards */
.av-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.av-grid.two {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.av-card {
    background: #fff;
    border: 1px solid var(--av-line);
    border-radius: var(--av-radius);
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.av-section.alt .av-card {
    background: #fff;
}

.av-section.dark .av-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

a.av-card {
    text-decoration: none;
    color: inherit;
}

a.av-card:hover,
.av-card.hover:hover {
    transform: translateY(-4px);
    border-color: var(--av-gold);
    box-shadow: 0 16px 40px rgba(10, 37, 64, 0.1);
}

.av-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    background: rgba(245, 166, 35, 0.12);
    margin-bottom: 18px;
}

.av-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--av-navy);
    margin-bottom: 10px;
}

.av-section.dark .av-card h3 {
    color: #fff;
}

.av-card p {
    color: var(--av-muted);
    line-height: 1.65;
    font-size: 0.98rem;
}

.av-section.dark .av-card p {
    color: rgba(255, 255, 255, 0.75);
}

.av-card ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.av-card li {
    padding: 5px 0 5px 22px;
    position: relative;
    color: var(--av-ink);
    font-size: 0.95rem;
}

.av-section.dark .av-card li {
    color: rgba(255, 255, 255, 0.85);
}

.av-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--av-gold-2);
    font-weight: 700;
}

.av-card-link {
    margin-top: auto;
    padding-top: 18px;
    font-weight: 700;
    color: var(--av-gold-2);
}

.av-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.av-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(10, 37, 64, 0.06);
    color: var(--av-navy);
}

.av-section.dark .av-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Problem list */
.av-problems {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

/* six or more problems: three per row */
.av-problems:has(> .av-problem:nth-child(5)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
}

.av-problem {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--av-line);
    border-radius: var(--av-radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.av-problem::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--av-gold) 0%, var(--av-gold-2) 100%);
}

.av-problem:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 166, 35, 0.6);
    box-shadow: 0 14px 34px rgba(10, 37, 64, 0.08);
}

.av-problem .q {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    line-height: 1;
    background: rgba(245, 166, 35, 0.14);
}

.av-problem h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--av-navy);
    margin-bottom: 6px;
}

.av-problem p {
    font-size: 0.95rem;
    color: var(--av-muted);
    line-height: 1.6;
}

@media (max-width: 960px) {
    .av-problems,
    .av-problems:has(> .av-problem:nth-child(5)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .av-problems,
    .av-problems:has(> .av-problem:nth-child(5)) {
        grid-template-columns: 1fr;
    }
}

/* Steps */
.av-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    counter-reset: avstep;
}

.av-step {
    background: #fff;
    border: 1px solid var(--av-line);
    border-radius: 16px;
    padding: 24px 20px;
    position: relative;
}

.av-section.dark .av-step {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.av-step::before {
    counter-increment: avstep;
    content: '0' counter(avstep);
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--av-gold-2);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.av-step h3 {
    font-size: 1.08rem;
    color: var(--av-navy);
    margin-bottom: 6px;
}

.av-section.dark .av-step h3 {
    color: #fff;
}

.av-step p {
    font-size: 0.93rem;
    color: var(--av-muted);
    line-height: 1.6;
}

.av-section.dark .av-step p {
    color: rgba(255, 255, 255, 0.75);
}

/* Model chips */
.av-models {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 26px;
}

.av-model {
    background: #fff;
    border: 1px solid var(--av-line);
    border-radius: 14px;
    padding: 14px 22px;
    font-weight: 700;
    color: var(--av-navy);
    min-width: 160px;
    text-align: center;
}

.av-model small {
    display: block;
    font-weight: 500;
    color: var(--av-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.av-note {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: var(--av-muted);
    line-height: 1.7;
}

/* Proof / project block */
.av-proof {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--av-line);
    border-radius: var(--av-radius);
    padding: 30px;
}

.av-proof img {
    width: 100%;
    border-radius: 14px;
    display: block;
}

.av-proof h3 {
    font-size: 1.4rem;
    color: var(--av-navy);
    margin-bottom: 10px;
}

.av-proof p {
    color: var(--av-muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

/* FAQ */
.av-faq {
    max-width: 820px;
    margin: 0 auto;
}

.av-faq details {
    background: #fff;
    border: 1px solid var(--av-line);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
}

.av-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 52px 18px 22px;
    font-weight: 700;
    color: var(--av-navy);
    position: relative;
    font-size: 1.02rem;
}

.av-faq summary::-webkit-details-marker {
    display: none;
}

.av-faq summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--av-gold-2);
}

.av-faq details[open] summary::after {
    content: '−';
}

.av-faq details p {
    padding: 0 22px 20px;
    color: var(--av-muted);
    line-height: 1.7;
}

/* CTA band */
.av-cta-band {
    background: linear-gradient(135deg, var(--av-navy) 0%, var(--av-navy-2) 100%);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    color: #fff;
}

.av-cta-band h2 {
    color: #fff;
    margin-bottom: 12px;
}

.av-cta-band p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

.av-cta-band .av-cta-row {
    justify-content: center;
}

/* Enquiry form */
.av-form-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.av-form-aside h2 {
    margin-bottom: 14px;
}

.av-form-aside p {
    color: var(--av-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}

.av-section.dark .av-form-aside p {
    color: rgba(255, 255, 255, 0.78);
}

.av-form-aside ul {
    list-style: none;
    padding: 0;
}

.av-form-aside li {
    padding: 6px 0 6px 26px;
    position: relative;
}

.av-form-aside li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--av-gold);
    font-weight: 800;
}

.av-form {
    background: #fff;
    border-radius: var(--av-radius);
    padding: 30px;
    box-shadow: 0 20px 50px rgba(10, 37, 64, 0.12);
    color: var(--av-ink);
}

.av-form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.av-field {
    margin-bottom: 16px;
}

.av-field label,
.av-field legend {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--av-navy);
    margin-bottom: 7px;
}

.av-field .opt {
    font-weight: 500;
    color: var(--av-muted);
}

.av-field input,
.av-field textarea,
.av-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--av-line);
    border-radius: 10px;
    font: inherit;
    font-size: 0.97rem;
    color: var(--av-ink);
    background: #fff;
    transition: border-color 0.2s ease;
}

.av-field textarea {
    min-height: 92px;
    resize: vertical;
}

.av-field input:focus,
.av-field textarea:focus,
.av-field select:focus {
    outline: none;
    border-color: var(--av-gold);
}

.av-field fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.av-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.av-chips label {
    margin: 0;
    font-weight: 600;
}

.av-chips input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.av-chips span {
    display: inline-block;
    padding: 8px 14px;
    border: 1.5px solid var(--av-line);
    border-radius: 999px;
    font-size: 0.88rem;
    cursor: pointer;
    color: var(--av-ink);
    transition: all 0.15s ease;
}

.av-chips input:checked + span {
    border-color: var(--av-gold-2);
    background: rgba(245, 166, 35, 0.14);
    color: var(--av-navy);
}

.av-chips input:focus-visible + span {
    outline: 2px solid var(--av-gold);
    outline-offset: 2px;
}

.av-form .av-btn {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.av-form-note {
    font-size: 0.83rem;
    color: var(--av-muted);
    margin-top: 12px;
    text-align: center;
}

.av-form-status {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
    font-size: 0.92rem;
}

.av-form-status.show {
    display: block;
}

/* Market banner (homepage, UAE visitors) */
.av-market-banner {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff7e6;
    border-bottom: 1px solid rgba(224, 149, 0, 0.35);
    color: var(--av-navy);
    font-size: 0.93rem;
    display: none;
}

.av-market-banner.show {
    display: block;
}

.av-market-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.av-market-banner a {
    color: var(--av-gold-2);
    font-weight: 700;
}

.av-market-banner button {
    background: none;
    border: 0;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--av-muted);
    line-height: 1;
}

/* Footer for new pages */
.av-footer {
    background: linear-gradient(135deg, var(--av-navy) 0%, var(--av-navy-2) 100%);
    color: rgba(255, 255, 255, 0.78);
    padding: 60px 0 30px;
}

.av-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 36px;
}

.av-footer h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.av-footer h3 span {
    color: var(--av-gold);
    font-weight: 400;
}

.av-footer h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.av-footer p {
    font-size: 0.92rem;
    line-height: 1.7;
}

.av-footer ul {
    list-style: none;
    padding: 0;
}

.av-footer li {
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.av-footer a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.av-footer a:hover {
    color: var(--av-gold);
}

.av-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
}

/* Apps showcase: phone mockup */
.av-apps-stage {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 50px;
    align-items: center;
}

.av-phone {
    width: 300px;
    height: 620px;
    margin: 0 auto;
    border-radius: 46px;
    background: #0b0f17;
    padding: 12px;
    box-shadow: 0 30px 70px rgba(10, 37, 64, 0.35), inset 0 0 0 2px #2a2f3a;
    position: relative;
}

.av-phone::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 26px;
    border-radius: 20px;
    background: #000;
    z-index: 3;
}

.av-phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: #111;
    position: relative;
}

.av-phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.av-phone-screen img.on {
    opacity: 1;
}

.av-phone-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    padding: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(160deg, #1A365F 0%, #0A2540 100%);
}

.av-phone-placeholder span {
    display: block;
    font-size: 4rem;
    margin-bottom: 14px;
}

.av-phone-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.av-phone-nav button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--av-line);
    background: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--av-navy);
}

.av-app-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.av-app-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--av-line);
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--av-ink);
}

.av-app-tab[aria-selected="true"] {
    border-color: var(--av-gold-2);
    background: rgba(245, 166, 35, 0.12);
    color: var(--av-navy);
}

.av-app-detail h3 {
    font-size: 1.8rem;
    color: var(--av-navy);
    margin-bottom: 6px;
}

.av-app-detail .sub {
    color: var(--av-gold-2);
    font-weight: 700;
    margin-bottom: 14px;
}

.av-app-detail p {
    color: var(--av-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.av-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    border-radius: 12px;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 600;
}

.av-store-btn svg {
    width: 22px;
    height: 22px;
}

.av-store-btn small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Blog */
.av-article-meta {
    color: rgba(255, 255, 255, 0.65);
    margin-top: 10px;
    font-size: 0.95rem;
}

.av-callout {
    background: #fff7e6;
    border-left: 4px solid var(--av-gold);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 24px 0;
}

.av-callout p:last-child {
    margin-bottom: 0;
}

/* Chat widget */
.av-chat-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.av-chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, var(--av-gold) 0%, var(--av-gold-2) 100%);
    color: var(--av-navy);
    box-shadow: 0 10px 28px rgba(10, 37, 64, 0.3);
    display: grid;
    place-items: center;
    transition: transform 0.2s ease;
}

.av-chat-toggle:hover {
    transform: scale(1.06);
}

.av-chat-toggle svg {
    width: 26px;
    height: 26px;
}

.av-chat-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
}

.av-chat-menu.open {
    display: flex;
}

.av-chat-menu a,
.av-chat-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--av-navy);
    border: 1px solid var(--av-line);
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(10, 37, 64, 0.15);
}

.av-chat-menu .wa {
    color: #128C7E;
}

.av-chat-panel {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: 70vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(10, 37, 64, 0.3);
    z-index: 1101;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.av-chat-panel.open {
    display: flex;
}

.av-chat-head {
    background: linear-gradient(135deg, var(--av-navy) 0%, var(--av-navy-2) 100%);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.av-chat-head strong {
    display: block;
    font-size: 0.98rem;
}

.av-chat-head small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
}

.av-chat-close {
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

.av-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--av-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.av-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    white-space: pre-line;
}

.av-msg.bot {
    background: #fff;
    border: 1px solid var(--av-line);
    color: var(--av-ink);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.av-msg.user {
    background: var(--av-navy);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.av-chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.av-chat-options button {
    background: #fff;
    border: 1.5px solid var(--av-gold-2);
    color: var(--av-navy);
    border-radius: 999px;
    padding: 7px 13px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
}

.av-chat-options button:hover {
    background: rgba(245, 166, 35, 0.14);
}

.av-chat-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--av-line);
    background: #fff;
}

.av-chat-input input {
    flex: 1;
    border: 1.5px solid var(--av-line);
    border-radius: 999px;
    padding: 10px 14px;
    font: inherit;
    font-size: 0.92rem;
}

.av-chat-input input:focus {
    outline: none;
    border-color: var(--av-gold);
}

.av-chat-input button {
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--av-gold) 0%, var(--av-gold-2) 100%);
    color: var(--av-navy);
}

.av-chat-input[hidden] {
    display: none;
}

/* Responsive */
@media (max-width: 960px) {
    .av-form-wrap,
    .av-proof,
    .av-apps-stage {
        grid-template-columns: 1fr;
    }

    .av-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .av-hero {
        padding: 110px 0 56px;
    }

    .av-hero h1 {
        font-size: 2.1rem;
    }

    .av-lead {
        font-size: 1.05rem;
    }

    .av-section {
        padding: 60px 0;
    }

    .av-section h2 {
        font-size: 1.75rem;
    }

    .av-form {
        padding: 22px 18px;
    }

    .av-form .row {
        grid-template-columns: 1fr;
    }

    .av-cta-band {
        padding: 36px 20px;
    }

    .av-market-banner .container {
        font-size: 0.85rem;
        justify-content: space-between;
    }

    .av-phone {
        width: 260px;
        height: 540px;
    }
}

@media (max-width: 520px) {
    .av-footer-grid {
        grid-template-columns: 1fr;
    }

    .av-chat-panel {
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
        bottom: 86px;
        height: 70vh;
    }

    .av-chat-fab {
        right: 16px;
        bottom: 16px;
    }

    .av-cta-row .av-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Card with cover image (project stories) */
.av-card-img {
    display: block;
    width: calc(100% + 56px);
    margin: -28px -28px 20px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--av-radius) var(--av-radius) 0 0;
    background: var(--av-soft);
}

.av-card .av-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--av-gold-2);
    margin-bottom: 8px;
}

.av-grid.featured {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Homepage: readable headings on light sections (style.css applies a white-to-gold
   gradient to every .section-title, which is meant for dark sections only) */
.services-section .section-title,
.process-section .section-title,
.blogs-section .section-title {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--av-navy);
}

#solutions .av-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Founder profile */
.av-founder {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.av-founder-photo {
    position: relative;
    justify-self: center;
    width: 340px;
    max-width: 100%;
}

.av-founder-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 28px;
    display: block;
    border: 3px solid rgba(245, 166, 35, 0.85);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.av-founder-photo .av-founder-tag {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    white-space: nowrap;
    background: linear-gradient(135deg, var(--av-gold) 0%, var(--av-gold-2) 100%);
    color: var(--av-navy);
    font-weight: 800;
    font-size: 0.88rem;
    padding: 9px 18px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.av-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.av-facts span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
}

.av-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.av-timeline .av-step::before {
    content: none;
}

.av-timeline .year {
    display: inline-block;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--av-navy);
    background: linear-gradient(135deg, var(--av-gold) 0%, var(--av-gold-2) 100%);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 12px;
}

.av-timeline .av-step.now {
    border-color: var(--av-gold);
    box-shadow: 0 14px 36px rgba(245, 166, 35, 0.18);
}

.av-quote {
    background: #fff;
    border: 1px solid var(--av-line);
    border-radius: var(--av-radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
}

.av-quote p {
    color: var(--av-ink);
    line-height: 1.75;
    font-size: 0.98rem;
    flex: 1;
}

.av-quote p::before {
    content: '“';
    display: block;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--av-gold);
    font-weight: 800;
    margin-bottom: 4px;
}

.av-quote .who {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.av-quote .who b {
    display: block;
    color: var(--av-navy);
}

.av-quote .who small {
    color: var(--av-muted);
}

.av-quote .av-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--av-navy);
    background: linear-gradient(135deg, var(--av-gold) 0%, var(--av-gold-2) 100%);
    flex: 0 0 auto;
}

.av-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

@media (max-width: 960px) {
    .av-founder {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .av-founder-photo {
        order: -1;
        width: 260px;
    }
}

/* Founder page: journey cards (no step counter) */
.av-tl {
    background: #fff;
    border: 1px solid var(--av-line);
    border-radius: 16px;
    padding: 24px 22px;
}

.av-tl h3 {
    font-size: 1.1rem;
    color: var(--av-navy);
    margin-bottom: 8px;
}

.av-tl p {
    font-size: 0.95rem;
    color: var(--av-muted);
    line-height: 1.65;
}

.av-tl .year {
    display: inline-block;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--av-navy);
    background: linear-gradient(135deg, var(--av-gold) 0%, var(--av-gold-2) 100%);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 12px;
}

/* Client name chips */
.av-clients {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.av-clients span {
    background: #fff;
    border: 1px solid var(--av-line);
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--av-navy);
}

/* Testimonial cards */
.av-quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.av-quote .stars {
    color: var(--av-gold);
    letter-spacing: 2px;
    font-size: 1rem;
    margin-bottom: 10px;
}

.av-quote .av-tag {
    align-self: flex-start;
    margin-bottom: 12px;
}

.av-quote .who {
    border-top: 1px solid var(--av-line);
    padding-top: 16px;
}

.av-quote .who small {
    display: block;
    font-size: 0.85rem;
}

.av-center {
    text-align: center;
}
