@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:wght@400;700&family=Roboto+Condensed:wght@700&display=swap');

:root {
    --brand-orange: #EB690A;
    --brand-dark: #1A1A1A;
    --whatsapp-green: #25D366;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
.brand-font {
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.glass-nav {
    background: #ffffff;
    border-bottom: 3px solid var(--brand-orange);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.glass-nav img {
    display: block;
    flex-shrink: 0;
}

/* NextGen Expansion - custom card styles */
.nextgen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.nextgen-card {
    position: relative;
    border-radius: 12px;
    padding: 1.25rem;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
}

.nextgen-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0 0 0 8px;
    letter-spacing: 0.08em;
}

.nextgen-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-orange);
    color: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.nextgen-cta:hover,
.nextgen-cta:focus {
    filter: brightness(0.95);
    transform: translateY(-2px);
    outline: none;
}

.progress {
    height: 8px;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-orange), #ff9a3a);
    width: 0%;
    transition: width 0.8s ease;
}

/* Predefined progress widths to avoid inline styles */
.progress-fill.p80 { width: 80%; }
.progress-fill.p65 { width: 65%; }
.progress-fill.p30 { width: 30%; }

/* Small responsive tweaks for NextGen section */
@media (max-width: 900px) {
    .nextgen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nextgen-grid {
        grid-template-columns: 1fr;
    }
    .nextgen-card { padding: 1rem; }
}

/* Focus styles for keyboard users */
.nextgen-cta:focus-visible {
    box-shadow: 0 0 0 4px rgba(235, 105, 10, 0.12);
}


/* Enhanced Navigation Hover Effect */
.nav-link {
    position: relative;
    font-weight: 600;
    color: #374151;
}

/* Global Transition Pattern */
a, button, .group, .nextgen-card, .industrial-card, .portfolio-item, .hover-trigger {
    transition: all 0.3s ease !important;
}

/* Hover Accessibility & Contrast Utilities */
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.hover-bright:hover {
    filter: brightness(1.1);
}

.hover-darken:hover {
    filter: brightness(0.9);
}

/* Force high contrast text on hover when background changes - Removed text color change */
.hover-orange:hover {
    background-color: var(--brand-orange) !important;
}

.nav-link:hover::after {
    width: 100%;
}

.hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.2) 100%);
}

.btn-orange {
    background-color: var(--brand-orange);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-orange:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(235, 105, 10, 0.3);
}

.btn-orange:active {
    transform: translateY(0) scale(0.98);
    filter: brightness(0.9);
}

.btn-orange:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(235, 105, 10, 0.4);
}

/* Global Focus Ring for Links/Buttons */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
textarea:focus-visible, 
select:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 4px;
}

/* Tactile feedback for all buttons */
button:active {
    transform: scale(0.97);
}

.industrial-card {
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s;
    border-radius: 12px;
    overflow: hidden;
}

.industrial-card:hover {
    border-left-color: var(--brand-orange);
    background: #f9fafb;
}

.stat-border {
    border-right: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .stat-border {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 1rem;
    }
}

#mobile-menu {
    transition: max-height 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

#mobile-menu.active {
    max-height: 400px;
}

#mobile-menu a {
    font-weight: 600;
    color: #374151;
    transition: color 0.3s ease;
}

/* WhatsApp Floating Button Styles */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--whatsapp-green);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-green 2s infinite;
    opacity: 0.5;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    70% {
        transform: scale(1.6);
        opacity: 0;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ===================================================================
   COPY-PASTE FIX: Force selection text to dark color.
   Using selection:text-white (Tailwind) copies white text to clipboard —
   making pasted text invisible on white backgrounds in Word/Docs/etc.
   This override is the single source of truth for ::selection styling.
   =================================================================== */
::selection {
    background-color: var(--brand-orange);
    color: #1A1A1A;              /* dark charcoal — readable after paste */
    -webkit-text-fill-color: #1A1A1A;  /* prevent any inherited transparent fill */
}

::-moz-selection {
    background-color: var(--brand-orange);
    color: #1A1A1A;
}

.text-brand-orange {
    color: var(--brand-orange);
}

.bg-brand-orange {
    background-color: var(--brand-orange);
}

.border-brand-orange {
    border-color: var(--brand-orange);
}

iframe {
    border: none;
}
