/* ==========================================================================
   JR HOUSING - BOARD OF DIRECTORS & CAREERS MODERN STYLESHEET
   Implements Home Page Brand Font Families:
   - Headings: 'Morison', serif
   - Body & Text: 'Montserrat', sans-serif
   ========================================================================== */

/* Font Declarations matching Home Page (style.css / style-v1.css) */
@font-face {
    font-family: 'Morison';
    src: local('Morison Display Extra Light'), local('Morison-Display-Extra-Light'),
        url('../fonts/MorisonDisplay-ExtraLight.woff2') format('woff2'),
        url('../fonts/MorisonDisplay-ExtraLight.woff') format('woff'),
        url('../fonts/MorisonDisplay-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

:root {
    --jr-font-heading: 'Morison', serif;
    --jr-font-body: 'Montserrat', sans-serif;
    --jr-primary: #0f172a;
    --jr-primary-dark: #070b13;
    --jr-gold: #c59b27;
    --jr-gold-hover: #b8860b;
    --jr-gold-light: #dfb74a;
    --jr-cream-bg: #F9F5EF;
    --jr-card-bg: #ffffff;
    --jr-text-dark: #1e293b;
    --jr-text-muted: #64748b;
    --jr-text-light: #94a3b8;
    --jr-border: #e2e8f0;
    --jr-border-gold: rgba(197, 155, 39, 0.35);
    --jr-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.04);
    --jr-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.07);
    --jr-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Global Typography Overrides */
body {
    font-family: var(--jr-font-body) !important;
    color: var(--jr-text-dark);
    background-color: var(--jr-cream-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.page-hero-title,
.section-main-title,
.director-card-title,
.career-main-title,
.project-sidebar-title,
.contact-section-title,
.contact-card-title,
.enquiry-form-title {
    font-family: var(--jr-font-heading) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p, span, a, li, label, input, select, textarea, button, small, strong {
    font-family: var(--jr-font-body) !important;
}

/* ==========================================================================
   PAGE HERO BANNER (Light Black Opacity Gradient Overlay Layer)
   ========================================================================== */
.page-hero-banner {
    position: relative;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.32) 45%, rgba(0, 0, 0, 0.52) 100%),
                url('../img/about/about-banner.png') center center/cover no-repeat;
    padding: 165px 0 85px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid #e8e4dc;
}

/* Header Links over Light Black Hero Overlay */
.header .menu-list li.ani-black a,
.header .cont-link {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.header .menu-phone a,
.header .menu-phone p {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.header #toggle_menu span {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.header #toggle_menu {
    border-color: rgba(255, 255, 255, 0.5) !important;
}
.header #toggle_menu svg.line path {
    stroke: #ffffff !important;
}
.header.show .menu-list li.ani-black a,
.header.show .cont-link {
    color: #ffffff !important;
}

.page-hero-banner::before {
    display: none !important;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 22px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--jr-gold);
    border-radius: 50px;
    color: #b38228;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.page-hero-title {
    font-size: 50px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 2.5px;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 4px 24px rgba(0, 0, 0, 0.7);
}

.page-hero-title span {
    color: #ffd866;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 4px 24px rgba(0, 0, 0, 0.7);
}

.page-hero-divider {
    width: 60px;
    height: 3px;
    background: #ffd866;
    margin: 18px auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   MAIN CONTENT WRAPPER (2-COLUMN: CONTENT + SIDEBAR)
   ========================================================================== */
.page-content-section {
    padding: 70px 0 60px;
    background-color: var(--jr-cream-bg);
}

.section-heading-wrap {
    margin-bottom: 35px;
    position: relative;
}

.section-main-title {
    font-size: 38px;
    font-weight: 300;
    color: var(--jr-primary);
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

.section-heading-line {
    width: 50px;
    height: 3px;
    background: var(--jr-gold);
    border-radius: 2px;
}

/* ==========================================================================
   BOARD OF DIRECTORS CARDS
   ========================================================================== */
.director-profile-card {
    background: var(--jr-card-bg);
    border-radius: 18px;
    border: 1px solid #e8e4dc;
    box-shadow: var(--jr-shadow-sm);
    padding: 32px;
    margin-bottom: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.director-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--jr-shadow-md);
    border-color: var(--jr-border-gold);
}

.director-card-inner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.director-avatar-wrap {
    flex: 0 0 160px;
    width: 160px;
    height: 190px;
    border-radius: 14px;
    overflow: hidden;
    background: #1e293b;
    border: 2px solid rgba(197, 155, 39, 0.3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.director-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.director-profile-card:hover .director-avatar-wrap img {
    transform: scale(1.05);
}

.director-details {
    flex: 1;
}

.director-card-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--jr-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.director-role-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--jr-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    display: inline-block;
}

.director-qual-text {
    font-size: 13.5px;
    color: var(--jr-text-muted);
    font-weight: 500;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1ece4;
}

.director-qual-text i {
    color: var(--jr-gold);
    margin-right: 6px;
}

.director-bio-text {
    font-size: 14.5px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 0;
}

/* ==========================================================================
   CAREERS OPENINGS CARD
   ========================================================================== */
.career-opening-card {
    background: var(--jr-card-bg);
    border-radius: 18px;
    border: 1px solid #e8e4dc;
    box-shadow: var(--jr-shadow-sm);
    padding: 40px;
    margin-bottom: 30px;
}

.career-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    background: #fdfbf7;
    border: 1px solid #efe9dc;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 30px;
}

.career-meta-item {
    display: flex;
    flex-direction: column;
}

.career-meta-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--jr-gold);
    margin-bottom: 4px;
}

.career-meta-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--jr-primary);
}

.career-subheading {
    font-size: 22px;
    font-weight: 400;
    color: var(--jr-primary);
    margin-bottom: 18px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.career-subheading::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--jr-gold);
    border-radius: 2px;
}

.career-tasks-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.career-tasks-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 14.5px;
    line-height: 1.7;
    color: #475569;
}

.career-tasks-list li::before {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--jr-gold);
    font-size: 13px;
}

.career-highlight-box {
    background: #fff8eb;
    border-left: 4px solid var(--jr-gold);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.career-highlight-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--jr-primary);
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
}

.career-apply-action {
    background: var(--jr-primary);
    border-radius: 14px;
    padding: 26px 30px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.career-apply-text h4 {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
}

.career-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--jr-gold);
    color: #ffffff !important;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.career-email-btn:hover {
    background: var(--jr-gold-hover);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* ==========================================================================
   SIDEBAR FEATURED PROJECTS
   ========================================================================== */
.sidebar-wrapper {
    position: sticky;
    top: 100px;
}

.project-sidebar-title {
    font-size: 22px;
    font-weight: 400;
    color: var(--jr-primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.sidebar-project-card {
    background: var(--jr-card-bg);
    border-radius: 16px;
    border: 1px solid #e8e4dc;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: var(--jr-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: block;
    text-decoration: none !important;
}

.sidebar-project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--jr-shadow-md);
    border-color: var(--jr-border-gold);
}

.sidebar-proj-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.sidebar-proj-body {
    padding: 18px 20px;
}

.sidebar-proj-title {
    font-size: 17px;
    font-weight: 400;
    color: var(--jr-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.sidebar-proj-title strong {
    font-weight: 700;
}

.sidebar-proj-sub {
    font-size: 13px;
    color: var(--jr-text-muted);
    margin-bottom: 6px;
    line-height: 1.5;
}

.sidebar-proj-price {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--jr-gold);
    margin-bottom: 0;
}

/* ==========================================================================
   CONTACT US & ENQUIRY SECTION (BOTTOM)
   ========================================================================== */
.page-contact-section {
    padding: 80px 0;
    background: #ffffff;
    border-top: 1px solid #e8e4dc;
}

.contact-section-title {
    font-size: 38px;
    font-weight: 300;
    color: var(--jr-primary);
    margin-bottom: 40px;
    letter-spacing: 1.5px;
}

.contact-office-card {
    background: var(--jr-cream-bg);
    border-radius: 16px;
    border: 1px solid #e8e4dc;
    padding: 28px 26px;
    margin-bottom: 24px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-office-card:hover {
    transform: translateY(-3px);
    border-color: var(--jr-border-gold);
}

.contact-card-title {
    font-size: 19px;
    font-weight: 400;
    color: var(--jr-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card-title i {
    color: var(--jr-gold);
    font-size: 18px;
}

.contact-card-body {
    font-size: 14.5px;
    line-height: 1.8;
    color: #475569;
}

.contact-card-body a {
    color: var(--jr-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-card-body a:hover {
    color: var(--jr-gold);
}

/* Enquiry Form Card */
.enquiry-form-card {
    background: var(--jr-card-bg);
    border-radius: 20px;
    border: 1px solid #e8e4dc;
    box-shadow: var(--jr-shadow-md);
    padding: 36px 32px;
}

.enquiry-form-title {
    font-size: 26px;
    font-weight: 400;
    color: var(--jr-primary);
    margin-bottom: 6px;
}

.enquiry-form-subtitle {
    font-size: 13.5px;
    color: var(--jr-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.corp-form-group {
    margin-bottom: 16px;
}

.corp-input-control {
    width: 100%;
    height: 48px;
    padding: 10px 16px;
    background: #faf8f5;
    border: 1.5px solid #dcd6cb;
    border-radius: 10px;
    font-size: 14px;
    color: var(--jr-primary);
    font-family: var(--jr-font-body) !important;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.corp-input-control:focus {
    background: #ffffff;
    border-color: var(--jr-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

textarea.corp-input-control {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.corp-submit-btn {
    width: 100%;
    height: 50px;
    background: var(--jr-primary);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.corp-submit-btn:hover {
    background: var(--jr-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 155, 39, 0.25);
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
    .page-hero-banner {
        padding: 130px 0 60px;
    }
    .page-hero-title {
        font-size: 36px;
    }
    .page-content-section {
        padding: 50px 0 50px;
    }
    .section-heading-wrap {
        margin-bottom: 28px;
    }
    .section-main-title {
        font-size: 30px;
    }
    .sidebar-wrapper {
        position: static;
        margin-top: 0;
    }
    .director-profile-card {
        padding: 28px 24px;
        margin-bottom: 24px;
    }
    .director-card-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }
    .director-avatar-wrap {
        flex: 0 0 auto;
        width: 145px;
        height: 175px;
        margin: 0 auto 16px auto;
    }
    .director-details {
        width: 100%;
    }
    .director-card-title {
        font-size: 22px;
        margin-bottom: 4px;
    }
    .director-role-tag {
        font-size: 12.5px;
        margin-bottom: 8px;
        display: block;
    }
    .director-qual-text {
        font-size: 13px;
        margin-bottom: 14px;
        padding-bottom: 10px;
        display: block;
        text-align: center;
    }
    .director-bio-text {
        font-size: 14px;
        line-height: 1.75;
        text-align: left;
    }
    .career-apply-action {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Footer Logo Mobile Spacing */
    .footer-logo {
        margin-top: 50px !important;
    }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
    /* Hero Banner */
    .page-hero-banner {
        padding: 105px 15px 35px;
    }
    .page-hero-badge {
        font-size: 11px;
        padding: 5px 16px;
        margin-bottom: 12px;
        letter-spacing: 1.2px;
    }
    .page-hero-title {
        font-size: 26px;
        letter-spacing: 1.2px;
        line-height: 1.25;
        margin-bottom: 8px;
    }
    .page-hero-divider {
        width: 40px;
        height: 2.5px;
        margin: 12px auto 0;
    }

    /* Content Section */
    .page-content-section {
        padding: 32px 0 38px;
    }
    .section-heading-wrap {
        margin-bottom: 22px;
        text-align: center;
    }
    .section-main-title {
        font-size: 23px;
        letter-spacing: 1px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    .section-heading-line {
        width: 42px;
        height: 2.5px;
        margin: 0 auto;
    }

    /* Director Profile Cards */
    .director-profile-card {
        padding: 20px 16px;
        margin-bottom: 20px;
        border-radius: 16px;
    }
    .director-card-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }
    .director-avatar-wrap {
        flex: 0 0 auto;
        width: 128px;
        height: 156px;
        border-radius: 12px;
        margin: 0 auto 15px auto;
    }
    .director-details {
        width: 100%;
    }
    .director-card-title {
        font-size: 19px;
        margin-bottom: 4px;
        line-height: 1.3;
        text-align: center;
    }
    .director-role-tag {
        font-size: 12px;
        letter-spacing: 1px;
        margin-bottom: 8px;
        display: block;
        text-align: center;
    }
    .director-qual-text {
        font-size: 12.5px;
        margin-bottom: 12px;
        padding-bottom: 9px;
        text-align: center;
        display: block;
        border-bottom: 1px solid #f1ece4;
    }
    .director-bio-text {
        font-size: 13.5px;
        line-height: 1.65;
        text-align: left;
    }

    /* Sidebar Featured Projects (Stacked below content) */
    .sidebar-wrapper {
        position: static;
        margin-top: 25px;
    }
    .project-sidebar-title {
        font-size: 20px;
        margin-bottom: 16px;
        text-align: center;
    }
    .sidebar-project-card {
        margin-bottom: 16px;
        border-radius: 14px;
    }
    .sidebar-proj-img {
        height: 160px;
    }
    .sidebar-proj-body {
        padding: 14px 16px;
    }
    .sidebar-proj-title {
        font-size: 16px;
        margin-bottom: 4px;
    }
    .sidebar-proj-sub {
        font-size: 12.5px;
        margin-bottom: 6px;
        line-height: 1.45;
    }
    .sidebar-proj-price {
        font-size: 13px;
    }

    /* Contact Us Bottom Section */
    .page-contact-section {
        padding: 35px 0 25px;
    }
    .contact-section-title {
        font-size: 23px;
        letter-spacing: 1px;
        margin-bottom: 20px;
        text-align: center;
    }
    .page-contact-section .col-lg-6.col-md-6 {
        margin-bottom: 16px !important;
    }
    .contact-office-card {
        padding: 20px 16px;
        margin-bottom: 0;
        border-radius: 14px;
    }
    .contact-card-title {
        font-size: 16px;
        margin-bottom: 8px;
        gap: 8px;
    }
    .contact-card-body {
        font-size: 13.5px;
        line-height: 1.65;
    }

    /* Careers & Enquiry cards */
    .career-opening-card {
        padding: 22px 18px;
        margin-bottom: 22px;
    }
    .enquiry-form-card {
        padding: 22px 18px;
    }

    /* Footer Logo Mobile Spacing */
    .footer-logo {
        margin-top: 50px !important;
    }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .page-hero-banner {
        padding: 95px 12px 30px;
    }
    .page-hero-badge {
        font-size: 10px;
        padding: 4px 12px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }
    .page-hero-title {
        font-size: 22px;
        letter-spacing: 0.8px;
    }
    .page-content-section {
        padding: 25px 0 32px;
    }
    .section-heading-wrap {
        margin-bottom: 18px;
    }
    .section-main-title {
        font-size: 21px;
    }
    .director-profile-card {
        padding: 16px 14px;
        margin-bottom: 16px;
        border-radius: 14px;
    }
    .director-avatar-wrap {
        width: 118px;
        height: 144px;
        margin-bottom: 12px;
    }
    .director-card-title {
        font-size: 17.5px;
    }
    .director-role-tag {
        font-size: 11.5px;
        margin-bottom: 6px;
    }
    .director-qual-text {
        font-size: 12px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    .director-bio-text {
        font-size: 13px;
        line-height: 1.6;
    }
    .sidebar-wrapper {
        margin-top: 20px;
    }
    .project-sidebar-title {
        font-size: 19px;
        margin-bottom: 14px;
    }
    .sidebar-proj-img {
        height: 145px;
    }
    .sidebar-proj-body {
        padding: 12px 14px;
    }
    .contact-section-title {
        font-size: 21px;
        margin-bottom: 16px;
    }
    .contact-office-card {
        padding: 16px 14px;
    }
}

