/*
Theme Name: Plasto Modern Lightweight
Theme URI: https://systron.net
Author: Systron WordPress Development Team
Author URI: https://systron.net
Description: A custom, ultra-fast, visually cohesive WordPress theme for Plasto. Built without heavy page builders, utilizing ACF Pro for backend management, and fully responsive.
Version: 1.0.0
Text Domain: plasto
*/

/* --- CSS Variables for Brand Colors & Typography --- */
:root {
    /* Brand Palette */
    --plasto-blue: #0A3161;
    --plasto-red: #E31837;
    --plasto-gold: #FFC107;
    --plasto-white: #FFFFFF;
    --plasto-bg-light: #F8F9FA;
    --plasto-text-dark: #333333;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* Base Reset & Typography Setup */
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--plasto-text-dark);
    background-color: var(--plasto-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--plasto-blue);
    font-weight: 700;
}

/* ==========================================================================
   Base Layout & Utilities
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Primary Call to Action Button */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--plasto-red);
    color: var(--plasto-white);
}

.btn-primary:hover {
    background-color: #c1122a; /* Deeper shade for hover state */
    color: var(--plasto-white);
}

/* ==========================================================================
   Header Styles (Sticky & Responsive)
   ========================================================================== */
.site-header {
    background-color: var(--plasto-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-width: 160px;
    height: auto;
    display: block;
}

/* Desktop Navigation */
/* ==========================================================================
   Desktop Navigation (Modern Elliptical Aesthetics)
   ========================================================================== */
/* ==========================================================================
   Desktop Navigation (Floating White Pill Dock)
   ========================================================================== */
/* 1. The Entire Menu Container Pill */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 6px 8px; /* Creates the space inside the outer pill */
    background-color: var(--plasto-white); /* White BG for the dock */
    border: 1px solid rgba(10, 49, 97, 0.1); /* Very subtle blue border */
    border-radius: 50px; /* Turns the entire menu division into a pill */
    display: flex;
    gap: 2px; /* Tighter gap so the inner pills flow smoothly */
    align-items: center;
    box-shadow: 0 4px 15px rgba(10, 49, 97, 0.08); /* Soft blue shadow to lift it off the header */
}

/* 2. Base Inner Link Styling */
.nav-menu > li > a {
    text-decoration: none;
    color: var(--plasto-blue);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 24px; 
    border-radius: 50px; /* Inner pill shape */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
}

/* 3. Hover State (Soft Blue Pill) */
.nav-menu > li > a:hover {
    background-color: rgba(10, 49, 97, 0.08); 
    color: var(--plasto-blue);
    transform: translateY(-1px); /* Very subtle lift inside the dock */
}

/* 4. Active Page State (Solid Blue Pill) */
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-page-ancestor > a {
    background-color: var(--plasto-blue);
    color: var(--plasto-white);
    box-shadow: 0 3px 8px rgba(10, 49, 97, 0.25);
}

/* Keep active state solid on hover */
.nav-menu > li.current-menu-item > a:hover {
    background-color: var(--plasto-blue);
    color: var(--plasto-gold); /* Fun pop of gold on hover */
    transform: none;
}

/* ==========================================================================
   Desktop Sub-Menu (Dropdown) Styles
   ========================================================================== */
.nav-menu li {
    position: relative; /* Needed to position the dropdown */
}

/* Add a tiny downward arrow to links that have sub-menus */
.nav-menu .menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 10px;
    vertical-align: middle;
    margin-left: 5px;
    opacity: 0.7;
}

/* The Dropdown Container */
.nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background-color: var(--plasto-white);
    min-width: 240px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 3px solid var(--plasto-red);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    z-index: 999;
}

/* Show the Dropdown on Hover */
.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Links */
.nav-menu .sub-menu li {
    width: 100%;
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--plasto-text-dark);
    transition: background 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.nav-menu .sub-menu li a:hover {
    background-color: var(--plasto-bg-light);
    color: var(--plasto-red);
    padding-left: 25px; /* Slight indent animation on hover */
}
/* Sub-Menu Active & Hover Refinements */
.nav-menu .sub-menu li a {
    border-radius: 6px; /* Soft square corners inside the dropdown */
    margin: 0 10px; /* Keep links from touching the very edge of the dropdown box */
    width: calc(100% - 20px);
}

.nav-menu .sub-menu li.current-menu-item > a {
    background-color: var(--plasto-bg-light);
    color: var(--plasto-red);
    font-weight: 700;
    border-left: 3px solid var(--plasto-red);
}
/* Header Actions & Mobile Toggle */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--plasto-blue);
    border-radius: 2px;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
    background-color: var(--plasto-blue);
    color: var(--plasto-white);
    padding: 60px 0 20px;
    margin-top: auto; /* Pushes footer to bottom if content is short */
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.brand-column p {
    color: var(--plasto-bg-light);
    line-height: 1.6;
}

.footer-heading {
    color: var(--plasto-gold);
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-nav, .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li, .contact-list li {
    margin-bottom: 12px;
}

.footer-nav li a, .contact-list li a {
    color: var(--plasto-bg-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

.footer-nav li a:hover, .contact-list li a:hover {
    color: var(--plasto-gold);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 14px;
    color: #a0aabf;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 991px) {
    .desktop-only { 
        display: none; 
    }
    .mobile-menu-toggle { 
        display: flex; 
    }
    .header-actions .btn {
        display: none; /* Hide primary button on very small screens to save space */
    }
	/* Mobile Sub-Menu Formatting */
    .primary-navigation.is-active .nav-menu .sub-menu {
        position: static; /* Remove absolute positioning for mobile */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background-color: var(--plasto-bg-light);
        margin: 5px 0 10px 0;
        padding: 5px 0 5px 20px; /* Indent the sub-menu */
        border-left: 2px solid var(--plasto-red);
        display: block;
    }

    .primary-navigation.is-active .nav-menu .sub-menu li a {
        font-size: 15px;
        padding: 8px 0;
        border-bottom: none;
    }
    
    .primary-navigation.is-active .nav-menu .menu-item-has-children > a::after {
        content: ''; /* Hide the downward arrow on mobile to keep it clean */
    }
}
/* ==========================================================================
   Homepage Specific Styles
   ========================================================================== */

/* Utility Classes */
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.section-title { font-size: 36px; margin-bottom: 10px; }
.section-subtitle { font-size: 18px; color: #555; max-width: 700px; margin: 0 auto; }
.text-link { color: var(--plasto-blue); font-weight: bold; text-decoration: none; }
.text-link:hover { color: var(--plasto-red); }

/* Outline Button */
.btn-outline {
    background-color: transparent;
    color: var(--plasto-blue);
    border: 2px solid var(--plasto-blue);
}
.btn-outline:hover {
    background-color: var(--plasto-blue);
    color: var(--plasto-white);
}

/* Grids */
.grid-4-col, .grid-3-col {
    display: grid;
    gap: 30px;
}
.grid-4-col { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3-col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--plasto-blue) 0%, #1a4985 100%);
    color: var(--plasto-white);
    padding: 80px 0;
    overflow: hidden;
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-content { flex: 1; }
.hero-content h1 {
    color: var(--plasto-white);
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--plasto-bg-light);
}
.hero-buttons { display: flex; gap: 15px; }
.hero-buttons .btn-outline {
    border-color: var(--plasto-white);
    color: var(--plasto-white);
}
.hero-buttons .btn-outline:hover {
    background-color: var(--plasto-white);
    color: var(--plasto-blue);
}
.hero-image {
    flex: 1;
    text-align: center;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.3));
}
/* Hero Slider Functionality */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    display: none;
    animation: fadeEffect 0.8s ease-in-out;
}

.hero-slide.active {
    display: block;
}

@keyframes fadeEffect {
    from { opacity: 0.4; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* Let clicks pass through the container */
    z-index: 10;
}

.slide-arrow {
    pointer-events: auto; /* Re-enable clicks on the buttons */
    background: rgba(255, 255, 255, 0.1);
    color: var(--plasto-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slide-arrow:hover {
    background: var(--plasto-red);
    border-color: var(--plasto-red);
}

@media (max-width: 768px) {
    .slider-controls { display: none; /* Hide arrows on mobile for a cleaner look */ }
}

/* Feature & Category Cards */
.feature-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--plasto-blue);
}
.category-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--plasto-red);
}
.category-card:hover { transform: translateY(-5px); }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-content h1 { font-size: 36px; }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 991px) {
    /* Hide the default desktop menu layout */
    .primary-navigation.desktop-only { 
        display: none; 
    }
    
    /* Show mobile hamburger toggle */
    .mobile-menu-toggle { 
        display: flex; 
    }
    
    /* Hide primary button on very small screens to save space */
    .header-actions .btn {
        display: none; 
    }

    /* Mobile Menu Dropdown State (Triggered by JS) */
    .primary-navigation.desktop-only.is-active {
        display: block;
        position: absolute;
        top: 100%; /* Pushes it directly below the header */
        left: 0;
        width: 100%;
        background-color: var(--plasto-white);
        padding: 20px;
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }

    /* Stack the menu links vertically on mobile */
    .primary-navigation.is-active .nav-menu {
        flex-direction: column;
        gap: 15px;
        text-align: left;
    }

    .primary-navigation.is-active .nav-menu li a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #f5f5f5;
        font-size: 18px;
    }
}
/* ==========================================================================
   New Homepage Sections (Cards, About, Why Us, FAQ)
   ========================================================================== */

/* Utility */
.mb-30 { margin-bottom: 30px; }
.grid-2-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

/* 1. Four Info Cards */
.info-card {
    background: var(--plasto-white);
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-top: 4px solid var(--plasto-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-top-color: var(--plasto-gold);
}
.card-title {
    color: var(--plasto-blue);
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
}
.info-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* 2. Split Layouts (About & Why Choose Us) */
.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}
.split-image { flex: 1; }
.split-image img { max-width: 100%; height: auto; display: block; }
.split-content { flex: 1; }

.why-box {
    background: var(--plasto-bg-light);
    padding: 20px;
    border-radius: 6px;
    border-left: 3px solid var(--plasto-red);
}
.why-box h4 { margin-top: 0; margin-bottom: 8px; font-size: 18px; }
.why-box p { margin: 0; font-size: 14px; color: #555; }

/* 3. FAQ Native Accordion  */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--plasto-white);
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}
.faq-item summary {
    padding: 20px;
    font-weight: 700;
    color: var(--plasto-blue);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 18px;
    list-style: none; /* Hides default arrow in some browsers */
    position: relative;
}
/* Custom Accordion Arrow */
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--plasto-red);
}
.faq-item[open] summary::after {
    content: "−"; /* Minus sign when open */
}
/* Hide default details marker */
.faq-item summary::-webkit-details-marker { display: none; }

.faq-content {
    padding: 0 20px 20px;
    color: #555;
    line-height: 1.6;
}
.faq-content p { margin: 0; }

/* Responsive Overrides */
@media (max-width: 991px) {
    .split-layout { flex-direction: column; text-align: center; }
    .reverse-on-mobile { flex-direction: column-reverse; }
    .why-box { text-align: left; }
}