/* KKA website visual and mobile enhancements
   Keeps existing content, image paths and ICAI-conservative presentation intact. */

:root {
    --kka-navy: #173a70;
    --kka-blue: #28579a;
    --kka-gold: #d9a441;
    --kka-ink: #1f2937;
    --kka-muted: #64748b;
    --kka-surface: #ffffff;
    --kka-soft: #f5f7fb;
    --kka-border: #e5eaf1;
    --kka-radius: 14px;
}

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

body {
    background: #f3f6fa;
    color: var(--kka-ink);
    overflow-x: hidden;
}

.container {
    width: min(1180px, calc(100% - 32px));
}

.header {
    padding: 42px 0 36px;
    background: linear-gradient(145deg, #16376b 0%, #28579a 100%);
}

.header-content h1 {
    letter-spacing: -0.025em;
}

.ca-logo {
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login {
    margin: 7px 0;
}

.content {
    border: 1px solid rgba(23,58,112,.07);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(15,23,42,.07);
    padding: clamp(20px, 4vw, 42px);
}

.section {
    scroll-margin-top: 82px;
}

.section h2 {
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.2;
}

.partners-grid,
.services-grid,
.due-dates-grid {
    align-items: stretch;
}

.partner-card,
.service-card,
.due-date-card,
.contact-info,
.highlight-box {
    border-radius: var(--kka-radius);
}

.partner-card,
.service-card {
    border: 1px solid var(--kka-border);
    box-shadow: 0 5px 20px rgba(15,23,42,.045);
}

.partner-card:hover,
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15,23,42,.09);
}

.partner-img {
    width: 136px;
    height: 136px;
    border-width: 3px;
}

.due-dates-section {
    border-radius: 16px;
    background: linear-gradient(145deg, #254d8b 0%, #3b659f 100%);
    box-shadow: 0 12px 30px rgba(23,58,112,.14);
}

.due-date-card {
    min-width: 0;
    color: var(--kka-ink);
}

.due-date-card .date {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
}

.footer {
    background: linear-gradient(145deg, #132f5b 0%, #1e467f 100%);
}

/* Conservative public presentation of experience information.
   Client/bank names are intentionally not displayed on the public site. */
#experience > h3:nth-of-type(1),
#experience > h3:nth-of-type(2) {
    margin-top: 2rem;
    padding: 14px 18px;
    background: #f7f9fc;
    border: 1px solid var(--kka-border);
    border-left: 4px solid var(--kka-navy);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
}

/* Banking client-name list removed from public presentation. */
#experience > h3:nth-of-type(1) + p {
    margin: 0;
    padding: 14px 18px 4px;
    color: var(--kka-muted);
    font-size: 0;
}

#experience > h3:nth-of-type(1) + p::after {
    content: 'Experience includes statutory, concurrent and specialised audit assignments in the banking sector across multiple locations.';
    display: block;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--kka-muted);
}

#experience > h3:nth-of-type(1) + p + .experience-list {
    display: none;
}

/* Stock/revenue work is described by nature of assignment rather than client names. */
#experience > h3:nth-of-type(2) + p {
    margin-top: 0;
    padding: 14px 18px;
    background: #fbfcfe;
    border: 1px solid var(--kka-border);
    border-radius: 10px;
    color: var(--kka-muted);
    font-size: 0;
}

#experience > h3:nth-of-type(2) + p::after {
    content: 'Experience includes stock and revenue audit assignments for borrowers and banking-sector engagements across Punjab, Haryana, Jammu & Kashmir and other locations.';
    display: block;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--kka-muted);
}

/* Remove promotional wording from the corporate experience paragraph. */
#experience > h3:nth-of-type(3) + p {
    color: var(--kka-muted);
}

#experience > h3:nth-of-type(3) + p::first-line {
    color: var(--kka-ink);
}

/* Tablet */
@media (max-width: 900px) {
    .header-content h1 {
        font-size: 2.15rem;
    }

    .nav a {
        padding-left: .9rem;
        padding-right: .9rem;
    }

    .partners-grid,
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phone */
@media (max-width: 768px) {
    .container {
        width: min(100% - 24px, 680px);
        padding-left: 0;
        padding-right: 0;
    }

    .header {
        padding: 30px 0 26px;
    }

    .logo-container {
        margin-bottom: .75rem;
    }

    .ca-logo {
        width: 92px;
        padding: 7px;
    }

    .header-content h1 {
        font-size: clamp(1.55rem, 7vw, 2rem);
        line-height: 1.15;
        margin-bottom: .55rem;
    }

    .header-content p {
        font-size: .98rem;
    }

    .nav .container {
        width: 100%;
        padding: 0 12px;
        min-height: 58px;
    }

    .nav-brand {
        max-width: 68%;
        font-size: .92rem;
    }

    .hamburger {
        padding: 12px;
        min-width: 48px;
        min-height: 48px;
        justify-content: center;
    }

    .nav ul {
        width: min(86vw, 360px);
        padding-top: 72px;
        padding-bottom: 24px;
    }

    .nav a {
        min-height: 54px;
        justify-content: flex-start;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .admin-login {
        margin: 8px 12px;
        border-radius: 9px;
        justify-content: center !important;
    }

    .content {
        width: calc(100% - 24px);
        margin: 18px auto;
        padding: 20px 15px;
        border-radius: 15px;
    }

    .section {
        margin-bottom: 2.2rem;
    }

    .section h2 {
        margin-bottom: 1rem;
        padding-left: 14px;
    }

    .section h2::before {
        width: 4px;
    }

    .section h3 {
        font-size: 1.2rem;
    }

    .partners-grid,
    .services-grid,
    .due-dates-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .partner-card,
    .service-card {
        padding: 18px;
    }

    .partner-img {
        width: 118px;
        height: 118px;
    }

    .contact-info {
        padding: 16px;
    }

    .contact-info p {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        overflow-wrap: anywhere;
    }

    .contact-info strong {
        min-width: 0;
    }

    .due-dates-section {
        padding: 18px 14px;
        margin: 1.25rem 0;
    }

    .due-dates-section h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .due-date-card {
        padding: 16px;
    }

    .due-date-card h4 {
        flex-wrap: wrap;
        gap: 6px;
        line-height: 1.35;
    }

    .due-date-card .category-badge {
        margin-left: 0;
    }

    #experience > h3:nth-of-type(1),
    #experience > h3:nth-of-type(2) {
        padding: 12px 14px;
    }

    #experience > h3:nth-of-type(1) + p,
    #experience > h3:nth-of-type(2) + p {
        padding: 10px 14px;
    }

    .footer {
        padding: 2.25rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Avoid hover-only movement on touch screens. */
    .partner-card:hover,
    .service-card:hover,
    .due-date-card:hover {
        transform: none;
    }
}

/* Small phones */
@media (max-width: 390px) {
    .header-content h1 {
        font-size: 1.45rem;
    }

    .content {
        width: calc(100% - 16px);
        padding: 17px 12px;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .partner-img {
        width: 105px;
        height: 105px;
    }
}

/* Respect accessibility preferences. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Prevent long professional/service names from breaking the layout. */
img, video, iframe {
    max-width: 100%;
}

p, li, h1, h2, h3, h4, a {
    overflow-wrap: anywhere;
}
