/*
Theme Name: Language Tutor
Theme URI: https://whoisabhi.com/fse-theme/language-tutor/
Author: Abhishek Deshpande
Author URI: https://whoisabhi.com
Description: Language Tutor is a versatile and responsive WordPress theme, expertly crafted to cater to a diverse range of businesses including tech startups, financial consulting firms, health clinics, educational institutions, creative agencies, real estate companies, and retail stores. This modern theme comes equipped with advanced full-site editing capabilities, allowing users to effortlessly customize their site’s layout, color schemes, and branding elements to perfectly align with their business identity. Whether you operate a boutique, a consultancy, a law practice, or a restaurant, Language Tutor provides a robust and adaptable foundation that combines sleek style with practical functionality. Its responsive design ensures that your website will deliver a seamless user experience on all devices, enhancing user engagement and establishing a professional online presence.
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: language-tutor
Tags: blog, block-patterns, block-styles, custom-menu, custom-colors, full-site-editing, template-editing, wide-blocks
*/

/* Table of Contents
1. Root Variables
2. Global Styles
3. Layout Styles
4. Typography
5. Navigation
6. Components
7. Accessibility
8. Performance Optimizations
9. Footer Styles
10. Media Queries
*/

/* 1. Root Variables */
:root {
  --lt-primary-color: #1a2878;
  --lt-secondary-color: #f0f0f0;
  --lt-accent-color: #5c5c73;
  --lt-background-color: #ffffff;
  --lt-text-color: #333333;
  --lt-font-family: 'Open Sans', sans-serif;
}

/* 2. Global Styles */
body, html {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--lt-font-family);
  color: var(--lt-text-color);
  background-color: var(--lt-background-color);
}

html {
  scroll-behavior: smooth;
  font-size: clamp(16px, 1vw + 1rem, 22px);
}

*, *::before, *::after {
  transition: all 0.3s ease-in-out;
}

a, button, input, textarea, select {
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* 3. Layout Styles */
.wp-site-blocks > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.responsive-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* 4. Typography */
#primary-content a:hover {
  color: var(--lt-primary-color) !important;
}

/* 5. Navigation */
.wp-block-navigation-submenu {
  position: relative;
}

.wp-block-navigation__submenu-container {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--lt-background-color);
  border: 1px solid var(--lt-accent-color);
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
  display: none;
}

.wp-block-navigation-submenu:hover .wp-block-navigation__submenu-container {
  display: block;
}

.wp-block-navigation__submenu-container a {
  padding: 10px 15px;
  color: var(--lt-primary-color) !important;
  text-decoration: none;
  display: block;
}

.wp-block-navigation__submenu-container a:hover {
  background-color: var(--lt-secondary-color);
}

/* 6. Components */
/* Serial number styles */
.serial-container {
  text-align: center;
}

.serial-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3em;
  height: 3em;
  border: 2px solid var(--lt-accent-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--lt-text-color);
  background-color: var(--lt-background-color);
  /* cursor: pointer; */
}

.serial-number:hover,
.serial-number:focus {
  background-color: var(--lt-accent-color);
  color: var(--lt-secondary-color) !important;
  outline: none;
}

.serial-number:focus-visible {
  outline: 2px solid var(--lt-primary-color);
  outline-offset: 2px;
}

/* Icon styles */
.dashicons {
  font-size: 4rem !important;
  width: 4rem !important;
  height: 4rem !important;
  color: var(--lt-accent-color);
}

/* 7. Accessibility */
:focus {
  outline: 2px solid var(--lt-accent-color);
  outline-offset: 2px;
}

.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;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* 8. Performance Optimizations */
.animated-element {
  will-change: transform;
}

.large-section {
  contain: content;
}

/* 9. Footer Styles */
.copyright {
  font-size: 0.60rem;
}

/* 10. Media Queries */
@media print {
  body {
    font-size: 12pt;
  }
  .no-print {
    display: none;
  }
}

@media (min-width: 768px) {
  /* Tablet styles */
}

@media (min-width: 1024px) {
  /* Desktop styles */
}

@media (max-width: 781px) {
    .wp-block-column {
        flex-basis: 100% !important;
    }

    .wp-block-social-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .copyright {
        text-align: center !important;
    }

    /* Ensure the toggle button is visible and styled appropriately */
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex !important;
        color: var(--wp--preset--color--foreground);
        font-size: 24px;
    }

    /* Style the open menu */
    .wp-block-navigation__responsive-container.is-menu-open {
        background-color: var(--wp--preset--color--background);
        padding: 3rem 1rem 1rem; /* Reduce top padding */
    }

    /* Style the close button */
    .wp-block-navigation__responsive-container-close {
        position: absolute;
        top: 0.5rem; /* Move closer to the top */
        right: 0.5rem; /* Move closer to the right edge */
        color: var(--lt-background-color);
        background-color: var(--lt-accent-color);
        font-size: 20px; /* Slightly smaller font size */
        width: 36px; /* Slightly smaller button */
        height: 36px; /* Slightly smaller button */
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        z-index: 9999;
    }

    /* Adjust the menu container to start content higher */
    .wp-block-navigation__responsive-container-content {
        padding-top: 0.5rem; /* Add a small top padding to the content */
    }

    /* Style the menu items */
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
        width: 100%;
        gap: 1rem;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
        width: 100%;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
        padding: 0.5rem 0;
        width: 100%;
        display: block;
        color: var(--lt-primary-color) !important; /* Set to primary color */
    }

    /* Style submenu items */
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
        display: block;
        padding-left: 1rem;
        position: static;
        background-color: transparent;
        border: none;
        box-shadow: none;
    }

    /* Ensure all links in the mobile menu use the primary color */
    .wp-block-navigation__responsive-container.is-menu-open a {
        color: var(--lt-primary-color) !important;
    }

    /* Optional: Style for active/current page link */
    .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > a {
        font-weight: bold;
        text-decoration: underline;
    }
}


.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  border: 1px solid #BBB;
  padding: 5px;
  width: 100%;
  font-size: 1em;
  color: #5c5c73;
}

.wpcf7 input[type="submit"] {
  background: #0073e6;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}

.wpcf7 input[type="submit"] {
  background: #ffe1e1;
  color: #5c5c73;
  font-weight: bold;
}

.wpcf7 input[type="submit"]:hover {
  background: #5C5C73;
  color: #FFFFFF;
  font-weight: bold;
}

.wpcf7-response-output {
  border-color: red !important;
  border-width: 5px !important;
  margin: 0px !important;

}








/* Kontejner formuláře */
.wpcf7 {
    padding: 40px 30px;
    border-radius: 20px;
    max-width: 500px;
    margin: 40px auto;
}

/* Layout formuláře - jeden sloupec */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Styly pro labely */
.wpcf7-form label {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* Styly pro všechny inputy a selecty */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Placeholder styling */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    opacity: 0.6;
}

/* Focus state */
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.01);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Hover state */
.wpcf7-form input:hover,
.wpcf7-form select:hover,
.wpcf7-form textarea:hover {
    border-color: rgba(0, 0, 0, 0.25);
}

/* Textarea */
.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Checkboxy */
.wpcf7-form p:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}

.wpcf7-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #667eea;
}

.wpcf7-form .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wpcf7-form .wpcf7-list-item-label {
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

/* Tlačítko odeslat */
.wpcf7-form input[type="submit"] {
    /* background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); */
    color: #5c5c73;
    padding: 14px 40px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.25);
    width: auto;
    align-self: flex-end;
    margin-top: 10px;
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.35);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Kontejner pro submit button */
.wpcf7-form p:has(input[type="submit"]) {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Povinná pole - hvězdička */
.wpcf7-form abbr {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
}

/* Poznámka o povinných polích */
.wpcf7-form > p:first-child {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 5px;
}

/* Responzivní design */
@media (max-width: 480px) {
    .wpcf7 {
        padding: 30px 20px;
    }
    
    .wpcf7-form input[type="submit"] {
        width: 100%;
        align-self: stretch;
    }
    
    .wpcf7-form p:has(input[type="submit"]) {
        justify-content: stretch;
    }
}

/* Validační zprávy */
.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
}

.wpcf7-response-output {
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 14px;
}

.wpcf7-mail-sent-ok {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    color: #2e7d32;
}

.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-validation-errors {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #c62828;
}

/* Select dropdown styling */
.wpcf7-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
}

/* Animace při načítání */
.wpcf7-form {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skupiny polí - mezery */
.wpcf7-form p {
    margin: 0;
}

/* Efekt pro disabled stavy */
.wpcf7-form input:disabled,
.wpcf7-form select:disabled,
.wpcf7-form textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Vylepšení pro lepší čitelnost */
.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
    line-height: 1.5;
}

/* Odkaz v checkboxu */
.wpcf7-form a {
    text-decoration: underline;
}

.wpcf7-form a:hover {
    opacity: 0.8;
}
