/* Reset only for Piccaso header components */
.pic-header-wrapper *,
.pic-top-bar-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --piccaso-black: #2A2A2A;
    --piccaso-lime: #BADA09;
    --piccaso-white: #FFFFFF;
    --piccaso-gray: #F5F5F5;
    --piccaso-teal: #1a8da0;
    --piccaso-teal-hover: #146d7c;
}

/* Encapsulate header styles in wrapper to prevent conflicts */
.pic-header-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Top bar for contact and social info */
.pic-top-bar-wrapper {
    width: 100%;
    position: relative;
    z-index: 1001;
}

.pic-top-bar {
    background-color: var(--piccaso-gray);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    transition: all 0.3s ease;
    height: 50px;
}

/* Modified top bar in scrolled state */
.pic-top-bar.pic-scrolled {
    height: 40px;
    padding: 5px 40px;
}

.pic-contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.pic-contact-info a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--piccaso-black);
    font-weight: 600;
    margin-right: 20px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.pic-contact-info a:hover {
    color: var(--piccaso-lime);
}

.pic-contact-info i {
    font-size: 16px;
    margin-right: 8px;
    color: var(--piccaso-lime);
}

.pic-social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pic-social-icons a {
    color: var(--piccaso-black);
    font-size: 16px;
    transition: all 0.3s ease;
}

.pic-social-icons a:hover {
    color: var(--piccaso-lime);
    transform: translateY(-2px);
}

/* Main header */
.pic-header {
    background: var(--piccaso-white);
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    height: 110px;
    transition: all 0.3s ease;
    margin-top: 0;
}

/* Sticky header effect */
.pic-header.pic-scrolled {
    height: 80px;
}

.pic-logo-container {
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 60px; /* Ensure minimum width for logo container */
    flex-grow: 1; /* Allow logo container to grow */
    max-width: 50%; /* Limit max width on large screens */
}

.pic-logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

/* Increased logo size */
.pic-logo img {
    max-height: 100px; /* Increased from 80px */
    min-height: 60px; /* Increased from 50px */
    width: auto;
    transition: all 0.3s ease;
    padding: 6px 0; /* Slightly reduced padding to give more room for the logo */
    object-fit: contain; /* Ensure the logo maintains its aspect ratio */
    max-width: 100%; /* Prevent logo from overflowing its container */
}

.pic-header.pic-scrolled .pic-logo img {
    max-height: 75px; /* Increased from 65px */
    min-height: 55px;
}

.pic-brand-text {
    margin-left: 15px;
    transition: all 0.3s ease;
}

.pic-brand-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--piccaso-black);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.pic-tagline {
    font-size: 16px;
    color: var(--piccaso-black);
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    
}
.temp{
    color:var(--piccaso-black)
}
.temp:hover{
    color: #BADA09;
}

.pic-main-nav {
    display: flex;
    align-items: center;
}

.pic-nav-menu {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pic-nav-menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

.pic-nav-menu a {
    text-decoration: none;
    color: var(--piccaso-black);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin: 0;
}

.pic-nav-menu a:hover {
    color: var(--piccaso-lime);
}

/* Active page indicator */
.pic-nav-menu a.pic-active {
    color: var(--piccaso-lime);
}

/* Products Dropdown Styles */
.pic-nav-menu li.pic-has-dropdown {
    position: relative;
}

.pic-nav-menu li.pic-has-dropdown > a::after {
    content: '\f107'; /* Font Awesome dropdown icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.pic-nav-menu li.pic-has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.pic-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--piccaso-white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
    z-index: 1002;
    padding: 10px 0;
    border-top: 3px solid var(--piccaso-lime);
}

.pic-nav-menu li.pic-has-dropdown:hover .pic-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pic-dropdown li {
    width: 100%;
}

.pic-dropdown a {
    padding: 8px 16px;
    border-radius: 0;
    text-transform: none;
    font-weight: 500;
    font-size: 13px;
    display: block;
    border-left: 3px solid transparent;
}

.pic-dropdown a:hover {
    background-color: var(--piccaso-gray);
    border-left: 3px solid var(--piccaso-lime);
}

/* Enquiry button */
.pic-enquiry-btn {
    margin-left: 20px;
    background-color: var(--piccaso-teal);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}

.pic-enquiry-btn:hover {
    background-color: var(--piccaso-teal-hover);
}

.pic-search-container {
    position: relative;
    margin-left: 20px;
}

.pic-search-bar {
    display: flex;
    align-items: center;
    background: var(--piccaso-gray);
    border-radius: 4px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    width: 220px;
    transition: all 0.3s ease;
}

.pic-search-bar:focus-within {
    box-shadow: 0 0 8px rgba(186, 218, 9, 0.5);
    border-color: var(--piccaso-lime);
}

.pic-search-bar input {
    border: none;
    background: none;
    padding: 4px 8px;
    outline: none;
    width: 100%;
    color: var(--piccaso-black);
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pic-search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--piccaso-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.pic-search-bar button:hover {
    transform: scale(1.1);
    color: var(--piccaso-black);
}

.pic-hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 12px;
    z-index: 1001;
}

.pic-hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--piccaso-black);
    margin: 5px 0;
    transition: all 0.4s ease;
}

.pic-hamburger.pic-active span {
    background: var(--piccaso-lime);
}

/* Spacer to push content below fixed header */
.pic-header-spacer {
    height: 160px;
    width: 100%;
}

/* Mobile dropdown toggle button */
.pic-dropdown-toggle {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--piccaso-black);
    font-size: 14px;
    text-align: center;
    z-index: 2;
}

.pic-dropdown-toggle i {
    transition: transform 0.3s ease;
}

.pic-dropdown-toggle.pic-active i {
    transform: rotate(180deg);
    color: var(--piccaso-lime);
}

/* Responsive Styles */
/* Desktop (1200px) */
@media (max-width: 1200px) {
    .pic-search-container {
        margin-left: 10px;
    }
    
    .pic-search-bar {
        width: 180px;
    }
    
    .pic-nav-menu a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .pic-enquiry-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .pic-logo img {
        max-height: 90px; /* Slightly reduced from default but still larger than original */
    }
    
    .pic-dropdown {
        min-width: 200px;
    }
    
    .pic-top-bar.pic-scrolled {
        padding: 5px 30px;
    }
}

/* Desktop (1024px) */
@media (max-width: 1024px) {
    .pic-header-spacer {
        height: 145px;
    }

    .pic-header {
        height: 95px;
        padding: 0 20px;
    }

    .pic-top-bar {
        padding: 8px 20px;
        height: 45px;
    }
    
    .pic-top-bar.pic-scrolled {
        height: 35px;
        padding: 5px 20px;
    }

    .pic-header.pic-scrolled {
        height: 75px;
    }

    .pic-logo img {
        max-height: 85px; /* Increased from 75px */
        min-height: 55px; /* Increased from original */
        padding: 5px 0;
    }

    .pic-header.pic-scrolled .pic-logo img {
        max-height: 70px; /* Increased from 65px */
    }

    .pic-brand-name {
        font-size: 24px;
    }

    .pic-tagline {
        font-size: 14px;
    }

    .pic-search-bar {
        width: 160px;
    }

    .pic-nav-menu {
        gap: 0;
    }

    .pic-nav-menu a {
        padding: 8px 10px;
        font-size: 12px;
    }

    .pic-enquiry-btn {
        padding: 8px 12px;
        font-size: 12px;
        margin-left: 10px;
    }

    .pic-contact-info a {
        font-size: 13px;
        margin-right: 15px;
    }

    .pic-social-icons {
        gap: 10px;
    }
    
    .pic-dropdown {
        min-width: 180px;
    }
}

/* Tablet (768px) */
@media (max-width: 768px) {
    .pic-header-spacer {
        height: 135px;
    }

    .pic-top-bar {
        padding: 6px 15px;
        height: 42px;
    }
    
    .pic-top-bar.pic-scrolled {
        height: 35px;
        padding: 4px 15px;
    }

    .pic-header {
        height: 90px;
        padding: 0 15px;
    }

    .pic-header.pic-scrolled {
        height: 70px;
    }

    /* Increased logo size for tablets */
    .pic-logo-container {
        flex: 1;
        max-width: 75%;
    }

    .pic-logo img {
        max-height: 80px; /* Increased from 70px */
        min-height: 55px; /* Increased from 45px */
        padding: 4px 0;
    }

    .pic-header.pic-scrolled .pic-logo img {
        max-height: 65px; /* Increased from 60px */
    }

    .pic-brand-name {
        font-size: 20px;
    }

    .pic-tagline {
        font-size: 12px;
    }

    .pic-hamburger {
        display: block;
    }

    .pic-main-nav {
        position: fixed;
        top: 132px; /* Combined height of header (90px) + topbar (42px) */
        right: -100%;
        height: calc(100vh - 132px);
        width: 280px;
        background: var(--piccaso-white);
        flex-direction: column;
        padding: 20px;
        transition: 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
        gap: 25px;
        overflow-y: auto;
        align-items: flex-start;
        z-index: 999;
    }

    .pic-header.pic-scrolled .pic-main-nav {
        top: 105px; /* Combined height of scrolled header (70px) + scrolled topbar (35px) */
        height: calc(100vh - 105px);
    }

    .pic-main-nav.pic-active {
        right: 0;
    }

    .pic-search-container {
        width: 100%;
        margin-left: 0;
        margin-bottom: 15px;
    }

    .pic-search-bar {
        width: 100%;
    }

    .pic-nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }

    .pic-nav-menu a {
        display: block;
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    /* Mobile dropdown */
    .pic-nav-menu li.pic-has-dropdown > a::after {
        content: '';
    }
    
    .pic-dropdown-toggle {
        display: block;
    }
    
    .pic-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        border-top: none;
        width: 100%;
        background-color: var(--piccaso-gray);
    }
    
    .pic-dropdown.pic-active {
        max-height: 400px;
    }
    
    .pic-dropdown a {
        padding: 10px 20px;
        font-size: 13px;
    }

    .pic-enquiry-btn {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    /* Hamburger Animation */
    .pic-hamburger.pic-active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .pic-hamburger.pic-active span:nth-child(2) {
        opacity: 0;
    }

    .pic-hamburger.pic-active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Make contact info visible on tablet */
    .pic-contact-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .pic-contact-info a {
        font-size: 13px;
        margin-right: 12px;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .pic-header-spacer {
        height: 125px;
    }
    
    .pic-top-bar.pic-scrolled {
        height: 30px;
        padding: 3px 8px;
    }

    .pic-main-nav {
        top: 125px; /* Combined height of header and top bar */
        width: 100%;
        height: calc(100vh - 125px);
    }

    .pic-header.pic-scrolled .pic-main-nav {
        top: 95px; /* Combined height of scrolled header and scrolled top bar */
        height: calc(100vh - 95px);
    }

    /* Significantly increased logo size for mobile */
    .pic-logo-container {
        max-width: 80%;
        justify-content: flex-start;
    }

    .pic-logo {
        height: 100%;
    }

    .pic-logo img {
        max-height: 75px; /* Significantly increased from 60px */
        min-height: 50px; /* Increased from 40px */
        padding: 3px 0;
    }

    .pic-header.pic-scrolled .pic-logo img {
        max-height: 60px; /* Increased from 50px */
    }

    .pic-brand-text {
        margin-left: 10px;
    }

    .pic-brand-name {
        font-size: 18px;
        line-height: 1.2;
    }

    .pic-tagline {
        font-size: 11px;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pic-nav-menu a {
        padding: 10px;
        font-size: 14px;
    }

    .pic-enquiry-btn {
        padding: 10px;
    }

    .pic-social-icons {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .pic-social-icons a {
        font-size: 16px;
    }

    /* Adjust search for mobile */
    .pic-search-container {
        margin-bottom: 10px;
    }

    .pic-search-bar {
        padding: 5px 10px;
    }

    .pic-search-bar input {
        font-size: 13px;
    }
    
    /* Adjust header height for larger logo */
    .pic-header {
        height: 95px;
    }
}

/* Extra Small Mobile (375px) */
@media (max-width: 375px) {
    .pic-header-spacer {
        height: 120px;
    }

    .pic-top-bar {
        height: 40px;
        padding: 5px 8px;
    }
    
    .pic-top-bar.pic-scrolled {
        height: 30px;
        padding: 3px 8px;
    }

    .pic-header {
        height: 80px; /* Increased from 75px to accommodate larger logo */
        padding: 0 10px;
    }

    .pic-header.pic-scrolled {
        height: 65px; /* Increased from 60px */
    }

    /* Even larger logo for smallest screens */
    .pic-logo-container {
        max-width: 85%;
    }

    .pic-logo img {
        max-height: 70px; /* Significantly increased from 55px */
        min-height: 45px; /* Increased from 40px */
        padding: 2px 0; /* Reduced padding to give more room for logo */
    }

    .pic-header.pic-scrolled .pic-logo img {
        max-height: 55px; /* Increased from 45px */
    }

    .pic-brand-name {
        font-size: 16px;
    }

    .pic-tagline {
        display: block; /* Show tagline but control its display */
        font-size: 10px;
        max-width: 120px;
    }

    .pic-main-nav {
        top: 120px; /* Combined height of header and top bar */
        height: calc(100vh - 120px);
    }

    .pic-header.pic-scrolled .pic-main-nav {
        top: 95px; /* Combined height of scrolled header and scrolled top bar */
        height: calc(100vh - 95px);
    }
    
    /* Ensure hamburger button doesn't overlap logo */
    .pic-hamburger {
        padding: 10px 8px;
    }
}