/*
Theme Name: Pracbill
Theme URI: https://pracbill.com.au
Author: Pracbill
Author URI: https://pracbill.com.au
Description: A modern WordPress theme inspired by aircall.io with Pracbill's brand colors
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pracbill
*/


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1E3A8A;  /* Deep blue from Pracbill logo */
    --secondary-blue: #3B82F6; /* Lighter blue accent */
    --dark-grey: #1F2937;     /* Dark grey for text */
    --light-grey: #F3F4F6;    /* Light grey for backgrounds */
    --white: #FFFFFF;
    --top-bar-bg: #1F2937;    /* Dark background for top bar */
    --top-bar-text: #F3F4F6;  /* Light text for top bar */
    --title-font-weight: 600;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--dark-grey);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Styles */
.site-branding {
    display: flex;
    align-items: center;
    /* background-color: var(--white); */
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}

.custom-logo {
    max-height: 40px;
    width: auto;
    display: block;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: var(--dark-grey);
    text-decoration: none;
    font-weight: 600;
}

/* Top Bar Styles */
.top-bar {
    background-color: var(--top-bar-bg);
    color: var(--top-bar-text);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-bar-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-nav-links > a {
    margin: 0 1rem;
}

.top-bar a {
    color: var(--top-bar-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--secondary-blue);
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* Header Styles */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px;
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-menu-items {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-items li {
    margin: 0 1rem;
    position: relative;
}

.nav-menu a {
    color: var(--dark-grey);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    display: block;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

/* Dropdown Menu Styles */
.nav-menu-items .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    list-style: none;
    margin-top: 1rem;
}

/* Triangle pointer */
.nav-menu-items .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--white);
    box-shadow: -2px -2px 5px rgba(0,0,0,0.05);
}

.nav-menu-items li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-menu-items .sub-menu li {
    margin: 0;
    position: relative;
    list-style: none;
}

.nav-menu-items .sub-menu a {
    padding: 0.75rem 1.5rem;
    color: var(--dark-grey);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
}

.nav-menu-items .sub-menu a:hover {
    background-color: var(--light-grey);
    color: var(--primary-blue);
    padding-left: 2rem;
}

/* Dropdown Arrow */
.nav-menu-items .menu-item-has-children > a {
    position: relative;
    padding-right: 2.2rem;
}

.nav-menu-items .menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--dark-grey);
    border-bottom: 2px solid var(--dark-grey);
    border-left: none;
    border-top: none;
    background: none;
    transition: none;
    display: inline-block;
    pointer-events: none;
    margin-left: 0.5em;
}

.nav-menu-items .menu-item-has-children:hover > a::after {
    /* No rotation or color change on hover */
    transform: translateY(-50%) rotate(45deg);
    border-right: 2px solid var(--dark-grey);
    border-bottom: 2px solid var(--dark-grey);
}

/* Hero Section */
.hero {
    background-color: var(--light-grey);
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 80px; /* Account for fixed header */
}

h1 {
    font-size: 3.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--secondary-blue);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

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

/* Features Section */
.features {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-grey);
    padding: 4rem 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

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

/* Footer */
.site-footer {
    background-color: var(--dark-grey);
    color: var(--white);
    padding: 4rem 0;
    margin-top: 20px;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--light-grey);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-blue);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Logo Styles */
.footer-logo {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 10px;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* Footer Menu Styles */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--secondary-blue);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-menu-items {
        display: none;
        position: fixed;
        top: 115px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu-items.active {
        display: block;
        top: 115px; /* Increased from 80px to 115px to move it 35px lower */
    }

    .nav-menu-items ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu-items li {
        width: 100%;
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .nav-menu-items li:last-child {
        border-bottom: none;
    }

    .nav-menu-items a {
        display: block;
        padding: 10px 0;
        color: #333;
        font-size: 16px;
    }

    .menu-item-has-children > a {
        position: relative;
        padding-right: 30px;
    }

    .dropdown-arrow {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
    }

    .dropdown-arrow::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
        width: 8px;
        height: 8px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
    }

    .dropdown-arrow.active {
        transform: translateY(-50%) rotate(180deg);
    }

    .sub-menu {
        display: none;
        position: static;
        width: 100%;
        padding: 0;
        margin: 0;
        background: #f8f8f8;
        box-shadow: none;
        border-radius: 0;
    }

    .sub-menu.active {
        display: block;
    }

    .sub-menu li {
        padding: 8px 20px;
        border-bottom: 1px solid #eee;
    }

    .sub-menu li:last-child {
        border-bottom: none;
    }

    .sub-menu a {
        color: #666;
        font-size: 14px;
    }

    .sub-menu a:hover {
        color: var(--primary-blue);
    }

    .top-bar-content {
        flex-direction: column;
        align-items: flex-end;
        margin-right: 2rem;
    }
    .top-bar-nav-link {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--dark-grey);
        margin: 5px 0;
        transition: 0.3s;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Main Content Area */
.site-main {
    /* padding-top: 80px; This should match the header height */
    min-height: calc(100vh - 80px);
}

/* Theme Screenshot Styles */
.screenshot-container {
    position: relative;
    width: 1200px;
    height: 900px;
    background-color: var(--white);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.screenshot-header {
    background-color: var(--dark-grey);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.screenshot-logo {
    background-color: var(--white);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.screenshot-logo img {
    max-height: 40px;
    width: auto;
}

.screenshot-nav {
    display: flex;
    gap: 2rem;
}

.screenshot-nav a {
    color: var(--light-grey);
    text-decoration: none;
    font-weight: 500;
}

.screenshot-hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 6rem 2rem;
    text-align: center;
    color: var(--white);
}

.screenshot-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.screenshot-hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.screenshot-features {
    padding: 4rem 2rem;
    background-color: var(--light-grey);
}

.screenshot-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-feature {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.screenshot-feature h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.screenshot-footer {
    background-color: var(--dark-grey);
    color: var(--light-grey);
    padding: 4rem 2rem;
    margin-top: auto;
}

.screenshot-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.screenshot-footer-logo {
    background-color: var(--white);
    padding: 0.5rem;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.screenshot-footer-logo img {
    max-height: 40px;
    width: auto;
}

.screenshot-footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.screenshot-footer-section a {
    color: var(--light-grey);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.screenshot-footer-section a:hover {
    color: var(--secondary-blue);
}

/* Responsive adjustments for screenshot */
@media (max-width: 768px) {
    .screenshot-container {
        width: 100%;
        height: auto;
    }

    .screenshot-feature-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-footer-content {
        grid-template-columns: 1fr;
    }
}

/* Single Product Styles */
.single-product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.product-breadcrumbs {
    margin-bottom: 2rem;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}


.product-left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-right-column .product-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-right-column .product-title {
    font-size: 2rem;
    margin: 0;
    color: var(--dark-grey);
}

.product-right-column .product-category {
    margin: 0;
    color: var(--dark-grey);
}

.product-right-column .product-cta {
    margin: 0;
}

.product-right-column .product-short-description {
    margin: 0;
    color: var(--dark-grey);
    line-height: 1.6;
}

.product-right-column .product-links {
    margin: 0;
}

.product-right-column .product-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-right-column .product-links-list li {
    margin-bottom: 0.75rem;
}

.product-right-column .product-links-list a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-right-column .product-links-list a:hover {
    color: var(--secondary-blue);
}

.product-gallery {
    position: relative;
    width: 100%;
}

.product-gallery .woocommerce-product-gallery__image {
    margin-bottom: 1rem;
}

.product-gallery .flex-control-thumbs {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.product-gallery .flex-control-thumbs li {
    flex: 0 0 80px;
    cursor: pointer;
}

.product-gallery .flex-control-thumbs img {
    width: 100%;
    height: auto;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.product-gallery .flex-control-thumbs img:hover,
.product-gallery .flex-control-thumbs img.flex-active {
    border-color: var(--primary-blue);
}

.product-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-grey);
}

.product-category {
    margin-bottom: 1.5rem;
    color: var(--dark-grey);
}

.product-category .category-label {
    font-weight: 500;
}

.product-category a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-category a:hover {
    color: var(--secondary-blue);
}

.product-short-description {
    color: var(--dark-grey);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-description {
    color: var(--dark-grey);
    line-height: 1.8;
}

.product-links {
    margin-top: 1.5rem;
}

.product-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-links-list li {
    margin-bottom: 0.75rem;
}

.product-links-list a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-links-list a:hover {
    color: var(--secondary-blue);
}

.connect-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-align: center;
}

.connect-button:hover {
    background-color: var(--secondary-blue);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-content {
        grid-template-columns: 1fr;
    }

    .product-left-column,
    .product-right-column {
        gap: 1.5rem;
    }
}

/* WooCommerce Breadcrumbs */
.woocommerce-breadcrumb {
    background-color: var(--white);
    padding: 1.25rem 3rem;
    margin: -1rem -2rem 2rem -2rem;
    color: var(--dark-grey);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.woocommerce-breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.woocommerce-breadcrumb a, .text-muted, .product-category-link {
    color: var(--dark-grey);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
    opacity: 0.8;
}

.woocommerce-breadcrumb a:hover {
    color: var(--primary-blue);
    opacity: 1;
}

.woocommerce-breadcrumb .delimiter {
    margin: 0 0.5rem;
    color: var(--dark-grey);
    opacity: 0.3;
}

.woocommerce-breadcrumb .delimiter:after {
    content: '>';
    display: inline-block;
    transform: rotate(0deg);
} 

h1.elementor-heading-title {
    margin-top: 2rem;
}

h1.entry-title {
    margin: 2rem 0em 0rem;
    border-style: solid;
    border-width: 0px 0px 1px;
    border-color: var(--light-grey);
    color: var(--primary-blue);
    font-weight: var(--title-font-weight);
    text-align: center;
}