/* ==========================================================================
   Axis Lanka Capital — v2 additions
   --------------------------------------------------------------------------
   Load AFTER axis-lanka-global.css.
   Contains: utility bar, home hero (static), why-Axis-Lanka cards, trust
   statement, loan period tiles, branch map card, help actions, plus the
   additional components used by the inner pages (period tiles, goals grid,
   contact cards, branch list, related links, CTA band).
   Nothing here duplicates a rule already defined in axis-lanka-global.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   2. Home hero (static)
   -------------------------------------------------------------------------- */
:root {
    /* Home hero background photograph.
       Drop the client's image into assets/images/ and set the path here, e.g.
       --alc-hero-image: url("../assets/images/hero-background.jpg");
       Left as `none`, the hero uses the built-in gradient treatment below. */
    --alc-hero-image: none
}

.hero--home {
    padding-block: clamp(3.5rem, 2rem + 7vw, 7.5rem);
    isolation: isolate
}

.hero--home .hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-color: var(--alc-ink);
    background-image: var(--alc-hero-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover
}

/* Overlay: keeps text legible over any photograph, and doubles as the
   finished look while no photograph has been supplied. */
.hero--home .hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(233, 36, 43, .42), transparent 46%),
        radial-gradient(circle at 10% 94%, rgba(233, 36, 43, .18), transparent 52%),
        linear-gradient(112deg, rgba(33, 30, 31, .96) 0%, rgba(33, 30, 31, .84) 48%, rgba(33, 30, 31, .58) 100%)
}

/* Faint grid, masked to the right so the copy column stays clean. */
.hero--home .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(circle at 72% 28%, #000, transparent 70%);
    mask-image: radial-gradient(circle at 72% 28%, #000, transparent 70%);
    opacity: .75
}

.hero--home .in {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr)
}

.hero-copy {
    min-width: 0
}

.hero--home .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 var(--alc-s-4);
    padding: .4rem .9rem .4rem .7rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--alc-radius-pill);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: var(--alc-fs-xs);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase
}

.hero--home .hero-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--alc-red);
    box-shadow: 0 0 0 4px rgba(233, 36, 43, .22)
}

.hero--home h1 {
    font: 700 var(--alc-fs-h1)/1.03 var(--alc-font-head);
    letter-spacing: -.025em;
    margin-bottom: var(--alc-s-5);
    max-width: 18ch
}

.hero--home .hero-lead {
    font-size: var(--alc-fs-lead);
    color: var(--alc-on-dark-muted);
    max-width: 48ch;
    margin-bottom: 0
}

.hero-actions {
    margin-top: var(--alc-s-6)
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--alc-s-5) var(--alc-s-6);
    list-style: none;
    margin: var(--alc-s-7) 0 0;
    padding: var(--alc-s-5) 0 0;
    border-top: 1px solid rgba(255, 255, 255, .16)
}

.hero-facts li {
    display: flex;
    flex-direction: column;
    gap: .15rem
}

.hero-facts b {
    font: 700 1.35rem/1.1 var(--alc-font-head);
    color: #fff
}

.hero-facts span {
    font-size: var(--alc-fs-xs);
    color: var(--alc-on-dark-muted);
    letter-spacing: .02em
}

.hero-image-placeholder {
    justify-self: center;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    border-radius: var(--alc-radius-lg);
    overflow: hidden
}

.hero-image-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

@media(max-width:1023px) {
    .hero--home h1 {
        max-width: 22ch
    }

    .hero-image-placeholder {
        max-width: 300px
    }
}

@media(max-width:767px) {
    .hero--home .in {
        grid-template-columns: 1fr
    }

    .hero-image-placeholder {
        aspect-ratio: 4 / 3;
        max-width: 100%
    }

    .hero-facts {
        gap: var(--alc-s-4) var(--alc-s-5)
    }

    .hero-facts b {
        font-size: 1.15rem
    }
}

/* --------------------------------------------------------------------------
   3. Why Axis Lanka cards (home)
   -------------------------------------------------------------------------- */
.why-grid {
    margin-top: var(--alc-s-6)
}

/* --------------------------------------------------------------------------
   4. Trust statement (home)
   -------------------------------------------------------------------------- */
.trust-quote {
    padding: clamp(1.5rem, 3vw, 2.5rem)
}

.trust-quote .quote {
    margin: 0
}

/* --------------------------------------------------------------------------
   5. Loan period tiles (home)
   -------------------------------------------------------------------------- */
.home-periods {
    margin: var(--alc-s-6) 0
}

/* --------------------------------------------------------------------------
   6. Branch map card (home)
   -------------------------------------------------------------------------- */
.branch-map-card {
    background: #fff;
    border-radius: var(--alc-radius-lg);
    padding: var(--alc-s-5);
    width: 100%;
    max-width: 300px;
    justify-self: center
}

.branch-map-card .map {
    max-width: 240px
}

/* --------------------------------------------------------------------------
   7. Help actions (home)
   -------------------------------------------------------------------------- */
.help-actions {
    margin-top: var(--alc-s-6)
}

/* --------------------------------------------------------------------------
   8. Goals grid (inner pages)
   -------------------------------------------------------------------------- */
.goals .alc-card {
    background: var(--alc-ink);
    color: #fff;
    border: 0;
    border-radius: var(--alc-radius-lg);
    min-height: 260px
}

.goals .alc-card p {
    color: var(--alc-on-dark-muted)
}

.goals .alc-card:hover {
    background: var(--alc-red);
    box-shadow: var(--alc-shadow-lg)
}

.goals .alc-card:hover p {
    color: #fff
}

.goals .alc-icon {
    background: rgba(255, 255, 255, .1);
    color: #fff
}

/* --------------------------------------------------------------------------
   9. Loan period tiles
   -------------------------------------------------------------------------- */
.periods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--alc-s-3)
}

.period {
    border: 2px solid var(--alc-ink);
    border-radius: var(--alc-radius);
    padding: var(--alc-s-5) var(--alc-s-3);
    text-align: center;
    font-family: var(--alc-font-head);
    font-weight: 700;
    font-size: var(--alc-fs-h3);
    line-height: 1.1
}

.period small {
    display: block;
    font: 500 var(--alc-fs-xs) var(--alc-font-body);
    color: var(--alc-muted);
    margin-top: 4px
}

.period:nth-child(1) {
    border-color: var(--alc-red)
}

@media(max-width:767px) {
    .periods {
        grid-template-columns: repeat(2, 1fr)
    }
}

/* --------------------------------------------------------------------------
   10. Inner-page components
   -------------------------------------------------------------------------- */

/* Product highlight card (Loans page) */
.product-card {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 2px solid var(--alc-ink)
}

.product-card h2 {
    margin-bottom: var(--alc-s-3)
}

.product-card .periods {
    margin-top: var(--alc-s-4)
}

/* Contact cards */
.contact-card .alc-card {
    height: 100%
}

.contact-card h3 {
    margin-bottom: var(--alc-s-2)
}

.contact-card p {
    margin-bottom: var(--alc-s-2)
}

/* Branch town list */
.branch-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--alc-gap)
}

.branch-list h3 {
    font-size: 1.05rem;
    color: var(--alc-red-dark);
    margin-bottom: var(--alc-s-2)
}

.branch-list ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.branch-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--alc-border);
    display: flex;
    justify-content: space-between;
    gap: var(--alc-s-3);
    align-items: baseline
}

.branch-list li:last-child {
    border-bottom: 0
}

.branch-list .hq-tag {
    font-size: var(--alc-fs-xs);
    font-weight: 600;
    color: var(--alc-red-dark);
    white-space: nowrap
}

@media(max-width:1023px) {
    .branch-list {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:767px) {
    .branch-list {
        grid-template-columns: 1fr
    }
}

/* Related links / next-step cards */
.related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--alc-gap)
}

.related .alc-card {
    display: flex;
    flex-direction: column;
    gap: var(--alc-s-2)
}

.related .alc-card p {
    flex: 1;
    margin-bottom: var(--alc-s-3)
}

@media(max-width:1023px) {
    .related {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:767px) {
    .related {
        grid-template-columns: 1fr
    }
}

/* CTA band */
.cta-band {
    background: var(--alc-ink);
    color: #fff;
    padding-block: var(--alc-section-y)
}

.cta-band h2 {
    margin-bottom: var(--alc-s-3)
}

.cta-band .alc-flex {
    margin-top: var(--alc-s-6)
}

.cta-band .alc-note {
    margin-top: var(--alc-s-5);
    margin-bottom: 0
}

/* Value / feature grid on soft background */
.soft-cards .alc-card {
    background: #fff
}

/* Two-column info panel */
.info-panel {
    background: var(--alc-surface);
    border-radius: var(--alc-radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem)
}

.info-panel h3 {
    margin-bottom: var(--alc-s-2)
}

/* Small print under forms */
.form-note {
    font-size: var(--alc-fs-small);
    color: var(--alc-muted)
}

/* 404 */
.notfound {
    text-align: center;
    padding-block: clamp(4rem, 3rem + 8vw, 9rem)
}

.notfound .code {
    font: 700 clamp(4rem, 10vw, 8rem)/1 var(--alc-font-head);
    color: var(--alc-red);
    letter-spacing: -.04em;
    margin-bottom: var(--alc-s-4)
}
