/*
Theme Name: Pikplix Child Theme
Theme URI: https://pikplix.com
Description: A child theme of Twenty Twenty-Four for Pikplix Technologies
Author: Pikplix Technologies
Author URI: https://pikplix.com
Template: twentytwentyfour
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: pikplix-child
*/

/* Add your custom styles here */

/* Fix for missing icons - use text fallbacks */
.icon-fallback {
  display: inline-block;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Active navigation link */
nav a.active,
nav button.active {
  color: #f59e0b !important;
  border-bottom: 2px solid #f59e0b;
}

/* Button hover effects */
button {
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu styles */
@media (max-width: 768px) {
  nav[aria-label="Main"] {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 50;
  }
  
  nav[aria-label="Main"].active {
    display: flex !important;
    flex-direction: column;
  }
  
  nav[aria-label="Main"].active ul {
    flex-direction: column;
    width: 100%;
  }
  
  nav[aria-label="Main"].active li {
    margin: 0.5rem 0;
    width: 100%;
  }
}

/* Card hover effects */
.hover\:border-amber-500\/50:hover {
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
  transform: translateY(-5px);
}

/* Section hover animations */
section .border-neutral-200 {
  transition: all 0.3s ease;
}

section .border-neutral-200:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Service cards hover */
section .bg-white.shadow-\[rgba\(0\,0\,0\,0\)_0px_0px_0px_0px\,rgba\(0\,0\,0\,0\)_0px_0px_0px_0px\,rgba\(0\,0\,0\,0\.1\)_0px_1px_3px_0px\,rgba\(0\,0\,0\,0\.1\)_0px_1px_2px_-1px\] {
  transition: all 0.3s ease;
}

section .bg-white.shadow-\[rgba\(0\,0\,0\,0\)_0px_0px_0px_0px\,rgba\(0\,0\,0\,0\)_0px_0px_0px_0px\,rgba\(0\,0\,0\,0\.1\)_0px_1px_3px_0px\,rgba\(0\,0\,0\,0\.1\)_0px_1px_2px_-1px\]:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Industry cards hover */
.relative.bg-white.shadow-\[rgba\(0\,0\,0\,0\)_0px_0px_0px_0px\,rgba\(0\,0\,0\,0\)_0px_0px_0px_0px\,rgba\(0\,0\,0\,0\.1\)_0px_1px_3px_0px\,rgba\(0\,0\,0\,0\.1\)_0px_1px_2px_-1px\] {
  transition: all 0.3s ease;
}

.relative.bg-white.shadow-\[rgba\(0\,0\,0\,0\)_0px_0px_0px_0px\,rgba\(0\,0\,0\,0\)_0px_0px_0px_0px\,rgba\(0\,0\,0\,0\.1\)_0px_1px_3px_0px\,rgba\(0\,0\,0\,0\.1\)_0px_1px_2px_-1px\]:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Why Choose cards hover */
section .text-center.border-neutral-200 {
  transition: all 0.3s ease;
}

section .text-center.border-neutral-200:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

/* Progress bar animation */
#progress-bar {
  transition: width 0.3s ease;
}

/* Video overlay */
video {
  object-fit: cover;
}

/* Testimonial dots */
button.rounded-full {
  transition: all 0.3s ease;
}

button.rounded-full:hover {
  transform: scale(1.2);
}

/* Social media icons hover */
footer a[aria-label]:hover img {
  filter: brightness(1.2);
}

/* Input focus styles */
input[type="email"]:focus {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
a, button, input {
  transition: all 0.3s ease;
}

/* Hero section animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section:first-of-type h1,
section:first-of-type p,
section:first-of-type button {
  animation: fadeInUp 0.8s ease forwards;
}

section:first-of-type h1 {
  animation-delay: 0.2s;
}

section:first-of-type p {
  animation-delay: 0.4s;
}

section:first-of-type button {
  animation-delay: 0.6s;
}

/* Loading state for buttons */
button.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive video */
video {
  width: 100%;
  height: 100%;
}

/* Ensure sections are properly spaced */
section {
  scroll-margin-top: 100px;
}

/* WordPress Menu Styles */

/* Main menu items */
nav ul li {
  position: relative;
  list-style: none;
}

nav ul li a {
  position: relative;
  color: #334155;
  font-weight: 500;
  padding-bottom: 0.5rem;
  transition: color 0.3s ease;
  display: block;
  padding: 0.5rem 1rem;
}

nav ul li a:hover {
  color: #f59e0b;
}

/* Submenu container */
nav ul li ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  margin-top: 0;
  padding: 0.5rem 0;
  min-width: 220px;
  display: none;
  z-index: 15000;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show submenu on hover with smooth transition */
nav ul li:hover > ul.sub-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Keep submenu visible when hovering over it */
nav ul li ul.sub-menu:hover {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Add padding to parent item for better hover area */
nav ul li.menu-item-has-children {
  padding-bottom: 0.5rem;
}

/* Submenu items */
nav ul li ul.sub-menu li {
  margin: 0;
}

nav ul li ul.sub-menu li a {
  padding: 0.5rem 1rem;
  color: #334155;
  white-space: nowrap;
}

nav ul li ul.sub-menu li a:hover {
  background-color: #f9fafb;
  color: #f59e0b;
}

/* Add dropdown arrow for parent items */
nav ul li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.5rem;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.3s ease;
}

nav ul li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Increase hover area for better UX */
nav ul li.menu-item-has-children > a {
  padding-right: 1.5rem;
}

/* Add invisible bridge between parent and submenu */
nav ul li.menu-item-has-children::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
}

/* Mobile menu styles */
#mobile-menu {
  transition: all 0.3s ease;
}

#mobile-menu.active {
  display: block !important;
}

#mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mobile-menu ul li {
  margin: 0;
}

#mobile-menu ul li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #334155;
  font-weight: 500;
  transition: all 0.3s ease;
}

#mobile-menu ul li a:hover {
  background-color: #f9fafb;
  color: #f59e0b;
}

/* Mobile submenu */
#mobile-menu ul li ul.sub-menu {
  padding-left: 1rem;
  background-color: #f9fafb;
  display: none;
}

#mobile-menu ul li.menu-item-has-children.active > ul.sub-menu {
  display: block;
}

#mobile-menu ul li ul.sub-menu li a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Current menu item */
nav ul li.current-menu-item > a,
nav ul li.current-menu-parent > a {
  color: #f59e0b;
  border-bottom: 2px solid #f59e0b;
}

/* ======================================
   Pikplix Contact Form – FINAL CSS
   Works with .contact-form markup
   ====================================== */

.contact-form {
    max-width: 640px;
    width: 100%;
}

/* Field wrapper */
.contact-form .cf7-field {
    margin-bottom: 18px;
}

/* Labels */
.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.contact-form .required {
    color: #f59e0b;
}

/* Inputs, textarea, select */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.4;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

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

/* Placeholder */
.contact-form ::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Select arrow fix */
.contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239ca3af'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.25a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 44px;
}

/* Submit button wrapper */
.contact-form .cf7-submit {
    margin-top: 28px;
}

/* Submit button */
.contact-form button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    background-color: #f59e0b;
    color: #0f172a;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.contact-form button:hover {
    background-color: #fbbf24;
    transform: translateY(-1px);
}

.contact-form button:active {
    transform: translateY(0);
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .contact-form {
        max-width: 100%;
    }
}
