/**
 * PREC Ltd Custom Styles
 * 
 * Custom CSS for additional styling beyond Tailwind
 */

/* Typography - Font Families */

/* OPTION 1: Inter + Poppins (CURRENT - Modern & Clean) */
/* body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #374151;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #27562A;
} */

/* OPTION 2: Montserrat + Open Sans (Modern & Professional) */
/* body {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #374151;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #27562A;
} */

/* OPTION 3: Raleway + Lato (Elegant & Clean) */
/* body {
    font-family: 'Lato', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #374151;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #27562A;
} */

/* OPTION 4: Playfair Display + Source Sans Pro (Classic & Modern) */
/* body {
    font-family: 'Source Sans Pro', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #374151;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: #27562A;
} */

/* OPTION 5: Nunito + Roboto (Friendly & Corporate) */
body {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #374151;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #27562A;
}

/* OPTION 6: Work Sans + IBM Plex Sans (Tech & Professional) */
/* body {
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #374151;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #27562A;
} */

/* OPTION 7: DM Sans + Space Grotesk (Modern & Unique) */
/* body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #374151;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #27562A;
} */

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

/* Navigation and Menu */
nav, .menu, .navigation {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Buttons */
button, .btn, a.button {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Body Text */
p, li, span, div {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Hero Gradient Background */
.hero-gradient {
    background: linear-gradient(135deg, #27562A 0%, #3CA347 50%, #019297 100%);
}

/* Overlay Dark */
.overlay-dark {
    background: rgba(39, 86, 42, 0.9);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3CA347;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #27562A;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3CA347;
    outline-offset: 2px;
}

/* Remove outline/border on links when clicked */
a:focus:not(:focus-visible),
a:active {
    outline: none;
    border: none;
}

/* Remove outline on all interactive elements when clicked (not keyboard focused) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Keep focus visible for keyboard navigation (accessibility) */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #3CA347;
    outline-offset: 2px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
}

/* Image Zoom on Hover */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #27562A 0%, #3CA347 50%, #019297 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Button Styles */
.btn-primary {
    background: #3CA347;
    color: white;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #27562A;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(60, 163, 71, 0.3);
}

.btn-secondary {
    background: #019297;
    color: white;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #27562A;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(1, 146, 151, 0.3);
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #3CA347;
    box-shadow: 0 0 0 3px rgba(60, 163, 71, 0.1);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Accessibility - Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #3CA347;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Animation Delays for Staggered Effects */
.animate-delay-100 {
    animation-delay: 100ms;
}

.animate-delay-200 {
    animation-delay: 200ms;
}

.animate-delay-300 {
    animation-delay: 300ms;
}

/* Custom Shadow */
.shadow-prec {
    box-shadow: 0 10px 30px rgba(39, 86, 42, 0.1);
}

.shadow-prec-lg {
    box-shadow: 0 20px 50px rgba(39, 86, 42, 0.15);
}

/* Pulse Animation for CTAs */
@keyframes pulse-prec {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(60, 163, 71, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(60, 163, 71, 0);
    }
}

.pulse-prec {
    animation: pulse-prec 2s infinite;
}

/* Team Modal Styles */
#teamModal {
    backdrop-filter: blur(4px);
    z-index: 9999;
}

#teamModal .modal-inner {
    transform: scale(1);
    transition: all 0.3s ease-out;
}

/* Team Member Cards */
.team-member-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-member-card .view-profile-btn {
    transition: all 0.3s ease;
}

.team-member-card:hover .view-profile-btn {
    transform: translateY(-2px);
}

/* Line clamp utility for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Prevent body scroll when modal is open */
body.overflow-hidden {
    overflow: hidden;
}

/* Modal animation keyframes */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

.modal-animate-in {
    animation: modalFadeIn 0.3s ease-out forwards;
}

.modal-animate-out {
    animation: modalFadeOut 0.2s ease-in forwards;
}
