/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #111827;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 2rem 0 1rem 0;
    color: #1f2937;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 1.5rem 0 1rem 0;
    color: #374151;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    color: #4b5563;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #4b5563;
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.internal-link {
    color: #059669;
    font-weight: 500;
}

.internal-link:hover {
    color: #047857;
}

.promo-link {
    color: #ea580c;
    font-weight: 600;
}

.promo-link:hover {
    color: #dc2626;
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #4b5563;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
    border: 1px solid #e2e8f0;
}

.hero-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Article Styles */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.article-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.article-intro {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border-left: 4px solid #f59e0b;
}

.article-section {
    margin-bottom: 3rem;
}

/* Cards and Grids */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.article-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.article-card h3 a {
    color: #1f2937;
    text-decoration: none;
}

.article-card h3 a:hover {
    color: #2563eb;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    color: white;
    text-decoration: none;
}

/* Offer Grids */
.offers-grid {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.offer-category {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.offer-category h2 {
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.store-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.store-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.store-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.store-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1f2937;
}

.store-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #059669;
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.store-link:hover {
    background: #047857;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Highlights and Features */
.deal-highlights,
.clubcard-highlights,
.nectar-highlights,
.rollback-highlights,
.market-street-highlights,
.special-buys-preview,
.mywaitrose-highlights,
.membership-highlights,
.frozen-food-highlights,
.freezer-center-highlights,
.convenience-promotions {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
    border-left: 4px solid #2563eb;
}

.weekly-promotions,
.seasonal-offers,
.premium-offers,
.best-range-features,
.seasonal-excellence,
.fresh-food-preview,
.party-food-selection,
.seasonal-convenience {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
    border-left: 4px solid #059669;
}

.savings-strategies,
.clubcard-strategies,
.more-card-benefits,
.smartshop-benefits,
.online-benefits,
.digital-services,
.fresh-food-standards,
.community-impact,
.value-comparison,
.shopping-strategy,
.shopping-timeline,
.digital-services {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
    border-left: 4px solid #f59e0b;
}

/* Tips Grid */
.savings-tips {
    margin: 3rem 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tip-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    border-top: 4px solid #ea580c;
}

.tip-card h3 {
    margin-top: 0;
    color: #ea580c;
}

/* Coverage Grid */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.coverage-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.coverage-card h3 {
    margin-top: 0;
    color: #1f2937;
}

.coverage-card ul {
    margin-top: 1rem;
}

/* Commitment Points */
.commitment-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.commitment-point {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.commitment-point h3 {
    margin-top: 0;
    color: #2563eb;
}

/* Values List */
.values-list {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    margin: 2rem 0;
}

.values-list li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

/* Contact Form */
.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Contact Sections */
.contact-sections {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.reason-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    border-top: 4px solid #059669;
}

.reason-card h3 {
    margin-top: 0;
    color: #059669;
}

.response-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.response-card {
    background: #fef3c7;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #fbbf24;
}

.response-card h3 {
    margin-top: 0;
    color: #92400e;
}

.alt-contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-method {
    background: #f0f9ff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #bae6fd;
}

.contact-method h3 {
    margin-top: 0;
    color: #0369a1;
}

.deal-links {
    list-style: none;
    padding-left: 0;
}

.deal-links li {
    margin-bottom: 0.5rem;
}

.guidelines-list {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    margin: 2rem 0;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.widget h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #1f2937;
    font-size: 1.25rem;
}

.offer-list,
.related-list,
.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offer-list li,
.related-list li,
.comparison-list li {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.offer-list li:last-child,
.related-list li:last-child,
.comparison-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.offer-list a,
.related-list a,
.comparison-list a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.offer-list a:hover,
.related-list a:hover,
.comparison-list a:hover {
    color: #2563eb;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tag-list li {
    margin: 0;
    padding: 0;
    border: none;
}

.tag-list a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-list a:hover {
    background: #2563eb;
    color: white;
}

.tip-box {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid #f59e0b;
}

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

.tip-box h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #92400e;
    font-size: 1rem;
}

.tip-box p {
    margin: 0;
    font-size: 0.875rem;
    color: #78350f;
}

.fact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fact-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 0;
}

.fact-list li:last-child {
    border-bottom: none;
}

.fact-list strong {
    color: #1f2937;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.faq-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.faq-item h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.faq-item p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
    color: white;
    text-decoration: none;
}

/* Call to Action Section */
.call-to-action,
.cta-section {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 3rem;
    border-radius: 1rem;
    margin: 3rem 0;
    border: 2px solid #fecaca;
    text-align: center;
}

.call-to-action h2,
.cta-section h2 {
    color: #dc2626;
    margin-top: 0;
    margin-bottom: 1rem;
}

.call-to-action p,
.cta-section p {
    font-size: 1.125rem;
    color: #7f1d1d;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        order: -1;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .store-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .hero-section {
        padding: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tips-grid,
    .coverage-grid,
    .commitment-points,
    .contact-reasons,
    .response-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-list {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 1.5rem;
    }
    
    .widget {
        padding: 1.5rem;
    }
    
    .article-card {
        padding: 1.5rem;
    }
    
    .call-to-action,
    .cta-section {
        padding: 2rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .sidebar,
    .footer,
    .nav,
    .cta-button,
    .read-more,
    .store-link {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .content {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    a {
        color: #1f2937;
        text-decoration: underline;
    }
    
    .call-to-action,
    .cta-section {
        border: 2px solid #dc2626;
        background: #fef2f2;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .article-card,
    .store-card,
    .tip-card,
    .widget {
        border: 2px solid #000;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: #000;
        color: #fff;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2563eb;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error States */
.error {
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Success States */
.success {
    color: #059669;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}