/*
Theme Name: Smart Gym Developer Theme
Theme URI: https://smartgym.me
Description: Prilagođena tema za Smart Gym – prvi dječiji fitnes centar u Crnoj Gori. Optimizovana za SEO i performanse.
Author: Smart Gym Developer
Author URI: https://smartgym.me
Template: hello-elementor
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: smartgym
Tags: children, fitness, gym, sports, education
*/

/* ========================================
   SMART GYM – GLOBAL STYLES
   ======================================== */

:root {
    --sg-primary: #FF6B35;
    --sg-primary-dark: #E55A2B;
    --sg-secondary: #2EC4B6;
    --sg-secondary-dark: #25A99D;
    --sg-dark: #1A1A2E;
    --sg-dark-light: #16213E;
    --sg-light: #F8F9FA;
    --sg-white: #FFFFFF;
    --sg-gray: #6C757D;
    --sg-gray-light: #E9ECEF;
    --sg-success: #28A745;
    --sg-warning: #FFC107;
    --sg-font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sg-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sg-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --sg-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --sg-radius: 12px;
    --sg-radius-lg: 20px;
    --sg-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sg-font-main);
    color: var(--sg-dark);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background: var(--sg-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--sg-primary);
    text-decoration: none;
    transition: var(--sg-transition);
}

a:hover {
    color: var(--sg-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sg-font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--sg-dark);
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.sg-header {
    background: var(--sg-white);
    box-shadow: var(--sg-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.sg-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}

.sg-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--sg-dark);
}

.sg-logo img {
    height: 50px;
    width: auto;
}

.sg-logo span {
    background: linear-gradient(135deg, var(--sg-primary), var(--sg-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sg-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.sg-nav a {
    color: var(--sg-dark);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--sg-transition);
    white-space: nowrap;
}

.sg-nav a:hover,
.sg-nav a.active {
    color: var(--sg-primary);
    background: rgba(255, 107, 53, 0.08);
}

.sg-nav-cta {
    background: linear-gradient(135deg, var(--sg-primary), var(--sg-primary-dark)) !important;
    color: var(--sg-white) !important;
    padding: 10px 22px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    margin-left: 10px;
}

.sg-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    color: var(--sg-white) !important;
}

/* Hamburger Menu */
.sg-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.sg-hamburger span {
    width: 28px;
    height: 3px;
    background: var(--sg-dark);
    border-radius: 3px;
    transition: var(--sg-transition);
}

/* Top Info Bar */
.sg-topbar {
    background: linear-gradient(135deg, var(--sg-dark), var(--sg-dark-light));
    color: var(--sg-white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.sg-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.sg-topbar a {
    color: var(--sg-secondary);
    font-weight: 500;
}

.sg-topbar-left,
.sg-topbar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* ========================================
   HERO SECTION
   ======================================== */

.sg-hero {
    background: linear-gradient(135deg, var(--sg-dark) 0%, var(--sg-dark-light) 100%);
    color: var(--sg-white);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sg-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,53,0.15), transparent);
    border-radius: 50%;
}

.sg-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46,196,182,0.1), transparent);
    border-radius: 50%;
}

.sg-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sg-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--sg-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.sg-hero h1 .highlight {
    background: linear-gradient(135deg, var(--sg-primary), var(--sg-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sg-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.8;
}

.sg-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */

.sg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--sg-transition);
    cursor: pointer;
    border: none;
}

.sg-btn-primary {
    background: linear-gradient(135deg, var(--sg-primary), var(--sg-primary-dark));
    color: var(--sg-white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.sg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    color: var(--sg-white);
}

.sg-btn-secondary {
    background: transparent;
    color: var(--sg-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.sg-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--sg-white);
    color: var(--sg-white);
}

.sg-btn-outline {
    background: transparent;
    color: var(--sg-primary);
    border: 2px solid var(--sg-primary);
}

.sg-btn-outline:hover {
    background: var(--sg-primary);
    color: var(--sg-white);
}

/* ========================================
   SECTIONS
   ======================================== */

.sg-section {
    padding: 80px 24px;
}

.sg-section-alt {
    background: var(--sg-light);
}

.sg-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sg-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.sg-section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
}

.sg-section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--sg-primary), var(--sg-secondary));
    margin: 15px auto 0;
    border-radius: 4px;
}

.sg-section-header p {
    font-size: 1.1rem;
    color: var(--sg-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   CARDS
   ======================================== */

.sg-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sg-card {
    background: var(--sg-white);
    border-radius: var(--sg-radius-lg);
    padding: 35px 30px;
    box-shadow: var(--sg-shadow);
    transition: var(--sg-transition);
    border: 1px solid var(--sg-gray-light);
}

.sg-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sg-shadow-lg);
}

.sg-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.sg-card-icon.sport { background: rgba(255, 107, 53, 0.1); color: var(--sg-primary); }
.sg-card-icon.swim { background: rgba(46, 196, 182, 0.1); color: var(--sg-secondary); }
.sg-card-icon.camp { background: rgba(40, 167, 69, 0.1); color: var(--sg-success); }
.sg-card-icon.party { background: rgba(255, 193, 7, 0.1); color: var(--sg-warning); }
.sg-card-icon.edu { background: rgba(111, 66, 193, 0.1); color: #6F42C1; }
.sg-card-icon.health { background: rgba(220, 53, 69, 0.1); color: #DC3545; }
.sg-card-icon.trip { background: rgba(23, 162, 184, 0.1); color: #17A2B8; }
.sg-card-icon.therapy { background: rgba(253, 126, 20, 0.1); color: #FD7E14; }

.sg-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.sg-card p {
    color: var(--sg-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.sg-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--sg-primary);
    font-size: 0.95rem;
}

.sg-card-link:hover {
    gap: 10px;
}

/* ========================================
   FEATURE BOXES / STATS
   ======================================== */

.sg-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.sg-stat {
    padding: 30px 20px;
}

.sg-stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--sg-primary), var(--sg-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.sg-stat-label {
    font-size: 1rem;
    color: var(--sg-gray);
    font-weight: 500;
}

/* ========================================
   PAGE CONTENT
   ======================================== */

.sg-page-hero {
    background: linear-gradient(135deg, var(--sg-dark) 0%, var(--sg-dark-light) 100%);
    color: var(--sg-white);
    padding: 60px 24px;
    text-align: center;
}

.sg-page-hero h1 {
    font-size: 2.5rem;
    color: var(--sg-white);
    margin-bottom: 15px;
}

.sg-page-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

.sg-breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.sg-breadcrumbs a {
    color: var(--sg-secondary);
}

.sg-breadcrumbs span {
    margin: 0 8px;
}

.sg-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px;
}

.sg-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--sg-dark);
}

.sg-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 12px;
}

.sg-content p {
    margin-bottom: 18px;
    color: #444;
    font-size: 1.05rem;
}

.sg-content ul, .sg-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.sg-content li {
    margin-bottom: 10px;
    color: #444;
    line-height: 1.7;
}

.sg-content-box {
    background: var(--sg-light);
    border-left: 4px solid var(--sg-primary);
    padding: 25px 30px;
    border-radius: 0 var(--sg-radius) var(--sg-radius) 0;
    margin: 30px 0;
}

.sg-content-box.teal {
    border-left-color: var(--sg-secondary);
}

/* ========================================
   CTA SECTION
   ======================================== */

.sg-cta {
    background: linear-gradient(135deg, var(--sg-primary), var(--sg-primary-dark));
    color: var(--sg-white);
    padding: 60px 24px;
    text-align: center;
    border-radius: 0;
}

.sg-cta h2 {
    font-size: 2rem;
    color: var(--sg-white);
    margin-bottom: 15px;
}

.sg-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sg-cta .sg-btn {
    background: var(--sg-white);
    color: var(--sg-primary);
}

.sg-cta .sg-btn:hover {
    background: var(--sg-dark);
    color: var(--sg-white);
}

/* ========================================
   RELATED SERVICES
   ======================================== */

.sg-related {
    background: var(--sg-light);
    padding: 60px 24px;
}

.sg-related h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.sg-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.sg-related-item {
    background: var(--sg-white);
    padding: 25px;
    border-radius: var(--sg-radius);
    box-shadow: var(--sg-shadow);
    transition: var(--sg-transition);
    display: block;
    color: var(--sg-dark);
}

.sg-related-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--sg-shadow-lg);
    color: var(--sg-dark);
}

.sg-related-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--sg-primary);
}

.sg-related-item p {
    font-size: 0.9rem;
    color: var(--sg-gray);
    margin: 0;
}

/* ========================================
   VIDEO EMBED
   ======================================== */

.sg-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--sg-radius-lg);
    box-shadow: var(--sg-shadow-lg);
    margin: 30px 0;
}

.sg-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================
   FEATURES LIST
   ======================================== */

.sg-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.sg-feature {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.sg-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(255, 107, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--sg-primary);
}

.sg-feature h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.sg-feature p {
    font-size: 0.9rem;
    color: var(--sg-gray);
    margin: 0;
}

/* ========================================
   FOOTER
   ======================================== */

.sg-footer {
    background: var(--sg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 24px 0;
}

.sg-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.sg-footer h3 {
    color: var(--sg-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.sg-footer p {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.sg-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sg-footer-links li {
    margin-bottom: 10px;
}

.sg-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--sg-transition);
    font-size: 0.95rem;
}

.sg-footer-links a:hover {
    color: var(--sg-secondary);
    padding-left: 5px;
}

.sg-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.sg-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.sg-contact-card {
    background: var(--sg-white);
    padding: 30px;
    border-radius: var(--sg-radius-lg);
    box-shadow: var(--sg-shadow);
    text-align: center;
}

.sg-contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.sg-contact-card p {
    color: var(--sg-gray);
    margin: 0;
}

.sg-contact-card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.sg-map-wrapper {
    border-radius: var(--sg-radius-lg);
    overflow: hidden;
    box-shadow: var(--sg-shadow-lg);
    margin: 30px 0;
}

.sg-map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* ========================================
   SERVICE DETAIL PAGE
   ======================================== */

.sg-service-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0 30px;
}

.sg-service-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sg-light);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--sg-gray);
    font-weight: 500;
}

/* Birthday types */
.sg-birthday-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.sg-birthday-type {
    background: var(--sg-light);
    padding: 24px;
    border-radius: var(--sg-radius);
    border-left: 4px solid var(--sg-primary);
}

.sg-birthday-type h4 {
    color: var(--sg-primary);
    margin-bottom: 8px;
}

.sg-birthday-type p {
    font-size: 0.92rem;
    color: var(--sg-gray);
    margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .sg-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--sg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--sg-shadow-lg);
        border-top: 1px solid var(--sg-gray-light);
    }

    .sg-nav.active {
        display: flex;
    }

    .sg-nav a {
        padding: 12px 16px;
        width: 100%;
    }

    .sg-hamburger {
        display: flex;
    }

    .sg-hero h1 {
        font-size: 2.2rem;
    }

    .sg-hero p {
        font-size: 1rem;
    }

    .sg-section-header h2 {
        font-size: 1.8rem;
    }

    .sg-page-hero h1 {
        font-size: 2rem;
    }

    .sg-content {
        padding: 40px 20px;
    }
}

@media (max-width: 600px) {
    .sg-topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .sg-topbar-right {
        display: none;
    }

    .sg-hero {
        padding: 50px 20px;
    }

    .sg-hero h1 {
        font-size: 1.8rem;
    }

    .sg-section {
        padding: 50px 16px;
    }

    .sg-stat-number {
        font-size: 2.2rem;
    }

    .sg-cards {
        grid-template-columns: 1fr;
    }

    .sg-footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SCHEMA / ACCESSIBILITY
   ======================================== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--sg-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .sg-header, .sg-footer, .sg-cta, .sg-topbar {
        display: none;
    }
    .sg-content {
        max-width: 100%;
        padding: 0;
    }
}
