/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --accent-gold: #6D5F32;
    --dark-green: #1e3c33;
    --text-main: #333333;
    --text-muted: #666666;
    --brand-gold: #6D5F32; /* Added missing fallback based on your usage */
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    color: var(--text-main);
    background-color: #ffffff;
}
/* ==========================================================================
   GLOBAL VARIABLES (NAVBAR ONLY)
   ========================================================================== */
:root {
    --brand-gold: #6D5F32;
}
/* ==========================================================================
   2. NAV-PILL (FIXED AT TOP)
   ========================================================================== */
.nav-pill {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    padding: 8px 22px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: auto;
    max-width: 95%;
    z-index: 1030;
}

.nav-pill.scrolled {
    background: rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    top: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    border-radius: 8px;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-collapse {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
}

.navbar-nav {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-item {
    list-style: none;
}

.navbar-nav .nav-link {
    color: #6D5F32 !important;
    font-weight: 500;
    padding: 8px 12px !important;
    transition: all 0.3s ease;
    font-size: 15px;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--brand-gold);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

.navbar-nav .nav-link:hover {
    color: #d4af37 !important;
}

.nav-pill.scrolled .navbar-nav .nav-link {
    color: var(--brand-gold) !important;
}

.nav-pill.scrolled .navbar-nav .nav-link::after {
    background-color: var(--brand-gold);
}

.src-container {
    display: flex;
    align-items: center;
    background-color: #f5f5f0;
    border-radius: 30px;
    padding: 6px 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    gap: 5px;
}

.nav-pill.scrolled .src-container {
    background-color: transparent;
    border: 1px solid var(--brand-gold);
}

.nav-pill.scrolled .src-btn {
    color: var(--brand-gold);
}

.nav-pill.scrolled .src-container input {
    color: var(--brand-gold);
}

.nav-pill.scrolled .src-container input::placeholder {
    color: var(--brand-gold);
    opacity: 0.7;
}

.src-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6D5F32;
    font-size: 14px;
    transition: all 0.3s ease;
}

.src-btn:hover {
    color: #d4af37;
    transform: scale(1.1);
}

.src-container input {
    background-color: transparent;
    border: none;
    outline: none;
    width: 0;
    opacity: 0;
    padding: 0;
    transition: all 0.3s ease;
    font-size: 13px;
}

.src-container.active input {
    width: 150px;
    opacity: 1;
    padding: 4px 8px;
}

.mobile-dropdown-container {
    position: relative;
    display: none;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(109, 95, 50, 0.1);
    border: none;
    border-radius: 40px;
    padding: 8px 16px;
    font-weight: 500;
    color: #6D5F32;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-pill.scrolled .mobile-menu-btn {
    color: var(--brand-gold);
    background: transparent;
    border: 1px solid var(--brand-gold);
}

.mobile-menu-btn:hover {
    background: rgba(109, 95, 50, 0.2);
    transform: translateY(-2px);
}

.mobile-menu-btn i {
    font-size: 18px;
}

.mobile-menu-btn span {
    font-size: 14px;
}

.mobile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1050;
    overflow: hidden;
}

.mobile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #6D5F32;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid rgba(178, 161, 108, 0.1);
    transition: all 0.3s ease;
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:hover {
    background: rgba(178, 161, 108, 0.15);
    padding-left: 28px;
}

/* ============================================
   CAREERS HERO SECTION
   ============================================ */
.careers-hero {
    background-image: url('../images/TeamBanner.png');
    height: 400px;
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    margin-top: 0;
    left: 0;
    border: none;
}

.careers-hero .hero-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 0 15px;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.hero-content {
    animation: fadeInUpNews 0.9s ease-out;
    border: none;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    text-transform: uppercase;
}

.hero-description {
    max-width: 800px;
    margin: 20px auto 0;
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpNews {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ============================================
   BENEFITS SECTION
   ============================================ */
.item-container {
    height: 350px;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    margin-bottom: 30px; /* Layout safety padding when columns stack */
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    transition: all 0.4s ease-in-out;
    z-index: 1;
}

.item-title {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    font-weight: 700;
    margin-bottom: 0;
    font-size: 1.5rem;
    z-index: 2;
}

.item-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    transform: translateY(10px);
}

.item-description p {
    font-size: 0.95rem;
    line-height: 1.4;
}

.item-container:hover .item-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.item-container:hover .item-title {
    transform: translateY(-5px);
}

.item-container:hover .item-description {
    max-height: 100px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px;
    margin-bottom: 5px;
}

/* ============================================
   OPEN POSITIONS SECTION
   ============================================ */
#openings {
    scroll-margin-top: 100px;
}

.role-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px !important;
    background-color: #ffffff;
    margin-bottom: 30px; /* Layout safety padding when columns stack */
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.text-primary {
    color: #5e5c48 !important;
}

.role-card ul {
    padding-left: 1.2rem;
}

.role-card ul li {
    margin-bottom: 8px;
}

/* ============================================
   IMAGE OVERLAY SECTION (ARCHITECTS & INTERNS)
   ============================================ */
.overlay-container {
    height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 30px; /* Layout safety padding when columns stack */
}

.overlay-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
    transition: filter 0.3s ease;
}

.tracking-widest {
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.overlay-container:hover img {
    filter: brightness(0.8);
}

.card-img-overlay {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    background: var(--accent-gold);
    color: #ffffff;
    padding: 20px 0;
    font-weight: 500;
    margin-top: 50px;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #d4af37;
}

/* ============================================
   UTILITY CONTAINER DESKTOP DEFAULTS
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* DESKTOP (993px and above) */
@media (min-width: 993px) {
    .mobile-dropdown-container {
        display: none !important;
    }
    .collapse.navbar-collapse {
        display: flex !important;
    }
    .navbar-toggler {
        display: none !important;
    }
    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        width: auto;
    }
}

/* TABLET (max-width: 992px) */
@media (max-width: 992px) {
    .nav-pill {
        padding: 6px 16px !important;
        width: 95% !important;
    }
    
    .collapse.navbar-collapse {
        display: none !important;
    }
    
    .mobile-dropdown-container {
        display: block !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .navbar-nav {
        display: none !important;
    }
    
    .src-container input {
        width: auto !important;
        opacity: 1 !important;
    }

    /* GRID RESPONSIVENESS FIX FOR TABLETS: 
       Transforms standard columns to fit mid-sized device displays */
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* MOBILE (max-width: 768px) */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .nav-pill {
        width: 95% !important;
        top: 10px;
    }
    
    .careers-hero {
        height: 300px;
    }
    
    .hero-description {
        font-size: 1.1rem;
        padding: 0 20px;
        line-height: 1.5;
    }
    
    .overlay-container {
        height: 250px;
    }
    
    .tracking-widest {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }

    /* GRID RESPONSIVENESS FIX FOR MOBILE: 
       Forces content areas to expand to full-width block stacks */
    .col-md-4, .col-md-6, .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* SMALL MOBILE (max-width: 576px) */
@media (max-width: 576px) {
    .nav-pill {
        padding: 5px 12px !important;
        width: 95% !important;
    }
    
    .mobile-menu-btn span {
        display: none;
    }
    
    .navbar-brand img {
        width: 35px;
        height: 35px;
    }
    
    .src-container {
        max-width: 110px;
    }
    
    .src-container input {
        font-size: 11px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
}

/* EXTRA SMALL (max-width: 400px) */
@media (max-width: 400px) {
    .nav-pill {
        padding: 4px 10px !important;
        gap: 8px !important;
    }
    
    .src-container {
        max-width: 90px;
        padding: 4px 8px !important;
    }
    
    .mobile-menu-btn {
        padding: 5px 8px;
    }
}

/* ============================================
   GLOBAL UTILITY HELPER CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-white { color: #ffffff; }
.text-primary { color: var(--accent-gold) !important; }
.fw-bold { font-weight: 700; }
.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.rounded-4 { border-radius: 1rem; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); }