/*
Theme Name: SQ Web
Theme URI: 
Author: SQ 3D
Author URI: 
Description: A custom theme made by SQ 3D team, tailored to your needs.
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sq-web
Tags: 
*/

/* Make selectors more specific */
html .wp-site-blocks > * {
  margin-block-start: 0 !important;
}
a {
  text-decoration: none;
}
.wp-block-site-logo {
  img {
    width: 160px;

    @media (min-width: 992px) {
      width: 230px;
    }
  }
}
/* Base styles for the navigation */
.wp-block-navigation__container {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}
.wp-block-navigation .wp-block-navigation-item {
  font-size: 0.76rem !important;
  @media (min-width: 768px) {
    font-size: 1rem !important;
  }
}

/* Default (non-active) menu item color */
.wp-block-navigation-item:not(.current-menu-item)
  .wp-block-navigation-item__content {
  color: #568ea5 !important; /* Inactive color */
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Active menu item color */
.wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
  color: #00aeef !important; /* Active color */
  font-weight: bold;
}

/* Hover effect for non-active items */
.wp-block-navigation-item:not(.current-menu-item)
  .wp-block-navigation-item__content:hover {
  color: #00aeef !important; /* Hover color (same as active) */
}

/* Underline animation on hover */
.wp-block-navigation-item .wp-block-navigation-item__content {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
}

.wp-block-navigation-item:not(.current-menu-item)
  .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #00aeef; /* Hover underline color */
  transition: width 0.3s ease;
}

.wp-block-navigation-item:not(.current-menu-item)
  .wp-block-navigation-item__content:hover::after {
  width: 100%;
}

/* Optional: Add a subtle scale effect on hover */
.wp-block-navigation-item__content:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}
.wp-block-contact-form-7-contact-form-selector {
  .contact-form-wrapper {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    width: 400px;
    max-width: 90%;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .form-group {
    margin-bottom: 25px;
    position: relative;
  }

  .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }

  .form-group .wpcf7-form-control-wrap {
    flex: 1;
    position: relative;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 15px 50px 15px 18px;
    border: 2px solid #e1e8ed;
    border-radius: 0;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
  }

  .form-group.textarea input,
  .form-group.textarea textarea {
    padding: 18px 50px 18px 18px;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
  }

  .form-group textarea {
    resize: vertical;
    min-height: 120px;
  }

  .form-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00aeef;
    pointer-events: none;
    z-index: 2;
  }

  .form-group.textarea .form-icon {
    top: 30px;
    transform: none;
  }

  .form-icon svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
  }

  .form-group input:focus + .form-icon svg,
  .form-group textarea:focus + .form-icon svg {
    color: #3498db;
    opacity: 1;
  }

  .checkbox-group {
    margin-bottom: 25px;
  }

  .checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
  }

  .consent-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 2px;
    accent-color: #3498db;
    cursor: pointer;
  }

  .wpcf7-list-item-label {
    flex: 1;
  }

  .submit-group {
    position: relative;
  }

  .submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #1f3a93);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
  }

  .submit-btn:active {
    transform: translateY(0);
  }

  .submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  .wpcf7-spinner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
  }

  .wpcf7-form.submitting .wpcf7-spinner {
    display: block;
  }

  @keyframes spin {
    0% {
      transform: translateY(-50%) rotate(0deg);
    }
    100% {
      transform: translateY(-50%) rotate(360deg);
    }
  }

  .wpcf7-response-output {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
  }

  .wpcf7-response-output.wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
  }

  .wpcf7-response-output.wpcf7-validation-errors {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
  }
}

#scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #00aeef;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#scroll-to-top:hover {
  background: #34ccff;
}

#scroll-to-top.visible {
  display: block;
  opacity: 1;
}
