/* ==========================================
   Protective Resources - Custom Stylesheet
   Bootstrap 5.3 Based Theme
   ========================================== */

/* --- CSS Variables --- */
:root {
    --pr-primary: #101010;
    --pr-secondary: #0bb4aa;
    --pr-tertiary: #6C6C77;
    --pr-light-bg: #f9fafd;
    --pr-dark: #101010;
    --pr-white: #ffffff;
    --pr-lightgrey: #D9D9D9;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Onest', sans-serif;
}

/* --- Base Styles --- */
body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    color: var(--pr-primary);
    background-color: var(--pr-light-bg);
    padding-top: 76px; /* navbar height */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    color: var(--pr-primary);
}

a {
    color: var(--pr-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #099e95;
}

/* --- Navigation --- */
#mainNav {
    background-color: rgba(16, 16, 16, 0.55) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#mainNav .navbar-brand img {
    max-height: 50px;
    width: auto;
}

#mainNav .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0.85rem;
    transition: color 0.2s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--pr-secondary);
}

.dropdown-menu {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 0;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    padding: 0.4rem 1rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--pr-secondary);
    color: #fff;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* --- Page Header / Breadcrumb --- */
.page-header {
    background-color: var(--pr-dark);
    color: #fff;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: #fff;
    margin: 0;
    font-size: 2rem;
}

.page-header .breadcrumb {
    margin-bottom: 0;
    background: none;
    padding: 0;
}

.page-header .breadcrumb-item a {
    color: var(--pr-secondary);
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Content Styles --- */
.entry-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 0;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--pr-primary);
}

.entry-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--pr-secondary);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* --- Home Page Feature Cards --- */
.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 3px solid var(--pr-secondary);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.feature-card .feature-icon {
    width: 50px;
    height: auto;
    margin-bottom: 1rem;
}

.feature-card .feature-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--pr-tertiary);
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
}

.feature-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

/* --- Article Cards --- */
.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.article-card .card-body {
    flex: 1;
    padding: 1.5rem;
}

.article-card .article-meta {
    font-size: 0.85rem;
    color: var(--pr-tertiary);
    margin-bottom: 0.75rem;
}

.article-card .article-meta i {
    margin-right: 0.25rem;
}

.article-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.article-card .card-title a {
    color: var(--pr-primary);
}

.article-card .card-title a:hover {
    color: var(--pr-secondary);
}

.article-card .badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* --- Single Article --- */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--pr-lightgrey);
}

.article-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

/* --- Expertise Table --- */
.expertise-table td {
    padding: 0.5rem 1rem;
    vertical-align: top;
}

.expertise-table td::before {
    content: "•";
    margin-right: 0.5rem;
    color: var(--pr-secondary);
    font-weight: bold;
}

/* --- Contact Form --- */
.contact-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form .form-control {
    border-radius: 4px;
    border: 1px solid var(--pr-lightgrey);
    padding: 0.6rem 0.75rem;
}

.contact-form .form-control:focus {
    border-color: var(--pr-secondary);
    box-shadow: 0 0 0 0.2rem rgba(11, 180, 170, 0.15);
}

/* --- Service cards --- */
.service-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--pr-secondary);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--pr-dark) !important;
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--pr-secondary);
}

.site-footer a:hover {
    color: #fff;
}

/* --- Scroll to Top --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--pr-secondary);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: opacity 0.3s;
}

.scroll-to-top:hover {
    background: #099e95;
    color: #fff;
}

.scroll-to-top.visible {
    display: flex;
}

/* --- Buttons --- */
.btn-pr {
    background-color: var(--pr-secondary);
    border-color: var(--pr-secondary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
}

.btn-pr:hover {
    background-color: #099e95;
    border-color: #099e95;
    color: #fff;
}

/* --- Pagination --- */
.pagination .page-link {
    color: var(--pr-secondary);
}

.pagination .page-item.active .page-link {
    background-color: var(--pr-secondary);
    border-color: var(--pr-secondary);
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-section {
        min-height: 350px;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 62px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-section {
        min-height: 280px;
    }

    .entry-content {
        padding: 1rem 0;
    }
}
