/*
Theme Name: STONEK Dental Clinic
Theme URI: https://www.stonek.sk
Author: STONEK Team
Author URI: https://www.stonek.sk
Description: Professional dental clinic WordPress theme for STONEK - converted from static HTML. Features multilingual support (Slovak/English), custom page templates, and comprehensive dental services showcase.
Version: 2.0.27
Requires at least: 5.8
Tested up to: 6.8
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: stonek
Tags: health, medical, dental, clinic, multilingual, custom-menu, custom-logo, featured-images, sticky-post, theme-options

STONEK Dental Clinic WordPress Theme
Copyright 2024 STONEK s.r.o

Changelog:
v2.0.27 (2025-10-26)
- FINAL FIX: Removed ALL hardcoded footers from standalone page templates
- Fixed: page-zobrazovacie-techniky-pracoviska.php and page-en-OLD-BACKUP.php
- Enabled get_footer() call in these templates (was previously commented out)
- Result: 100% of pages now use ONLY footer.php with single sh-footer-template element
- Preserved menu-language-switch and menu-footer-menu IDs in footer.php
- Complete footer consistency across entire theme

v2.0.26 (2025-01-27)
- MAJOR FIX: Removed duplicate hardcoded footer elements from 28 page template files
- Fixed: Each page now renders only one footer (from footer.php via get_footer())
- Affected files: All page-*.php templates and front-page.php
- Result: Eliminated duplicate "sh-footer-template" elements on all pages
- Pages now load faster without redundant footer HTML

v2.0.25 (2025-01-26)
- CRITICAL FIX: Downloaded missing Simple Line Icons font formats (.eot and .svg)
- Fixed: Icon classes like "icon-location-pin", "icon-call-end", "icon-arrow-up" now display correctly
- All 5 Simple Line Icons formats now present: .eot, .svg, .woff2, .woff, .ttf (113KB each)
- Simple Line Icons now fully functional with complete font-face support

v2.0.24 (2025-01-26)
- VERIFICATION: Confirmed Font Awesome version matches live site (5.5.0) - no changes needed
- VERIFICATION: Confirmed footer.php has no duplication (only one sh-footer-template element)
- All icon libraries confirmed working with correct versions from production

v2.0.23 (2025-10-26)
- CRITICAL FIX: Fixed "jevelin is not defined" JavaScript error
- Changed wp_localize_script from 'stonek-scripts' to 'jevelin-scripts-js' (correct handle)
- Downloaded Simple Line Icons font files (woff2, woff, ttf - 113KB each)
- Fixed: Simple Line Icons now display correctly
- Fixed: Theme JavaScript now works properly with jevelin object available
- Total icon fonts: Font Awesome (4 files) + Simple Line Icons (3 files) = 7 font files

v2.0.22 (2025-10-26)
- CRITICAL FIX: Downloaded Font Awesome webfont files (missing fonts causing icons not to display)
- Added Font Awesome 5/6 webfonts: fa-brands-400.woff2, fa-regular-400.woff2, fa-solid-900.woff2
- Added Font Awesome 4 webfont: fontawesome-webfont.woff2
- Font Awesome icons now display correctly (both old icon-* and new fa-* classes)
- Total webfonts: 4 files (68K + 14K + 72K + 75K = 229K)
- Fixed: Icons were loading CSS but missing actual font files

v2.0.21 (2025-10-26)
- COMPREHENSIVE ASSET AUDIT: Scanned ALL 30+ pages from live site (Slovak + English)
- Created automated Python scanner (check-all-assets.py) to check for missing CSS/JS files
- Scanned pages: homepage, 10 services pages, team, pricing, FAQ, contact (both languages)
- Found and downloaded 5 missing files from live site:
  * js_composer_tta.min.css (Visual Composer tabs/tours/accordions styling)
  * style.min.css (114KB - WordPress block library core styles)
  * v4-shims.min.css (34KB - Font Awesome v4 compatibility layer)
  * vc-accordion.min.js (11KB - Visual Composer accordion interactivity)
  * vc-tta-autoplay.min.js (2.5KB - Visual Composer tab autoplay functionality)
- Added Font Awesome v4 compatibility (v4-shims.min.css) for legacy icon-* classes
- Total CSS files: 26 → 29
- Total JS files: 14 → 16
- Fixed Visual Composer tabs/accordions not displaying properly
- Fixed WordPress Gutenberg blocks missing styles
- Fixed Font Awesome v4 icon classes not rendering
- Verified Font Awesome setup: all.min.css (FA 5/6) + v4-shims + font-awesome.min.css (FA 4)
- Generated MISSING-ASSETS-REPORT.txt with full audit results

v2.0.20 (2025-10-26)
- MAJOR UPDATE: Removed Complianz GDPR and TranslatePress dependencies
- Removed complianz.min.js (causing "complianz is not defined" error)
- Removed trp-translate-dom-changes.js (causing "trp_data is not defined" error)
- Removed cookieblocker.min.css (Complianz CSS)
- Removed trp-language-switcher.css (TranslatePress CSS)
- Added ALL inline CSS from live site to WordPress theme:
  * Yellow Pencil custom CSS (#kontakt section, #services, #departments backgrounds, colors)
  * VC Composer custom CSS (all .vc_custom_* classes with padding, backgrounds, images)
  * Original inline CSS from Slovak templates (footer menus, header, gradients, banners)
  * Responsive theme CSS (all hover effects, color scheme, borders, overlays)
- Fixed #kontakt section styling (color: #5c540b, height: 575px, proper padding/width)
- Fixed #services links color (#2db4e1)
- Fixed #departments background image and overlay
- Total CSS reduced from 28 to 26 files
- Total JS reduced from 16 to 14 files
- ALL inline styles now properly loaded without errors

v2.0.19 (2025-10-26)
- MAJOR UPDATE: Synchronized CSS/JS files with live site (https://www.stonek.sk)
- Downloaded ALL 30 CSS files and 16 JS files from live website
- Updated functions.php to load EXACT same files as live site
- Added plugin CSS: Elementor, Getwid, Visual Composer, Revolution Slider, TranslatePress, Complianz GDPR
- Added plugin JS: Same as above plugins
- File structure now matches live site 1:1
- Total CSS files: 30 (plugins + theme + dynamic)
- Total JS files: 16 (plugins + theme + WordPress core)
- All files stored in assets/css and assets/js with original filenames
- Created LIVE-ASSETS-MAPPING.txt with full URL → filename mapping

v2.0.18 (2025-10-26)
- MAJOR FIX: Added custom inline CSS from original Slovak templates to WordPress enqueue
- Restored missing theme styles (jevelin-plugins-inline-css and jevelin-responsive-inline-css)
- Fixed: Footer menu styles, header mobile styles, hero gradient backgrounds, banner heights
- Fixed: Accent color scheme (#294cff blue), hover effects, button styles, selection colors
- Fixed: Titlebar colors, portfolio overlays, WooCommerce progress bars, form focus states
- Custom CSS now loads via wp_add_inline_style() on both Slovak and English pages
- Both language versions now have IDENTICAL CSS styling (files + inline styles)

v2.0.17 (2025-10-26)
- MAJOR FIX: Converted ALL Slovak templates to use get_header()/get_footer() properly
- Removed inline HTML, CSS, and JS from 26 Slovak page templates
- Slovak pages now load CSS/JS via WordPress enqueue system (same as English pages)
- Both Slovak and English pages now load IDENTICAL CSS and JS files
- Fixed: front-page.php, page-kontakt.php, page-sluzby.php, and all page-sluzby-*.php
- All original inline templates backed up with .backup-inline extension
- Result: Consistent 19 CSS files and 8 JS files across all languages

v2.0.16 (2025-10-26)
- CRITICAL FIX: Uncommented get_footer() in ALL Slovak page templates
- Fixed console debug not showing on Slovak pages (front-page.php and all page-*.php)
- Without get_footer(), wp_footer() hook never runs, blocking console debug output
- Now console debug appears on both Slovak and English pages for proper comparison
- Fixed templates: front-page.php, page-kontakt.php, page-sluzby.php, and 30+ other templates

v2.0.15 (2025-10-26)
- ENHANCED: Console debug now much more prominent and visible
- Added colored styled console output with borders and backgrounds
- Clearer comparison between Slovak and English pages
- Shows detailed file lists for both CSS and JS
- Better visual indicators (✅/❌) for all components
- Added helpful tip to compare Slovak vs English page loading
- Final status shown in large colored banner for quick identification

v2.0.14 (2025-10-26)
- MAJOR UPDATE: Hardcoded navigation menu in header.php (no longer using wp_nav_menu)
- Navigation now works without WordPress menu assignment
- All menu items have bilingual support (Slovak/English)
- URLs automatically adjust based on language (with /en/ prefix for English)
- Language switcher integrated into main navigation
- Menu items include: Home, Services (with 10 submenu items), Team, Price List, FAQ, Contact
- Active page highlighting works correctly
- Removed dependency on WordPress Admin → Menus configuration

v2.0.12 (2025-10-26)
- Enhanced console debug to identify navigation menu assignment issue
- Debug now checks for nav container vs actual menu element
- Added clear warning messages when menu is not assigned in WordPress
- Console now shows fix instructions: Appearance → Menus → Assign to "Primary Menu"
- Changed success criteria to not fail on missing menu (template is OK, just needs WP config)

v2.0.10 (2025-10-26)
- Added comprehensive browser console debugging for CSS/JS loading
- Console now shows all loaded CSS files (expected: 15+)
- Console now shows all loaded JS files (expected: 6+)
- Debug info includes: page info, template, language, WordPress enqueued files
- Console checks for missing header/footer/navigation elements
- Summary shows if all systems are working or if issues are detected
- Open browser console (F12) to see detailed debug information

v2.0.8 (2025-10-26)
- CRITICAL FIX: Replaced page-en.php with proper template using get_header()/get_footer()
- Fixed /en/ homepage not loading CSS/JS (was using inline HTML instead of WordPress functions)
- Renamed old page-en.php to page-en-OLD-BACKUP.php
- All English pages now properly load CSS/JS through WordPress enqueue system

v2.0.6 (2025-10-26)
- Improved template loading for English child pages
- Enhanced template_include filter to automatically detect and load correct English templates
- Added debug information in page source for troubleshooting
- Fixed template detection to work regardless of WordPress admin settings

v2.0.4 (2025-10-26)
- Fixed jQuery compatibility: Replaced deprecated $(window).load() with $(window).on('load')
- Fixed JavaScript errors preventing proper initialization on English pages
- Updated 6 occurrences in js-5256f7dcfbb0.js for jQuery 3.7.1 compatibility

v2.0.0 (2025-10-26)
- Added dynamic header and footer templates
- Implemented multilingual support with automatic link translation
- Added language detection system for English pages
- Updated all page templates to use get_header() and get_footer()
- Converted all English page templates (page-en-*.php)
- Fixed navigation menu URLs for English pages
- Added content link translation filters
- Improved theme performance and caching
*/

/* This theme inherits all styles from the original Jevelin theme and custom CSS */
/* All styles are loaded via functions.php using wp_enqueue_style() */

/* Basic Reset and Typography */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #363636;
    background-color: #ffffff;
}

/* Custom icon mappings for Font Awesome */
.icon-phone:before { 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    content: "\f095"; 
}

.icon-envelope:before { 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    content: "\f0e0"; 
}

.icon-clock:before { 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    content: "\f017"; 
}

.icon-call-end:before { 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    content: "\f3dd"; 
}

.icon-mail:before { 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    content: "\f0e0"; 
}

.icon-time:before { 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    content: "\f017"; 
}

.icon-location:before { 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    content: "\f3c5"; 
}

.icon-map-marker:before { 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    content: "\f3c5"; 
}

.icon-location-pin:before { 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    content: "\f3c5"; 
}

/* Make sure icons display properly */
[class^="icon-"]:before,
[class*=" icon-"]:before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* WordPress Core Styles */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
