/**
 * Secondbay - Garantie Page Styles
 * Extracted from inline styles for better caching
 */

/* ===== CSS RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --text: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #6b6b85;
    --border: #e4e4ed;
    --border-light: #f4f4f8;
    --bg: #f8f8fc;
    --surface: #ffffff;
    --primary: #5b4cdb;
    --primary-light: #ededfc;
    --primary-dark: #4a3cb8;
    --success: #059669;
    --success-light: #ecfdf5;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --gradient: linear-gradient(135deg, var(--primary) 0%, #7c6fe3 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 8px 24px rgba(91, 76, 219, 0.25);
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --min-touch-target: 44px;
    --focus-ring: 0 0 0 3px rgba(91, 76, 219, 0.4);
}

html { 
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Selection styling - improved contrast */
::selection { 
    background: var(--primary); 
    color: white; 
}

/* Improved focus states for all interactive elements */
:focus-visible { 
    outline: 2px solid var(--primary); 
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Screen reader only content */
.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;
}

main { flex: 1; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 24px;
}

.breadcrumb-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    padding: 4px 0;
    min-height: var(--min-touch-target);
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 12px;
    user-select: none;
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 500;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 50%, #1a1a2e 100%);
    color: white;
    padding: 80px 24px 130px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 140%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(91, 76, 219, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero-icon {
    width: 96px;
    height: 96px;
    background: rgba(91, 76, 219, 0.25);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-icon svg {
    width: 44px;
    height: 44px;
    color: white;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: clamp(16px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 550px;
    margin: 0 auto;
}

/* ===== WARRANTY CARDS ===== */
.warranty-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: -70px auto 60px;
    position: relative;
    z-index: 10;
    max-width: 1000px;
    padding: 0 24px;
}

.warranty-card {
    background: var(--surface);
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.warranty-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.warranty-card:hover::before { 
    opacity: 1; 
}

.warranty-card:hover { 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary);
}

.warranty-card > * {
    position: relative;
    z-index: 1;
}

.warranty-card:hover h3,
.warranty-card:hover p {
    color: white;
}

.warranty-card-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all var(--transition-smooth);
    color: var(--primary);
}

.warranty-card:hover .warranty-card-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.warranty-card:hover .warranty-card-icon svg {
    color: white;
}

.warranty-card-icon svg {
    width: 28px;
    height: 28px;
    transition: color var(--transition-base);
}

.warranty-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    transition: color var(--transition-base);
}

.warranty-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
    transition: color var(--transition-base);
}

.warranty-card .highlight {
    display: inline-block;
    padding: 8px 16px;
    background: var(--success-light);
    color: var(--success);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    transition: all var(--transition-base);
}

.warranty-card:hover .highlight {
    background: white;
    color: var(--primary);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    background: var(--surface);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition-smooth);
}

.content-section:hover {
    box-shadow: var(--shadow-md);
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -0.02em;
    scroll-margin-top: 80px;
}

.section-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.content-section h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 28px 0 14px;
    color: var(--text);
}

.content-section p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 16px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section strong {
    color: var(--text);
    font-weight: 600;
}

.content-section a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.content-section a:hover {
    color: var(--primary-dark);
}

.content-section ul {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
}

.content-section > ul > li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.content-section > ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.content-section > ul > li:last-child {
    margin-bottom: 0;
}

/* ===== COVERAGE GRID ===== */
.coverage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

.coverage-card {
    padding: 28px;
    border-radius: 16px;
}

.coverage-card.covered {
    background: var(--success-light);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.coverage-card.not-covered {
    background: var(--danger-light);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.coverage-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.coverage-card.covered h4 {
    color: var(--success);
}

.coverage-card.not-covered h4 {
    color: var(--danger);
}

.coverage-card h4 svg {
    width: 22px;
    height: 22px;
}

.coverage-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.coverage-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 0;
}

.coverage-card li::before {
    display: none;
}

.coverage-card li:last-child {
    margin-bottom: 0;
}

.coverage-card li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 3px;
}

.coverage-card.covered li svg {
    color: var(--success);
}

.coverage-card.not-covered li svg {
    color: var(--danger);
}

/* ===== CLAIM STEPS ===== */
.claim-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.claim-step {
    text-align: center;
    position: relative;
}

.claim-step::after {
    content: '→';
    position: absolute;
    right: -16px;
    top: 28px;
    color: var(--text-muted);
    font-size: 20px;
}

.claim-step:last-child::after {
    display: none;
}

.claim-step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 12px;
    box-shadow: var(--shadow-primary);
}

.claim-step h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.claim-step p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ===== INFO BOX ===== */
.info-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--primary-light);
    border-radius: 14px;
    margin: 24px 0;
    border: 1px solid rgba(91, 76, 219, 0.1);
    align-items: flex-start;
}

.info-box:last-child {
    margin-bottom: 0;
}

.info-box-icon {
    width: 44px;
    height: 44px;
    background: var(--surface);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-box-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.info-box-content {
    flex: 1;
    min-width: 0;
}

.info-box-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.info-box-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.info-box.success {
    background: var(--success-light);
    border-color: rgba(5, 150, 105, 0.15);
}

.info-box.success .info-box-icon svg {
    color: var(--success);
}

.info-box.success .info-box-content h4 {
    color: #065f46;
}

.info-box.warning {
    background: var(--warning-light);
    border-color: rgba(217, 119, 6, 0.15);
}

.info-box.warning .info-box-icon svg {
    color: var(--warning);
}

.info-box.warning .info-box-content h4 {
    color: #92400e;
}

/* ===== WARRANTY BADGE ===== */
.warranty-badge {
    background: var(--gradient);
    border-radius: 20px;
    padding: 48px;
    color: white;
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 48px 0;
    position: relative;
    overflow: hidden;
}

.warranty-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.warranty-badge-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.warranty-badge-icon svg {
    width: 48px;
    height: 48px;
}

.warranty-badge-content {
    position: relative;
    z-index: 1;
}

.warranty-badge-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.warranty-badge-content p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.7;
    margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 24px;
    background: var(--gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-inner {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 17px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-smooth);
    cursor: pointer;
    border: none;
    min-height: var(--min-touch-target);
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.back-to-top:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.back-to-top.visible:hover {
    transform: translateY(-2px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 10px 16px;
    }
    
    .hero {
        padding: 60px 20px 100px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-icon {
        width: 72px;
        height: 72px;
    }
    
    .hero-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .warranty-cards {
        grid-template-columns: 1fr;
        margin-top: -50px;
        padding: 0 16px;
        gap: 12px;
    }
    
    .warranty-card {
        padding: 24px 20px;
    }
    
    .main-content {
        padding: 0 16px 60px;
    }
    
    .content-section {
        padding: 28px 20px;
        border-radius: 16px;
    }
    
    .content-section h2 {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-icon {
        width: 44px;
        height: 44px;
    }
    
    .section-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .coverage-grid {
        grid-template-columns: 1fr;
    }
    
    .claim-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .claim-step::after {
        display: none;
    }
    
    .warranty-badge {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    
    .warranty-badge-icon {
        width: 80px;
        height: 80px;
    }
    
    .warranty-badge-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .warranty-badge-content h3 {
        font-size: 20px;
    }
    
    .info-box {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-section {
        padding: 60px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ===== TABLET ADJUSTMENTS ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .warranty-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .warranty-card {
        padding: 24px 16px;
    }
    
    .warranty-card h3 {
        font-size: 16px;
    }
    
    .warranty-card p {
        font-size: 13px;
    }
    
    .claim-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .claim-step::after {
        display: none;
    }
}

/* ===== PRINT ===== */
@media print {
    .hero {
        background: #5b4cdb !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 40px 24px;
    }
    
    .hero::before,
    .hero::after {
        display: none;
    }
    
    .warranty-cards {
        margin-top: 24px;
    }
    
    .warranty-badge {
        background: #5b4cdb !important;
    }
    
    .cta-section,
    .back-to-top,
    .breadcrumb {
        display: none !important;
    }
    
    .content-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ===== REDUCED MOTION ===== */
@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;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --border: #000;
        --border-light: #333;
    }
    
    .warranty-card,
    .content-section,
    .info-box,
    .coverage-card {
        border-width: 2px;
    }
}