/* Base Styles & Variables */
:root {
    --primary-color: hsl(205, 77%, 27%); /* #0F4C75 - Dark Blue */
    --secondary-color: hsl(0, 65%, 51%); /* #E63946 - Red */
    --light-color: hsl(0, 0%, 100%); /* #FFFFFF */
    --dark-color: hsl(210, 29%, 24%); /* #2E4756 */
    --gray-color: hsl(210, 14%, 89%); /* #DCE1E7 */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Accessibility Focus States */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

/* Ensure sufficient color contrast for links */
a:hover, a:focus {
    color: var(--dark-color);
    text-decoration: underline;
}

/* Button focus states */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(15, 76, 117, 0.5);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #000000;
        --dark-color: #000000;
    }
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 4rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--primary-color), var(--dark-color));
    color: var(--light-color);
    padding: 5rem 0;
    position: relative;
}

.hero h1, .hero p {
    color: var(--light-color);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.logo-container {
    max-width: 300px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
}

.hero-image {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Introduction Section */
.introduction {
    background-color: var(--light-color);
    padding: 3rem 0;
}

.introduction h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.introduction .lead {
    font-size: 1.25rem;
    color: var(--dark-color);
    max-width: 800px;
    margin: 0 auto;
}

/* Product Sections */
.products {
    background-color: var(--gray-color);
    padding: 4rem 0;
}

.product-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: var(--light-color);
}

.product-image img {
    max-height: 400px;
    object-fit: contain;
    border-radius: 4px;
}

.product-details {
    padding: 1.5rem;
}

.product-details h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.specs {
    margin-bottom: 1rem;
}

.badge {
    margin-right: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.review {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.cta-button {
    background-color: var(--secondary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: hsl(0, 65%, 41%);
    transform: translateY(-2px);
}

/* Comparison Table */
.comparison {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.comparison h2 {
    margin-bottom: 2rem;
}

.table-responsive {
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: var(--primary-color);
    color: var(--light-color);
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}

/* Story Section */
.story {
    background: linear-gradient(to right, var(--light-color), var(--gray-color));
    padding: 5rem 0;
}

.story h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-content p {
    margin-bottom: 1rem;
}

.story-image {
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: 100%;
    object-fit: cover;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0;
}

.site-footer h3 {
    color: var(--light-color);
    margin-bottom: 1rem;
}

.site-footer a {
    color: var(--light-color);
    text-decoration: underline;
}

.site-footer a:hover {
    color: var(--secondary-color);
}

/* Comparison Cards Styling */
.comparison-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.comparison-item:last-child {
    border-bottom: none;
}

.comparison .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.comparison .card-header h6 {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Mobile responsive text adjustments */
@media (max-width: 576px) {
    .comparison-item {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }
    
    .comparison .card-header h6 {
        font-size: 0.8rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .product-image {
        padding: 1rem;
    }
    
    .product-image img {
        max-height: 300px;
    }
    
    .product-details {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .logo-container {
        margin: 0 auto;
    }
    
    .product-card {
        margin-bottom: 2rem;
    }
    
    .story-image {
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
    }
    
    .product-details h3 {
        font-size: 1.5rem;
    }
    
    .badge {
        display: inline-block;
        margin-bottom: 0.5rem;
    }
}
