/*
Theme Name: PK Premium Pest Control
Theme URI: https://pkpestcontrol.com.au
Author: PK Premium Pest Control
Author URI: https://pkpestcontrol.com.au
Description: Professional pest control WordPress theme. Mobile-first, conversion-optimized.
Version: 1.0.0
License: GPL v2 or later
Text Domain: pk-pest
*/

/* ===== CSS VARIABLES ===== */
:root {
    --pk-primary: #1a5e3b;
    --pk-primary-light: #238c57;
    --pk-primary-dark: #134430;
    --pk-secondary: #f0f7f4;
    --pk-accent: #ff6b35;
    --pk-accent-dark: #e55a2b;
    --pk-white: #ffffff;
    --pk-black: #1a1a2e;
    --pk-text: #2d3748;
    --pk-text-light: #718096;
    --pk-gray-50: #f9fafb;
    --pk-gray-100: #f7fafc;
    --pk-gray-200: #edf2f7;
    --pk-gray-300: #e2e8f0;
    --pk-font-primary: 'Inter', -apple-system, sans-serif;
    --pk-font-heading: 'Outfit', 'Inter', sans-serif;
    --pk-radius-sm: 4px;
    --pk-radius-md: 8px;
    --pk-radius-lg: 12px;
    --pk-radius-full: 9999px;
    --pk-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --pk-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --pk-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --pk-header-height: 80px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--pk-font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--pk-text);
    background: var(--pk-white);
}

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

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

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

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

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

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
}

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

.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--pk-gray-50);
}

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

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

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--pk-radius-md);
    transition: all 0.15s;
    border: 2px solid transparent;
    min-height: 48px;
}

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

.btn-primary:hover {
    background: var(--pk-accent-dark);
    border-color: var(--pk-accent-dark);
    color: var(--pk-white);
    transform: translateY(-2px);
}

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

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

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

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

.btn-outline-white {
    background: transparent;
    color: var(--pk-white);
    border-color: var(--pk-white);
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ===== TOPBAR ===== */
.topbar {
    background: var(--pk-primary-dark);
    color: var(--pk-white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.topbar a {
    color: var(--pk-white);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.topbar-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--pk-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--pk-shadow-sm);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--pk-header-height);
}

.site-logo {
    font-family: var(--pk-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pk-primary);
    display: flex;
    align-items: center;
}

.site-logo span {
    color: var(--pk-accent);
}

.site-logo img,
.site-logo .theme-logo {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.site-logo .custom-logo {
    height: 50px;
    width: auto;
}

.main-nav {
    display: none;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--pk-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--pk-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-phone {
    display: none;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    color: var(--pk-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--pk-text);
    border-radius: 2px;
    transition: all 0.15s;
}

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

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

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

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--pk-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pk-white);
    padding: 2rem;
    overflow-y: auto;
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav a {
    display: block;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--pk-text);
    border-radius: var(--pk-radius-md);
}

.mobile-nav a:hover {
    background: var(--pk-secondary);
    color: var(--pk-primary);
}

.mobile-nav-cta {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}