/*
 * PIE Consulting - Brand Overrides
 * Colours: Orange #FB8B24, Charcoal #343633, Grey #7F7F7F, Greige #DAD7CD, Beige #FAF0E6
 * Fonts: Avenir Next Pro Light / fallback to system sans-serif
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --theme: #FB8B24;
    --header: #343633;
    --text: #7F7F7F;
    --bg: #FAF0E6;
    --bg2: #343633;
    --border: #343633;
    --body: #FAF0E6;
    --black: #343633;
    --white: #FFFFFF;
    --greige: #DAD7CD;
    --beige: #FAF0E6;
    --charcoal: #343633;
    --orange: #FB8B24;
}

/* Font overrides - Avenir Next Pro with fallbacks */
body {
    font-family: 'Avenir Next Pro', 'Avenir Next', 'Avenir', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--beige);
    color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Avenir Next Pro', 'Avenir Next', 'Avenir', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--charcoal);
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Theme button override */
.theme-btn {
    background-color: var(--orange);
    border-color: var(--orange);
}

.theme-btn:hover {
    background-color: var(--charcoal);
    border-color: var(--charcoal);
}

/* Back to top */
.back-to-top {
    background-color: var(--orange);
}

/* Header sticky */
#header-sticky.sticky {
    background-color: var(--white);
}

/* Preloader override */
.preloader .animation-preloader .spinner {
    border-top-color: var(--orange);
}

.preloader .animation-preloader .letters-loading::before {
    color: var(--orange);
}

/* Section backgrounds */
.section-bg-beige {
    background-color: var(--beige);
}

.section-bg-greige {
    background-color: var(--greige);
}

.section-bg-charcoal {
    background-color: var(--charcoal);
}

.section-bg-white {
    background-color: var(--white);
}

/* Sub-title / label override */
.section-title .sub-title {
    color: var(--orange);
}

/* Footer override */
.footer-section {
    background-color: var(--charcoal);
}

@media (max-width: 767px) {
    .footer-section {
        padding-bottom: 15px;
    }
    .footer-section .footer-top.footer-widget-wrapper {
        padding: 30px 0 20px;
    }
    .footer-section .footer-widget-items {
        margin-top: 15px;
    }
    .footer-section .footer-widget-items .widget-head {
        margin-bottom: 12px;
    }
    .footer-section .footer-widget-items .footer-content p {
        margin-bottom: 10px;
    }
    .footer-section .footer-widget-items .footer-content .social-icon {
        margin-top: 10px;
    }
    .footer-bottom-wrapper {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
        text-align: center;
    }
    .footer-bottom-wrapper .footer-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 14px;
    }
    .footer-bottom-wrapper .footer-list li {
        font-size: 13px;
    }
}

/* Sector tags */
.sector-tag {
    display: inline-block;
    padding: 8px 20px;
    margin: 5px;
    border: 1px solid var(--charcoal);
    border-radius: 30px;
    color: var(--charcoal);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sector-tag:hover {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

/* Service accordion overrides */
.service-acc-btn.active .number,
.service-acc-btn:hover .number {
    color: var(--orange);
}

/* Values / pillars cards */
.pillar-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s ease;
}

.pillar-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.pillar-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Blog cards */
.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.blog-card .blog-thumb {
    height: 220px;
    overflow: hidden;
}

.blog-card .blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-card .blog-content {
    padding: 25px;
}

.blog-card .blog-date {
    color: var(--orange);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.blog-card .blog-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card .blog-title a {
    color: var(--charcoal);
    text-decoration: none;
}

.blog-card .blog-title a:hover {
    color: var(--orange);
}

/* Contact form */
.pie-form .form-control {
    border: 1px solid var(--greige);
    border-radius: 5px;
    padding: 14px 20px;
    font-size: 15px;
    background: var(--white);
    color: var(--charcoal);
    margin-bottom: 20px;
}

.pie-form .form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 2px rgba(251, 139, 36, 0.15);
}

.pie-form select.form-control {
    appearance: auto;
}

.pie-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* What to expect sidebar */
.expect-box {
    background: var(--greige);
    padding: 35px;
    border-radius: 10px;
}

.expect-box h4 {
    margin-bottom: 20px;
}

.expect-box ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--charcoal);
}

.expect-box ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--orange);
}

/* Breadcrumb override */
.breadcrumb-wrapper {
    background-color: var(--charcoal);
    padding: 120px 0 60px;
    position: relative;
}

.breadcrumb-wrapper .page-heading h1 {
    color: var(--white);
    font-size: 48px;
}

.breadcrumb-wrapper .breadcrumb-items li {
    color: var(--greige);
}

.breadcrumb-wrapper .breadcrumb-items li a {
    color: var(--white);
}

/* Sector grid cards */
.sector-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.sector-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.sector-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.sector-card p {
    font-size: 14px;
    margin: 0;
}

/* Admin styles */
.admin-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: var(--charcoal);
    color: var(--white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header a {
    color: var(--orange);
    text-decoration: none;
}

.admin-nav {
    display: flex;
    gap: 20px;
}

.admin-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--orange);
}

.admin-card {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.admin-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.admin-btn:hover {
    background: var(--charcoal);
    color: var(--white);
}

.admin-btn.secondary {
    background: var(--greige);
    color: var(--charcoal);
}

.admin-btn.danger {
    background: #dc3545;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--greige);
}

.admin-table th {
    background: var(--beige);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--charcoal);
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="date"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--greige);
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
}

.admin-form textarea {
    min-height: 200px;
    resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--orange);
}

.alert {
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

/* Hamburger menu icon - dark on light backgrounds */
.header-main .header-right .header-btn .sidebar__toggle {
    color: var(--charcoal) !important;
}

/* Hero section for PIE */
.pie-hero {
    position: relative;
    padding: 160px 0 100px;
    background-color: var(--beige);
    overflow: hidden;
}

.pie-hero h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 300;
    text-transform: none;
    margin-bottom: 25px;
}

@media (max-width: 991px) {
    .pie-hero h1 {
        font-size: 38px;
    }
}

@media (max-width: 575px) {
    .pie-hero h1 {
        font-size: 28px;
    }
}

/* Mobile hero image */
@media (max-width: 991px) {
    .pie-hero .hero-img-mobile {
        margin-top: 30px;
        border-radius: 10px;
        width: 100%;
        max-height: 300px;
        object-fit: cover;
    }
}

.pie-hero .hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    max-width: 600px;
    margin-bottom: 15px;
}

.pie-hero .proof-points {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

.pie-hero .proof-points li {
    padding: 4px 0;
    color: var(--charcoal);
    font-weight: 500;
}

.pie-hero .proof-points li i {
    color: var(--orange);
    margin-right: 8px;
}

/* CTA group */
.cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-group .theme-btn.outline {
    background: transparent;
    border: 2px solid var(--charcoal);
    color: var(--charcoal);
}

.cta-group .theme-btn.outline:hover {
    background: var(--charcoal);
    color: var(--white);
}

/* Problem section */
.challenge-item {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--charcoal);
    font-size: 16px;
}

.challenge-item::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--orange);
}

/* Service cards on homepage */
.service-snap-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.service-snap-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.service-snap-card h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.service-snap-card p {
    font-size: 14px;
    color: var(--text);
    margin: 0;
}

.service-snap-card .card-icon {
    width: 50px;
    height: 50px;
    background: var(--beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--orange);
    font-size: 20px;
}

/* Single blog post */
.blog-single-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-single-content h2 {
    text-transform: none;
    font-size: 28px;
    margin: 30px 0 15px;
}

.blog-single-content h3 {
    text-transform: none;
    font-size: 22px;
    margin: 25px 0 12px;
}

.blog-single-content p {
    margin-bottom: 18px;
    line-height: 1.8;
}

.blog-single-content ul,
.blog-single-content ol {
    margin-bottom: 18px;
    padding-left: 20px;
}

.blog-single-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.blog-featured-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Logo sizing */
.logo img,
.header-logo img,
.offcanvas__logo img,
.footer-widget-items .widget-head img,
.header-main .header-left img,
.header-1 .header-main .header-left .logo img {
    max-width: 200px !important;
    width: 200px !important;
    height: auto !important;
}

/* Fix header layout so logo and nav sit inline */
.header-main {
    display: flex !important;
    align-items: center !important;
}

.header-main .header-left {
    flex-shrink: 0;
}

.header-main .mean__menu-wrapper {
    flex: 1;
}

.header-main .header-right {
    flex-shrink: 0;
}

/* Nav link colour - charcoal on light header */
.header-main .main-menu ul li a {
    color: var(--charcoal) !important;
}

.header-main .main-menu ul li a:hover,
.header-main .main-menu ul li.active > a {
    color: var(--orange) !important;
}

/* Space nav away from logo */
.header-main .mean__menu-wrapper {
    padding-left: 40px;
}

/* Nav link colour - charcoal on light background */
.header-main .main-menu ul li a {
    color: var(--charcoal) !important;
}

.header-main .main-menu ul li a:hover,
.header-main .main-menu ul li.active > a {
    color: var(--orange) !important;
}

/* Space nav away from logo */
.mean__menu-wrapper {
    padding-left: 40px;
}

/* Keep logo visible on sticky/scroll header */
.sticky.header-1 .header-main .header-left .header-logo {
    display: block !important;
}

/* Make header non-overlapping on all pages */
#header-sticky {
    position: relative !important;
    background-color: var(--beige) !important;
}

#header-sticky.sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Clean breadcrumb bar */
.breadcrumb-wrapper {
    padding: 60px 0 40px !important;
    background-size: cover;
    background-position: center;
    position: relative;
}

.breadcrumb-wrapper .page-heading h1 {
    color: var(--white) !important;
    font-size: 40px;
    margin-bottom: 10px;
}

.breadcrumb-wrapper .breadcrumb-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}

.breadcrumb-wrapper .breadcrumb-items li {
    color: var(--greige);
    font-size: 14px;
}

.breadcrumb-wrapper .breadcrumb-items li a {
    color: var(--white);
    text-decoration: none;
}

.breadcrumb-wrapper .breadcrumb-items li a:hover {
    color: var(--orange);
}

/* ===== Mobile fixes ===== */

/* 1. Hamburger icon: force charcoal so it's visible on the light header */
.header-main .header-right .header-btn .sidebar__toggle {
    color: var(--charcoal) !important;
}

/* 2. Hero image on mobile — show below the text */
@media (max-width: 991px) {
    .pie-hero .hero-img-mobile {
        margin-top: 30px;
    }
    .pie-hero .hero-img-mobile img {
        width: 100%;
        border-radius: 10px;
    }
}
