/* ============================================================
   SHIPLN — custom.css
   Logistic Kinetic Design System
   Custom style overrides on top of Tailwind CDN
   ============================================================
   Brand Palette:
   Primary (Action)    : #E14A32
   Base (Charcoal)     : #272425
   Surface (Off-White) : #F1F1F1
   Accent (Mustard)    : #EBB036
   ============================================================ */

/* ----------------------------------------------------------
   CSS Custom Properties (mirroring Tailwind tokens)
   ---------------------------------------------------------- */
:root {
    --color-primary: #E14A32;
    --color-on-primary: #ffffff;
    --color-surface: #F1F1F1;
    --color-on-surface: #272425;
    --color-background: #F1F1F1;
    --color-secondary-container: #EBB036;
    --color-outline: #272425;
    --color-surface-variant: #272425;

    --font-headline: 'Space Grotesk', sans-serif;
    --font-body: 'Public Sans', sans-serif;
    --font-label: 'Public Sans', sans-serif;
}

/* ----------------------------------------------------------
   Global Resets & Base Styles
   ---------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-on-surface);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------------
   Material Symbols Base Configuration
   ---------------------------------------------------------- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ----------------------------------------------------------
   .shipln-btn-primary
   Action button — solid primary background
   ---------------------------------------------------------- */
.shipln-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    font-family: var(--font-headline);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.1s ease;
}

.shipln-btn-primary:hover {
    filter: brightness(1.1);
}

.shipln-btn-primary:active {
    transform: scale(0.95);
}

.shipln-btn-primary:focus-visible {
    outline: 2px solid var(--color-secondary-container);
    outline-offset: 2px;
}

/* ----------------------------------------------------------
   .shipln-btn-ghost
   Ghost / outline button — transparent with border
   ---------------------------------------------------------- */
.shipln-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: currentColor;
    font-family: var(--font-headline);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid currentColor;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.shipln-btn-ghost:hover {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    border-color: var(--color-primary);
}

.shipln-btn-ghost:active {
    transform: scale(0.95);
}

.shipln-btn-ghost:focus-visible {
    outline: 2px solid var(--color-secondary-container);
    outline-offset: 2px;
}

/* ----------------------------------------------------------
   .shipln-label
   Micro label — used for section tags and badges
   ---------------------------------------------------------- */
.shipln-label {
    display: inline-block;
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-secondary-container);
    line-height: 1;
}

/* ----------------------------------------------------------
   Section Treatments — Dark & Light
   ---------------------------------------------------------- */
.shipln-section-dark {
    background-color: var(--color-surface-variant);
    color: var(--color-surface);
}

.shipln-section-light {
    background-color: var(--color-surface);
    color: var(--color-on-surface);
}

/* ----------------------------------------------------------
   Dividers — context-aware
   ---------------------------------------------------------- */
.shipln-divider-dark {
    border: none;
    border-top: 1px solid rgba(241, 241, 241, 0.1);
}

.shipln-divider-light {
    border: none;
    border-top: 1px solid rgba(39, 36, 37, 0.1);
}

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

/* ----------------------------------------------------------
   Scrollbar (Webkit)
   ---------------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--color-outline);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ----------------------------------------------------------
   Footer Texture — Animated diagonal pattern
   ---------------------------------------------------------- */
.footer-texture {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(241, 241, 241, 0.03) 10px,
        rgba(241, 241, 241, 0.03) 20px
    );
    background-size: 200% 200%;
    animation: slide-dark-container 20s linear infinite;
}

@keyframes slide-dark-container {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* ----------------------------------------------------------
   Header Scroll State
   ---------------------------------------------------------- */
#site-header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#site-header.header-scrolled {
    background-color: rgba(39, 36, 37, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ----------------------------------------------------------
   WhatsApp Widget Custom Styles
   ---------------------------------------------------------- */
#wa-card-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#wa-toggle-btn.card-active svg {
    transform: rotate(180deg);
}

.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
    #wa-card-wrapper {
        right: -1rem;
    }
}
