/* 
Theme Name: Ethos PM Group
Theme URI: https://ethos-pmgroup.com
Author: Ethos Development Team
Description: Professional project management theme for boards and owners
Version: 6.14 FINAL
*/

/* =========================
   GLOBAL
========================= */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding-top: 96px; /* offset for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.015em;
}

p {
    line-height: 1.75;
}

/* =========================
   MOBILE OFFSET FIX
========================= */
@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        line-height: 1.2;
    }
}

/* =========================
   HERO OVERLAY
========================= */
.hero-overlay {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.7));
}

/* =========================
   NAVBAR
========================= */
#navbar {
    top: 0 !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* =========================
   MENU STYLING
========================= */
.ethos-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ethos-menu li {
    list-style: none;
}

.ethos-menu a {
    color: #0f172a;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

/* underline animation */
.ethos-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #b4975a;
    transition: width 0.3s ease;
}

.ethos-menu a:hover {
    color: #b4975a;
}

.ethos-menu a:hover::after {
    width: 100%;
}

/* desktop refinement */
@media (min-width: 768px) {
    .ethos-menu a {
        padding: 4px 0;
    }

    .ethos-menu a:hover {
        transform: translateY(-1px);
    }
}

/* =========================
   MOBILE MENU (PREMIUM TOUCH)
========================= */
#mobile-menu {
    animation: fadeInMenu 0.25s ease;
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   CARD HOVER EFFECT (UPGRADED)
========================= */
.card-hover {
    transition: all 0.35s ease;
}

.card-hover:hover {
    border-color: #b4975a;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* =========================
   FORMS
========================= */
input, textarea {
    transition: all 0.2s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #b4975a;
    box-shadow: 0 0 0 1px #b4975a;
}

/* =========================
   FADE IN ANIMATION (FINAL CLEAN)
========================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   WPFORMS (CUSTOM STYLE)
========================= */
.wpforms-container,
.wpforms-form {
    background: transparent;
}

.wpforms-form input,
.wpforms-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.wpforms-form input:focus,
.wpforms-form textarea:focus {
    border-color: #b4975a;
    box-shadow: 0 0 0 1px #b4975a;
    outline: none;
}

.wpforms-form label {
    color: #0f172a;
    font-weight: 500;
}

.wpforms-form button,
.wpforms-submit {
    width: 100%;
    padding: 14px;
    background-color: #0f172a;
    color: #ffffff;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.wpforms-form button:hover,
.wpforms-submit:hover {
    background-color: #b4975a;
    color: #ffffff;
}

/* =========================
   SECTION DIVIDER (REFINED)
========================= */
section {
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(229,231,235,0.5), transparent);
}

/* =========================
   BUTTON TRANSITIONS
========================= */
a, button {
    transition: all 0.3s ease;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #b4975a;
    outline-offset: 3px;
}

/* =========================
   PREMIUM CARD HOVER
========================= */
.card-premium {
    transition: all 0.35s ease;
    transform: translateY(0);
}

.card-premium:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

/* =========================
   ICON ANIMATION
========================= */
.icon-premium {
    transition: transform 0.4s ease;
}

.card-premium:hover .icon-premium {
    transform: scale(1.1) rotate(2deg);
}

/* =========================
   STAGGER EFFECT
========================= */
.fade-in:nth-child(1) { transition-delay: 0.05s; }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.15s; }
.fade-in:nth-child(4) { transition-delay: 0.2s; }
.fade-in:nth-child(5) { transition-delay: 0.25s; }
.fade-in:nth-child(6) { transition-delay: 0.3s; }

/* =========================
   PREMIUM SHADOW BASE
========================= */
.shadow-soft {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

/* Footer menu refinement */
footer .menu a {
    color: #9ca3af;
    transition: all 0.3s ease;
}

footer .menu a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

/* ===============================
   ARTICLE TYPOGRAPHY (FINAL)
   =============================== */

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #1e293b;
}

/* Headings */
.article-content h2,
.article-content .wp-block-heading {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 40px;
    margin-bottom: 16px;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
    margin-top: 30px;
    margin-bottom: 12px;
}

/* Paragraphs */
.article-content p {
    margin-bottom: 20px;
    color: #334155;
}

.article-content a {
    color: #0f172a;
    text-decoration: underline;
    text-decoration-color: #b4975a;
    text-underline-offset: 3px;
}

/* Lists (FIXES BULLETS ISSUE) */
.article-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 16px 0 24px 0;
}

.article-content ol {
    list-style-type: decimal;
    padding-left: 20px;
    margin: 16px 0 24px 0;
}

.article-content li {
    margin-bottom: 8px;
}

/* Nested lists */
.article-content ul ul {
    list-style-type: circle;
}

.article-content ol ol {
    list-style-type: lower-alpha;
}

/* Separator */
.article-content hr {
    margin: 40px 0;
    border-top: 1px solid #e2e8f0;
}

/* Blockquote */
.article-content blockquote {
    border-left: 4px solid #b4975a;
    padding-left: 16px;
    font-style: italic;
    color: #334155;
}

/* Tables */
.article-content table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    margin-top: 24px;
}

.article-content th,
.article-content td {
    border: 1px solid #e2e8f0;
    padding: 10px;
}

.article-content th {
    background: #f8fafc;
    font-weight: 600;
}

/* PAGINATION WRAPPER */
.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

/* LINKS */
.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 10px 14px;
    font-size: 14px;
    color: #64748b; /* ethos gray */
    border: 1px solid #e5e7eb;
    background: white;
    transition: all 0.2s ease;
}

/* HOVER */
.pagination li a:hover {
    background: #f8fafc;
    color: #0f172a;
}

/* ACTIVE PAGE */
.pagination li .current {
    background: #0f172a; /* ethos navy */
    color: white;
    border-color: #0f172a;
}

/* PREV/NEXT */
.pagination li a.prev,
.pagination li a.next {
    font-weight: 500;
}

.filter-chip {
    border: 1px solid transparent;
    text-decoration: none;
}

.filter-chip:hover,
.filter-chip:focus-visible {
    border-color: #b4975a;
    color: #0f172a;
}

.filter-chip.is-active:hover,
.filter-chip.is-active:focus-visible {
    color: #ffffff;
}

.floating-back-btn {
    position: fixed;
    top: 70%;
    left: 20px;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.floating-back-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.floating-back-btn__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.floating-back-btn__link:hover {
    transform: translateX(-3px);
}

@media (max-width: 1024px) {
    .floating-back-btn {
        left: 12px;
        top: auto;
        bottom: 16px;
    }
}

@media (max-width: 640px) {
    .floating-back-btn {
        left: auto;
        right: 12px;
        bottom: 12px;
    }

    .floating-back-btn__link {
        padding: 9px 12px;
    }

    #mobile-menu {
        max-height: calc(100vh - 88px);
        overflow-y: auto;
    }

    #mobile-menu .ethos-menu a {
        display: block;
        padding: 0.5rem 0;
    }
}
