/* Public home page (landing.php): school letterhead with the sign-in button, campus photo with the title, footer. */
:root {
    --lp-navy: #133a68;
    --lp-navy-dark: #0e2c50;
    --lp-gold: #c9a227;
    --lp-gold-light: #f2cd55; /* gold that stays readable over the darkened photo */
    --lp-ink: #1f2933;
    --lp-muted: #5f6b7a;
    --lp-line: #dcd7cc;
    --lp-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* Header, photo and footer fill the screen; the photo takes whatever height is left. */
.lp-body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--lp-navy-dark); color: var(--lp-ink); }
.lp-container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Letterhead ---------- */
.lp-header { background: #fff; border-top: 4px solid var(--lp-gold); border-bottom: 1px solid var(--lp-line); position: relative; z-index: 2; }
.lp-header-inner { display: flex; align-items: center; gap: 1.25rem; padding-top: .85rem; padding-bottom: .85rem; }
.lp-brand { display: flex; align-items: center; gap: 1rem; margin-right: auto; min-width: 0; text-decoration: none; }
.lp-seal { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.lp-brand-text { display: flex; flex-direction: column; min-width: 0; }
.lp-kicker { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--lp-muted); }
.lp-school { font-family: var(--lp-serif); font-weight: 700; font-size: 1.3rem; color: var(--lp-navy); line-height: 1.2; }
.lp-address { font-size: .82rem; color: var(--lp-muted); }

.lp-login {
    display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0;
    padding: .6rem 1.4rem; border-radius: 6px; background: var(--lp-navy); color: #fff;
    font-weight: 600; font-size: .95rem; text-decoration: none; transition: background-color .15s ease;
}
.lp-login:hover { background: var(--lp-navy-dark); color: #fff; }
.lp-login:focus-visible { outline: 3px solid rgba(201, 162, 39, .7); outline-offset: 2px; }

/* ---------- Campus photo with the title ---------- */
.lp-hero { flex: 1; position: relative; isolation: isolate; display: flex; min-height: 520px; overflow: hidden; }
/* Anchored low and slightly right so the "I ♥ TLNMHS" sign stays in frame at every width. */
.lp-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 75%; z-index: -2; }
/* Darkens the sky behind the title and fades out before the sign. */
.lp-hero-shade {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg,
        rgba(9, 27, 51, .78) 0%,
        rgba(9, 27, 51, .55) 38%,
        rgba(9, 27, 51, .12) 66%,
        rgba(9, 27, 51, 0) 80%,
        rgba(9, 27, 51, .3) 100%);
}
.lp-hero-content { width: 100%; text-align: center; padding-top: clamp(2.5rem, 8vh, 5.5rem); padding-bottom: 3rem; }

.lp-title {
    font-family: var(--lp-serif); font-weight: 700; text-transform: uppercase; color: #fff;
    max-width: 1020px; margin: 0 auto; text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
}
.lp-title > span { display: block; text-wrap: balance; }
.lp-title-main { font-size: clamp(1.7rem, 4vw, 3.15rem); line-height: 1.12; letter-spacing: .01em; }
/* "AT" between two short gold rules */
.lp-title .lp-title-at {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    font-size: clamp(.95rem, 1.6vw, 1.2rem); letter-spacing: .3em; color: rgba(255, 255, 255, .9); margin: .9rem 0 .7rem;
}
.lp-title-at::before, .lp-title-at::after { content: ""; width: 3.5rem; height: 2px; background: var(--lp-gold-light); box-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.lp-title-school { font-size: clamp(1.35rem, 3vw, 2.35rem); line-height: 1.18; letter-spacing: .02em; color: var(--lp-gold-light); }

.lp-year {
    display: inline-block; margin: 1.75rem 0 0; padding: .4rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: rgba(9, 27, 51, .35);
    color: #fff; font-size: .9rem; font-weight: 600; letter-spacing: .04em;
}

/* ---------- Footer ---------- */
.lp-footer { background: var(--lp-navy-dark); color: #c3d0e3; font-size: .85rem; padding: 1rem 0; }
.lp-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; }
.lp-footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.lp-footer-links a { color: #c3d0e3; text-decoration: none; overflow-wrap: anywhere; }
.lp-footer-links a:hover { color: #fff; text-decoration: underline; }
.lp-footer-links i { margin-right: .25rem; }

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .lp-seal { width: 48px; height: 48px; }
    .lp-school { font-size: 1.05rem; }
    .lp-address { display: none; }
    .lp-hero { min-height: 460px; }
}
@media (max-width: 575.98px) {
    .lp-container { padding-left: 1rem; padding-right: 1rem; }
    .lp-header-inner { gap: .75rem; padding-top: .65rem; padding-bottom: .65rem; }
    .lp-brand { gap: .65rem; }
    .lp-kicker { display: none; }
    .lp-seal { width: 42px; height: 42px; }
    .lp-school { font-size: .95rem; }
    .lp-login { padding: .5rem .9rem; font-size: .88rem; }
    .lp-title-at::before, .lp-title-at::after { width: 2rem; }
    .lp-footer-inner { flex-direction: column; text-align: center; }
    .lp-footer-links { justify-content: center; column-gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-login { transition: none; }
}
