/*
Theme Name: Providus Corp 2
Author: Gemini
Description: A Fortune 500 style corporate theme for Providus Consulting.
Version: 2.1.3
Text Domain: providus-corp-2
*/

:root {
    --primary-color: #008080; /* Teal */
    --accent-color: #0b2e2e;  /* Darker Teal */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f4f4f4;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --header-height: 80px;
    --top-bar-height: 40px;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
}

/* --- Reset & Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--primary-color); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--accent-color); margin-bottom: 20px; line-height: 1.2; }

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0;
}
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
/* Reset row margins for full width containers to prevent overflow */
.container-fluid > .row { margin: 0; }

.col { padding: 0 15px; }
.container-fluid .col-12 { padding: 0; } /* Remove padding for full-width heroes */

/* Grid System */
.col-12 { width: 100%; }
.col-8 { width: 66.666%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }

@media (max-width: 992px) {
    .col-8, .col-4 { width: 100%; }
}
@media (max-width: 768px) {
    .col-3 { width: 100%; margin-bottom: 30px; }
}

/* --- Top Bar (Desktop) --- */
.top-bar {
    background-color: var(--accent-color);
    color: var(--white);
    height: var(--top-bar-height);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.top-left, .top-right { display: flex; gap: 25px; align-items: center; }
.top-right a:hover { color: #ccc; }

@media (max-width: 992px) {
    .top-bar { display: none; }
}

/* --- Main Header --- */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.site-header.is-sticky {
    height: 70px;
    box-shadow: var(--shadow-soft);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.site-logo { z-index: 1200; position: relative; }
.site-logo img { max-height: 50px; width: auto; }
.site-title { font-size: 1.5rem; margin: 0; color: var(--primary-color); }

/* Desktop Navigation */
.main-navigation.desktop-only ul { display: flex; align-items: center; gap: 30px; margin: 0; }
.main-navigation.desktop-only ul li { position: relative; }
.main-navigation.desktop-only ul li a {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 0;
    color: var(--text-color);
}
.main-navigation.desktop-only ul li a:hover { color: var(--primary-color); }

/* CTA Button */
.main-navigation.desktop-only ul li:last-child a {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 4px;
    transition: background 0.3s;
}
.main-navigation.desktop-only ul li:last-child a:hover {
    background-color: var(--accent-color);
}

/* Dropdown Menus */
.main-navigation ul li ul {
    position: absolute;
    top: 100%; left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-soft);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--primary-color);
    flex-direction: column;
    display: block;
    z-index: 999;
}
.main-navigation ul li:hover > ul {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.main-navigation ul li ul li a {
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid #f5f5f5;
}

@media (max-width: 992px) {
    .main-navigation.desktop-only { display: none; }
}

/* --- Search Logic --- */
.header-actions { display: flex; align-items: center; gap: 20px; }
.search-toggle {
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-color);
    transition: color 0.3s;
}
.search-toggle:hover { color: var(--primary-color); }

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%; right: 0; left: 0;
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow-soft);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 900;
    border-top: 1px solid #eee;
}
.search-overlay.active {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.search-overlay-inner { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* === Search Form Button Alignment Fix === */

/* Ensure the search form acts as one unified component */
.search-form-flex {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Input field cleanup */
.search-field-main {
    width: 100%;
    height: 50px;
    padding-right: 60px; /* space for circular button */
    padding-left: 20px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-size: 1.1rem;
    outline: none;
    border-radius: 30px;
    margin-bottom: 0;
    line-height: normal; /* Fix for Safari */
}

.search-field-main:focus {
    border-color: var(--primary-color);
    background: #fff;
}

/* Override global submit/button styles */
.search-submit-main {
    position: absolute;
    top: 5px;
    right: 5px;

    width: 40px;
    height: 40px;
    min-width: 40px;

    padding: 0 !important;
    border-radius: 50% !important;

    background: var(--primary-color);
    color: #fff;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 2;

    appearance: none;
    -webkit-appearance: none;
}

/* Hover polish */
.search-submit-main:hover {
    background: var(--accent-color);
}
.search-submit-main i {
    font-size: 1rem;
}

/* Prevent global form styles from interfering */
.search-submit-main input,
.search-submit-main button {
    padding: 0;
    border-radius: 50%;
}

@media (max-width: 600px) {
    .search-field-main { height: 44px; font-size: 1rem; padding-right: 44px; }
    .search-submit-main { width: 34px; height: 34px; top: 5px; right: 5px; }
}

/* --- Mobile Menu Toggle --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px; height: 20px;
    cursor: pointer;
    z-index: 1200;
    margin-left: 15px;
}
.bar {
    width: 100%; height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

@media (max-width: 992px) {
    .mobile-toggle { display: flex; }
}

/* --- Full Screen Mobile Menu --- */
.full-screen-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white);
    z-index: 2000;
    display: flex; flex-direction: column;
    padding-top: 60px;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    overflow-y: auto;
}
.full-screen-menu.open { opacity: 1; visibility: visible; }

/* Dedicated Close Button for Mobile Menu */
.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    z-index: 2001;
    transition: transform 0.3s ease;
}
.mobile-menu-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.mobile-menu-inner {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Mobile Nav Styles */
.mobile-nav ul { padding: 0; }
.mobile-nav li { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.4s ease, transform 0.4s ease;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}
.mobile-nav li:last-child { border-bottom: none; }

.full-screen-menu.open .mobile-nav li { opacity: 1; transform: translateY(0); }
.full-screen-menu.open .mobile-nav li:nth-child(1) { transition-delay: 0.1s; }
.full-screen-menu.open .mobile-nav li:nth-child(2) { transition-delay: 0.15s; }
.full-screen-menu.open .mobile-nav li:nth-child(3) { transition-delay: 0.2s; }

.mobile-nav a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    display: block;
}
.mobile-nav .sub-menu { 
    display: none; 
    margin-top: 10px; 
    background: #fafafa; 
    padding: 10px; 
    border-radius: 4px;
}
.mobile-nav .sub-menu li { margin-bottom: 10px; animation: none; opacity: 1; transform: none; border: none; padding: 0; }
.mobile-nav .sub-menu a { font-size: 1.1rem; font-weight: 400; color: var(--text-light); }

/* Mobile Extras */
.mobile-extras { border-top: 1px solid #eee; margin-top: 30px; padding-top: 30px; opacity: 0; transition: opacity 0.5s ease 0.4s; }
.full-screen-menu.open .mobile-extras { opacity: 1; }
.mobile-contact-item { margin-bottom: 15px; font-size: 1.1rem; color: var(--text-light); }
.mobile-contact-item i { color: var(--primary-color); margin-right: 8px; }

.mobile-btns { margin-top: 25px; display: flex; flex-direction: column; gap: 15px; align-items: center; }
.mobile-btn { padding: 14px 30px; border-radius: 4px; font-weight: bold; width: 100%; max-width: 250px; text-transform: uppercase; font-size: 0.9rem; }
.mobile-btn.primary { background: var(--primary-color); color: white; }
.mobile-btn.secondary { border: 2px solid var(--primary-color); color: var(--primary-color); }

/* --- Content Areas --- */
.site-content { padding: 80px 0; min-height: 60vh; }

/* Page Spacing Fix */
.site-content.no-title-padding { padding-top: 0; }

.page-header { margin-bottom: 40px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
.page-title { font-size: 2.5rem; color: var(--accent-color); }

/* Sidebar */
.sidebar-area {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 4px;
    /* Sticky Sidebar */
    position: -webkit-sticky;
    position: sticky;
    top: 100px; /* Offset for header + spacing */
}
.widget { margin-bottom: 40px; }
.widget-title { font-size: 1.2rem; border-left: 4px solid var(--primary-color); padding-left: 15px; margin-bottom: 20px; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid #e5e5e5; }
.widget ul li a:hover { color: var(--primary-color); }

/* Blog Posts */
.post-entry { margin-bottom: 60px; }
.post-thumbnail { margin-bottom: 25px; overflow: hidden; border-radius: 4px; }
.post-thumbnail img { transition: transform 0.5s ease; width: 100%; }
.post-thumbnail:hover img { transform: scale(1.05); }
.entry-meta { font-size: 0.9rem; color: var(--text-light); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.entry-title { font-size: 2rem; margin-bottom: 15px; }
.entry-content { color: var(--text-light); }
.read-more { display: inline-block; margin-top: 15px; font-weight: 700; color: var(--primary-color); border-bottom: 2px solid var(--primary-color); }

/* --- Footer --- */
.site-footer { background: #1a1a1a; color: #b0b0b0; font-size: 0.95rem; }
.footer-widgets { padding: 80px 0; }
.footer-widgets .widget-title { color: var(--white); margin-bottom: 25px; }
.footer-socket { background: #111; padding: 25px 0; border-top: 1px solid #333; }
.socket-inner { display: flex; justify-content: space-between; align-items: center; }

/* Footer Socket Elements */
.socket-left { display: flex; align-items: center; gap: 15px; }
.footer-logo-sm { max-width: 100px; opacity: 0.8; }
.copyright { font-size: 0.85rem; }
.socket-menu ul { display: flex; gap: 20px; margin: 0; }

/* Mobile Footer Logic (Flex Ordering) */
@media (max-width: 768px) {
    .socket-inner { flex-direction: column; gap: 20px; text-align: center; }
    
    .socket-menu { order: 1; margin-bottom: 10px; width: 100%; }
    .socket-left { order: 2; flex-direction: column; gap: 10px; width: 100%; } 
    
    .socket-menu ul { flex-wrap: wrap; justify-content: center; }
}

/* --- Forms & Comments --- */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; margin-bottom: 20px;
}
input[type="submit"], button.submit {
    background: var(--primary-color); color: white; border: none; padding: 12px 30px; cursor: pointer; font-weight: bold; border-radius: 4px;
}