/* ------------------------------------------------------------------
   Society site — modern layout (home + shared tokens for admin)
   ------------------------------------------------------------------ */
:root {
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --ink: #0f172a;
    --muted: #64748b;
    --surface: #f8fafc;
    --card: #ffffff;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #22c55e;
    --hero-1: #0f172a;
    --hero-2: #1e3a5f;
    --hero-glow: rgba(56, 189, 248, 0.35);
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 40px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

.page-home {
    padding-top: 0;
}

/* ----- Header / nav ----- */
.site-header .site-nav {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.site-nav .navbar-brand {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-logo {
    flex-shrink: 0;
    border-radius: 0.65rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.brand-logo-sm {
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.brand-text {
    max-width: 14rem;
    line-height: 1.2;
    font-size: 0.95rem;
}

@media (min-width: 992px) {
    .brand-text {
        font-size: 1rem;
        max-width: none;
    }
}

.site-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}

.site-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.site-nav .nav-link.nav-cta {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0 !important;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.site-nav .nav-link.nav-cta:hover {
    background: rgba(34, 197, 94, 0.35);
    color: #fff !important;
}

.site-nav.navbar-scrolled {
    background: rgba(15, 23, 42, 0.92);
}

/* ----- Hero ----- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--hero-1) 0%, var(--hero-2) 55%, #0c4a6e 100%);
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 20%, var(--hero-glow), transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 10%, rgba(167, 139, 250, 0.25), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(34, 197, 94, 0.12), transparent 40%);
    pointer-events: none;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-copy {
    padding-top: 5.5rem;
}

@media (min-width: 992px) {
    .hero-copy {
        padding-top: 0;
    }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.hero-eyebrow .dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 12px #4ade80;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 32rem;
}

.hero-visual {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.06);
}

.hero-slide-img {
    height: min(52vh, 420px);
    object-fit: cover;
    object-position: center;
}

.hero-slide-img--photo {
    min-height: 320px;
    height: min(56vh, 460px);
    background: #0f172a;
}

.hero-visual .carousel-inner {
    border-radius: inherit;
}

.hero-visual .carousel-control-prev,
.hero-visual .carousel-control-next {
    width: 3rem;
    height: 3rem;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    opacity: 1;
}

.hero-visual .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
}

.hero-visual .carousel-indicators .active {
    background: #fff;
}

/* ----- Sections ----- */
.section-title {
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.letter-space {
    letter-spacing: 0.12em;
}

.section-about {
    background: var(--surface);
}

.feature-tile {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(34, 197, 94, 0.12));
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
}

.section-stats {
    background: linear-gradient(180deg, #eef2ff 0%, var(--surface) 100%);
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.stat-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
}

.stat-icon-emerald {
    background: linear-gradient(135deg, #059669, #34d399);
}

.stat-icon-sky {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
}

.stat-icon-amber {
    background: linear-gradient(135deg, #d97706, #fbbf24);
}

.stat-value {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 0.35rem;
}

.section-payment {
    background: var(--surface);
}

.payment-steps li {
    position: relative;
    padding-left: 0;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem 0.85rem 3.25rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.95rem;
    color: var(--muted);
}

.payment-steps .step-num {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-card {
    border-radius: var(--radius-xl) !important;
    overflow: hidden;
}

.payment-card .form-control,
.payment-card .form-select {
    border-radius: 0.65rem;
    border-color: rgba(148, 163, 184, 0.35);
}

.payment-card .form-control:focus,
.payment-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.payment-card .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    font-weight: 600;
}

.payment-card .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
}

/* Honeypot: keep in DOM for bots; Bootstrap .visually-hidden does the hiding (avoid display:none). */
.payment-hp-trap {
    pointer-events: none;
    user-select: none;
}

/* ----- Footer ----- */
.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    padding: 0.2rem 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

/* ----- Admin pages (minimal polish) ----- */
body:not(.page-home) {
    background: var(--surface);
}

/* Utility */
.text-primary {
    color: var(--primary) !important;
}
