/*
Theme Name: James D. Robb PLLC
Theme URI: 
Description: Professional theme for James D. Robb, PLLC law practice.
Author: Grok
Version: 2.8
*/

body {
    font-family: 'Georgia', serif;
    line-height: 1.7;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

a {
    color: #1a365f;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d4af37;
    text-decoration: underline;
}

/* Modern Header with Gold Trim */
header {
    background: linear-gradient(to right, #0f2b4e, #1a365f);
    color: white;
    padding: 1.4rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 4px solid #d4af37;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2.8rem;
}

nav a {
    color: white;
    font-weight: 600;
    font-size: 1.12rem;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #d4af37;
    transform: translateY(-2px);
}

/* Hero - High Quality */
.hero {
    position: relative;
    width: 100%;
    max-height: 88vh;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.hero img.hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    object-fit: contain;
    object-position: center top;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 43, 78, 0.93), rgba(15, 43, 78, 0.6) 65%, transparent);
    padding: 3.8rem 2rem 2.8rem;
    color: white;
}

.hero-text {
    max-width: 920px;
    margin: 0 auto;
    font-size: 1.3rem;
    line-height: 1.6;
    text-align: center;
    text-shadow: 0 3px 10px rgba(0,0,0,0.8);
    font-style: italic;
}

/* Inner Pages */
.main-content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.page-wrapper {
    display: flex;
    gap: 3.5rem;
    align-items: flex-start;
}

.featured-image {
    flex: 0 0 48%;
    max-width: 530px;
}

.featured-image img.page-featured {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    transition: transform 0.4s ease;
    border: 3px solid #d4af37;
}

.featured-image img.page-featured:hover {
    transform: scale(1.03);
}

.page-content {
    flex: 1;
    background: white;
    padding: 1.8rem 2.8rem 2.8rem;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.09);
    border-top: 5px solid #d4af37;
}

h1 {
    font-size: 2.5rem;
    color: #0f2b4e;
    margin: 0.3rem 0 1.8rem 0;
}

/* Lists */
.entry-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.8rem;
}

.entry-content li {
    margin-bottom: 1.35rem;
    line-height: 1.75;
    padding-left: 0.3rem;
}

/* Footer */
footer {
    background: #0f2b4e;
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 4rem;
    font-size: 0.95rem;
    border-top: 4px solid #d4af37;
}

.footer-content a {
    color: #d4af37;
}

.footer-content a:hover {
    color: #f0d38a;
}

/* Contact Section on Home Page */
.contact-section {
    background: white;
    padding: 2.5rem;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.09);
    text-align: center;
    margin-top: 3rem;
    border-top: 5px solid #d4af37;
}

.contact-section h2 {
    color: #0f2b4e;
    margin-bottom: 1rem;
}

.contact-info {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-top: 1.2rem;
}

.contact-info a {
    color: #1a365f;
    font-weight: 500;
}

.contact-info a:hover {
    color: #d4af37;
}

/* Stick-out Contact Tab - Left Side (Fixed) */
.contact-tab {
    position: fixed;           /* Changed from absolute to fixed */
    left: 0;
    top: 420px;                /* Adjusted position - move up or down as needed */
    z-index: 100;
    transform: translateX(-55px);   /* Pulls most of it off-screen but shows the tab */
    transition: transform 0.4s ease;
	border: 1px solid #0f2b4e; 
	border-radius: 0 8px 8px 0;
}

.contact-tab:hover {
    transform: translateX(0);      /* Slides out fully on hover */
}

.contact-tab a {
    display: flex;
    background: #d4af37;
    color: #0f2b4e;
    font-weight: 700;
    text-align: center;
    padding: 20px 14px;
 
    border-radius: 0 8px 8px 0;
    box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.05rem;
    line-height: 1.25;
}

.contact-tab a:hover {
    background: #f0d38a;
}

#contactimage img {
	border-radius: 8px;
}


/* --- Mobile Responsive Fixes --- */

/* --- Navigation Logic --- */

/* Desktop: Show PC Menu, Hide Mobile Toggle */
@media (min-width: 769px) {
    .pc-menu { display: block; }
    #menu-toggle, #main-nav { display: none !important; }
    
    /* Ensure existing nav styles apply to the WP menu */
    .pc-menu ul { display: flex; list-style: none; gap: 2.8rem; margin: 0; }
    .pc-menu a { color: white; font-weight: 600; font-size: 1.12rem; }
}

/* Mobile: Show Mobile Toggle, Hide PC Menu */
@media (max-width: 768px) {
    .pc-menu { display: none !important; }
    #menu-toggle { display: block !important; }
	
	.contact-tab {
        display: none !important;
    }
    
    #main-nav {
        display: none; 
        text-align: center;
        padding-top: 1rem;
    }
    
    #main-nav.active { display: block; }
    
    #main-nav ul {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}




/* Ensure the classes exist to hide elements */
@media (max-width: 768px) {
    .hide-on-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-on-desktop { display: none !important; }
}

/* Fix for the Desktop Menu */
.hide-on-mobile ul { 
    display: flex; 
    list-style: none; 
    gap: 2.8rem; 
    margin: 0; 
}
.hide-on-mobile a { 
    color: white; 
    font-weight: 600; 
    font-size: 1.12rem; 
}

/* Fix for the Mobile Menu */
#main-nav { display: none; text-align: center; padding-top: 1rem; }
#main-nav.active { display: block; }
#main-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }


/* Ensure the wrapper stacks items vertically on mobile */
@media (max-width: 768px) {
    .page-wrapper {
        display: flex;
        flex-direction: column !important; /* Forces image above content */
        /*align-items: center;*/              /* Centers both horizontally */
        /*text-align: center;  */             /* Centers the text */
    }

    /* Reset width so the image doesn't force a horizontal scroll */
    .featured-image {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 1rem;
    }

    .page-content {
        padding: 1.5rem !important;       /* Adjust padding for smaller screens */
    }
	
	/* 1. Reduce the gap between image and content */
    .page-wrapper {
        gap: 1rem !important; /* Tightens the vertical space */
    }

    /* 2. Remove bottom margin from the image container */
    .featured-image {
        margin-bottom: 0 !important;
    }

    /* 3. Tighten the top padding of the content box to match */
    .page-content {
        padding-top: 1rem !important; /* Reduce space at the top of the box */
    }
	
	.page-content h1 {
        margin-top: 0 !important; /* Removes extra space above the title */
    }
	
	.hero-text {
        font-size: 0.85rem !important; /* Smaller size for mobile */
        line-height: 1.4 !important;
        padding: 0 0.5rem !important;
        margin-top: 10px !important;  /* Shifts the text down */
    }

    /* 2. Adjust the overlay padding to give it more "breathing room" */
    .hero-overlay {
        padding: 2rem 1rem 1.5rem !important; 
    }
}
