/* Shared styles for secondary public pages */

.container,
.clan-page {
    width: var(--site-content, min(1520px, calc(100% - 16px)));
    margin: 0 auto;
    padding: 20px 0 48px;
    box-sizing: border-box;
}

.section-card,
.clan-panel {
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(20,35,63,0.08));
}

/* ===== FULL-VIEWPORT IMAGE HEROES (all public pages) ===== */
.clan-hero,
.page-hero,
.page-hero-banner,
.welcome-section,
.emituba-hero-banner,
.meetings-hero,
.media-hero,
.amasiga-header,
.registration-header {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 28px;
    min-height: var(--site-hero-height, calc(100svh - var(--site-header-h, 118px)));
    height: auto;
    padding: var(--site-hero-pad-y, 48px) var(--site-hero-pad-x, 16px);
    border-radius: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background-color: #14233f;
    background-image:
        linear-gradient(180deg, rgba(10, 18, 36, 0.28) 0%, rgba(10, 18, 36, 0.78) 100%),
        url('../totem.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: none;
    border: 0;
}

.clan-hero::before,
.page-hero::before,
.page-hero-banner::before,
.welcome-section::before,
.emituba-hero-banner::before,
.meetings-hero::before,
.media-hero::before,
.amasiga-header::before,
.registration-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 35, 63, 0.5), transparent 58%);
    pointer-events: none;
    z-index: 0;
}

.clan-hero > *,
.page-hero > *,
.page-hero-banner .hero-inner,
.welcome-section .welcome-content,
.emituba-hero-banner .hero-inner,
.media-hero > *,
.registration-header .container,
.meetings-hero > *,
.amasiga-header > * {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--site-content, min(1520px, calc(100% - 16px)));
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.clan-hero h1,
.page-hero h1,
.page-hero-banner h1,
.welcome-section h1,
.emituba-hero-banner h1,
.meetings-hero h1,
.media-hero h1,
.amasiga-header h1,
.registration-header h1,
.members-page .clan-hero h1,
.news-page .clan-hero h1 {
    position: relative;
    margin: 0 0 12px;
    padding: 0;
    font-size: var(--site-hero-title, clamp(1.85rem, 4.4vw, 3.35rem));
    color: var(--clan-gold, #FFD700);
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    max-width: 920px;
}

.clan-hero p,
.page-hero p,
.page-hero-banner p,
.welcome-section p,
.emituba-hero-banner p,
.meetings-hero p,
.media-hero p,
.amasiga-header p,
.registration-header h2,
.members-page .clan-hero p,
.news-page .clan-hero p {
    position: relative;
    margin: 0;
    max-width: 780px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.55;
    font-size: var(--site-hero-copy, clamp(1rem, 1.7vw, 1.2rem));
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.clan-hero .clan-hero-actions,
.page-hero-banner .clan-hero-actions {
    position: relative;
    margin-top: 20px;
}

/* Home hero: centered copy */
.welcome-section {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 18px;
}
.welcome-section::before {
    background: linear-gradient(180deg, rgba(10, 20, 40, 0.28), rgba(10, 20, 40, 0.62));
}
.welcome-section .welcome-content {
    max-width: min(92vw, 860px);
    margin: 0 auto;
    padding: 0;
    text-align: center;
    background: transparent;
    border: 0;
}
.welcome-section h1 {
    max-width: none;
    margin: 0;
}
.welcome-section p {
    max-width: none;
    margin: 14px 0 0;
}

/* Meetings stats sit with hero copy */
.meetings-hero .meetings-stats {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    margin-bottom: 0;
    max-width: var(--site-content, min(1520px, calc(100% - 16px)));
}

/* Register header keeps gold underline */
.registration-header {
    border-bottom: 4px solid var(--clan-gold, #FFD700);
}
.registration-header .container {
    padding: 0;
    width: 100%;
}

@media (max-width: 900px) {
    .clan-hero,
    .page-hero,
    .page-hero-banner,
    .welcome-section,
    .emituba-hero-banner,
    .meetings-hero,
    .media-hero,
    .amasiga-header,
    .registration-header {
        background-position: center 28%;
    }

    .amasiga-header h1 {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .clan-hero,
    .page-hero,
    .page-hero-banner,
    .welcome-section,
    .emituba-hero-banner,
    .meetings-hero,
    .media-hero,
    .amasiga-header,
    .registration-header {
        margin-bottom: 18px;
        background-position: center 22%;
    }

    .clan-hero h1,
    .page-hero h1,
    .page-hero-banner h1,
    .emituba-hero-banner h1,
    .meetings-hero h1,
    .media-hero h1,
    .amasiga-header h1,
    .registration-header h1 {
        margin-bottom: 10px;
    }

    .clan-hero p,
    .page-hero p,
    .emituba-hero-banner p,
    .meetings-hero p,
    .media-hero p,
    .amasiga-header p {
        max-width: 36em;
    }

    .meetings-hero .meetings-stats {
        margin-top: 14px;
        gap: 8px;
    }

    .clan-hero .clan-hero-actions {
        margin-top: 16px;
    }

    .clan-hero .clan-hero-actions .create-post-btn {
        width: 100%;
        justify-content: center;
    }
}

@supports not (min-height: 100svh) {
    .clan-hero,
    .page-hero,
    .page-hero-banner,
    .welcome-section,
    .emituba-hero-banner,
    .meetings-hero,
    .media-hero,
    .amasiga-header,
    .registration-header {
        min-height: calc(100vh - var(--site-header-h, 118px));
    }
}

.clan-section-title {
    text-align: left;
    color: var(--clan-navy, #1E3C72);
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e4ebf5;
}

.clan-section-title i {
    color: var(--clan-gold, #FFD700);
    margin-right: 8px;
}

/* ===== MEETINGS ===== */
.page-header {
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 18px;
}

.page-title {
    color: var(--clan-navy, #1E3C72);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 4px;
    background: var(--clan-gold, #FFD700);
    border-radius: 2px;
}

.page-subtitle {
    color: #5b6b86;
    font-size: 1rem;
    max-width: 720px;
    margin: 18px auto 0;
    line-height: 1.6;
}

/* ===== MEMBER PROFILE ===== */
.member-profile-page .container {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e4ebf5;
    box-shadow: var(--shadow-md, 0 10px 28px rgba(20,35,63,0.12));
    padding: 28px;
}

.member-profile-page .member-header {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e4ebf5;
}

.member-profile-page .member-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--clan-gold);
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(20,35,63,0.08));
}

.member-profile-page .print-button {
    background: var(--clan-blue);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.member-profile-page .print-button:hover {
    background: var(--clan-navy);
    transform: translateY(-2px);
}

.member-profile-page .detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.member-profile-page .detail-item {
    background: #f4f7fc;
    border-radius: 10px;
    padding: 12px 14px;
    transition: background 0.2s ease;
}

.member-profile-page .detail-item:hover {
    background: #eaf1fb;
}

.member-profile-page .detail-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--clan-blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

/* ===== HISTORY / ABOUT ===== */
.history-prose {
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    padding: 28px 32px;
    line-height: 1.75;
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(20,35,63,0.08));
}

.history-prose h3 {
    color: var(--clan-navy);
    margin-top: 1.6em;
}

.history-prose a {
    color: var(--clan-blue);
    font-weight: 600;
}

.history-prose a:hover {
    color: var(--clan-navy);
}

/* ===== PERSON DETAIL PAGE ===== */
.person-details-container {
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: var(--shadow-md, 0 10px 28px rgba(20,35,63,0.12));
}

.person-details-container h1 {
    color: var(--clan-navy, #1E3C72);
    margin: 0 0 20px;
}

.person-details-container .info-row {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f4f7fc;
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

.person-details-container .info-row:hover {
    background: #eaf1fb;
}

.person-details-container a {
    color: var(--clan-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.person-details-container a:hover {
    color: var(--clan-navy);
}

/* ===== CONTACT ===== */
.contact-hero {
    background-image:
        linear-gradient(180deg, rgba(10, 18, 36, 0.35) 0%, rgba(10, 18, 36, 0.78) 100%),
        url('../totem.jpeg');
}

.contact-page {
    padding-top: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.contact-card {
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    padding: 22px 22px 20px;
    text-align: left;
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eef3fb;
    color: var(--clan-navy, #1E3C72);
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.contact-card h2 {
    margin: 0 0 8px;
    color: var(--clan-navy, #1E3C72);
    font-size: 1.2rem;
}

.contact-card p {
    margin: 0 0 16px;
    color: #44536b;
    line-height: 1.5;
}

.contact-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--clan-blue, #2A5298);
    text-decoration: none;
}

.contact-action.is-whatsapp {
    color: #1f7a45;
}

.contact-action.is-static {
    color: var(--clan-ink, #14233f);
    font-weight: 600;
}

.contact-cta h2 {
    margin: 0 0 10px;
    color: var(--clan-navy, #1E3C72);
}

.contact-cta p {
    margin: 0 0 14px;
    color: #44536b;
    line-height: 1.55;
}

.contact-cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    margin: 0 !important;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--clan-gold, #FFD700);
    color: var(--clan-navy, #1E3C72) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.contact-link {
    color: var(--clan-blue, #2A5298);
    font-weight: 600;
    text-decoration: none;
}

.contact-link:hover {
    color: var(--clan-navy, #1E3C72);
}

@media (max-width: 720px) {
    .container { width: calc(100% - 12px); padding: 16px 0 36px; }
    .member-profile-page .member-header { flex-direction: column; text-align: center; }
    .contact-grid { grid-template-columns: 1fr; }
}
