/**
 * ESC Escafly - Tailwind CSS Input
 * This file is processed by Tailwind CSS to generate styles.min.css
 * IMPORTANT: Must include @tailwind directives for Tailwind to work
 */

/* Tailwind CSS Directives - MUST be first */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #FF8800;
    --color-secondary: #0051a3;
    --color-dark-bg: rgba(0, 0, 0, 0.85);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-tooltip: 1060;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
html, body {
    background-color: #f9fafb !important;
}

html {
    scroll-behavior: smooth;
    /* Reserve scrollbar space to prevent layout shift when scrollbar appears/disappears */
    scrollbar-gutter: stable;
}

body {
    overscroll-behavior-y: none;
}

/* ==========================================================================
   Accessibility - Skip Links
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: var(--z-tooltip);
    border-radius: 0 0 4px 0;
    font-weight: 500;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.esc_text_logo {
    text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
}

.esc_brand_lockup {
    --esc-logo-height: 40px;
    --esc-logo-ratio: 1.7833333333;
    --esc-logo-width: calc(var(--esc-logo-height) * var(--esc-logo-ratio));
    --esc-logo-slogan-gap: 0.75rem;
    --esc-slogan-v-space: 0.25rem;
}

.esc_slogan_row {
    margin-top: 0.6em;
}

.esc_slogan_text {
    display: inline-block;
    width: max-content;
    padding-left: 0;
    font-size: 0.9rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
    font-style: italic;
    font-family: Georgia, "Times New Roman", Times, "Noto Serif", serif;
}

@media (min-width: 768px) {
    .esc_slogan_text {
        font-size: 0.97rem;
    }
}

#desktopMenu li {
    text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
}

/* #desktopMenu {
    min-height: 96px;
} */

/* ==========================================================================
   Hero Section - Gradient Background
   ========================================================================== */
.hero-gradient {
    background: linear-gradient(180deg, var(--color-primary) 0%, white 100%);
}

/* ==========================================================================
   Product Table - Sticky Column
   ========================================================================== */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll-hint {
    display: none;
    padding: 0.175rem 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    position: sticky;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 5;
}

.table-scroll-hint.is-visible {
    display: block;
}

@media (max-width: 768px) {
    .table-scroll-hint {
        display: block;
    }
}

.table-container table {
    border-collapse: separate;
    border-spacing: 0;
}

.table-container th,
.table-container td {
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background-clip: padding-box;
}

.table-container thead th {
    border-top: 1px solid #e5e7eb;
    background: var(--color-secondary);
    color: #ffffff;
    border-bottom: 2px solid #d1d5db;
}

.table-container thead .fixed-column {
    background: var(--color-secondary);
    color: #ffffff;
}

.table-container th:first-child,
.table-container td:first-child {
    border-left: 1px solid #e5e7eb;
}

.table-container tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.table-container tbody tr:nth-child(even) td {
    background: #fafafa;
}

.table-container tbody .fixed-column {
    /* background: #fff7ed; */
    /* Brand accent tint for fixed (name) column */
    /* color: #9a3412; */
    font-weight: 600;
}

/* .table-container tbody tr:nth-child(even) .fixed-column {
    background: #fff7ed;
    Brand accent tint on even rows
} */

.table-container tbody td:last-child {
    color: #ea580c;
    font-weight: 600;
    font-size: 1.1em;
}
.table-container tbody td:first-child {
    font-size: 1.1em;
}
.fixed-column {
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 20;
    box-shadow: 1px 0 0 #e5e7eb;
}

#product-table-container {
    border: 1px solid #6b6b6b;
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */
#scrollToTopButton {
    opacity: 0.6;
    transition: opacity var(--transition-base),
                transform var(--transition-base);
}

#scrollToTopButton:hover {
    opacity: 1;
    transform: scale(1.1);
}

#scrollToTopButton:active {
    transform: scale(0.95);
}

/* ==========================================================================
   Mobile Menu Animation
   ========================================================================== */
.mobile-menu {
    transform: translateX(100%);
    transition: transform var(--transition-base) ease-in-out;
    will-change: transform;
}

.mobile-menu.open {
    transform: translateX(0);
}

#mobileMenu {
    z-index: 9999;
}

#closeMobileMenu {
    color: #000;
}
#mobileMenuBtn {
    outline: 0;
}

/* Remove focus outlines for mobile menu links to prevent Safari outline on click */
#mobileMenu a:focus {
    outline: none;
}
/* ==========================================================================
   Responsive Enhancements
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
#cookieConsent {
    border-top: 1px solid #ffffff;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .skip-link,
    #scrollToTopButton,
    .mobile-menu,
    #cookieConsent,
    header nav button {
        display: none !important;
    }
}
.italic{
    font-style: italic;
}
.whitespace-nowrap {
  white-space: nowrap;
}

/* Show only on very narrow devices (<356px) */
.mobile-menu__company-name {
    display: none;
}

@media (max-width: 355px) {
    .mobile-menu__company-name {
        display: block;
    }
}