/*
Theme Name: Gimnastikos Akademija
Description: Custom theme for Gimnastikos Akademija gymnastics academy website
Version: 1.0
Author: Gimnastikos Akademija
*/

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #333;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #513256;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #3E243F;
}

/* Layout */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

/* Header */
.site-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.site-branding {
    display: flex;
    align-items: center;
    flex: 1;
    margin-right: 21px;
}

.logo-header {
    margin-right: 1rem;
}

/* .logo-header-image {
    height: 40px;
    width: auto;
} */

.site-branding .site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #513256;
    margin: 0;
    gap: 1rem;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.site-branding .site-title a {
    color: inherit;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0 0 0;
}

/* Navigation */
.main-navigation {
    position: relative;
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
    width: 45px;
    height: 45px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(81, 50, 86, 0.1);
}

.menu-toggle:focus {
    outline: 2px solid #513256;
    outline-offset: 2px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #513256;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
    transform-origin: center;
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-container ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu-container a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-container a:hover {
    color: #513256;
}

.menu-container a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #513256;
    transition: width 0.3s ease;
}

.menu-container a:hover::after {
    width: 100%;
}

/* CTA Button in Navigation */
.cta-menu-item {
    margin-left: 1rem;
}

.btn-cta {
    background: linear-gradient(135deg, #513256, #3E243F);
    color: white !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(81, 50, 86, 0.3);
    position: relative;
    overflow: hidden;
    text-wrap: nowrap!important;
}

.btn-cta::after {
    display: none !important;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 50, 86, 0.4);
    color: white !important;
}

/* .btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
} */

.btn-cta:hover::before {
    left: 100%;
}

/* Main content */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #513256 0%, #3E243F 100%);
    color: white;
    margin-top: auto;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-content h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.footer-content h3 .highlight {
    color: #A987BB;
}

.footer-content h4 {
    color: #A987BB;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-content h5 {
    color: #A987BB;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-content ul {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.3rem 0;
    display: block;
}

.footer-menu a:hover {
    color: white;
    padding-left: 0.5rem;
    transform: translateX(5px);
}

.footer-content .contact-details .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.footer-content .contact-details .contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-content .contact-details .contact-item .icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-content .contact-details .contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.2rem;
}

.footer-content .contact-details .contact-item a:hover {
    color: white;
}

.footer-content .contact-details .contact-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
}

.footer-link:hover {
    color: white;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Tablet Responsive - 1024px and below */
@media (max-width: 1024px) {
    .footer-container {
        padding: 3rem 1.5rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-info {
        grid-column: 1 / -1; /* Full width on first row */
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-info p {
        max-width: 600px;
        margin: 0 auto 2rem;
    }
}

/* Mobile Landscape and Small Tablets - 1050px and below */
@media (max-width: 1050px) {
    .footer-container {
        padding: 2.5rem 1rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-info {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-content h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .social-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .social-link {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .hours-list li {
        font-size: 0.85rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* Mobile Portrait - 480px and below */
@media (max-width: 480px) {
    .footer-container {
        padding: 2rem 1rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-info {
        grid-column: auto;
    }
    
    .footer-logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-logo-image {
        width: 40px;
        height: 40px;
    }
    
    .footer-content h3 {
        font-size: 1.3rem;
    }
    
    .footer-content h4 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-info p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .footer-menu a {
        font-size: 0.9rem;
        padding: 0.2rem 0;
    }
    
    .footer-content .contact-details .contact-item {
        padding: 0.6rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-content .contact-details .contact-item a,
    .footer-content .contact-details .contact-item p {
        font-size: 0.85rem;
    }
    
    .social-links {
        gap: 0.4rem;
    }
    
    .social-link {
        padding: 0.5rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .hours-list li {
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
    }
    
    .footer-bottom p,
    .footer-bottom-links a {
        font-size: 0.8rem;
    }
    
    .footer-bottom-links {
        gap: 0.5rem;
    }
}

/* Desktop Navigation - 1051px and above */
@media (min-width: 1051px) {
    .menu-toggle {
        display: none !important;
    }
    
    .menu-container {
        display: block !important;
        position: static !important;
        background: none !important;
        box-shadow: none !important;
        border: none !important;
        opacity: 1 !important;
        transform: none !important;
        max-width: none !important;
        border-radius: 0 !important;
    }
    
    .menu-container ul {
        display: flex !important;
        flex-direction: row !important;
        gap: 2rem !important;
    }
}

/* Desktop and larger screens specific adjustments */
@media (min-width: 1051px) {
    .footer-container {
        padding: 4rem 2rem 0;
    }
    
    .footer-content {
        gap: 3.5rem;
    }
}

/* Original mobile styles for header and other elements */
@media (max-width: 1050px) {
    .site-header {
        padding: 0.5rem 0;
    }
    
    .header-container {
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        position: relative;
    }
    
    .site-branding {
        flex: 1;
        min-width: 0;
    }
    
    .site-branding .site-title {
        font-size: 1.3rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo-header-image {
        height: 35px;
    }
    
    .menu-toggle {
        display: flex !important;
        margin-left: 10px;
        flex-shrink: 0;
    }
    
    .main-navigation {
        position: static;
    }
    
    .menu-container {
        display: none;
        position: fixed;
        top: 80px;
        left: 1rem;
        right: 1rem;
        max-width: calc(100vw - 2rem);
        background: white;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-radius: 12px;
        z-index: 1000;
        border: 1px solid rgba(0, 0, 0, 0.1);
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .main-navigation.toggled .menu-container,
    .main-navigation:focus-within .menu-container {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* CSS-only fallback for menu toggle */
    .menu-toggle:focus + .menu-container,
    .menu-toggle:active + .menu-container,
    .main-navigation:focus-within .menu-container {
        display: block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    /* Ensure menu toggle is focusable */
    .menu-toggle {
        -webkit-tap-highlight-color: transparent;
    }
    
    .menu-toggle:focus {
        outline: 2px solid #513256;
        outline-offset: 2px;
    }
    
    .menu-container ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .menu-container li {
        width: 100%;
        padding: 0;
    }
    
    .menu-container a {
        display: block;
        padding: 1rem 1.5rem;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .menu-container li:last-child a {
        border-bottom: none;
    }
    
    .menu-container li:first-child a {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
    
    .menu-container a:hover {
        background-color: #f8f9fa;
        color: #513256;
        /* Removed translateX to prevent overflow */
        transform: none;
    }
    
    .cta-menu-item {
        margin: 0.5rem 1rem 0.5rem 1rem;
        padding: 0;
    }
    
    .cta-menu-item a {
        border: none !important;
        border-radius: 25px !important;
    }
    
    .btn-cta {
        display: block !important;
        width: calc(100% - 2rem) !important;
        margin: 0.5rem 1rem !important;
        padding: 1rem 1.5rem !important;
        text-align: center !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        background: linear-gradient(135deg, #513256, #3E243F) !important;
        color: white !important;
        border-radius: 25px !important;
        transform: none !important;
        border: none !important;
        text-wrap: nowrap;
    }
    
    .btn-cta:hover {
        transform: translateY(-1px) !important;
        color: white !important;
        background: linear-gradient(135deg, #3E243F, #513256) !important;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .site-main {
        padding: 1rem;
    }
}

/* WordPress alignments */
.alignwide {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: auto;
    max-width: 1000%;
}

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

.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

/* Block editor styles */
.wp-block-image {
    margin-bottom: 1rem;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.wp-block-quote {
    border-left: 4px solid #e91e63;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.wp-block-button .wp-block-button__link {
    background-color: #e91e63;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.wp-block-button .wp-block-button__link:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

/* Contact Form Validation Styles */
.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    line-height: 1.4;
}

input.error,
textarea.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-message-container {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message-container.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message-container.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Enhanced form input styles */
#contact-form input,
#contact-form textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #513256;
    box-shadow: 0 0 0 0.2rem rgba(81, 50, 86, 0.25);
    outline: none;
}

/* Button loading state */
#contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}
