/*
Theme Name: PhysioTerapy - Homely Physio Theme
Theme URI: https://homelyphysio.pl
Author: Kamil Postrzygacz
Author URI: https://homelyphysio.pl
Description: Profesjonalny motyw dla kliniki fizjoterapii HomelyPhysio. W pelni kompatybilny z Elementor Page Builder.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: physiotherapy
Tags: elementor, physiotherapy, one-column, custom-menu, custom-logo, featured-images, full-width-template, theme-options
*/

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --physio-primary: #2e7d6f;
    --physio-primary-dark: #1b5e50;
    --physio-accent: #e8a838;
    --physio-text: #2c3e50;
    --physio-text-light: #6b7b8d;
    --physio-bg: #ffffff;
    --physio-bg-light: #f7f9fc;
    --physio-border: #e1e8ed;
    --physio-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--physio-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--physio-text);
    background-color: var(--physio-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--physio-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--physio-primary-dark);
}

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

/* === Header === */
.site-header {
    background: var(--physio-bg);
    border-bottom: 1px solid var(--physio-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-branding .custom-logo {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--physio-primary);
    margin: 0;
}

.site-title a {
    color: inherit;
}

.site-description {
    font-size: 0.8rem;
    color: var(--physio-text-light);
    margin: 0;
}

/* === Navigation === */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--physio-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--physio-primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--physio-text);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--physio-bg);
        border-bottom: 1px solid var(--physio-border);
        padding: 1rem 2rem;
        gap: 0.5rem;
    }

    .main-navigation.toggled ul {
        display: flex;
    }
}

/* === Content === */
.site-content {
    min-height: 60vh;
}

.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--physio-text);
    line-height: 1.3;
}

.entry-content {
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 2rem 0 1rem;
    color: var(--physio-text);
}

/* === Footer === */
.site-footer {
    background: var(--physio-text);
    color: #cbd5e0;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widgets .widget-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-widgets a {
    color: #cbd5e0;
}

.footer-widgets a:hover {
    color: var(--physio-accent);
}

.site-info {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* === Elementor Compatibility === */
.elementor-page .site-content .content-area {
    max-width: 100%;
    padding: 0;
}

.elementor-page .entry-header {
    display: none;
}

.elementor-page.no-header .site-header {
    display: none;
}

.elementor-page.no-footer .site-footer {
    display: none;
}

/* Elementor canvas - clean slate */
.elementor-template-canvas .site-header,
.elementor-template-canvas .site-footer {
    display: none;
}

/* Elementor full width */
.elementor-template-full-width .site-content .content-area {
    max-width: 100%;
    padding: 0;
}

/* === Widget Styles === */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--physio-text);
}

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

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}
