:root {
    --brand-orange: #e84e1c;
    --brand-dark-orange: #c0380c;
    --brand-dark: #0f172a;
    --brand-light: #f3f4f6;
    --brand-cream: #fdfbf7;
    --brand-green: #10b981;
    --brand-blue: #3b82f6;
    --brand-red: #ef4444;
}

html {
    scroll-behavior: smooth;
}

/* Bold, tight headings — clean body text */
h1, h2, h3 {
    letter-spacing: -0.01em;
    line-height: 1.15;
}

h4, h5, h6 {
    letter-spacing: 0;
    line-height: 1.3;
}

body {
    -webkit-tap-highlight-color: transparent;
    padding-bottom: 80px;
}

@media (min-width: 1024px) {
    body {
        padding-bottom: 0;
    }
}

/* Global typography fallback for pages without prose class */
article p, section p, main p {
    margin-bottom: 1rem;
    line-height: 1.625;
}

article h2, article h3, article h4,
section h2, section h3, section h4 {
    margin-bottom: 0.75rem;
}

article ul, article ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

article li {
    margin-bottom: 0.25rem;
}

input, select, textarea {
    font-size: 16px !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: absolute;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .mega-menu {
        transition: all 0.3s ease-in-out;
        transform: translateY(10px);
    }

    .group:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

/* Nav CTA pulse */
@keyframes navPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 78, 28, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(232, 78, 28, 0); }
}

.nav-pulse {
    animation: navPulse 2s ease-in-out infinite;
}

.nav-pulse:hover {
    animation: none;
}

/* Phone icon pulse */
@keyframes phonePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.phone-pulse {
    animation: phonePulse 1.5s ease-in-out infinite;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content.active {
    max-height: 500px;
}

.faq-button.active i {
    transform: rotate(180deg);
}

.hero-gradient {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-overlay {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.65));
}

@media (max-width: 640px) {
    .hero-overlay {
        background: linear-gradient(rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.75) 100%);
    }
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-dark-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.btn-primary {
    background-color: var(--brand-orange);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background-color: var(--brand-dark-orange);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--brand-dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #1e293b;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--brand-orange);
    color: var(--brand-orange);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--brand-orange);
    color: white;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
}

.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(232, 78, 28, 0.1);
}

input[type="checkbox"]:checked {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.custom-checkbox:checked + label {
    color: var(--brand-orange);
}

.custom-checkbox:checked + div {
    border-color: var(--brand-orange);
    background-color: #fff7ed;
}

@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }

    .mobile-full {
        width: 100%;
    }

    .mobile-hidden {
        display: none;
    }

    .mobile-text-center {
        text-align: center;
    }
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 640px) {
    .section-padding {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

.container-width {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-width {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--brand-orange);
}

.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;
}

.safe-area-pb {
    padding-bottom: env(safe-area-inset-bottom);
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.shadow-soft {
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.08);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(232, 78, 28, 0.1);
}

.shadow-card {
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.08);
}

.shadow-up {
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   LANGUAGE TOGGLE SLIDER
   ===================================================== */
.lang-toggle {
    cursor: pointer;
    gap: 6px;
    align-items: center;
    user-select: none;
}

.lang-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #9ca3af;
    transition: color 0.2s;
}

.lang-label.active {
    color: var(--brand-orange);
}

.lang-slider {
    width: 32px;
    height: 18px;
    background: #e5e7eb;
    border-radius: 9px;
    position: relative;
    transition: background 0.2s;
}

.lang-slider-thumb {
    width: 14px;
    height: 14px;
    background: var(--brand-orange);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lang-toggle.es .lang-slider-thumb {
    left: 16px;
}

.lang-toggle.es .lang-en { color: #9ca3af; }
.lang-toggle.es .lang-es { color: var(--brand-orange); }

/* Hide Google Translate bar */
.goog-te-banner-frame, .skiptranslate, #goog-gt-tt {
    display: none !important;
}

body { top: 0 !important; }

/* =====================================================
   ADA ACCESSIBILITY WIDGET
   ===================================================== */
.ada-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    background: var(--brand-dark);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s;
}

.ada-tab:hover {
    width: 44px;
    background: var(--brand-orange);
}

.ada-panel {
    position: fixed;
    left: -300px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    width: 280px;
    background: white;
    border-radius: 0 12px 12px 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    transition: left 0.3s ease;
    overflow: hidden;
}

.ada-panel.open {
    left: 0;
}

.ada-panel-header {
    background: var(--brand-dark);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ada-panel-header h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0;
}

.ada-close {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.ada-close:hover {
    color: var(--brand-orange);
}

.ada-panel-body {
    padding: 20px;
}

.ada-control {
    margin-bottom: 16px;
}

.ada-control label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ada-btn-group {
    display: flex;
    gap: 4px;
}

.ada-btn-group button {
    flex: 1;
    padding: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    color: #374151;
}

.ada-btn-group button:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.ada-toggle-btn {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    color: #9ca3af;
}

.ada-toggle-btn:hover {
    border-color: var(--brand-orange);
}

.ada-toggle-btn.active {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: white;
}

.ada-reset-btn {
    width: 100%;
    padding: 10px;
    background: var(--brand-dark);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.15s;
}

.ada-reset-btn:hover {
    background: var(--brand-orange);
}

.ada-panel-footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
}

.ada-panel-footer a {
    color: var(--brand-orange);
    font-weight: 600;
    text-decoration: none;
}

.ada-panel-footer a:hover {
    text-decoration: underline;
}

/* ADA Mode Styles */
body.ada-high-contrast {
    filter: contrast(1.4);
}

body.ada-highlight-links a {
    outline: 2px solid var(--brand-orange) !important;
    outline-offset: 2px;
    text-decoration: underline !important;
}

body.ada-grayscale {
    filter: grayscale(1);
}

body.ada-high-contrast.ada-grayscale {
    filter: contrast(1.4) grayscale(1);
}

@media (max-width: 640px) {
    .ada-tab {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .ada-tab {
        width: 36px;
        height: 36px;
        font-size: 16px;
        top: auto;
        bottom: 100px;
        transform: none;
    }
}
