/* ==================================================================
   Module 13 - public institute website.
   Its own visual language: bolder type, full-bleed sections, a warm
   paper ground. Colours and fonts come from the institute's own theme
   settings, so two installs never look identical.
   ================================================================== */

.lp { background: var(--paper); color: var(--ink); }

/* ---------------- top bar ---------------- */

.lp-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.lp-nav .in {
    max-width: 1120px; margin: 0 auto; padding: 11px 20px;
    display: flex; align-items: center; gap: 14px;
}
.lp-nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.lp-nav .brand img { width: 38px; height: 38px; object-fit: contain; }
.lp-nav .brand .mark {
    width: 38px; height: 38px; border-radius: 9px; background: var(--brand); color: #fff;
    display: grid; place-items: center; font: 800 15px var(--font-head);
}
.lp-nav .brand .nm { font: 700 16.5px var(--font-head); line-height: 1.15; }
.lp-nav .brand .tag { font-size: 11.5px; color: var(--ink-3); }
.lp-nav .links { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.lp-nav .links a {
    padding: 7px 12px; border-radius: 7px; font-size: 14px; font-weight: 500;
    color: var(--ink-2); text-decoration: none;
}
.lp-nav .links a:hover { background: var(--line-2); color: var(--ink); }
.lp-nav .links a.cta { background: var(--brand); color: #fff; font-weight: 600; }
.lp-nav .links a.cta:hover { background: var(--brand-dark); }
@media (max-width: 860px) {
    .lp-nav .links a:not(.cta):not(.always) { display: none; }
}

/* ---------------- hero ---------------- */

.lp-hero {
    background: var(--brand); color: #fff; position: relative; overflow: hidden;
    padding: 74px 20px 82px;
}
.lp-hero::after {
    content: ""; position: absolute; inset-inline-end: -160px; top: -120px;
    width: 520px; height: 520px; border-radius: 50%;
    background: var(--accent); opacity: .17;
}
.lp-hero .in { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }
.lp-hero .eyebrow {
    display: inline-block; padding: 5px 13px; border-radius: 999px;
    background: rgba(255, 255, 255, .16); font-size: 12.5px; font-weight: 600;
    letter-spacing: .05em; text-transform: uppercase; margin-bottom: 18px;
}
.lp-hero h1 {
    font-family: var(--font-head); font-size: clamp(32px, 5.6vw, 56px);
    line-height: 1.06; margin: 0 0 16px; max-width: 17ch; letter-spacing: -.02em;
}
.lp-hero p { font-size: clamp(15px, 2vw, 19px); max-width: 54ch; color: rgba(255, 255, 255, .87); margin: 0 0 26px; }
.lp-hero .actions { display: flex; gap: 11px; flex-wrap: wrap; }
.lp-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
    border-radius: 9px; font: 600 15px var(--font-body); text-decoration: none;
    border: 1.5px solid transparent; cursor: pointer;
}
.lp-btn.solid { background: var(--accent); color: #23262E; }
.lp-btn.solid:hover { background: var(--accent-dark); }
.lp-btn.ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.lp-btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.lp-btn.dark { background: var(--brand); color: #fff; }

/* ---------------- sections ---------------- */

.lp-sec { padding: 64px 20px; }
.lp-sec .in { max-width: 1120px; margin: 0 auto; }
.lp-sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.lp-head { max-width: 62ch; margin-bottom: 34px; }
.lp-head .eyebrow {
    font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent-dark); display: block; margin-bottom: 8px;
}
.lp-head h2 { font-family: var(--font-head); font-size: clamp(24px, 3.6vw, 36px); margin: 0 0 10px; letter-spacing: -.01em; }
.lp-head p { color: var(--ink-2); font-size: 16px; margin: 0; }

.lp-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.lp-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
    padding: 22px; display: flex; flex-direction: column; gap: 9px;
}
.lp-sec.alt .lp-card { background: var(--paper); }
.lp-card .ic {
    width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft);
    color: var(--brand); display: grid; place-items: center; margin-bottom: 4px;
}
.lp-card h3 { font-family: var(--font-head); font-size: 17px; margin: 0; }
.lp-card p { color: var(--ink-2); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* faculty */
.lp-person { text-align: center; }
.lp-person img, .lp-person .ph {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 11px;
    border: 3px solid var(--accent); background: var(--brand-soft);
    display: grid; place-items: center; font: 700 30px var(--font-head); color: var(--brand);
}
.lp-person .nm { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.lp-person .role { font-size: 13px; color: var(--ink-3); }
.lp-person .bio { font-size: 13.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.55; }

/* results / achievements */
.lp-achv {
    position: relative; border-radius: 13px; overflow: hidden;
    background: var(--brand); color: #fff; padding: 22px; min-height: 150px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.lp-achv .score { font-family: var(--font-head); font-size: 33px; font-weight: 800; line-height: 1; }
.lp-achv .who { font-size: 15px; font-weight: 600; margin-top: 5px; }
.lp-achv .what { font-size: 13px; opacity: .8; }
.lp-achv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }

.lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.lp-stat { text-align: center; padding: 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.lp-stat .v { font-family: var(--font-head); font-size: 32px; font-weight: 800; color: var(--brand); line-height: 1; }
.lp-stat .k { font-size: 13px; color: var(--ink-3); margin-top: 5px; }

/* enquiry form */
.lp-form {
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px;
    box-shadow: 0 12px 40px rgba(26, 29, 38, .07);
}
.lp-form h3 { font-family: var(--font-head); font-size: 21px; margin: 0 0 5px; }
.lp-form .sub { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.lp-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 620px) { .lp-form .row2 { grid-template-columns: 1fr; } }
.lp-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lp-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: start; }
@media (max-width: 900px) { .lp-split { grid-template-columns: 1fr; } }

/* contact */
.lp-contact-item { display: flex; gap: 12px; margin-bottom: 16px; }
.lp-contact-item .ic {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center;
}
.lp-contact-item .k { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 700; }
.lp-contact-item .v { font-size: 15px; font-weight: 500; }
.lp-map { border-radius: 13px; overflow: hidden; border: 1px solid var(--line); }
.lp-map iframe { display: block; width: 100%; height: 300px; border: 0; }

/* footer */
.lp-foot { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 34px 20px; }
.lp-foot .in { max-width: 1120px; margin: 0 auto; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.lp-foot a { color: #fff; text-decoration: none; }
.lp-foot .spacer { flex: 1; }

/* Urdu needs looser leading for Nastaliq. */
[dir="rtl"] .lp-hero h1 { line-height: 1.5; }
[dir="rtl"] .lp-head h2 { line-height: 1.7; }
[dir="rtl"] .lp-card p, [dir="rtl"] .lp-head p { line-height: 2; }
