/* ==========================================================================
   PSC Portal — Public Landing Page Styles
   Loaded on /landing.blade.php only (extends layouts.public)
   ========================================================================== */

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 80px 20px 100px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at top left, rgba(14,116,144,0.10) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(251,191,36,0.10) 0%, transparent 50%),
        linear-gradient(180deg, #f0fdfa 0%, #ffffff 60%);
}
.hero::before {
    content:'';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(14,116,144,0.10) 1px, transparent 0);
    background-size: 32px 32px;
    opacity: 0.5;
    mask-image: linear-gradient(180deg, black, transparent);
    -webkit-mask-image: linear-gradient(180deg, black, transparent);
    pointer-events: none;
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 991px) {
    .hero { padding: 50px 20px 70px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    background: white; border: 1px solid rgba(14,116,144,0.18);
    color: #0e7490; padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 600; margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(14,116,144,0.06);
}
.hero-eyebrow .dot {
    width: 7px; height: 7px; background: #15803d; border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(21,128,61,0.18); animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(21,128,61,0.18); }
    50% { box-shadow: 0 0 0 6px rgba(21,128,61,0); }
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800;
    line-height: 1.1; letter-spacing: -0.02em; color: #0f172a; margin-bottom: 18px;
}
.hero h1 .grad {
    background: linear-gradient(135deg, #0e7490 0%, #1e3a8a 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead {
    font-size: clamp(1rem, 1.5vw, 1.18rem); color: #475569;
    line-height: 1.6; margin-bottom: 32px; max-width: 560px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-h {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px; border-radius: 12px; text-decoration: none;
    font-weight: 600; font-size: 15px; transition: all 0.25s; border: none; cursor: pointer;
}
.btn-h.primary {
    background: linear-gradient(135deg, #0e7490 0%, #1e3a8a 100%);
    color: white; box-shadow: 0 8px 22px rgba(14,116,144,0.32);
}
.btn-h.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14,116,144,0.45); }
.btn-h.gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a; box-shadow: 0 8px 22px rgba(251,191,36,0.35);
}
.btn-h.gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(251,191,36,0.5); }
.btn-h.ghost { background: white; color: #0e7490; border: 1.5px solid #cbd5e1; }
.btn-h.ghost:hover { border-color: #0e7490; background: #f0fdfa; }

.hero-stats {
    margin-top: 40px; display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 12px; max-width: 700px;
}
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-pill {
    background: white; border: 1px solid #e2e8f0; border-radius: 14px;
    padding: 14px 12px; text-align: center; transition: all 0.25s;
}
.stat-pill:hover {
    transform: translateY(-3px); box-shadow: 0 12px 28px rgba(14,116,144,0.12);
    border-color: rgba(14,116,144,0.25);
}
.stat-pill .num { font-size: 22px; font-weight: 800; color: #0e7490; line-height: 1; }
.stat-pill .lbl { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; font-weight: 600; }

.hero-visual { position: relative; height: 480px; }
@media (max-width: 991px) { .hero-visual { height: 360px; display: none; } }
.hv-card {
    position: absolute; background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.7); border-radius: 18px;
    padding: 16px 18px; box-shadow: 0 24px 48px rgba(15,23,42,0.10);
    animation: float 6s ease-in-out infinite;
}
.hv-card-1 { top: 6%; left: 0; width: 235px; animation-delay: 0s; }
.hv-card-2 { top: 32%; right: 0; width: 250px; animation-delay: -2s; }
.hv-card-3 { bottom: 6%; left: 8%; width: 270px; animation-delay: -4s; }
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
.hv-card .icon-box {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; margin-bottom: 8px;
}
.hv-card h6 { font-weight: 700; font-size: 14px; margin: 0 0 2px; color: #0f172a; }
.hv-card small { font-size: 11px; color: #64748b; }

.hv-orbit {
    position: absolute; top: 50%; left: 50%; width: 320px; height: 320px;
    border-radius: 50%; background: linear-gradient(135deg, rgba(14,116,144,0.10), rgba(251,191,36,0.10));
    transform: translate(-50%, -50%); z-index: 0;
    animation: pulse-bg 5s ease-in-out infinite;
}
.hv-orbit::before {
    content:''; position: absolute; inset: 30px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(14,116,144,0.18), rgba(251,191,36,0.18));
}
@keyframes pulse-bg {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.04); }
}
.hv-emoji {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 100px; z-index: 1;
    filter: drop-shadow(0 12px 24px rgba(14,116,144,0.2));
}

/* ============ SECTION SHARED ============ */
.section { padding: 80px 20px; }
@media (max-width: 640px) { .section { padding: 56px 16px; } }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.section-head h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800; color: #0f172a; margin: 0;
    letter-spacing: -0.02em;
}
.section-head .eyebrow {
    font-size: 12px; font-weight: 700; color: #0e7490;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px;
}
.section-head p { color: #64748b; margin: 6px 0 0; max-width: 540px; }
.section-link {
    font-size: 14px; font-weight: 600; color: #0e7490;
    text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.section-link:hover { color: #1e3a8a; gap: 7px; transition: gap 0.2s; }

/* ============ NEWS ============ */
.news-section { background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 991px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
    background: white; border: 1px solid #e2e8f0; border-radius: 16px;
    overflow: hidden; text-decoration: none; color: inherit;
    display: flex; flex-direction: column; transition: all 0.3s;
}
.news-card:hover {
    transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15,23,42,0.10);
    border-color: rgba(14,116,144,0.25);
}
.news-img {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #ecfeff 0%, #fef3c7 100%);
    position: relative;
    overflow: hidden;
}
.news-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.news-img-placeholder {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 48px; color: rgba(14,116,144,0.35);
}
.news-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.news-body .date {
    font-size: 11px; color: #94a3b8; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.news-body h5 {
    font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 8px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-body p {
    font-size: 13px; color: #64748b; margin: 0 0 14px; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-body .read-more {
    margin-top: auto; color: #0e7490; font-weight: 600; font-size: 13px;
    display: inline-flex; align-items: center; gap: 4px;
}
.news-empty {
    text-align: center; padding: 50px 20px;
    background: white; border: 1px dashed #cbd5e1; border-radius: 16px;
}
.news-empty i { font-size: 40px; color: #cbd5e1; }
.news-empty p { margin: 10px 0 0; color: #64748b; }

/* ============ EVENTS ============ */
.events-section { background: #f8fafc; }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 991px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .events-grid { grid-template-columns: 1fr; } }

.ev-card {
    background: white; border: 1px solid #e2e8f0; border-radius: 18px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: all 0.3s; position: relative;
}
.ev-card:hover {
    transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15,23,42,0.10);
    border-color: rgba(14,116,144,0.25);
}
.ev-cover {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #0e7490 0%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}
.ev-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.ev-cover-placeholder {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.4); font-size: 56px;
}
.ev-type-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
    color: #0e7490; padding: 4px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    z-index: 1;
}
.ev-fee-badge {
    position: absolute; top: 12px; right: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a; padding: 5px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 800;
    box-shadow: 0 4px 12px rgba(251,191,36,0.4);
    z-index: 1;
}
.ev-fee-badge.free {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: white; box-shadow: 0 4px 12px rgba(21,128,61,0.4);
}
.ev-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.ev-body h5 {
    font-size: 17px; font-weight: 700; color: #0f172a;
    margin: 0 0 10px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ev-meta .row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; }
.ev-meta .row i { color: #0e7490; width: 14px; flex-shrink: 0; }
.ev-meta .row strong { color: #0f172a; font-weight: 600; }
.ev-cta {
    margin-top: auto; display: inline-flex; justify-content: center; align-items: center;
    gap: 6px; padding: 10px 16px;
    background: linear-gradient(135deg, #0e7490 0%, #1e3a8a 100%);
    color: white; border-radius: 10px; text-decoration: none;
    font-weight: 600; font-size: 13px; transition: all 0.2s;
}
.ev-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(14,116,144,0.3); color: white; }
.ev-empty {
    text-align: center; padding: 60px 20px;
    background: white; border: 1px dashed #cbd5e1; border-radius: 16px;
}
.ev-empty i { font-size: 48px; color: #cbd5e1; }
.ev-empty p { margin: 12px 0 0; color: #64748b; }
.events-cta-footer { text-align: center; margin-top: 36px; }

/* ============ COMMUNITY FEATURES ============ */
.community-section {
    background:
        radial-gradient(ellipse at top right, rgba(251,191,36,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(14,116,144,0.06) 0%, transparent 50%),
        #ffffff;
}
.community-section .section-head { text-align: center; margin-bottom: 48px; flex-direction: column; align-items: center; }
.community-section .section-head p { max-width: 620px; margin: 6px auto 0; }

.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .feat-grid { grid-template-columns: 1fr; } }

.feat-card {
    background: white; border: 1px solid #e2e8f0; border-radius: 18px;
    padding: 24px 22px; transition: all 0.3s; position: relative; overflow: hidden;
}
.feat-card::before {
    content:''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent, #0e7490), transparent);
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.feat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15,23,42,0.08);
    border-color: rgba(14,116,144,0.2);
}
.feat-card:hover::before { transform: scaleX(1); }

.feat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 16px;
    background: var(--bg, rgba(14,116,144,0.10)); color: var(--accent, #0e7490);
}
.feat-card h5 { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 8px; line-height: 1.3; }
.feat-card p { font-size: 13px; color: #64748b; line-height: 1.55; margin: 0; }

.feat-card.c-teal   { --accent: #0e7490; --bg: rgba(14,116,144,0.10); }
.feat-card.c-gold   { --accent: #d97706; --bg: rgba(251,191,36,0.15); }
.feat-card.c-green  { --accent: #15803d; --bg: rgba(21,128,61,0.12); }
.feat-card.c-purple { --accent: #7c3aed; --bg: rgba(124,58,237,0.12); }
.feat-card.c-blue   { --accent: #1e40af; --bg: rgba(30,64,175,0.10); }
.feat-card.c-pink   { --accent: #be185d; --bg: rgba(190,24,93,0.10); }
.feat-card.c-orange { --accent: #c2410c; --bg: rgba(234,88,12,0.10); }

/* ============ ECOSYSTEM ============ */
.ecosystem-section { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.ecosystem-section .section-head { text-align: center; margin-bottom: 48px; flex-direction: column; align-items: center; }
.ecosystem-section .section-head p { max-width: 620px; margin: 6px auto 0; }

.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 991px) { .eco-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .eco-grid { grid-template-columns: 1fr; } }

.eco-card {
    background: white; border: 1px solid #e2e8f0; border-radius: 18px;
    padding: 28px 22px 24px; text-decoration: none; color: inherit;
    text-align: center; transition: all 0.3s;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}
.eco-card::after {
    content:''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent2, var(--accent)));
    transform: scaleX(0); transform-origin: center; transition: transform 0.4s;
}
.eco-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(15,23,42,0.10);
    border-color: rgba(14,116,144,0.22);
}
.eco-card:hover::after { transform: scaleX(1); }

.eco-logo {
    width: 64px; height: 64px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 16px;
    background: var(--bg); color: var(--accent);
    box-shadow: 0 8px 18px var(--shadow, rgba(14,116,144,0.18));
}
.eco-card h5 { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 6px; }
.eco-card .eco-domain {
    font-size: 11px; color: var(--accent); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.eco-card p { font-size: 13px; color: #64748b; line-height: 1.5; margin: 0 0 14px; flex: 1; }
.eco-visit {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; color: var(--accent); font-weight: 600;
}

.eco-card.psc   { --accent: #0e7490; --accent2: #1e3a8a; --bg: rgba(14,116,144,0.10);  --shadow: rgba(14,116,144,0.18); }
.eco-card.store { --accent: #d97706; --accent2: #f59e0b; --bg: rgba(251,191,36,0.15);  --shadow: rgba(251,191,36,0.25); }
.eco-card.scope { --accent: #1e40af; --accent2: #6366f1; --bg: rgba(30,64,175,0.10);   --shadow: rgba(30,64,175,0.20); }
.eco-card.news  { --accent: #be185d; --accent2: #f43f5e; --bg: rgba(190,24,93,0.10);   --shadow: rgba(190,24,93,0.18); }

/* ============ SOCIAL STRIP ============ */
.social-strip {
    background: linear-gradient(135deg, #0e7490 0%, #1e3a8a 100%);
    padding: 50px 20px;
    position: relative; overflow: hidden;
}
.social-strip::before {
    content:''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: 0.6; pointer-events: none;
}
.social-inner {
    max-width: 1100px; margin: 0 auto;
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 28px;
}
.social-text { color: white; }
.social-text .eyebrow {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: #fbbf24; margin-bottom: 6px;
}
.social-text h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 800; margin: 0; letter-spacing: -0.01em;
}
.social-text p { font-size: 13px; color: rgba(255,255,255,0.8); margin: 4px 0 0; }
.social-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.social-btn {
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    color: white; display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 20px; transition: all 0.25s;
}
.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--brand, white); color: var(--brand-fg, #0e7490);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}
.social-btn.fb { --brand: #1877f2; --brand-fg: white; }
.social-btn.ig { --brand: linear-gradient(135deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); --brand-fg: white; }
.social-btn.yt { --brand: #ff0000; --brand-fg: white; }
.social-btn.tt { --brand: #000; --brand-fg: white; }
.social-btn.wa { --brand: #25d366; --brand-fg: white; }

@media (max-width: 640px) {
    .social-inner { flex-direction: column; text-align: center; gap: 20px; }
}

/* ============ PERFORMANCE / ACCESSIBILITY ============ */

/* Reduce heavy animations on mobile (saves paint/CPU/battery) */
@media (max-width: 768px) {
    .hv-card, .hv-orbit { animation: none !important; }
    .hero::before { display: none; }
    .social-strip::before { display: none; }
}

/* Respect user OS-level motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .stat-pill:hover, .news-card:hover, .ev-card:hover,
    .feat-card:hover, .eco-card:hover, .social-btn:hover,
    .btn-h:hover { transform: none; }
}

/* Image error/loading fallback gradient still visible behind broken img */
.news-img img[src=""], .ev-cover img[src=""] { display: none; }
