/*
Theme Name: Avukat Pro Theme
Theme URI: https://oregano.market
Author: Aydın
Author URI: https://oregano.market
Description: Avukat Law Platform için profesyonel WordPress teması - PWA, WooCommerce, Cross-Browser
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avukat-pro
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Tags: responsive, woocommerce, pwa, cross-browser
*/

/* ========================================
   CSS CUSTOM PROPERTIES (Variables)
   Cross-browser compatible
======================================== */
:root {
    /* Colors */
    --apt-primary: #1a3c34;
    --apt-primary-dark: #0f2620;
    --apt-primary-light: #2a5c4a;
    --apt-accent: #5bbb7b;
    --apt-accent-hover: #4da86a;
    --apt-gold: #f0b429;
    --apt-text-dark: #1f1f1f;
    --apt-text-body: #6b7177;
    --apt-text-light: #9a9ea6;
    --apt-bg-light: #f7f7f7;
    --apt-bg-white: #ffffff;
    --apt-border: #e8e8e8;
    --apt-danger: #dc3545;
    --apt-success: #28a745;
    --apt-warning: #ffc107;
    --apt-info: #17a2b8;
    
    /* Shadows */
    --apt-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --apt-shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --apt-shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    
    /* Border Radius */
    --apt-radius-sm: 6px;
    --apt-radius-md: 10px;
    --apt-radius-lg: 16px;
    --apt-radius-xl: 24px;
    --apt-radius-full: 9999px;
    
    /* Transitions */
    --apt-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --apt-transition-fast: all 0.15s ease;
    
    /* Typography */
    --apt-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --apt-font-size-base: 16px;
    --apt-line-height: 1.6;
    
    /* Spacing */
    --apt-header-height: 90px;
    --apt-header-height-mobile: 70px;
    
    /* Safe Areas (iOS) */
    --apt-safe-top: env(safe-area-inset-top, 0px);
    --apt-safe-bottom: env(safe-area-inset-bottom, 0px);
    --apt-safe-left: env(safe-area-inset-left, 0px);
    --apt-safe-right: env(safe-area-inset-right, 0px);
}

/* ========================================
   CSS RESET - Modern Normalize
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: var(--apt-font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--apt-font-family);
    font-size: 1rem;
    line-height: var(--apt-line-height);
    color: var(--apt-text-body);
    background-color: var(--apt-bg-white);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* iOS Safari viewport fix */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: var(--apt-transition);
}

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

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    -webkit-tap-highlight-color: transparent;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--apt-accent);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ========================================
   LAYOUT
======================================== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height */
}

.site-container {
    flex: 1 0 auto;
    padding-top: var(--apt-header-height);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-left: max(20px, var(--apt-safe-left));
    padding-right: max(20px, var(--apt-safe-right));
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    padding-left: max(40px, var(--apt-safe-left));
    padding-right: max(40px, var(--apt-safe-right));
}

/* ========================================
   HEADER - Sticky, Cross-browser
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--apt-primary);
    height: var(--apt-header-height);
    transition: var(--apt-transition);
    padding-top: var(--apt-safe-top);
}

.site-header.scrolled {
    box-shadow: var(--apt-shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.site-logo img {
    max-height: 45px;
    width: auto;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}

.site-title a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title a:hover {
    color: var(--apt-accent);
}

.logo-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: var(--apt-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Categories Button */
.categories-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 18px;
    border-radius: var(--apt-radius-full);
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--apt-transition);
    white-space: nowrap;
}

.categories-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--apt-radius-sm);
    transition: var(--apt-transition);
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--apt-bg-white);
    border-radius: var(--apt-radius-md);
    box-shadow: var(--apt-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--apt-transition);
    padding: 8px 0;
    margin-top: 5px;
    z-index: 100;
}

.nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 10px 18px;
    color: var(--apt-text-dark);
    font-size: 0.9rem;
}

.nav-menu .sub-menu li a:hover {
    background: var(--apt-bg-light);
    color: var(--apt-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Mini Cart */
.header-cart {
    position: relative;
}

.header-cart-toggle {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition: var(--apt-transition);
}

.header-cart-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    background: var(--apt-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cart-count:empty,
.cart-count.hidden {
    display: none;
}

/* Auth Button - Combined */
.auth-combined-btn {
    display: flex;
    align-items: center;
    background: var(--apt-bg-white);
    border-radius: var(--apt-radius-full);
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-combined-btn a {
    padding: 10px 16px;
    color: var(--apt-text-dark);
    transition: var(--apt-transition);
    white-space: nowrap;
}

.auth-combined-btn a:first-child {
    border-right: 1px solid var(--apt-border);
}

.auth-combined-btn a:hover {
    background: var(--apt-accent);
    color: #fff;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--apt-radius-full);
    cursor: pointer;
    color: #fff;
    transition: var(--apt-transition);
}

.user-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--apt-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--apt-bg-white);
    border-radius: var(--apt-radius-md);
    box-shadow: var(--apt-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--apt-transition);
    z-index: 100;
    overflow: hidden;
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--apt-text-dark);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--apt-border);
}

.user-dropdown-menu a:last-child {
    border-bottom: none;
}

.user-dropdown-menu a:hover {
    background: var(--apt-bg-light);
}

.user-dropdown-menu a svg,
.user-dropdown-menu a i {
    width: 18px;
    color: var(--apt-text-light);
}

.user-dropdown-menu .logout-link {
    color: var(--apt-danger);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--apt-radius-sm);
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--apt-transition);
}

.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);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    background: var(--apt-primary);
    min-height: calc(100vh - var(--apt-header-height));
    min-height: calc(100dvh - var(--apt-header-height));
    display: flex;
    align-items: center;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--apt-accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 500px;
}

/* Hero Search - Horizontal Clean */
.hero-search-box {
    background: var(--apt-bg-white);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
    margin-bottom: 50px;
    width: 100%;
    max-width: 1000px;
}

.hero-search-form {
    display: flex;
    align-items: center;
}

.search-field {
    position: relative;
    flex: 1;
    border-right: 1px solid #e5e5e5;
}

.search-field:last-of-type {
    border-right: none;
}

.search-field.field-input {
    flex: 1.8;
    min-width: 280px;
}

.search-field.field-select {
    flex: 1;
    min-width: 180px;
}

.search-field-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-field input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 50px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    outline: none;
}

.search-field input::placeholder {
    color: #888;
}

.search-field select {
    width: 100%;
    height: 52px;
    padding: 0 40px 0 50px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.search-submit-btn {
    height: 44px;
    padding: 0 32px;
    margin: 4px;
    background: var(--apt-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.search-submit-btn:hover {
    background: var(--apt-accent-hover);
    box-shadow: 0 4px 15px rgba(91, 187, 123, 0.35);
}

.search-submit-btn svg {
    flex-shrink: 0;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.hero-image-main {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
}

.hero-image-main img {
    width: 100%;
    height: auto;
    border-radius: var(--apt-radius-xl);
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--apt-primary-light) 0%, var(--apt-primary) 100%);
    border-radius: var(--apt-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--apt-bg-white);
    border-radius: var(--apt-radius-md);
    padding: 14px 18px;
    box-shadow: var(--apt-shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

.floating-card-1 {
    top: 5%;
    right: 5%;
}

.floating-card-2 {
    bottom: 25%;
    right: 0;
    animation-delay: 1s;
}

.floating-card-3 {
    bottom: 5%;
    left: 5%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--apt-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.floating-card-icon.gold {
    background: var(--apt-gold);
}

.floating-card-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--apt-text-dark);
    margin-bottom: 2px;
}

.floating-card-content p {
    font-size: 0.75rem;
    color: var(--apt-text-light);
    margin: 0;
}

/* Hero Background */
.hero-bg-shape {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    z-index: 1;
}

/* ========================================
   SECTIONS
======================================== */
.section {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--apt-text-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--apt-text-body);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--apt-radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--apt-transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--apt-primary);
    color: #fff;
    border-color: var(--apt-primary);
}

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

.btn-accent {
    background: var(--apt-accent);
    color: #fff;
    border-color: var(--apt-accent);
}

.btn-accent:hover {
    background: var(--apt-accent-hover);
    border-color: var(--apt-accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--apt-border);
    color: var(--apt-text-dark);
}

.btn-outline:hover {
    border-color: var(--apt-primary);
    color: var(--apt-primary);
}

.btn-white {
    background: var(--apt-bg-white);
    color: var(--apt-text-dark);
    border-color: var(--apt-bg-white);
}

.btn-white:hover {
    background: transparent;
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ========================================
   CARDS
======================================== */
.card {
    background: var(--apt-bg-white);
    border: 1px solid var(--apt-border);
    border-radius: var(--apt-radius-lg);
    overflow: hidden;
    transition: var(--apt-transition);
}

.card:hover {
    box-shadow: var(--apt-shadow-md);
}

.card-body {
    padding: 20px;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--apt-bg-white);
    border: 1px solid var(--apt-border);
    border-radius: var(--apt-radius-lg);
    padding: 30px 20px;
    text-align: center;
    transition: var(--apt-transition);
}

.feature-card:hover {
    border-color: var(--apt-accent);
    box-shadow: var(--apt-shadow-md);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--apt-primary) 0%, var(--apt-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.5rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--apt-text-dark);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--apt-text-body);
    line-height: 1.6;
}

/* Post Cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.post-card {
    background: var(--apt-bg-white);
    border: 1px solid var(--apt-border);
    border-radius: var(--apt-radius-lg);
    overflow: hidden;
    transition: var(--apt-transition);
}

.post-card:hover {
    box-shadow: var(--apt-shadow-md);
    transform: translateY(-5px);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--apt-transition);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--apt-text-light);
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.post-title a {
    color: var(--apt-text-dark);
}

.post-title a:hover {
    color: var(--apt-primary);
}

.post-excerpt {
    color: var(--apt-text-body);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.read-more {
    color: var(--apt-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.read-more:hover {
    color: var(--apt-accent);
    gap: 8px;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--apt-primary) 0%, var(--apt-primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: #fff;
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 25px;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: var(--apt-primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
    flex-shrink: 0;
    padding-bottom: var(--apt-safe-bottom);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-widget h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.footer-about .footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-about p {
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--apt-transition);
}

.footer-social a:hover {
    background: var(--apt-accent);
    transform: translateY(-3px);
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--apt-transition);
}

.footer-widget ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact svg,
.footer-contact i {
    color: var(--apt-accent);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}

/* ========================================
   PAGE HEADER
======================================== */
.page-header {
    background: var(--apt-primary);
    padding: 50px 0 40px;
    text-align: center;
}

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.page-description {
    color: rgba(255,255,255,0.8);
    margin-top: 10px;
    font-size: 1rem;
}

/* ========================================
   FORMS
======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--apt-text-dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--apt-border);
    border-radius: var(--apt-radius-md);
    font-size: 1rem;
    transition: var(--apt-transition);
    background: var(--apt-bg-white);
    color: var(--apt-text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--apt-accent);
}

.form-control::placeholder {
    color: var(--apt-text-light);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   PAGINATION
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--apt-bg-white);
    border: 1px solid var(--apt-border);
    border-radius: var(--apt-radius-md);
    color: var(--apt-text-dark);
    font-weight: 500;
    transition: var(--apt-transition);
}

.pagination a:hover {
    border-color: var(--apt-primary);
    color: var(--apt-primary);
}

.pagination .current {
    background: var(--apt-primary);
    border-color: var(--apt-primary);
    color: #fff;
}

/* ========================================
   404 PAGE
======================================== */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 700;
    color: var(--apt-primary);
    line-height: 1;
    margin-bottom: 15px;
}

.error-404 h2 {
    font-size: 1.5rem;
    color: var(--apt-text-dark);
    margin-bottom: 15px;
}

.error-404 p {
    color: var(--apt-text-body);
    font-size: 1rem;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   BACK TO TOP
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--apt-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--apt-transition);
    z-index: 999;
    box-shadow: var(--apt-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: calc(30px + var(--apt-safe-bottom));
}

.back-to-top:hover {
    background: var(--apt-accent);
    transform: translateY(-3px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ========================================
   WORDPRESS CLASSES
======================================== */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Admin bar fix */
body.admin-bar .site-header {
    top: 32px;
}

body.admin-bar .site-container {
    padding-top: calc(var(--apt-header-height) + 32px);
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
    
    body.admin-bar .site-container {
        padding-top: calc(var(--apt-header-height-mobile) + 46px);
    }
}
