/* ==========================================================================
   Conzentor WordPress Theme — Main Stylesheet
   Brand Colors from Tailwind config
   ========================================================================== */

:root {
    /* Brand palette */
    --brand-50: #F0FDF8;
    --brand-100: #D1F1E5;
    --brand-200: #A3E3CB;
    --brand-300: #75D5B1;
    --brand-400: #3CB58E;
    --brand-500: #1D9E75;
    --brand-600: #178A65;
    --brand-700: #127555;
    --brand-800: #0B4433;
    --brand-900: #05261D;

    /* Neutrals */
    --foreground: #0A0A0B;
    --background: #ffffff;
    --muted: #6B7280;
    --border: #E5E7EB;
    --surface: #F9FAFB;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 5rem;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--brand-500);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--brand-600);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Container
   ========================================================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.025em;
}

.site-logo:hover {
    color: var(--foreground);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--foreground);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--background);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    .nav-menu.is-open {
        display: flex;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.conzentor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.conzentor-btn--primary {
    background: var(--brand-500);
    color: #fff;
}

.conzentor-btn--primary:hover {
    background: var(--brand-600);
    color: #fff;
}

.conzentor-btn--secondary {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.conzentor-btn--secondary:hover {
    background: var(--surface);
    border-color: var(--muted);
}

.conzentor-btn--large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero .hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-badges {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted);
    font-weight: 500;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
    padding: var(--section-padding) 0;
}

.section--gray {
    background: var(--surface);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 1rem;
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Feature Grid
   ========================================================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--background);
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--muted);
    margin: 0;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    background: var(--background);
    text-align: center;
}

.pricing-card--featured {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 1px var(--brand-500);
    position: relative;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0 0.25rem;
}

.pricing-card .price-period {
    font-size: 0.875rem;
    color: var(--muted);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-card li {
    padding: 0.375rem 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

.pricing-card li::before {
    content: "✓";
    color: var(--brand-500);
    font-weight: 700;
    margin-right: 0.75rem;
}

/* ==========================================================================
   Blog
   ========================================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.9375rem;
    color: var(--muted);
    margin: 0;
}

.blog-card-meta {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    background: var(--surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--muted);
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--muted);
}

.footer-col a:hover {
    color: var(--foreground);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--muted);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-brand { color: var(--brand-500); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
