/*
Theme Name: Awantech - Web Apps & Digital Agency
Theme URI: https://awantech.com
Author: Rudi / Awantech
Author URI: https://awantech.com
Description: Tema WordPress profesional, modern, dan clean khusus untuk menjual Aplikasi Berbasis Web (SaaS & Source Code) serta Jasa Pembuatan Website & Software Kustom. Tanpa tampilan generik / AI slop: desain berfokus pada tipografi presisi, layout editorial rapi, metrik nyata, dan integrasi WhatsApp instan.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: awantech
Tags: software, e-commerce, custom-colors, full-width-template, theme-options, portfolio, translation-ready
*/

/* ==========================================================================
   Design Tokens & Modern Variables (SaaS / Stripe & Linear Inspiration)
   ========================================================================== */
:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;

    /* Neutrals & Surfaces */
    --surface-bg: #f8fafc;
    --surface-card: #ffffff;
    --surface-subtle: #f1f5f9;
    --surface-dark: #090d16;
    --surface-dark-card: #111827;

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #f8fafc;

    /* Accents (Engineering & Corporate Trust) */
    --brand-primary: #0f172a;       /* Deep slate primary */
    --brand-accent: #2563eb;        /* Precise Electric Blue */
    --brand-accent-hover: #1d4ed8;
    --brand-emerald: #059669;       /* Verified / Live badge */
    --brand-emerald-soft: #ecfdf5;

    /* Borders & Dividers */
    --border-light: #e2e8f0;
    --border-hover: #cbd5e1;
    --border-dark: #1e293b;

    /* Elevation */
    --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-float: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 9999px;
}

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

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--surface-bg);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Top Header & Navigation
   ========================================================================== */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.site-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--text-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 800;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    position: relative;
    padding: 0.25rem 0;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--text-primary);
}

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

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* ==========================================================================
   Buttons (Refined, Crisp, High Contrast)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}

.btn-primary:hover {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-secondary:hover {
    background: var(--surface-subtle);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-accent {
    background: var(--brand-accent);
    color: #ffffff;
    border-color: var(--brand-accent);
}

.btn-accent:hover {
    background: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
    color: #ffffff;
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.825rem;
}

.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
}

/* Badge & Indicators */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-emerald);
}

/* ==========================================================================
   Hero Section: Editorial & Clean Software Agency
   ========================================================================== */
.hero-clean {
    padding: 5.5rem 0 4.5rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-copy h1 {
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    margin: 1.25rem 0 1.25rem;
}

.hero-copy p {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-meta-strip {
    display: flex;
    gap: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.meta-metric {
    display: flex;
    flex-direction: column;
}

.meta-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.meta-metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Architectural Product Terminal (Replaces AI generic mockups) */
.terminal-window {
    background: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
    overflow: hidden;
    font-family: var(--font-mono);
}

.terminal-header {
    background: #0f172a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-dark);
}

.terminal-controls {
    display: flex;
    gap: 6px;
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.term-dot-red { background: #ef4444; }
.term-dot-yellow { background: #eab308; }
.term-dot-green { background: #22c55e; }

.terminal-title {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.terminal-body {
    padding: 1.5rem;
    color: #e2e8f0;
    font-size: 0.825rem;
    line-height: 1.7;
}

.term-line {
    margin-bottom: 0.5rem;
}

.term-prompt { color: #60a5fa; font-weight: 600; margin-right: 0.4rem; }
.term-cmd { color: #f8fafc; font-weight: 500; }
.term-comment { color: #64748b; }
.term-success { color: #34d399; }

.term-feature-box {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Section Headers (Editorial & Structured)
   ========================================================================== */
.section {
    padding: 5rem 0;
}

.section-muted {
    background: var(--surface-bg);
}

.section-lead {
    margin-bottom: 3rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-accent);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 620px;
    line-height: 1.6;
}

/* ==========================================================================
   Product Grid: Web Application Catalog
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.75rem;
}

.product-item {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.product-thumb {
    position: relative;
    height: 190px;
    background: #0f172a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-blueprint {
    width: 100%;
    height: 100%;
    background: #0f172a;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blueprint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blueprint-badge {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.blueprint-icon {
    font-size: 1.8rem;
    color: #94a3b8;
}

.product-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-title a:hover {
    color: var(--brand-accent);
}

.product-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex: 1;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.spec-pill {
    font-family: var(--font-mono);
    font-size: 0.725rem;
    background: var(--surface-subtle);
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.price-container {
    display: flex;
    flex-direction: column;
}

.price-discount {
    font-size: 0.75rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

.price-current {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================================================
   Services Matrix: Custom Development
   ========================================================================== */
.services-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-box {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.service-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-accent);
    margin-bottom: 1.25rem;
    display: block;
}

.service-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.service-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.checklist-clean {
    list-style: none;
    margin-bottom: 1.75rem;
}

.checklist-clean li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.check-svg {
    width: 14px;
    height: 14px;
    color: var(--brand-accent);
    flex-shrink: 0;
}

/* ==========================================================================
   Pricing Table: Clear & Transparent
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-plan {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-plan.is-popular {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-card);
}

.plan-tag {
    position: absolute;
    top: -11px;
    left: 2rem;
    background: var(--text-primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-height: 40px;
}

.plan-price-block {
    margin: 1.5rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.plan-rate {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.plan-sub {
    font-size: 0.825rem;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.plan-features li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.45rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ==========================================================================
   Consultation Contact Banner
   ========================================================================== */
.consult-card {
    background: var(--surface-dark);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 4rem 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    border: 1px solid var(--border-dark);
}

.consult-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.consult-content p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
}

.consult-action {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ==========================================================================
   Single Product & Detail Views
   ========================================================================== */
.page-hero {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 3.5rem 0;
}

.page-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.app-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 2.5rem;
}

.app-article {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2.5rem;
}

.app-article h2, .app-article h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.app-article p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.app-article ul, .app-article ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.app-aside-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: sticky;
    top: 90px;
}

.specs-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-light);
}

.specs-table td {
    padding: 0.75rem 0;
    font-size: 0.85rem;
}

.specs-table td:first-child {
    color: var(--text-muted);
}

.specs-table td:last-child {
    font-weight: 600;
    text-align: right;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* ==========================================================================
   Floating WhatsApp Button (Crisp Minimalist Badge)
   ========================================================================== */
.wa-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-float);
    z-index: 9999;
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.wa-widget:hover {
    transform: translateY(-2px);
    border-color: #25d366;
    color: var(--text-primary);
}

.wa-icon-svg {
    width: 18px;
    height: 18px;
    color: #25d366;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    padding: 4.5rem 0 2.5rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.65rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-col ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
    .hero-layout,
    .app-layout,
    .consult-card {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .services-matrix,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .main-navigation {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 1.25rem;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-card);
    }
    .main-navigation.is-open {
        display: block;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .hero-copy h1 {
        font-size: 2.2rem;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .footer-columns {
        grid-template-columns: 1fr;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
