/*
Theme Name: Advocacia Pro Theme
Theme URI: https://saysix.com.br/themes/advocacia-pro-theme
Author: Saysix
Author URI: https://saysix.com.br
Description: Tema profissional para demonstração do plugin Advocacia Pro System. Design moderno e elegante para escritórios de advocacia.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
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: advocacia-pro-theme
Tags: legal, law, business, one-column, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --apt-primary: #0f4c75;
    --apt-secondary: #3282b8;
    --apt-accent: #0f9b8e;
    --apt-gold: #b8860b;
    --apt-dark: #1a1a2e;
    --apt-bg: #f4f7fa;
    --apt-white: #ffffff;
    --apt-text: #334155;
    --apt-text-light: #64748b;
    --apt-border: #e2e8f0;
    --apt-radius: 12px;
    --apt-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    --apt-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --apt-transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--apt-text);
    background: var(--apt-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--apt-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--apt-dark);
}

/* ==========================================================================
   Typography
   ========================================================================== */
.apt-heading-xl {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.apt-heading-lg {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

.apt-heading-md {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

.apt-text-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

.apt-text-sm {
    font-size: 0.875rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.apt-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.apt-section {
    padding: 100px 0;
}

.apt-section-sm {
    padding: 60px 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.apt-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--apt-border);
    transition: var(--apt-transition);
}

/* WordPress Admin Bar Compensation */
body.admin-bar .apt-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .apt-header {
        top: 46px;
    }
}

.apt-header.scrolled {
    box-shadow: var(--apt-shadow);
}

.apt-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.apt-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--apt-primary);
}

.apt-logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--apt-primary) 0%, var(--apt-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

/* Navigation */
.apt-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.apt-nav-menu {
    display: flex;
    gap: 32px;
}

.apt-nav-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--apt-text);
    padding: 8px 0;
    position: relative;
}

.apt-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--apt-primary);
    transition: var(--apt-transition);
}

.apt-nav-link:hover {
    color: var(--apt-primary);
}

.apt-nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.apt-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.apt-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--apt-dark);
    transition: var(--apt-transition);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.apt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--apt-transition);
    text-decoration: none;
}

.apt-btn-primary {
    background: linear-gradient(135deg, var(--apt-primary) 0%, #155e8f 100%);
    color: white;
    box-shadow: 0 4px 14px -3px rgba(15, 76, 117, 0.4);
}

.apt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -3px rgba(15, 76, 117, 0.5);
}

.apt-btn-secondary {
    background: var(--apt-white);
    color: var(--apt-primary);
    border: 2px solid var(--apt-primary);
}

.apt-btn-secondary:hover {
    background: var(--apt-primary);
    color: white;
}

.apt-btn-gold {
    background: linear-gradient(135deg, var(--apt-gold) 0%, #d4a012 100%);
    color: white;
    box-shadow: 0 4px 14px -3px rgba(184, 134, 11, 0.4);
}

.apt-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -3px rgba(184, 134, 11, 0.5);
}

.apt-btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

.apt-btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.apt-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--apt-dark) 0%, #16213e 50%, var(--apt-primary) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.apt-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.apt-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.apt-hero-text {
    color: white;
}

.apt-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.apt-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
}

.apt-hero-title span {
    background: linear-gradient(135deg, var(--apt-accent) 0%, #12c4a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apt-hero-desc {
    font-size: 1.125rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
}

.apt-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.apt-hero-visual {
    position: relative;
}

.apt-hero-mockup {
    background: var(--apt-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--apt-shadow-lg);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: var(--apt-transition);
}

.apt-hero-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.apt-hero-mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.apt-hero-mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.apt-hero-mockup-dot:nth-child(1) { background: #ff5f57; }
.apt-hero-mockup-dot:nth-child(2) { background: #febc2e; }
.apt-hero-mockup-dot:nth-child(3) { background: #28c840; }

.apt-hero-mockup-content {
    background: var(--apt-bg);
    border-radius: 8px;
    padding: 24px;
    min-height: 300px;
}

.apt-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.apt-hero-stat {
    background: var(--apt-white);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--apt-border);
}

.apt-hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--apt-primary);
}

.apt-hero-stat-label {
    font-size: 0.75rem;
    color: var(--apt-text-light);
    margin-top: 4px;
}

/* Floating Elements */
.apt-floating {
    position: absolute;
    background: var(--apt-white);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--apt-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.apt-floating-1 {
    top: 20%;
    right: -30px;
    animation-delay: 0s;
}

.apt-floating-2 {
    bottom: 20%;
    left: -40px;
    animation-delay: 1.5s;
}

.apt-floating-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.apt-floating-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.apt-floating-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.apt-features {
    background: var(--apt-white);
}

.apt-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.apt-section-tag {
    display: inline-block;
    background: rgba(15, 76, 117, 0.1);
    color: var(--apt-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.apt-section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.apt-section-desc {
    font-size: 1.125rem;
    color: var(--apt-text-light);
}

.apt-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
}

/* Centraliza cards quando não preenchem a linha */
.apt-features-grid .apt-feature-card {
    width: 100%;
    max-width: 400px;
}

@media (min-width: 1025px) {
    .apt-features-grid .apt-feature-card {
        max-width: none;
    }
}

.apt-feature-card {
    background: var(--apt-bg);
    padding: 40px 30px;
    border-radius: var(--apt-radius);
    border: 1px solid var(--apt-border);
    transition: var(--apt-transition);
    position: relative;
    overflow: hidden;
}

.apt-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--apt-primary), var(--apt-accent));
    transform: scaleX(0);
    transition: var(--apt-transition);
}

.apt-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--apt-shadow);
    border-color: transparent;
}

.apt-feature-card:hover::before {
    transform: scaleX(1);
}

.apt-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--apt-primary) 0%, var(--apt-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.apt-feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.apt-feature-desc {
    color: var(--apt-text-light);
    line-height: 1.7;
}

/* ==========================================================================
   Dashboard Preview Section
   ========================================================================== */
.apt-preview {
    background: linear-gradient(180deg, var(--apt-bg) 0%, var(--apt-white) 100%);
    position: relative;
    overflow: hidden;
}

.apt-preview-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.apt-preview-image {
    position: relative;
}

.apt-preview-browser {
    background: var(--apt-white);
    border-radius: 16px;
    box-shadow: var(--apt-shadow-lg);
    overflow: hidden;
    border: 1px solid var(--apt-border);
}

.apt-preview-browser-bar {
    background: #f8fafc;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--apt-border);
}

.apt-preview-browser-dots {
    display: flex;
    gap: 6px;
}

.apt-preview-browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.apt-preview-browser-dots span:nth-child(1) { background: #ff5f57; }
.apt-preview-browser-dots span:nth-child(2) { background: #febc2e; }
.apt-preview-browser-dots span:nth-child(3) { background: #28c840; }

.apt-preview-browser-url {
    flex: 1;
    background: var(--apt-white);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: var(--apt-text-light);
    border: 1px solid var(--apt-border);
}

.apt-preview-browser-content {
    padding: 20px;
    background: var(--apt-bg);
    min-height: 400px;
}

/* Dashboard Mockup */
.apt-dash-mockup {
    display: grid;
    gap: 16px;
}

.apt-dash-header {
    background: var(--apt-white);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--apt-border);
}

.apt-dash-header h4 {
    font-size: 1rem;
    color: var(--apt-primary);
}

.apt-dash-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.apt-dash-card {
    background: var(--apt-white);
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--apt-border);
}

.apt-dash-card-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.apt-dash-card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--apt-primary);
}

.apt-dash-card-label {
    font-size: 0.75rem;
    color: var(--apt-text-light);
}

.apt-dash-table {
    background: var(--apt-white);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--apt-border);
}

.apt-dash-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--apt-border);
    font-size: 0.875rem;
}

.apt-dash-table-row:last-child {
    border-bottom: none;
}

.apt-dash-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.apt-dash-badge.green {
    background: #dcfce7;
    color: #166534;
}

.apt-dash-badge.blue {
    background: #dbeafe;
    color: #1e40af;
}

.apt-dash-badge.yellow {
    background: #fef3c7;
    color: #92400e;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.apt-testimonials {
    background: var(--apt-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.apt-testimonials::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 155, 142, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.apt-testimonials .apt-section-header {
    color: white;
}

.apt-testimonials .apt-section-title {
    color: white;
}

.apt-testimonials .apt-section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.apt-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.apt-testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: var(--apt-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--apt-transition);
}

.apt-testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.apt-testimonial-stars {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 16px;
}

.apt-testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 24px;
}

.apt-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.apt-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--apt-primary) 0%, var(--apt-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.apt-testimonial-name {
    font-weight: 600;
}

.apt-testimonial-role {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.apt-pricing {
    background: var(--apt-white);
}

.apt-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.apt-pricing-card {
    background: var(--apt-bg);
    padding: 40px 32px;
    border-radius: var(--apt-radius);
    border: 2px solid var(--apt-border);
    transition: var(--apt-transition);
    position: relative;
}

.apt-pricing-card.featured {
    background: var(--apt-dark);
    color: white;
    border-color: var(--apt-dark);
    transform: scale(1.05);
}

.apt-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--apt-gold) 0%, #d4a012 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.apt-pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.apt-pricing-card.featured .apt-pricing-name {
    color: white;
}

.apt-pricing-desc {
    font-size: 0.9375rem;
    opacity: 0.7;
    margin-bottom: 24px;
}

.apt-pricing-price {
    margin-bottom: 24px;
}

.apt-pricing-currency {
    font-size: 1.25rem;
    font-weight: 600;
    vertical-align: top;
}

.apt-pricing-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.apt-pricing-period {
    font-size: 0.9375rem;
    opacity: 0.7;
}

.apt-pricing-features {
    margin-bottom: 32px;
}

.apt-pricing-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    font-size: 0.9375rem;
}

.apt-pricing-feature:last-child {
    border-bottom: none;
}

.apt-pricing-check {
    color: var(--apt-accent);
    font-weight: bold;
}

.apt-pricing-card.featured .apt-pricing-check {
    color: #10b981;
}

.apt-pricing-card .apt-btn {
    width: 100%;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.apt-cta {
    background: linear-gradient(135deg, var(--apt-primary) 0%, var(--apt-secondary) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.apt-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 200px;
}

.apt-cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.apt-cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    color: white;
}

.apt-cta-desc {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.apt-cta .apt-btn-primary {
    background: white;
    color: var(--apt-primary);
}

.apt-cta .apt-btn-primary:hover {
    background: var(--apt-bg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.apt-footer {
    background: var(--apt-dark);
    color: white;
    padding: 80px 0 30px;
}

.apt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.apt-footer-brand {
    max-width: 300px;
}

.apt-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.apt-footer-logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--apt-primary) 0%, var(--apt-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.apt-footer-desc {
    opacity: 0.7;
    line-height: 1.8;
    margin-bottom: 24px;
}

.apt-footer-social {
    display: flex;
    gap: 12px;
}

.apt-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--apt-transition);
}

.apt-footer-social a:hover {
    background: var(--apt-primary);
}

.apt-footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.apt-footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apt-footer-link {
    opacity: 0.7;
    font-size: 0.9375rem;
    transition: var(--apt-transition);
}

.apt-footer-link:hover {
    opacity: 1;
    color: var(--apt-accent);
}

.apt-footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.7;
    font-size: 0.875rem;
}

.apt-footer-legal {
    display: flex;
    gap: 24px;
}

/* ==========================================================================
   Page Templates
   ========================================================================== */
.apt-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 60vh;
}

.apt-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.apt-page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.apt-page-content {
    max-width: 800px;
    margin: 0 auto;
}

.apt-page-content p {
    margin-bottom: 24px;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.apt-page-content h2 {
    font-size: 1.75rem;
    margin: 48px 0 24px;
}

.apt-page-content h3 {
    font-size: 1.375rem;
    margin: 36px 0 16px;
}

.apt-page-content ul,
.apt-page-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.apt-page-content li {
    margin-bottom: 12px;
    line-height: 1.7;
    list-style: disc;
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.apt-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--apt-bg);
}

.apt-404-content {
    max-width: 500px;
}

.apt-404-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--apt-primary);
    opacity: 0.2;
    line-height: 1;
}

.apt-404-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.apt-404-desc {
    color: var(--apt-text-light);
    margin-bottom: 32px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .apt-hero-content,
    .apt-preview-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .apt-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .apt-hero-actions {
        justify-content: center;
    }
    
    .apt-hero-visual {
        order: -1;
    }
    
    .apt-hero-mockup {
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .apt-features-grid,
    .apt-testimonials-grid,
    .apt-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .apt-pricing-card.featured {
        transform: none;
    }
    
    .apt-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .apt-nav-menu {
        display: none;
    }
    
    .apt-menu-toggle {
        display: flex;
    }
    
    .apt-section {
        padding: 60px 0;
    }
    
    .apt-hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .apt-hero-stats {
        grid-template-columns: 1fr;
    }
    
    .apt-dash-cards {
        grid-template-columns: 1fr;
    }
    
    .apt-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .apt-footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .apt-floating {
        display: none;
    }
}

@media (max-width: 480px) {
    .apt-container {
        padding: 0 16px;
    }
    
    .apt-btn {
        padding: 12px 20px;
        font-size: 0.875rem;
    }
    
    .apt-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .apt-hero-actions .apt-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Mobile Menu (when active)
   ========================================================================== */
.apt-nav-mobile {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--apt-white);
    padding: 24px;
    border-bottom: 1px solid var(--apt-border);
    box-shadow: var(--apt-shadow);
    z-index: 999;
}

/* WordPress Admin Bar Compensation for Mobile Menu */
body.admin-bar .apt-nav-mobile {
    top: 112px; /* 80px header + 32px admin bar */
}

@media screen and (max-width: 782px) {
    body.admin-bar .apt-nav-mobile {
        top: 126px; /* 80px header + 46px admin bar mobile */
    }
}

.apt-nav-mobile.active {
    display: block;
}

.apt-nav-mobile a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--apt-text);
    border-bottom: 1px solid var(--apt-border);
}

.apt-nav-mobile a:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.apt-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.apt-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.apt-text-center { text-align: center; }
.apt-text-left { text-align: left; }
.apt-text-right { text-align: right; }
.apt-mb-0 { margin-bottom: 0; }
.apt-mt-0 { margin-top: 0; }
.apt-hidden { display: none; }
