/* ═══════════════════════════════════════════════
   SYSTEM / GENERAL STYLES (public pages)
   ═══════════════════════════════════════════════ */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.has-public-navbar {
    padding-top: 70px;
}

main {
    flex: 1;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}


/* ═══════════════════════════════════════════════
   HOMEPAGE STYLES (migrated from monzurmoin.md)
   ═══════════════════════════════════════════════ */

html {
    scroll-behavior: smooth;
}

:root {
    --primary: #283b38;
    --accent: #4fa081;
    --surface: #eef5f1;
    --text: #1d2725;
    --muted: #58645c;
}

body {
    font-family: "Segoe UI", sans-serif;
    color: var(--text);
    background: #f7faf7;
}

.custom-navbar {
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff !important;
}

.navbar-nav {
    gap: 0.35rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.25s ease, transform 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
    position: relative;
}

.navbar-nav .nav-link.active::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    background: #ffffff;
    margin: 6px auto 0;
    border-radius: 2px;
}


.hero-section {
    padding: 110px 0 80px;
    background: #f6efe5;
}

.hero-intro {
    max-width: 640px;
}

.hero-subtitle {
    color: #8a5d31;
    letter-spacing: 0.22em;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-actions {
    gap: 1rem;
}

.hero-image {
    border-radius: 0;
    box-shadow: none;
}

.section-padding {
    padding: 90px 0;
}

.section-title {
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.04em;
}

.bio-section {
    width: 100%;
}

.eyebrow {
    color: var(--accent);
    letter-spacing: 0.18em;
    font-size: 0.88rem;
}

.bio-text {
    color: var(--muted);
    line-height: 1.9;
}


/* ═══════════════════════════════════════════════
   HERO POSTER
   Full-bleed portrait, dark green scrim, copy
   overlaid bottom-left. Runs straight on from the
   black navbar with no colour break.
   ═══════════════════════════════════════════════ */

.hero-poster {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    /* Fails dark if the portrait ever fails to load, so the white type
       never lands on a white box. */
    background-color: #141f1c;
    min-height: 640px;
    min-height: min(86vh, 860px);
}

/* hero.jpg is a 1024x636 landscape source. Bias the crop toward the
   subject rather than centring it, and lift it slightly so the scrim has
   something to sit on instead of the subject's midsection. */
.hero-poster__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 26%;
    filter: saturate(1.04) contrast(1.05);
}

.hero-poster__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(100deg,
            rgba(20, 31, 28, 0.96) 0%,
            rgba(20, 31, 28, 0.90) 34%,
            rgba(20, 31, 28, 0.62) 62%,
            rgba(20, 31, 28, 0.30) 100%),
        linear-gradient(0deg,
            rgba(20, 31, 28, 0.55) 0%,
            rgba(20, 31, 28, 0) 45%);
}

/* Fine grain over the photo. Upscaling a 1024px source to a full-width
   hero softens it; overlaying noise reads as film grain instead. */
.hero-poster__grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.16;
    mix-blend-mode: overlay;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-poster__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    /* ~70px of that top padding clears the fixed-top navbar. */
    padding: 7rem 0 4.5rem;
}

.hero-poster__content {
    max-width: 40rem;
}

.hero-poster__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.hero-poster__eyebrow::before {
    content: "";
    flex: none;
    width: 2.25rem;
    height: 2px;
    background: currentColor;
}

.hero-poster__name {
    margin: 0 0 1.35rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.02;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.hero-poster .about-copy {
    max-width: 34rem;
    margin-bottom: 2.25rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    line-height: 1.8;
}

.hero-poster .about-copy p {
    color: inherit;
}

.hero-poster .hero-actions {
    gap: 0.85rem;
    margin-bottom: 2.75rem;
}

/* The site's .btn-primary is dark green, which would vanish against a dark
   scrim, so the poster inverts the pair: solid ivory primary, ghost
   secondary. Below this rule the standard green buttons still apply. */
.hero-poster .btn-primary {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--primary);
}

.hero-poster .btn-primary:hover,
.hero-poster .btn-primary:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: #141f1c;
}

.hero-poster .btn-outline-accent {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.hero-poster .btn-outline-accent:hover,
.hero-poster .btn-outline-accent:focus {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--primary);
}

.hero-poster__creds {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.75rem;
    margin: 0;
    padding: 1.35rem 0 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster__creds li {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

@media (max-width: 991.98px) {
    .hero-poster {
        min-height: 560px;
    }

    /* Stack the scrim vertically on small screens: the copy sits over the
       lower half of the photo, so that is where it has to go opaque. */
    .hero-poster__scrim {
        background: linear-gradient(180deg,
            rgba(20, 31, 28, 0.42) 0%,
            rgba(20, 31, 28, 0.86) 40%,
            rgba(20, 31, 28, 0.97) 100%);
    }

    .hero-poster__bg {
        object-position: 55% 20%;
    }

    .hero-poster__inner {
        padding: 6.5rem 0 3.25rem;
    }
}

.bio-section {
    background: var(--surface);
    padding: 100px 0;
}

.section-padding.bg-light {
    background: var(--surface) !important;
}

.bio-section .section-title {
    margin-bottom: 1rem;
}

.bio-text {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: center;
}

.card {
    background: #ffffff;
    border: 1px solid rgba(40, 59, 56, 0.08);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(40, 59, 56, 0.12);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.card-body h5 {
    color: var(--primary);
    font-weight: 700;
}

.card-body p {
    color: #55615a;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    padding: 0.92rem 1.9rem;
    border-radius: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #1f3b33;
    transform: translateY(-1px);
}

.btn-outline-accent {
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--primary);
    padding: 0.92rem 1.9rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-outline-accent:hover,
.btn-outline-accent:focus {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.site-footer {
    background: #faf5ef;
    color: var(--muted);
    padding: 1.25rem 0;
    font-size: 0.95rem;
    border-top: 1px solid rgba(40, 59, 56, 0.08);
}

.qr-code {
    max-width: 250px;
}

.card-img-placeholder {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 59, 56, 0.06);
    color: var(--muted);
    text-align: center;
    padding: 1rem;
    font-size: 0.95rem;
}

.contact-image {
    max-width: 220px;
    max-height: 220px;
    object-fit: contain;
}

.contact-link {
    color: inherit;
    text-decoration: none;
}

.contact-link:hover,
.contact-link:focus {
    text-decoration: none;
    color: var(--accent);
}

.modal-backdrop.show {
    background-color: rgba(15, 29, 17, 0.65);
}

.modal-dialog {
    min-height: calc(100vh - 2rem);
    display: flex;
    align-items: center;
}

.modal-content {
    border-radius: 1.5rem;
    border: none;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(16, 41, 31, 0.18);
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.9rem;
}

.modal-header h5 {
    color: var(--primary);
    font-weight: 700;
}

.modal-body {
    padding: 1.5rem;
    color: var(--muted);
    line-height: 1.8;
}

.btn-close {
    width: 2rem;
    height: 2rem;
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}
