/* ========================================
   MODERN P. WOLFE CONSULTANTS 2025 STYLES
   ======================================== */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #11175E;
    --primary-dark: #0a0d3a;
    --primary-light: #1a2080;
    --accent-color: #2563eb;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* Container */
#container-a {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#body {
    flex: 1;
}

/* ========================================
   MODERN HEADER & NAVIGATION
   ======================================== */

#header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

#header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo img {
    height: 100px;
    width: auto;
    transition: var(--transition);
}

#logo img:hover {
    transform: scale(1.05);
}

/* Modern Navigation */
#nav_main {
    display: flex;
    align-items: center;
}

#nav {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

#nav li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    border-radius: 0.5rem;
    transition: var(--transition);
}

#nav li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

#nav li.active a {
    background: var(--primary-color);
    color: white;
}

/* Dropdown Menu */
#nav li.drop {
    position: relative;
}

#nav li.drop .subs {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 280px;
    box-shadow: var(--shadow-xl);
    border-radius: 0.75rem;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 0.5rem;
}

#nav li.drop:hover .subs {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#nav li.drop .subs li {
    display: block;
}

#nav li.drop .subs li a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    display: block;
}

#nav li.drop .subs li a:hover {
    background: var(--bg-light);
    padding-left: 1.25rem;
}

/* Mobile Menu Toggle */
.show-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.show-menu .icon-bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

#show-menu {
    display: none;
}

/* ========================================
   HERO SLIDER (Modern)
   ======================================== */

#wrapper-b {
    background: var(--bg-light);
}

.ssslide {
    position: relative;
    overflow: hidden;
}

.bxslider {
    list-style: none;
}

.bxslider li {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bxslider li img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    filter: brightness(0.7);
}

.effect-1 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(17, 23, 94, 0.8), rgba(37, 99, 235, 0.6));
}

.holder {
    max-width: 1200px;
    padding: 2rem;
    text-align: center;
}

.holder h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}

.holder h1 span {
    display: block;
    font-size: 1.25rem;
    font-weight: 400;
    margin-top: 1rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

.home-content,
.services-content,
.container-b,
.container-c,
.grid-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.home-content-e h1,
.services-content-e h1,
.container-b h1 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto 3rem;
    border-radius: 2px;
}

/* Service Cards (Modern Grid) */
.home-content-a,
.home-content-b,
.home-content-c,
.home-content-d {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.home-content-a:hover,
.home-content-b:hover,
.home-content-c:hover,
.home-content-d:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.home-content-a img,
.home-content-b img,
.home-content-c img,
.home-content-d img {
    margin: 0 auto 1.5rem;
    display: block;
    transition: var(--transition);
}

.home-content-a:hover img,
.home-content-b:hover img,
.home-content-c:hover img,
.home-content-d:hover img {
    transform: scale(1.1);
}

.title-a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.cont-a {
    color: var(--text-medium);
    line-height: 1.8;
    text-align: center;
}

/* ========================================
   SERVICES HEADER
   ======================================== */

.services-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.services-header .title,
.services-header .title-a {
    font-size: 1.5rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
}

.services-content-a {
    max-width: 900px;
    margin: 0 auto;
}

.services-content-a p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.services-content-a .subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.services-content-a ul.ul {
    list-style: none;
    padding-left: 0;
}

.services-content-a ul.ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-medium);
}

.services-content-a ul.ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========================================
   PROJECTS GRID
   ======================================== */

.filters-container {
    text-align: center;
    margin-bottom: 3rem;
}

.media-boxes-filter {
    display: inline-flex;
    gap: 0.5rem;
    background: var(--bg-white);
    padding: 0.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.media-boxes-filter li {
    list-style: none;
}

.media-boxes-filter a {
    display: block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.media-boxes-filter a:hover,
.media-boxes-filter a.selected {
    background: var(--primary-color);
    color: white;
}

#grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.media-box {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.media-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.media-box-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
}

.media-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.media-box:hover .media-box-image img {
    transform: scale(1.1);
}

.media-box-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 1.5rem 1.5rem 0.5rem;
}

.media-box-date {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========================================
   CLIENTS GRID
   ======================================== */

.clients-category {
    margin-bottom: 4rem;
}

.clients-category h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.client-logo {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    min-height: 120px;
}

.client-logo:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   FORMS (Modern)
   ======================================== */

form {
    max-width: 800px;
    margin: 0 auto;
}

.container-d,
.container-e,
.container-f,
.container-g,
.container-h {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.title-a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.title-c {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
}

.cont-a,
.cont-b,
.cont-c,
.cont-d {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
}

.container-h {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn,
.btnreset {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn {
    background: var(--primary-color);
    color: white;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btnreset {
    background: var(--bg-light);
    color: var(--text-dark);
}

.btnreset:hover {
    background: var(--border-color);
}

/* ========================================
   FOOTER (Modern)
   ======================================== */

#footer-main {
    background: var(--primary-color);
    color: white;
    padding: 3rem 2rem;
    margin-top: auto;
}

.footer-c-main {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-c-a {
    flex: 1;
}

.footer-c-a a {
    color: white;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-c-a a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-c-b {
    display: flex;
    gap: 1rem;
}

.footer-c-b a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-c-b a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-c-b img {
    width: 20px;
    height: 20px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

.animate {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.fadeInDown {
    animation-name: fadeInDown;
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    #nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-xl);
        gap: 0;
    }
    
    #show-menu:checked ~ #nav {
        display: flex;
    }
    
    .show-menu {
        display: flex;
    }
    
    #nav li.drop .subs {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0.5rem;
        display: none;
    }
    
    #nav li.drop:hover .subs {
        display: block;
    }
    
    .holder h1 {
        font-size: 2rem;
    }
    
    .holder h1 span {
        font-size: 1rem;
    }
    
    #grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    #header-content {
        padding: 1rem;
    }
    
    .home-content,
    .services-content,
    .container-b,
    .container-c,
    .grid-section {
        padding: 2rem 1rem;
    }
    
    .holder h1 {
        font-size: 1.5rem;
    }
    
    .bxslider li {
        min-height: 400px;
    }
    
    .bxslider li img {
        height: 400px;
    }
    
    #grid {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .footer-c-main {
        flex-direction: column;
        text-align: center;
    }
}

/* Utility Classes */
.clear { clear: both; }
.hidden { display: none !important; }
