/* Secured-by Gallery Page Styles */

/* ==============================
   Hero
============================== */

.secured-by-hero {
    background: linear-gradient(180deg, var(--brand-dark-blue) 0%, var(--brand-blue) 100%);
    color: white;
    padding: var(--space-16) var(--space-5) var(--space-12);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.secured-by-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.secured-by-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-4);
}

.secured-by-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.secured-by-hero p {
    font-size: var(--text-lg);
    opacity: 0.9;
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ==============================
   Gallery section
============================== */

.secured-by-gallery-section {
    background: var(--brand-off-white);
    padding: var(--space-12) var(--space-5);
}

.secured-by-container {
    max-width: 1100px;
    margin: 0 auto;
}

.secured-by-container--narrow {
    max-width: 640px;
}

.secured-by-count {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-8);
}

/* ==============================
   Grid
============================== */

.secured-by-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-5);
}

/* ==============================
   Tile
============================== */

.secured-by-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-6) var(--space-4);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: box-shadow var(--duration-150) var(--ease-out),
                border-color var(--duration-150) var(--ease-out),
                transform var(--duration-150) var(--ease-out);
    box-shadow: var(--shadow-xs);
}

.secured-by-tile:hover,
.secured-by-tile:focus-visible {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-blue);
    transform: translateY(-2px);
    outline: none;
}

.secured-by-tile:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

/* Tile for an org without a website — non-interactive */
.secured-by-tile--nolink {
    pointer-events: none;
    cursor: default;
}

.secured-by-tile--nolink:hover,
.secured-by-tile--nolink:focus-visible {
    box-shadow: var(--shadow-xs);
    border-color: var(--gray-200);
    transform: none;
}

/* ==============================
   Logo / initials avatar
============================== */

.secured-by-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secured-by-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.secured-by-initials {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand-dark-blue), var(--brand-blue));
    color: white;
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
    user-select: none;
    flex-shrink: 0;
}

.secured-by-initials--fallback {
    display: none;
}

.secured-by-initials--visible {
    display: flex;
}

.secured-by-logo--hidden {
    display: none;
}

/* ==============================
   Company name
============================== */

.secured-by-name {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--brand-very-dark-blue);
    text-align: center;
    line-height: var(--leading-snug);
    word-break: break-word;
}

/* ==============================
   Validity badge (bottom-right corner)
============================== */

.secured-by-badge {
    position: absolute;
    bottom: var(--space-2);
    right: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-success);
    line-height: 1;
}

/* ==============================
   Empty state
============================== */

.secured-by-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-16) 0;
    color: var(--gray-500);
    text-align: center;
}

.secured-by-empty i {
    font-size: 2.5rem;
    opacity: 0.3;
}

.secured-by-empty p {
    font-size: var(--text-base);
    margin: 0;
}

/* ==============================
   CTA section
============================== */

.secured-by-cta-section {
    background: linear-gradient(135deg, var(--brand-dark-blue) 0%, var(--brand-blue) 100%);
    color: white;
    padding: var(--space-16) var(--space-5);
    text-align: center;
}

.secured-by-cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.secured-by-cta-section p {
    font-size: var(--text-base);
    opacity: 0.9;
    line-height: var(--leading-relaxed);
    max-width: 480px;
    margin: 0 auto var(--space-6);
}

.secured-by-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--brand-orange);
    color: white;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background var(--duration-150) var(--ease-out);
}

.secured-by-cta-btn:hover {
    background: var(--brand-orange-hover);
    color: white;
}

.secured-by-cta-note {
    font-size: var(--text-sm);
    opacity: 0.65;
    margin: var(--space-4) 0 0;
}

/* ==============================
   Responsive
============================== */

@media (max-width: 640px) {
    .secured-by-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: var(--space-4);
    }

    .secured-by-tile {
        padding: var(--space-5) var(--space-3);
    }
}

@media (max-width: 400px) {
    .secured-by-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==============================
   Dark theme
============================== */

html[data-bs-theme="dark"] .secured-by-gallery-section {
    background: var(--bg-primary);
}

html[data-bs-theme="dark"] .secured-by-count {
    color: var(--text-muted);
}

html[data-bs-theme="dark"] .secured-by-tile {
    background: var(--bg-surface);
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html[data-bs-theme="dark"] .secured-by-tile:hover,
html[data-bs-theme="dark"] .secured-by-tile:focus-visible {
    border-color: var(--brand-blue-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

html[data-bs-theme="dark"] .secured-by-name {
    color: var(--text-primary);
}

html[data-bs-theme="dark"] .secured-by-empty {
    color: var(--text-muted);
}
