/* Public landing page for Parasakthi Enterprises.
   Kept separate from custom.css, which styles the signed-in application shell:
   the two have no visual language in common and share no components. */

:root {
    --pse-navy: #1b2a5b;
    --pse-navy-deep: #111d40;
    --pse-navy-soft: #2b3f7d;
    --pse-red: #c8202d;
    --pse-steel: #5a6785;
    --pse-mist: #f4f6fb;
    --pse-line: #dfe4ef;
    --pse-ink: #161d33;
    --pse-body: #4a5570;
}

body.pse-landing {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--pse-body);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.pse-landing h1, .pse-landing h2, .pse-landing h3, .pse-landing h4 {
    color: var(--pse-ink);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pse-section { padding: 84px 0; }
.pse-section-mist { background: var(--pse-mist); }

.pse-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pse-red);
    margin-bottom: 0.75rem;
}

.pse-section-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: 1rem; }
.pse-lead { font-size: 1.06rem; line-height: 1.75; }

/* ---- Top contact bar ---- */
.pse-topbar {
    background: var(--pse-navy-deep);
    color: #c9d3ee;
    font-size: 0.84rem;
    padding: 8px 0;
}
.pse-topbar a { color: #c9d3ee; text-decoration: none; }
.pse-topbar a:hover { color: #fff; }

/* ---- Navigation ---- */
.pse-nav {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--pse-line);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}
/* min-width:0 lets the brand shrink instead of shouldering the login button
   out of the bar; without it the two overlapped on a narrow phone. */
.pse-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.pse-brand img { height: 46px; width: auto; flex: 0 0 auto; }
.pse-brand-name, .pse-brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pse-brand-name {
    font-weight: 800;
    color: var(--pse-navy);
    line-height: 1.05;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
}
.pse-brand-sub {
    font-size: 0.66rem;
    letter-spacing: 0.19em;
    color: var(--pse-steel);
    text-transform: uppercase;
}
.pse-nav-link {
    color: var(--pse-ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.94rem;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}
.pse-nav-link:hover { color: var(--pse-red); border-bottom-color: var(--pse-red); }

.pse-btn-login {
    background: var(--pse-navy);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease;
}
.pse-btn-login:hover { background: var(--pse-red); color: #fff; }
/* The button keeps its width; the brand beside it is what gives way. */
.pse-btn-login { flex: 0 0 auto; white-space: nowrap; }

/* ---- Hero ---- */
.pse-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.pse-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        rgba(17, 29, 64, 0.94) 0%,
        rgba(17, 29, 64, 0.86) 42%,
        rgba(17, 29, 64, 0.55) 100%);
}
.pse-hero > .container { position: relative; z-index: 1; padding: 90px 12px; }
.pse-hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 6vw, 4.1rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.pse-hero-rule {
    width: 68px;
    height: 4px;
    background: var(--pse-red);
    margin: 22px 0;
    border-radius: 2px;
}
.pse-hero-tagline {
    font-size: clamp(1.05rem, 2.1vw, 1.4rem);
    font-style: italic;
    color: #dbe3f7;
    margin-bottom: 1.25rem;
}
.pse-hero-lead { color: #cdd7ee; font-size: 1.06rem; line-height: 1.75; max-width: 40rem; }

.pse-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pse-btn-primary, .pse-btn-ghost {
    border-radius: 6px;
    padding: 13px 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s ease;
}
.pse-btn-primary { background: var(--pse-red); color: #fff; border: 1px solid var(--pse-red); }
.pse-btn-primary:hover { background: #a51824; border-color: #a51824; color: #fff; }
.pse-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.55); }
.pse-btn-ghost:hover { background: #fff; color: var(--pse-navy); }

/* ---- Figures strip ---- */
.pse-stats { background: var(--pse-navy); color: #fff; padding: 0; }
.pse-stat { padding: 34px 16px; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.13); }
.pse-stat:last-child { border-right: none; }
.pse-stat-value { font-size: 1.95rem; font-weight: 800; color: #fff; line-height: 1.1; }
.pse-stat-label {
    font-size: 0.76rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #a9b7dc;
    margin-top: 6px;
}

/* ---- Capability pillars ---- */
.pse-pillar {
    background: #fff;
    border: 1px solid var(--pse-line);
    border-radius: 10px;
    padding: 30px 22px;
    height: 100%;
    text-align: center;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.pse-pillar:hover { box-shadow: 0 12px 30px rgba(27, 42, 91, 0.12); transform: translateY(-3px); }
.pse-pillar i { font-size: 1.7rem; color: var(--pse-navy); margin-bottom: 14px; }
.pse-pillar h3 { font-size: 0.94rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }

/* ---- Service cards ---- */
.pse-service {
    background: #fff;
    border: 1px solid var(--pse-line);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pse-service-photo { height: 232px; object-fit: cover; width: 100%; }
.pse-service-body { padding: 30px; flex: 1; display: flex; flex-direction: column; }
.pse-client-tag {
    display: inline-block;
    background: var(--pse-mist);
    border: 1px solid var(--pse-line);
    color: var(--pse-navy);
    border-radius: 5px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}
.pse-list { list-style: none; padding: 0; margin: 0; }
.pse-list li { padding: 7px 0 7px 26px; position: relative; font-size: 0.94rem; }
.pse-list li::before {
    content: '\f058'; /* check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 7px;
    color: var(--pse-navy);
    font-size: 0.82rem;
}
.pse-list-sub { font-size: 0.86rem; color: var(--pse-steel); padding-left: 26px; }

/* ---- Gallery ---- */
.pse-gallery-item {
    position: relative;
    border-radius: 9px;
    overflow: hidden;
    background: #0d152e;
    aspect-ratio: 4 / 3;
}
.pse-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.pse-gallery-item:hover img { transform: scale(1.06); opacity: 0.72; }
.pse-gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 14px 12px;
    background: linear-gradient(transparent, rgba(10, 18, 42, 0.92));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---- Facilities ---- */
.pse-facility {
    background: #fff;
    border: 1px solid var(--pse-line);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
}
.pse-facility h3 {
    font-size: 1.18rem;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pse-navy);
    margin-bottom: 6px;
}
.pse-spec { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--pse-line); font-size: 0.92rem; }
.pse-spec:last-child { border-bottom: none; }
.pse-spec dt { font-weight: 500; color: var(--pse-body); margin: 0; }
.pse-spec dd { font-weight: 700; color: var(--pse-ink); margin: 0; white-space: nowrap; }

/* ---- Certification ---- */
.pse-cert {
    background: var(--pse-navy);
    color: #fff;
    border-radius: 12px;
    padding: 44px;
}
.pse-cert h2 { color: #fff; }
.pse-cert-seal {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
}

/* ---- Contact ---- */
.pse-contact-card {
    background: #fff;
    border: 1px solid var(--pse-line);
    border-radius: 12px;
    padding: 28px;
    height: 100%;
}
.pse-contact-card i { font-size: 1.3rem; color: var(--pse-red); margin-bottom: 12px; }
.pse-contact-card a { color: var(--pse-navy); text-decoration: none; font-weight: 600; word-break: break-word; }
.pse-contact-card a:hover { color: var(--pse-red); }

/* ---- Footer ---- */
.pse-footer { background: var(--pse-navy-deep); color: #9dabd0; padding: 52px 0 26px; font-size: 0.9rem; }
.pse-footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.pse-footer a { color: #9dabd0; text-decoration: none; }
.pse-footer a:hover { color: #fff; }
.pse-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 34px; padding-top: 20px; font-size: 0.84rem; }

/* ---- Responsive ---- */
@media (max-width: 575.98px) {
    /* Give the bar back the room the full-size logo and button were taking. */
    .pse-nav { padding: 10px 0; }
    .pse-brand { gap: 9px; }
    .pse-brand img { height: 36px; }
    .pse-brand-name { font-size: 0.92rem; }
    .pse-brand-sub { font-size: 0.6rem; letter-spacing: 0.14em; }
    .pse-btn-login { padding: 9px 15px; font-size: 0.85rem; }
}

@media (max-width: 991px) {
    .pse-section { padding: 60px 0; }
    .pse-hero { min-height: auto; }
    .pse-stat { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.13); padding: 26px 12px; }
    .pse-cert { padding: 30px; }
}

/* Respect a reduced-motion preference: the hover lift and zoom are decoration. */
@media (prefers-reduced-motion: reduce) {
    .pse-pillar, .pse-gallery-item img, .pse-btn-primary, .pse-btn-ghost, .pse-btn-login {
        transition: none;
    }
    .pse-pillar:hover { transform: none; }
    .pse-gallery-item:hover img { transform: none; }
}
