/* =====================================================
   GHC Packaging - Custom Styles
   ===================================================== */

:root {
    --color-primary: #0F766E;
    --color-secondary: #14B8A6;
    --color-accent: #F59E0B;
    --color-dark: #0F172A;
    --color-light: #F8FAFC;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Selection */
::selection {
    background: var(--color-primary);
    color: white;
}

/* Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header scroll state */
#site-header.scrolled {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

/* Line clamp utilities (fallback) */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animated gradient text */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s ease infinite;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(15, 118, 110, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(15, 118, 110, 0.4);
}

/* Card hover lift */
.card-lift {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Prose typography */
.prose h2 {
    font-family: 'Poppins', 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1.875rem;
    color: var(--color-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.prose h3 {
    font-family: 'Poppins', 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.prose p {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.prose ul, .prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.prose ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
}
.prose a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Swiper customization */
.testimonials-swiper .swiper-pagination-bullet {
    background: var(--color-primary);
    opacity: 0.4;
    width: 10px;
    height: 10px;
}
.testimonials-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 5px;
}

/* Hero slideshow */
.hero-swiper {
    position: relative;
}
.hero-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
}
.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 4px;
    background: var(--color-accent);
}
.hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}
.hero-swiper img {
    transform: scale(1.05);
    transition: transform 6s ease-out;
}
.hero-swiper .swiper-slide-active img {
    transform: scale(1);
}

/* GLightbox tweaks */
.glightbox-clean .gslide-description {
    background: rgba(15, 118, 110, 0.95);
}

/* Form focus polish */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Mobile menu animation */
#mobile-menu.show {
    animation: slideDown 0.3s ease;
}

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

/* Print styles */
@media print {
    #site-header, footer, .swiper, [data-aos] {
        display: none !important;
    }
}

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

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}
.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
