@import url('landing.css');
/* landing-polish.css
   UI polish for the main landing page (index.html). It imports landing.css first,
   so the page only has to load this one file: extraStylesheet='landing-polish.css'.
   Layout, links, routes and the EN/FIL toggle are untouched. */

/* ---- the body is a centering flex box in auth.css; on short screens that pushed the top (logo) off-screen ---- */
body.landing-body { align-items: flex-start; }

/* ---- background: the gold blur over blue made the olive/green patch. Use blue light instead ---- */
.hero-blob-1 { background: #4aa3ff; opacity: .38; }
.hero-blob-3 { background: #5b8cff; opacity: .32; }

/* ---- keep the content grouped in the middle on wide screens instead of far apart ---- */
.landing-shell { justify-content: space-between; gap: 60px; padding-left: 6vw; padding-right: 9vw; }
.landing-hero  { flex: 0 1 540px; }
.landing-panel { flex: 0 0 400px; }
.landing-panel .rig { width: 100%; max-width: 400px; }

/* ---- hero ---- */
.hero-content { max-width: 500px; }
.hero-logo {
    background: #fff; padding: 5px; width: 128px; height: 128px;
    box-shadow: 0 0 0 8px rgba(255,255,255,.14), 0 24px 52px -16px rgba(0,0,0,.5);
}
.hero-logo img { width: 100%; height: 100%; }
.hero-title { font-size: 46px; letter-spacing: -.01em; margin: 8px 0 14px; }
.hero-tagline { font-size: 16px; max-width: 440px; margin-bottom: 30px; }
.hero-features { gap: 12px; }
.hero-features li { font-size: 15px; gap: 14px; }
.hero-features svg {
    box-sizing: content-box; width: 18px; height: 18px; padding: 8px; border-radius: 11px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14);
}
.hero-emergency { margin-top: 28px; }

/* ---- sign-in card ---- */
.landing-panel .card { padding: 28px 26px 22px; border-radius: 22px; }
.landing-panel .heading h1 { font-size: 25px; }
.landing-panel .heading .sub { font-size: 14px; }
.role-list { gap: 10px; }
.role-btn { padding: 13px 14px; border-radius: 16px; background: #eef4fc; }
.role-btn.admin { background: #fdf3df; }
.role-icon { width: 40px; height: 40px; }
.role-icon svg { width: 20px; height: 20px; }
.role-text .label { font-size: 15px; }
.role-text .desc { font-size: 12px; }
.role-chevron {
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; color: var(--primary); font-size: 18px; line-height: 1;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.role-btn.admin .role-chevron { color: var(--admin); }
.role-btn:hover .role-chevron { transform: translateX(3px); background: var(--primary); color: #fff; }
.role-btn.admin:hover .role-chevron { background: var(--admin); color: #fff; }

.divider-row { margin: 18px 0 12px; }
.signup-row { font-size: 13px; }
.signup-row a { font-size: 13px; }

/* "Official Barangay Portal" already appears in the badge + eyebrow, so drop the third copy */
.landing-panel .foot-note { display: none; }

/* contact footer: a quiet tinted strip */
.card-contact { margin: 16px -26px -22px; padding: 13px 26px 15px; background: #f5f8fc; border-top: 1px solid var(--border); border-radius: 0 0 22px 22px; gap: 8px; }
.contact-row { font-size: 12px; }

/* ---- phones ---- */
@media (max-width: 980px) {
    .landing-shell { justify-content: flex-start; padding-left: 24px; padding-right: 24px; }
    .landing-hero, .landing-panel { flex: none; }
    .landing-panel .rig { max-width: 440px; }
    .hero-title { font-size: 34px; }
}
@media (max-width: 560px) {
    .hero-title { font-size: 28px; }
    .hero-logo { width: 96px; height: 96px; }
    .landing-panel .card { padding: 28px 22px 22px; }
    .card-contact { margin: 16px -22px -22px; padding: 13px 22px 15px; }
}

/* =====================================================================
   APPEND THIS BLOCK TO THE VERY END OF landing-polish.css
   Responsiveness and layout-stability fixes for the landing page.
   ===================================================================== */

/* Same page background as the sign-in pages, so nothing white or mismatched shows between
   pages while they cross-fade or when you over-scroll on a phone. auth.css fixes html/body
   to height:100%, which is released here (the same way auth-polish.css does it). */
html { height: auto; min-height: 100%; background: #14315e; }

/* 100dvh = the real visible height on phones (100vh includes the hidden address bar) */
body.landing-body,
.landing-shell { min-height: 100vh; min-height: 100dvh; }

/* Laptop screens that are not very tall: tighten the hero so the page does not need to
   scroll just to reach the emergency note. Same design, slightly smaller spacing. */
@media (min-width: 981px) and (max-height: 820px) {
    .landing-shell { padding-top: 24px; padding-bottom: 24px; }
    .hero-logo { width: 104px; height: 104px; margin-bottom: 14px; }
    .hero-trust-badge { margin-bottom: 12px; }
    .hero-title { font-size: 40px; margin: 6px 0 10px; }
    .hero-tagline { font-size: 15px; margin-bottom: 20px; }
    .hero-features { gap: 8px; }
    .hero-emergency { margin-top: 18px; }
}

/* Tablet / phone: the hero text was left-aligned while the sign-in card was centered.
   Put both in the same centered column. */
@media (max-width: 980px) {
    .landing-hero { justify-content: center; }
    .hero-content,
    .landing-panel .rig { width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; }
}

/* Touch screens keep ":hover" after a tap, which left the card floating. */
@media (hover: none) {
    .landing-panel .card:hover {
        transform: none;
        box-shadow: 0 24px 60px -18px rgba(8, 20, 45, 0.45), 0 4px 16px rgba(8, 20, 45, 0.15);
    }
}

/* =====================================================================
   APPEND THIS BLOCK TO THE VERY END OF landing-polish.css
   (after the landing-polish.APPEND.css block, if you already pasted it)
   Smooth EN / FIL switch. Works with the new landing.js.
   ===================================================================== */

@media (prefers-reduced-motion: no-preference) {

    /* fade IN (slower, softer) */
    [data-i18n] {
        transition: opacity 180ms ease-out;
    }

    /* fade OUT (quicker). landing.js swaps the text once this has finished,
       so the line re-wrapping happens while the text is invisible. */
    body.lang-swap [data-i18n] {
        opacity: 0;
        transition-duration: 120ms;
        transition-timing-function: ease-in;
    }
}