/*
Theme Name: WebPahang
Theme URI: https://webpahang.com/
Author: OpenAI
Description: Custom classic WordPress theme for WebPahang.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: webpahang
*/

:root {
    --white: #ffffff;
    --light-grey: #f3f4f6;
    --primary-green: #22c55e;
    --secondary-blue: #3b82f6;
    --text-dark: #111827;
    --footer-black: #0f172a;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a { color: inherit; }

header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    gap: 1rem;
}

.logo,
.custom-logo-link {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-blue);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span { color: var(--primary-green); }

nav ul,
.menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a,
.menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

nav ul li a:hover,
.menu li a:hover,
.current-menu-item > a {
    color: var(--secondary-blue);
}

.hero {
    position: relative;
    min-height: 500px;
    height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)),
        url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
    border: 0;
}

.btn-green { background: var(--primary-green); color: white; }
.btn-blue { background: var(--secondary-blue); color: white; }

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

section { padding: 80px 2rem; }

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.problems,
.pricing {
    background: var(--light-grey);
}

.problem-box,
.card,
.contact-box,
.content-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.problem-box {
    border-left: 5px solid var(--secondary-blue);
}

.problem-list {
    list-style: none;
    margin-top: 1.5rem;
}

.problem-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.problem-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.card {
    transition: 0.3s;
}

.card:hover {
    border-color: var(--secondary-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card h3,
.card h4 {
    margin-bottom: 1rem;
    color: var(--secondary-blue);
}

.card ul,
.content-card ul {
    list-style: none;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.card ul li,
.content-card ul li {
    margin-bottom: 0.5rem;
}

.card ul li::before,
.content-card ul li::before {
    content: "✓";
    color: var(--primary-green);
    margin-right: 8px;
    font-weight: bold;
}

.price-tag {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--text-dark);
}

.price-tag span {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
}

.contact-box {
    text-align: center;
}

.post-grid {
    display: grid;
    gap: 2rem;
}

.content-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 2rem;
}

.entry-title,
.page-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.entry-meta {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.entry-content > * + *,
.archive-description > * + * {
    margin-top: 1rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.25rem;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.cta-panel {
    background: var(--secondary-blue);
    height: 200px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem;
    text-align: center;
}

footer {
    background: var(--footer-black);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1e293b;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--secondary-blue);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li,
.footer-col ul li a {
    margin-bottom: 0.8rem;
    opacity: 0.85;
    text-decoration: none;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.65;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

@media (max-width: 768px) {
    nav ul,
    .menu {
        display: none;
    }

    .hero {
        height: auto;
        padding: 100px 1rem;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .contact-box,
    .problem-box,
    .card,
    .content-card {
        padding: 1.5rem;
    }

    .nav-container {
        padding: 1rem;
    }
}