/* AutoKeyExpress Complete Styles - Full CSS with all custom styles */

/* ============================================
   CUSTOM UTILITIES & COMPONENTS
   ============================================ */

/* Container */
.container-custom {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Section Padding */
.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slide-in-right 0.8s ease-out;
}

.animate-scale-in {
    animation: scale-in 0.5s ease-out;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Hover Scale */
.hover-scale {
    transition: transform 0.2s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Story Link (with underline effect) */
.story-link {
    position: relative;
    transition: color 0.2s ease-in-out;
}

.story-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: hsl(32, 95%, 58%);
    transition: width 0.3s ease-in-out;
}

.story-link:hover::after {
    width: 100%;
}

/* Header Scroll Effects */
header.scroll-down {
    transform: translateY(-100%);
}

header.scroll-up {
    transform: translateY(0);
}

/* Mobile Menu Toggle */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#mobile-menu.show {
    max-height: 100vh;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button Variants */
.btn-primary {
    background-color: hsl(156, 45%, 18%);
    color: hsl(0, 0%, 98%);
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: hsl(156, 55%, 15%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background-color: hsl(32, 95%, 58%);
    color: hsl(0, 0%, 100%);
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-accent:hover {
    background-color: hsl(32, 95%, 50%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(156, 15%, 89%);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: hsl(32, 95%, 58%);
    box-shadow: 0 0 0 3px hsla(32, 95%, 58%, 0.1);
}

/* WhatsApp Button Pulse */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 hsla(142, 76%, 36%, 0.7);
    }
    100% {
        box-shadow: 0 0 0 15px hsla(142, 76%, 36%, 0);
    }
}

.whatsapp-button {
    animation: pulse-ring 2s infinite;
}

/* Gradient Overlays */
.gradient-overlay {
    background: linear-gradient(
        to right,
        hsla(156, 45%, 18%, 0.6),
        hsla(156, 45%, 18%, 0.5),
        hsla(156, 45%, 18%, 0.4)
    );
}

/* Service Card Colors */
.service-card-blue {
    background: linear-gradient(135deg, #EBF8FF 0%, #BEE3F8 100%);
    border-color: #90CDF4;
}

.service-card-green {
    background: linear-gradient(135deg, #F0FFF4 0%, #C6F6D5 100%);
    border-color: #9AE6B4;
}

.service-card-purple {
    background: linear-gradient(135deg, #FAF5FF 0%, #E9D8FD 100%);
    border-color: #D6BCFA;
}

.service-card-orange {
    background: linear-gradient(135deg, #FFFAF0 0%, #FEEBC8 100%);
    border-color: #FBD38D;
}

.service-card-red {
    background: linear-gradient(135deg, #FFF5F5 0%, #FED7D7 100%);
    border-color: #FC8181;
}

.service-card-indigo {
    background: linear-gradient(135deg, #EBF4FF 0%, #C3DAFE 100%);
    border-color: #A3BFFA;
}

/* Navigation Dropdown */
nav .submenu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
}

nav .group:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Footer Styling */
footer a {
    transition: color 0.2s ease-in-out;
}

footer a:hover {
    color: hsl(32, 95%, 58%);
}

/* Back to Top Button */
.back-to-top {
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Image Aspect Ratios */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
}

/* Skip Link Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: hsl(156, 45%, 18%);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid hsl(156, 45%, 18%);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* FAQ Accordion */
.faq-question {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.faq-question:hover {
    background-color: hsl(156, 8%, 98%);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.faq-answer.open {
    max-height: 500px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(156, 12%, 45%);
}

.breadcrumbs a {
    color: hsl(156, 45%, 18%);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid hsl(156, 15%, 89%);
    border-radius: 0.375rem;
    text-decoration: none;
    color: hsl(156, 45%, 18%);
    transition: all 0.2s ease-in-out;
}

.pagination a:hover {
    background-color: hsl(156, 45%, 18%);
    color: white;
    border-color: hsl(156, 45%, 18%);
}

.pagination .current {
    background-color: hsl(156, 45%, 18%);
    color: white;
    border-color: hsl(156, 45%, 18%);
}

/* Print Styles */
@media print {
    header,
    footer,
    .whatsapp-button,
    .back-to-top,
    nav {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* Utility Classes */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

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

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid hsl(32, 95%, 58%);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: hsl(156, 8%, 95%);
}

::-webkit-scrollbar-thumb {
    background: hsl(156, 45%, 18%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(156, 55%, 15%);
}

/* Selection Styling */
::selection {
    background-color: hsl(32, 95%, 58%);
    color: white;
}

::-moz-selection {
    background-color: hsl(32, 95%, 58%);
    color: white;
}
