/*
Theme Name: TandoPay SaaS Theme
Theme URI: https://tandopay.co.za
Author: TandoPay
Author URI: https://tandopay.co.za
Description: Professional HR & Payroll Software WordPress Theme - Localized for South Africa. White-label payroll solution with outsourced payroll services.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tandopay
Tags: saas, payroll, hr-software, south-africa, business, one-column, custom-menu, featured-images, threaded-comments

TandoPay - HR & Payroll Software for South Africa
*/

/* ===== CSS Variables ===== */
:root {
    --primary-color: #F5A623;
    --primary-dark: #E09000;
    --primary-light: #FFB94D;
    --secondary-color: #F5A623;
    --secondary-dark: #4A4A4A;
    --accent-color: #F5A623;
    --dark-color: #1e293b;
    --gray-color: #6B6B6B;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --success-color: #22c55e;
    --warning-color: #eab308;
    --error-color: #ef4444;
    --gradient-primary: linear-gradient(135deg, #F5A623 0%, #6B6B6B 100%);
    --gradient-hero: linear-gradient(135deg, #4A4A4A 0%, #6B6B6B 50%, #F5A623 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base Styles ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

ul, ol {
    list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.demo-section {
    display: none !important;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

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

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

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

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

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

.btn-white:hover {
    background: var(--light-gray);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* ===== Header & Navigation ===== */
/* ===== Force Header & Logo Alignment ===== */
/* ===== Force Header & Logo Fix ===== */
.site-header {
    padding: 0 !important;
    height: 90px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: var(--white) !important;
    box-shadow: var(--shadow-sm) !important;
}

.header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    padding: 0 20px !important;
}

.site-logo img {
    height: 80px !important; /* make logo larger */
    width: auto !important;
    display: block !important;
}

/* ===== Remove padding conflicts ===== */
.site-header, .header-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ===== Mobile Adjustments ===== */
@media (max-width: 768px) {
    .site-header {
        height: 70px !important;
        padding: 0 15px !important;
    }

    .site-logo img {
        height: 55px !important;
    }
}


.site-header.scrolled {
    box-shadow: var(--shadow-md);
}


.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-navigation a {
    font-weight: 500;
    color: var(--dark-color);
    padding: 8px 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero-section {
    background: var(--gradient-hero);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('assets/images/hero-pattern.svg') no-repeat center right;
    opacity: 0.1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text h1 span {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 2rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ===== Features Section ===== */
.features-section {
    padding: 100px 0;
    background: var(--light-gray);
}

/* ===== Header & Logo Force Resize ===== */
.site-header {
    padding: 25px 0 !important; /* Increase header height */
}

.header-inner {
    align-items: center !important;
}

.site-logo img {
    height: 70px !important; /* Make logo fully visible */
    width: auto !important;
}

/* ===== Mobile Header Adjustments ===== */
@media (max-width: 768px) {
    .site-header {
        padding: 20px 0 !important; /* keep some space for mobile */
    }

    .site-logo img {
        height: 60px !important; /* slightly smaller on mobile */
        width: auto !important;
    }
}

.section-header .subtitle {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    margin-bottom: 16px;
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== Pricing Section ===== */
.pricing-section {
    padding: 100px 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.pricing-toggle span {
    font-weight: 500;
    color: var(--gray-color);
}

.pricing-toggle span.active {
    color: var(--dark-color);
}

.toggle-switch {
    width: 60px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 15px;
    position: relative;
    cursor: pointer;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch.annual::after {
    left: calc(100% - 27px);
}

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

.pricing-card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured .pricing-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-card {
    position: relative;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-color);
}

.pricing-card .price-note {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-bottom: 24px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--light-gray);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    color: var(--success-color);
    flex-shrink: 0;
}

/* ===== Demo Request Section ===== */
.demo-section {
    padding: 100px 0;
    background: var(--gradient-hero);
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.demo-text {
    color: var(--white);
}

.demo-text h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.demo-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 30px;
}

.demo-benefits {
    display: grid;
    gap: 20px;
}

.demo-benefit {
    display: flex;
    align-items: center;
    gap: 16px;
}

.demo-benefit svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.demo-benefit span {
    font-size: 1rem;
    color: var(--white);
}

.demo-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.demo-form h3 {
    text-align: center;
    margin-bottom: 30px;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.form-group label .required {
    color: var(--error-color);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--gray-color);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

.form-message {
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ===== Client Login Section ===== */
.login-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.login-box {
    max-width: 450px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.login-divider span {
    color: var(--gray-color);
    font-size: 0.875rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--light-gray);
}

.social-login {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    border-color: var(--primary-color);
    background: var(--light-gray);
}

/* ===== Footer ===== */
/* ===== Footer ===== */
.site-footer {
    background: #585a5b; /* new footer color */
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: rgba(255,255,255,0.8);
}

.footer-column ul a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

.footer-bottom-links a:hover {
    color: var(--white);
}
/* ===== Page Headers ===== */
.page-header {
    background: var(--gradient-hero);
    padding: 160px 0 80px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 16px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a:hover {
    color: var(--white);
}

.breadcrumbs span {
    color: rgba(255, 255, 255, 0.5);
}

footer {
    background: #585a5b !important;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    .hero-content,
    .demo-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .main-navigation.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 16px;
    }

    .hero-section {
        padding: 120px 0 60px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .demo-form {
        padding: 30px 20px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

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