/*
 * Custom UI Enhancements for Staffy Solutions
 * Loaded after style.css to override defaults
 * ============================================
 */

/* ========================================
   1. TYPOGRAPHY & BASE
   ======================================== */

body {
    font-family: 'Inter', 'Open Sans', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.7em;
    color: #4a4a4a;
    font-size: 14px;
    background: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Open Sans', Arial, sans-serif;
    font-weight: 700;
    color: #1a1a2e;
}

h1 {
    font-size: 28px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c4bd97, #a89e6e);
    border-radius: 2px;
}

h2 {
    font-size: 24px;
    letter-spacing: -0.3px;
}

p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

a {
    transition: color 0.3s ease, background-color 0.3s ease;
}

::selection {
    background: #c4bd97;
    color: #fff;
}

/* ========================================
   2. TOP BAR
   ======================================== */

.topbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.topbar ul.info li {
    font-size: 13px;
    color: #b8b8b8;
    transition: color 0.3s ease;
}

.topbar ul.info li:hover {
    color: #c4bd97;
}

.topbar ul.info i {
    color: #c4bd97 !important;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.topbar ul.info li:hover i {
    transform: scale(1.1);
}

ul.social-network li {
    transition: transform 0.3s ease;
}

ul.social-network li:hover {
    transform: translateY(-2px);
}

ul.social-network li a {
    color: #999;
    transition: color 0.3s ease;
}

ul.social-network li a:hover {
    color: #c4bd97 !important;
}

/* ========================================
   3. NAVBAR
   ======================================== */

header .navbar {
    min-height: 70px;
    padding: 0;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-default {
    border: none;
    border-radius: 0;
}

.home-page header .navbar-default {
    background: #ffffff;
}

/* Nav link hover effects */
header .navbar-nav > li > a {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333 !important;
    padding: 25px 15px;
    position: relative;
    transition: color 0.3s ease;
}

header .navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: #c4bd97;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

header .navbar-nav > li:hover > a::after,
header .navbar-nav > li.active > a::after {
    transform: scaleX(1);
}

header .navbar-nav > li:hover > a,
header .navbar-nav > li.active > a {
    color: #1a1a2e !important;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    background: transparent !important;
    color: #1a1a2e !important;
    border-radius: 0;
}

/* Dropdown styling */
.dropdown-menu {
    border: none;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 8px 0;
    margin-top: 0;
    animation: dropdownFadeIn 0.25s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li a {
    padding: 8px 20px !important;
    font-size: 13px;
    color: #555 !important;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: #f0efe8 !important;
    color: #1a1a2e !important;
    padding-left: 24px !important;
}

/* Hamburger menu */
.navbar-default .navbar-toggle {
    border: 2px solid #c4bd97;
    border-radius: 4px;
    margin-top: 18px;
    padding: 8px 10px;
    transition: all 0.3s ease;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background: #c4bd97;
}

.navbar-default .navbar-toggle:hover .icon-bar,
.navbar-default .navbar-toggle:focus .icon-bar {
    background-color: #fff;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #c4bd97;
    border-radius: 2px;
    height: 3px;
    width: 22px;
    transition: background-color 0.3s ease;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

/* ========================================
   4. HERO SLIDER
   ======================================== */

#main-slider {
    position: relative;
    overflow: hidden;
}

#main-slider .slides > li {
    position: relative;
}

#main-slider .slides > li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26,26,46,0.1) 0%, rgba(26,26,46,0.25) 100%);
    pointer-events: none;
}

.flex-caption {
    z-index: 2;
}

.flex-caption h3 {
    font-family: 'Inter', sans-serif;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.4) !important;
}

.flex-caption p {
    text-shadow: 1px 2px 6px rgba(0,0,0,0.3) !important;
}

.flex-control-paging li a {
    border-radius: 4px;
    transition: all 0.3s ease;
}

.flex-control-paging li a:hover,
.flex-control-paging li a.flex-active {
    background: #c4bd97 !important;
    transform: scaleX(1.5);
}

/* ========================================
   5. CONTENT SECTIONS
   ======================================== */

#content,
.section-padding {
    padding: 50px 0 30px;
}

.section-padding {
    background: #ffffff;
}

.showcase-section {
    margin-bottom: 0;
}

.img-responsive {
    border: none !important;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.img-responsive:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.about-text p {
    font-size: 14px;
    line-height: 1.8;
}

/* ========================================
   6. INFO BLOCKS / CARDS
   ======================================== */

.info-blocks .info-blocks-in {
    padding: 30px 22px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
}

.info-blocks .info-blocks-in:hover {
    border-color: #c4bd97 !important;
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.info-blocks i.icon-info-blocks {
    color: #c4bd97 !important;
    transition: transform 0.3s ease;
}

.info-blocks .info-blocks-in:hover i.icon-info-blocks {
    transform: scale(1.1);
}

.info-blocks .info-blocks-in h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

/* ========================================
   7. ACCORDION PANELS
   ======================================== */

.panel {
    border: none !important;
    border-radius: 8px !important;
    overflow: hidden;
    margin-bottom: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

.panel:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.panel-heading {
    border-radius: 8px 8px 0 0;
    padding: 12px 18px;
    transition: all 0.3s ease;
}

.panel-title > a {
    text-decoration: none !important;
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.panel-title > a i {
    transition: transform 0.3s ease;
    margin-right: 10px;
}

.panel-title > a[aria-expanded="true"] i,
.panel-title > a:not(.collapsed) i {
    transform: rotate(90deg);
}

.panel-body {
    padding: 20px 24px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    background: #fafafa;
    border-top: 2px solid rgba(196,189,151,0.3);
}

.panel-group .panel + .panel {
    margin-top: 4px;
}

/* ========================================
   8. BUTTONS
   ======================================== */

.btn {
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

/* ========================================
   9. HIGHLIGHT SECTION
   ======================================== */

.highlight {
    background: linear-gradient(135deg, #c4bd97 0%, #b5ae85 100%);
    border: none !important;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(196,189,151,0.3);
    padding: 30px;
}

/* ========================================
   10. LIST STYLES
   ======================================== */

ul.withArrow li {
    padding: 6px 0;
    line-height: 1.6;
    transition: padding-left 0.2s ease;
}

ul.withArrow li:hover {
    padding-left: 4px;
}

ul.withArrow li span.fa {
    color: #c4bd97 !important;
    margin-right: 8px;
    font-weight: bold;
}

/* ========================================
   11. FOOTER
   ======================================== */

footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    padding: 50px 0 0;
    margin-top: 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c4bd97, #a89e6e, #c4bd97);
}

footer h5.widgetheading {
    color: #e8e8e8;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

footer h5.widgetheading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #c4bd97;
    border-radius: 1px;
}

footer .widget {
    color: #999;
}

footer ul.link-list li {
    padding: 5px 0;
}

footer ul.link-list li a {
    color: #9e9e9e;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

footer ul.link-list li a:hover {
    color: #c4bd97 !important;
    padding-left: 8px;
}

footer ul.link-list li a::before {
    content: '\203A';
    position: absolute;
    left: -12px;
    opacity: 0;
    color: #c4bd97;
    transition: all 0.3s ease;
    font-weight: bold;
}

footer ul.link-list li a:hover::before {
    left: -4px;
    opacity: 1;
}

/* Sub-footer */
#sub-footer {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 20px 0;
    margin-top: 30px;
}

#sub-footer span {
    color: #888;
    font-size: 13px;
}

.copyright {
    font-size: 13px;
}

.copyright a {
    color: #c4bd97 !important;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #e0d9b4 !important;
}

#sub-footer ul.social-network li a {
    color: #888;
    font-size: 16px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    display: inline-block;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

#sub-footer ul.social-network li a:hover {
    color: #fff !important;
    background: #c4bd97;
    border-color: #c4bd97;
    transform: translateY(-3px);
}

/* ========================================
   12. SCROLL TO TOP
   ======================================== */

.scrollup {
    background: linear-gradient(135deg, #c4bd97, #a89e6e);
    border-radius: 6px;
    width: 40px;
    height: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    bottom: 20px;
    right: 20px;
}

.scrollup:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

a.scrollup i {
    color: #fff;
    margin-top: 12px;
    font-size: 16px;
}

/* ========================================
   13. FORMS
   ======================================== */

form#contactform input[type="text"],
form#contactform textarea,
form#cForm input,
form#cForm textarea,
.input-field input,
.input-field textarea {
    border: 2px solid #eee;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafafa;
}

form#contactform input[type="text"]:focus,
form#contactform textarea:focus,
form#cForm input:focus,
form#cForm textarea:focus,
.input-field input:focus,
.input-field textarea:focus {
    border-color: #c4bd97;
    box-shadow: 0 0 0 3px rgba(196,189,151,0.15);
    outline: none;
    background: #fff;
}

/* ========================================
   14. ANIMATIONS
   ======================================== */

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

.container {
    animation: fadeInUp 0.5s ease;
}

a, .btn, .panel, .info-blocks-in, img {
    transition-property: color, background-color, border-color, box-shadow, transform, opacity;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* ========================================
   15. UTILITY OVERRIDES
   ======================================== */

.line {
    background: linear-gradient(90deg, #c4bd97, #a89e6e);
    height: 2px;
    border-radius: 1px;
}

.no-side-pad img {
    margin-left: 15px;
    margin-right: 15px;
    border-radius: 8px;
}

/* ========================================
   16. RESPONSIVE - TABLET (max 991px)
   ======================================== */

@media (max-width: 991px) {
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    .flex-caption h3 { font-size: 32px !important; }
    .flex-caption p { font-size: 16px; }
    header .navbar-nav > li > a { padding: 20px 10px; font-size: 12px; }
    .info-blocks .info-blocks-in { padding: 20px 16px; }
    footer .row .col-sm-4, footer .row .col-sm-2 { margin-bottom: 25px; }
    .focus-text-card, .focus-accordion-card { margin-bottom: 20px; }
}

/* ========================================
   17. RESPONSIVE - MOBILE (max 767px)
   ======================================== */

@media (max-width: 767px) {
    body { font-size: 14px; }
    h1 { font-size: 22px; text-align: center; }
    h1::after { left: 50%; transform: translateX(-50%); }
    h2 { font-size: 18px; text-align: center; }

    .navbar-brand img { max-width: 200px !important; width: 200px !important; }
    header .navbar { min-height: 60px; padding: 5px 0; }
    .navbar-brand { margin-top: 8px !important; padding: 0 15px; }

    .navbar-collapse {
        background: #fff;
        border-top: 2px solid #f0f0f0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        max-height: 70vh;
        overflow-y: auto;
    }

    header .navbar-nav > li > a {
        padding: 12px 20px;
        font-size: 13px;
        line-height: 1.4 !important;
        border-bottom: 1px solid #f5f5f5;
    }

    header .navbar-nav > li > a::after { display: none; }

    header .navbar-nav > li:hover > a,
    header .navbar-nav > li.active > a {
        background: #faf9f5;
        color: #1a1a2e !important;
    }

    .dropdown-menu {
        position: static !important;
        float: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: #f9f9f9;
    }

    .dropdown-menu li a { padding: 10px 30px !important; }

    .container { padding-left: 20px; padding-right: 20px; }
    #content, .section-padding { padding: 30px 0 20px; }
    .col-md-4, .col-md-8, .col-sm-6, .col-sm-7, .col-sm-5 { padding-left: 0; padding-right: 0; }
    .no-side-pad { padding: 0 !important; }
    .no-side-pad img { margin: 10px 0 !important; width: 100%; }
    .img-responsive { max-width: 100%; margin-bottom: 20px; }

    .panel-heading { padding: 12px 14px; }
    .panel-title > a { font-size: 13px; }
    .panel-body { padding: 16px; font-size: 13px; }

    footer { text-align: center; padding: 40px 0 0; }
    footer h5.widgetheading { text-align: center; }
    footer h5.widgetheading::after { left: 50%; transform: translateX(-50%); }
    footer ul.link-list { text-align: center; }
    footer ul.link-list li a::before { display: none; }
    footer ul.link-list li a:hover { padding-left: 0; }
    .copyright { text-align: center !important; margin-bottom: 15px; }
    #sub-footer ul.social-network { float: none; text-align: center; margin: 10px 0 0 0; }
    #sub-footer { text-align: center; }

    .flex-caption { display: none; }
    .flex-control-paging { bottom: 5px; }
    .topbar { text-align: center; }
    .topbar .col-sm-3 { float: none; }
    .topbar ul.info li { float: none !important; display: block; padding: 2px 0; text-align: center; }
    div[style*="display:flex"] { display: block !important; }
    .highlight { margin: 0 10px; padding: 20px; border-radius: 12px; }

    /* Focus & HR Messages mobile */
    .focus-section > .col-sm-12 > h1 { text-align: center; }
    .focus-text-card { border: 1px solid #eee; margin-bottom: 20px; }
    .focus-accordion-card { padding: 18px; }
    .hr-messages-card { padding: 16px; }
    .hr-messages-title { text-align: center; font-size: 20px; }
    .section-divider { margin: 15px 0 20px; }
}

/* ========================================
   18. RESPONSIVE - SMALL MOBILE (max 480px)
   ======================================== */

@media (max-width: 480px) {
    body { font-size: 13px; }
    h1 { font-size: 20px; }
    h2 { font-size: 17px; }
    .navbar-brand img { max-width: 180px !important; width: 180px !important; }
    .panel-title > a { font-size: 12px; }
    .btn { width: 100%; max-width: 100%; }
    footer { padding: 30px 0 0; }
    #sub-footer span { font-size: 11px; line-height: 1.6; display: block; }
}

/* ========================================
   20. FOCUS SECTION
   ======================================== */

.focus-section {
    margin-bottom: 10px;
    padding-top: 10px;
}

.focus-section > .col-sm-12 > h1 {
    text-align: left;
}

.focus-text-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    height: 100%;
}

.focus-text-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.focus-text-card p:last-child {
    margin-bottom: 0;
}

.focus-accordion-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    height: 100%;
}

.focus-accordion-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.focus-accordion-title i {
    color: #c4bd97;
    margin-right: 8px;
    font-size: 18px;
}

/* ========================================
   21. HR MESSAGES SECTION
   ======================================== */

.hr-messages-section {
    margin-top: 10px;
    padding-top: 10px;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 20px 0 30px;
}

.hr-messages-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.hr-messages-title i {
    color: #c4bd97;
    margin-right: 10px;
    font-size: 22px;
}

.hr-messages-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}

.focus-accordion-card .panel,
.hr-messages-card .panel {
    margin-bottom: 6px !important;
    border-radius: 6px !important;
}

.focus-accordion-card .panel-heading,
.hr-messages-card .panel-heading {
    padding: 10px 16px;
}

.focus-accordion-card .panel-body,
.hr-messages-card .panel-body {
    padding: 18px 20px;
    border-top: 2px solid rgba(196,189,151,0.2);
}

/* Accordion internal lists */
.accordion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
    font-size: 13.5px;
}

.accordion-list li::before {
    content: "\f105"; /* FontAwesome angle-right or similar */
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    color: #c4bd97;
    font-weight: bold;
}

.accordion-list li:last-child {
    margin-bottom: 0;
}

/* ========================================
   22. PRINT STYLES
   ======================================== */

@media print {
    .topbar, .scrollup, .flex-control-paging, .navbar-toggle { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
}