/*
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.9
Requires PHP: 7.4
Version: 1.0.3
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: #0a8fc4;
  --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);
  line-height: 1.65;
}

html {
  scroll-behavior: smooth;
  font-size: clamp(16px, 0.35vw + 15px, 18px);
}

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;
}

.wp-block-navigation a,
.wp-block-navigation .wp-block-navigation-item__content,
.wp-block-button__link {
  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;
}

p {
  line-height: 1.65;
}

/* 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);
}

.wp-block-navigation a:focus-visible,
.wp-block-navigation .wp-block-navigation-item__content:focus-visible {
  outline: 2px solid var(--lt-background-color);
  outline-offset: 2px;
  background-color: rgba(0, 0, 0, 0.2);
  text-decoration: underline;
}

.wp-block-navigation__submenu-container a:focus-visible {
  outline: 2px solid var(--lt-primary-color);
  outline-offset: 2px;
  background-color: var(--lt-secondary-color);
  color: var(--lt-primary-color) !important;
}

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 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;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 10px;
  left: 10px;
  clip: auto !important;
  clip-path: none;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  background-color: var(--lt-primary-color);
  color: var(--lt-background-color);
  font-weight: 600;
  z-index: 100001;
}

.wp-block-button__link:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--lt-primary-color);
  outline-offset: 3px;
}

.wp-block-social-links .wp-social-link a:focus-visible {
  outline: 2px solid var(--lt-background-color);
  outline-offset: 3px;
  border-radius: 999px;
}

.wp-block-group.has-custom-accent-background-color a {
  color: var(--lt-background-color);
}

.wp-block-group.has-text-color.has-background a {
  color: var(--lt-background-color);
}

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

.large-section {
  contain: content;
}

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

/* 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(--lt-background-color);
        font-size: 24px;
    }

    /* Style the open menu */
    .wp-block-navigation__responsive-container.is-menu-open {
        background-color: var(--lt-background-color);
        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;
    }

    .wp-block-navigation__responsive-container-open:focus-visible,
    .wp-block-navigation__responsive-container-close:focus-visible {
        outline: 2px solid var(--lt-primary-color);
        outline-offset: 3px;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible,
    .wp-block-navigation__responsive-container.is-menu-open a:focus-visible {
        outline: 2px solid var(--lt-primary-color);
        outline-offset: 2px;
        background-color: var(--lt-secondary-color);
        text-decoration: underline;
    }
}
