/*
Theme Name: PS Theme
Theme URI: http://projectsignsukltd.co.uk
Author: DB - Kentmedia
Author URI: http://kentmedia.co.uk
Description: Custom theme for Project Signs (UK) Ltd.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ps-theme
*/

/* CSS Variables */
:root {
    --color-main-bg: #5C676A;
    --color-menu-bg: #383D41;
    --color-highlight-1: #A5FF87;
    --color-highlight-2: #FFBE03;
    --color-body-bg: #4A4E4F;
    --color-body-text: #424242;
    --color-menu-text: #FFFFFF;

    --font-heading: 'Cal Sans', 'Oswald', sans-serif;
    /* Fallback for Cal Sans */
    --font-body: 'Open Sans', sans-serif;

    --width-container: 1020px;
}

/* Reset & Basics */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--color-body-bg);
    background-image: url('images/background.png');
    background-repeat: repeat;
    background-attachment: fixed;
    background-position: center center;
    color: var(--color-body-text);
    font-family: var(--font-body);
    font-size: 16px;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    position: relative;
    display: inline-block;
}

/* H1 Underline Effect: First 4 chars only (Simulation) 
   Actual "first 4 chars" styling is hard with CSS alone without wrapping.
   We will use a fixed width underline for now as a proxy. */
h1::after,
h2::after {
    content: '';
    display: block;
    width: 60px;
    /* Approx 4 chars width */
    height: 4px;
    /* Thickness */
    background: var(--color-highlight-1);
    position: absolute;
    bottom: -5px;
    left: 0;
}

h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.container {
    max-width: var(--width-container);
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-white {
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-highlight-1);
    /* Green default base */
    color: #333;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    /* Prepare for border transition */
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: #fff;
    color: #333;
    border: 1px solid #333;
}

.read-more {
    display: inline-block;
    /* Make it behave like a button */
    padding: 10px 20px;
    background: var(--color-highlight-1);
    /* Green */
    color: #333;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    margin-top: 10px;
    text-decoration: none;
    border: 1px solid transparent;
}

.read-more:hover {
    background: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #333;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    background-color: #4A4E4F;
    background-image: url('images/background.png');
    background-repeat: repeat;
    background-attachment: fixed;
    background-position: center center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
    border-bottom: 5px solid rgba(0, 0, 0, 0.1);
    /* Transition for smooth sticky effect is good, but padding change causes jump if height changes */
}

.site-header.sticky {
    padding: 5px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 125px;
    /* Per spec */
}

/* Logo "Bust out" */
.site-branding {
    z-index: 1100;
    position: relative;
    top: 50px;
    margin-left: 40px;
    transform: rotate(-15deg);
}

.site-branding img {
    max-height: 250px;
    /* Reduced slightly to fit better sticking */
    transition: max-height 0.3s ease;
}



.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

/* Top Bar */
.top-bar {
    margin-bottom: 25px;
    font-size: 14px;
    color: #fff;
}

.top-contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #eee;
}

.contact-item i {
    color: var(--color-highlight-1);
    font-size: 16px;
}

/* Main Navigation */
.menu-toggle {
    display: none;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.main-navigation li a {
    display: block;
    background-color: var(--color-menu-bg);
    color: var(--color-menu-text);
    padding: 10px 20px;
    border: 1px solid #000;
    font-family: var(--font-heading);
    text-transform: uppercase;
    transition: border-bottom 0.2s;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item a {
    border-bottom: 3px solid var(--color-highlight-1);
}

/* Submenu Dropdown */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-menu-bg);
    display: none;
    min-width: 200px;
    margin-top: 10px;
    /* 10px gap as per spec */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Fix for gap issue: Invisible bridge */
.main-navigation ul ul::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    display: block;
    background: transparent;
}

.main-navigation li {
    position: relative;
}

.main-navigation li:hover>ul,
.main-navigation li:focus-within>ul {
    display: block;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    padding: 12px 20px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   HERO SECTION (Panel Animation)
   ========================================= */
.hero-panel-section {
    position: relative;
    height: 750px;
    margin-top: 145px;
    /* Fixed header 125px + 20px gap */
    /*margin-bottom: 10px;*/
    overflow: visible;
    background: transparent;
    /* Transparent to show body background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Neon Wave SVG */
.wave-container {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.wave-svg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1020px;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(165, 255, 135, 0.8)) drop-shadow(0 0 40px rgba(255, 190, 3, 0.6));
}

/* Sparkle effects */
.sparkle {
    display: none;
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, transparent 70%);
    border-radius: 50%;
    animation: sparkle 2s infinite;
    pointer-events: none;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Section Inner Container */
.hero-section-inner {
    width: 1020px;
    height: 750px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    z-index: 2;
}

/* Left Column - Text */
.text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 20px;
    position: relative;
    height: 100%;
}

.text-item {
    position: absolute;
    top: 50%;
    left: 20px;
    width: calc(100% - 40px);
    margin-bottom: 0;
    opacity: 0;
    transform: translate(-50px, -50%);
    transition: all 0.6s ease;
    text-align: left;
    pointer-events: none;
}

.text-item.active {
    opacity: 1;
    transform: translate(0, -50%);
    pointer-events: auto;
}

.text-item h1 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    line-height: 1.2;
}

.hero-description {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    margin-top: 15px;
    max-width: 400px;
}

/* Right Column - Panels */
.panels-column {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

.panels-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel {
    position: absolute;
    background: #ffffff;
    padding: 5px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.panel-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.panel img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Single Image Panel */
.panel-img-full {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Split Image Top */
.panel-img-top {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    /* Diagonal cut: Bottom edge slants down from left to right */
    /* Starting higher on left, lower on right to match -30deg divider rotation */
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 65%);
}

/* Split Image Bottom */
.panel-img-bottom {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}



.panel:hover .panel-image-container {
    border-radius: 15px;
}

.panel:hover img {
    transform: scale(1.05);
    /* Zoom effect */
}

/* Panel 1 */
.panel-1 {
    width: 160px;
    height: 550px;
    border-radius: 50px 0 0 50px;
    border-radius: 50px 0 0 50px;
    top: 53%;
    left: calc(50% - 163px);
    transform: translate(-50%, -50%);
    animation: bounce1 3s ease-in-out infinite;
}

.panel-1 .panel-image-container {
    border-radius: 45px 0 0 45px;
}

@keyframes bounce1 {

    0%,
    100% {
        transform: translate(-50%, calc(-50% - 10px));
    }

    50% {
        transform: translate(-50%, calc(-50% + 20px));
    }
}

.panel-1:hover {
    width: 590px;
    height: 440px;
    clip-path: none;
    border-radius: 20px;
    animation: none;
    z-index: 10;
    left: 50%;
    top: 53%;
    transform: translate(-50%, -50%);
}

/* Panel 2 */
.panel-2 {
    width: 160px;
    height: 550px;
    border-radius: 0;
    border-radius: 0;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: bounce2 3.5s ease-in-out infinite;
}



@keyframes bounce2 {

    0%,
    100% {
        transform: translate(-50%, calc(-50% - 10px));
    }

    50% {
        transform: translate(-50%, calc(-50% + 20px));
    }
}

.panel-2:hover {
    width: 590px;
    height: 440px;
    clip-path: none;
    border-radius: 20px;
    animation: none;
    z-index: 10;
    left: 50%;
    top: 53%;
    transform: translate(-50%, -50%);
}

/* Panel 3 */
.panel-3 {
    width: 160px;
    height: 550px;
    border-radius: 0 50px 50px 0;
    border-radius: 0 50px 50px 0;
    top: 53%;
    left: calc(50% + 163px);
    transform: translate(-50%, -50%);
    animation: bounce3 4s ease-in-out infinite;
}

.panel-3 .panel-image-container {
    border-radius: 0 45px 45px 0;
}

@keyframes bounce3 {

    0%,
    100% {
        transform: translate(-50%, calc(-50% - 10px));
    }

    50% {
        transform: translate(-50%, calc(-50% + 20px));
    }
}

.panel-3:hover {
    width: 590px;
    height: 440px;
    clip-path: none;
    border-radius: 20px;
    animation: none;
    z-index: 10;
    left: 50%;
    top: 53%;
    transform: translate(-50%, -50%);
}

/* Darken other panels when one is hovered */
.panels-container:has(.panel-1:hover) .panel-2,
.panels-container:has(.panel-1:hover) .panel-3 {
    opacity: 0.2;
    filter: brightness(0.3);
}

.panels-container:has(.panel-2:hover) .panel-1,
.panels-container:has(.panel-2:hover) .panel-3 {
    opacity: 0.2;
    filter: brightness(0.3);
}

.panels-container:has(.panel-3:hover) .panel-1,
.panels-container:has(.panel-3:hover) .panel-2 {
    opacity: 0.2;
    filter: brightness(0.3);
}

@media (max-width: 770px) {

    /* Header Modifications */
    .header-container {
        flex-direction: column !important;
        height: auto !important;
        padding-bottom: 10px;
        align-items: center;
    }

    .site-branding {
        margin: 0 auto 10px !important;
        /* Force center */
        transform: none !important;
        text-align: center;
        width: 100%;
        position: static !important;
        top: auto !important;
        margin-left: 0 !important;
    }

    .site-branding img {
        max-height: 100px;
        /* Scale logo */
    }

    .header-right {
        align-items: center;
        width: 100%;
    }

    .top-contact-info {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 10px;
        font-size: 13px;
    }

    /* Mobile Menu */
    .menu-toggle {
        display: block;
        background: transparent;
        border: 2px solid #fff;
        color: #fff;
        font-size: 20px;
        border-radius: 4px;
        padding: 5px 10px;
        margin: 5px auto;
        cursor: pointer;
    }

    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .main-navigation {
        width: 100%;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: var(--color-menu-bg);
        margin-top: 10px;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation li a {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px;
    }

    /* Hide Hero Section on Mobile */
    .hero-panel-section {
        display: none !important;
    }

    .hero-section-inner {
        transform: scale(0.5) !important;
        transform-origin: top center !important;
        height: 750px !important;
        width: 1020px !important;
        margin: 0 auto !important;
    }

    .panels-column {
        order: 1;
        width: 100% !important;
        max-width: 100vw !important;
        height: 320px;
        /* Explicit container height */
        transform: none;
        /* Removed scale */
        margin-top: 0;
        margin-bottom: 0;
        position: relative;
        overflow: visible !important;
        /* Allow pop-out */
    }

    .panels-container {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
    }

    /* Resize Panels for Mobile directly to avoid scale gap issues */
    .panel {
        height: 300px !important;
        width: 80px !important;
        top: 20px !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
        animation: none !important;
        /* Disable bounce animations on mobile */
    }

    .panel-1 {
        left: calc(50% - 85px) !important;
        border-radius: 25px 0 0 25px !important;
    }

    .panel-1 .panel-image-container {
        border-radius: 22px 0 0 22px !important;
    }

    .panel-2 {
        left: 50% !important;
    }

    .panel-3 {
        left: calc(50% + 85px) !important;
        border-radius: 0 25px 25px 0 !important;
    }

    .panel-3 .panel-image-container {
        border-radius: 0 22px 22px 0 !important;
    }

    /* Enable hover expansion on mobile */
    .panel:hover {
        width: 300px !important;
        /* Expand on hover */
        height: 400px !important;
        z-index: 100 !important;
        /* Overlay panels */
        border-radius: 15px !important;
        transform: translate(-50%, -50%) !important;
    }

    /* Adjusted Animation Keyframes for Mobile Scale? 
       Actually, simply disabling bounce might be cleaner or reducing it.
       Let's keep bounce but smaller. */

    /* Hide text on mobile */
    .text-column {
        display: none !important;
    }

    /* Intro / Quotation */
    .intro-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .cta-box {
        width: 100%;
        box-sizing: border-box;
        padding: 20px;
    }

    /* Footer adjustments */
    .site-footer {
        text-align: center;
    }


    .footer-widgets.grid-3-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-col-1,
    .footer-col-2,
    .footer-col-3 {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-logo {
        margin: 0 auto 10px;
        width: auto;
    }

    /* Add padding to clear fixed header on mobile (Home only because Hero is hidden) */
    /* Add padding to clear fixed header on mobile (Home only because Hero is hidden) */
    body.home .site-content {
        padding-top: 350px !important;
        padding-bottom: 30px !important;
    }

    /* Regular Pages: Page Hero clears header */
    .page-hero {
        margin-top: 350px !important;
    }

    body:not(.home) .site-content {
        padding-top: 30px !important;
    }

    /* Constrain container */
    .container {
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
}

/* Very Small Screens adjustments */
@media (max-width: 420px) {


    .text-item h1 {
        font-size: 26px;
    }

    .wave-svg {
        width: 100%;
        /* Constrain wave */
        height: auto;
    }
}

@media (max-width: 360px) {

    /* Prevent busting out */
    body {
        overflow-x: hidden;
    }

    .container,
    .hero-section-inner,
    .wave-container {
        width: 100% !important;
        overflow-x: hidden;
        padding-left: 10px;
        padding-right: 10px;
    }

    .panels-column {
        transform: scale(0.35);
        margin-top: -100px;
    }

    .text-column {
        margin-top: -120px;
    }

    .text-item h1 {
        font-size: 22px;
    }

    .service-card {
        padding: 15px;
    }

    .footer-col-1 p,
    .site-info {
        font-size: 12px;
    }
}

/* =========================================
   MAIN CONTENT
   ========================================= */
.site-content {
    padding: 60px 0;
    background: transparent;
}

/* Intro */
.intro-text {
    color: #fff;
    /* Ensure text is visible on dark hatch background */
}

.intro-text h2 {
    color: #fff;
    border-bottom: none;
    /* Optional: if H2 style clashes */
}

.intro-grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 40px;
    margin-bottom: 60px;
}

.cta-box {
    background: var(--color-highlight-1);
    /* Or maybe highlight-1? Plan mentioned colors vaguely for cards. Using brand accent. */
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #333;
}

.cta-box .btn {
    background: #383D41;
    color: #fff;
    border: 1px solid transparent;
    /* Ensure border doesn't jump */
}

.cta-box .btn:hover {
    background: #fff;
    color: #333;
    border: 1px solid #333;
}

/* Services */
.services-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* Outer glow */
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    /* Bounce up */
    box-shadow: 0 0 20px rgba(165, 255, 135, 0.6);
    /* Glow with brand color */
}

.service-image {
    height: 150px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 3px solid var(--color-highlight-2);
    /* Image border */
}

.read-more {
    /* Using shared style above, ensuring overrides if any */
    display: inline-block;
    background: var(--color-highlight-1);
    color: #333;
    padding: 8px 15px;
    /* Adjust slightly if needed for cards */
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: #4A4E4F;
    background-image: url('images/background.png');
    background-repeat: repeat;
    background-attachment: fixed;
    background-position: center center;
    color: #fff;
    padding: 60px 0 20px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.site-info {
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 14px;
    color: #aaa;
}

.site-info a {
    color: #fff;
}

/* Responsive adjustments (merged into 770px query) */
@media (max-width: 768px) {

    /* Grid adjustments only - header moved to 770px query */
    .grid-2-col,
    .grid-3-col,
    .intro-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PAGE & BLOG LAYOUTS
   ========================================= */

/* Hero Title Section for Pages */
.page-hero {
    background-color: #000;
    background-image: url('images/signage_montage_banner.png');
    height: 150px;
    margin-top: 165px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1020px;
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    text-align: left;
    border-radius: 5px;
}

.page-title {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

.featured-image-box {
    background: #fff;
    padding: 5px;
    border-radius: 15px;
    /* Curved white box */
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-image-box img {
    border-radius: 10px;
    /* Inner curve */
    display: block;
    width: 100%;
    height: auto;
}



.page-hero .container {
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
}

.page-hero .entry-meta {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .page-hero .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-hero .entry-meta {
        margin-top: 20px;
    }
}

.page-header {
    margin-top: 145px;
    padding: 90px 0 0px;
}

/* Page Grid (Sidebar Layout) */
.page-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.content-box,
.sidebar-box .widget {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    /* Curved corners */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    /* Shadow */
    margin-bottom: 30px;
}

.sidebar-box {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.sidebar-box .widget {
    background: #fff;
    color: #424242;
    border-bottom: 3px solid var(--color-highlight-1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.widget a {
    color: #424242;
}

.widget a:hover {
    color: var(--color-highlight-1);
}

.white-link {
    color: #424242;
}

.white-link:hover {
    color: var(--color-highlight-1);
}

/* Custom Recent Posts Widget */
.ps-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ps-recent-post-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.ps-recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rp-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--color-highlight-2);
}

.rp-content {
    flex: 1;
}

.rp-title {
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.rp-title a {
    color: #333;
    text-decoration: none;
}

.rp-title a:hover {
    color: var(--color-highlight-1);
}

.rp-excerpt {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* .rp-read-more replaced by generic .read-more or styled similarly */
.rp-read-more {
    font-size: 12px;
    font-weight: bold;
    color: #333 !important;
    /* Force dark grey */
    text-transform: uppercase;
    background: var(--color-highlight-1);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.rp-read-more:hover {
    background: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #333;
}

/* Quote CTA Widget */
.cta-box-widget {
    background: var(--color-highlight-1);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-box-widget h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    /* Ensure contrast */
    border-bottom: none;
    /* Override default widget title style if any */
}

.cta-box-widget p {
    margin-bottom: 20px;
}

.cta-box-widget .btn {
    background: #383D41;
    color: #fff;
    width: 100%;
    /* Full width button in sidebar looks good */
    display: block;
}

.cta-box-widget .btn:hover {
    background: #fff;
    color: #333;
    border: 1px solid #333;
}

/* Contact Page specific */
.tab-btn {
    background-color: #f1f1f1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 17px;
    width: 49%;
    font-weight: bold;
}

.tab-btn.active {
    background-color: var(--color-highlight-2);
    color: #fff;
}

.tab-content {
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
    background: #fff;
}

.ps-contact-form input,
.ps-contact-form textarea,
.ps-contact-form select,
.ps-quote-form input,
.ps-quote-form textarea,
.ps-quote-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Map Embed */
/* Map Embed & Contact Layout */
.contact-info-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.map-embed {
    margin-top: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    /* Fill height if possible, or fixed height from iframe */
}

@media (max-width: 600px) {
    .contact-info-inner {
        grid-template-columns: 1fr;
    }
}

/* Blog Archive List */
.archive-post-card {
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    /* Full padding for card look */
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    /* Shadow like content-box */
    border-bottom: 3px solid var(--color-highlight-1);
}

.archive-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    /* Slightly smaller radius */
    margin-bottom: 15px;
}

/* Single Post */
.single-post-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--color-highlight-1);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


.single-featured-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cat-links {
    display: block;
    margin-bottom: 0;
    /* Adjusted since it's in Hero now */
    font-size: 0.9em;
    color: var(--color-main-bg);
    background: #A5FF87;
    /* High contrast against dark hero? Or just text. */
    /* Wait, the hero text is white. The cat-links are inside entry-meta text-white. 
       Let's visually style them as tags. */
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.cat-links a {
    color: inherit;
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}

.nav-title {
    font-weight: bold;
    font-family: var(--font-heading);
}

.entry-footer {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    width: 48%;
    /* Ensure they take up roughly half or wrap if needed */
    flex: 1;
}

.post-navigation .nav-next {
    text-align: right;
}

@media (max-width: 600px) {
    .post-navigation .nav-links {
        flex-direction: column;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Pagination */
.ps-custom-pagination {
    margin: 20px 0;
    font-weight: 600;
}

.ps-custom-pagination a {
    color: #fff;
    text-decoration: underline;
}

.ps-custom-pagination a:hover {
    color: var(--color-highlight-1);
    text-decoration: none;
}

.ps-custom-pagination .page-count {
    margin-right: 5px;
}

/* =========================================
   SERVICES PAGE ENHANCEMENTS
   ========================================= */

/* Service Card Image Interaction */
.service-card .service-image {
    cursor: pointer;
    position: relative;
}

.service-card .service-image::after {
    content: '\f00e';
    /* Search/Zoom icon approximation or simple overlay text */
    /* Since we don't have FontAwesome loaded reliably, we'll use a simple CSS shape or text + */
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.service-card .service-image:hover::after {
    opacity: 1;
}

.service-card .service-image:hover img {
    opacity: 0.8;
}

/* Service Image Modal */
#service-image-modal .modal-content {
    width: auto;
    max-width: 700px;
    /* Fit 600px image + padding */
    text-align: center;
    padding: 20px;
}

#service-image-modal-img {
    width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: inline-block;
}

#service-image-modal-title {
    font-family: var(--font-heading);
    color: #333;
    font-size: 24px;
    margin-bottom: 0;
    margin-top: 10px;
    display: block;
    width: 100%;
}

.close-service-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #aeaeae;
    cursor: pointer;
    line-height: 1;
    z-index: 100;
}

.close-service-modal:hover {
    color: #333;
}

/* Button override for cards */
.service-card .btn.open-quote-modal-trigger {
    margin-top: 15px;
    width: 100%;
}

/* =========================================
   GLOBAL GALLERY LIGHTBOX
   ========================================= */
#ps-gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    /* Higher than header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent body scroll if possible, or handle in JS */
    background-color: rgba(0, 0, 0, 0.85);
    /* Darker background */
    backdrop-filter: blur(5px);
}

#ps-gallery-modal .modal-content-gallery {
    /* Custom content wrapper for gallery to avoid .modal-content styles */
    background-color: transparent;
    margin: 0;
    padding: 0;
    border: none;
    width: 100%;
    height: 100%;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#ps-gallery-modal img {
    /* RESET width to allow wrapper to shrink-wrap */
    width: auto;
    max-width: 100%;
    /* Relative to wrapper now */
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 5px solid #fff;
    /* Nice photo border */
    object-fit: contain;
    position: relative;
    display: block;
    margin: 0 auto;
}



.gallery-image-wrapper {
    position: relative;
    display: inline-block;
    /* Keeps it tight to content */
    /* Ensure it doesn't exceed screen but allows shrink */
    max-width: 90%;
    max-height: 90vh;
    /* Flex item default stretch might be issue if parent is flex center */
}

/* Ensure flex parent doesn't force width */
#ps-gallery-modal .modal-content-gallery {
    /* ... existing styles ... */
    /* Ensure child wrapper isn't stretched */
    align-items: center;
    justify-content: center;
}

#ps-gallery-modal .close-gallery-modal {
    color: #fff;
    position: absolute;
    top: -30px;
    /* Half in, half out */
    right: -30px;
    background: #000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 55px;
    /* slight adjustment for vertical center */
    font-size: 40px;
    font-weight: bold;
    border: 3px solid #fff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    opacity: 1;
    /* Always visible */
    transition: transform 0.2s;
}

#ps-gallery-modal .close-gallery-modal:hover {
    transform: scale(1.1);
    background: var(--color-highlight-1);
    color: #000;
}