/* ================================
   CSS VARIABLES
   ================================ */
:root {
    --brand-primary: #006b3f;
    --brand-dark: #1a1a1a;
    --brand-light: #f0f8f4;
    --brand-white: #ffffff;
    --brand-text: #333333;
    --brand-text-secondary: #555555;
    --brand-text-tertiary: #707070;
}

/* ================================
   RESET & BASE STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--brand-text-secondary);
    background: var(--brand-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================
   ACCESSIBILITY
   ================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand-primary);
    color: var(--brand-white);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 900;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* 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-width: 0;
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3 {
    color: var(--brand-text);
    line-height: 1.2;
}

h1 {
    font-size: 38px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

h2 {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
    text-align: center;
}

h3 {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
}

h1 span,
h2 span {
    color: var(--brand-primary);
    font-style: italic;
}

/* ================================
   CONTAINER
   ================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ================================
   HEADER
   ================================ */
header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: var(--brand-white);
    padding: 20px 40px;
    text-align: center;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

.logo img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

/* ================================
   HERO SECTION
   ================================ */
#hero {
    position: relative;
    background: var(--brand-light);
    padding: 80px 40px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.hero-image {
    flex: 0 0 50%;
    max-width: 600px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.hero-text {
    flex: 0 0 50%;
}

.hero-intro {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.hero-details li {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--brand-text-secondary);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.hero-details li:before {
    content: "•";
    color: var(--brand-primary);
    font-weight: 900;
    font-size: 20px;
    position: absolute;
    left: 0;
}

/* ================================
   HOW IT WORKS SECTION
   ================================ */
#how-it-works {
    padding: 80px 40px;
    background: var(--brand-white);
}

.section-intro {
    text-align: center;
    font-size: 16px;
    color: var(--brand-text-secondary);
    margin-bottom: 50px;
    font-weight: 400;
}

.earning-table {
    max-width: 800px;
    margin: 0 auto 60px;
}

.table-title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-text);
    text-align: center;
    margin-bottom: 30px;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.goals-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--brand-white);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.goals-table thead {
    background: var(--brand-primary);
    color: var(--brand-white);
}

.goals-table th {
    padding: 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.goals-table td {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 15px;
    color: var(--brand-text-secondary);
}

.goals-table tbody tr:hover {
    background: var(--brand-light);
}

.goals-table .highlight-row {
    background: #e8f5e9;
}

.goals-table .highlight-row:hover {
    background: #c8e6c9;
}

.table-note {
    text-align: center;
    font-size: 16px;
    color: var(--brand-text);
    font-weight: 700;
    margin-top: 20px;
}

.participate-steps {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: var(--brand-light);
    border-radius: 8px;
}

.steps-title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-text);
    text-align: center;
    margin-bottom: 30px;
}

.steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
}

.steps-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 60px;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--brand-text-secondary);
}

.steps-list li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--brand-primary);
    color: var(--brand-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}

/* ================================
   REWARDS SECTION
   ================================ */
#rewards {
    padding: 80px 40px;
    background: var(--brand-white);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.package-box {
    background: var(--brand-white);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
}

.package-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.package-name {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-text);
    margin-bottom: 12px;
}

.package-price {
    font-size: 36px;
    font-weight: 900;
    color: var(--brand-primary);
    margin-bottom: 12px;
}

.package-items {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.package-items li {
    font-size: 14px;
    color: var(--brand-text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.package-items li:before {
    content: "✓";
    color: var(--brand-primary);
    font-weight: 900;
    font-size: 14px;
    position: absolute;
    left: 0;
}

.reward-note {
    font-size: 12px;
    font-style: italic;
    color: var(--brand-text-tertiary);
    margin-top: 8px;
}

/* ================================
   PARTICIPATING STORES SECTION
   ================================ */
#participating-stores {
    padding: 80px 40px;
    background: var(--brand-light);
}

.stores-instruction {
    text-align: center;
    font-size: 16px;
    color: var(--brand-text-secondary);
    margin-bottom: 30px;
    font-weight: 400;
}

/* Store Filter Buttons */
.store-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: var(--brand-white);
    color: var(--brand-text);
    border: 2px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: var(--brand-primary);
    color: var(--brand-white);
    border-color: var(--brand-primary);
}

/* Stores Grid - hidden by default, 4 columns when visible */
.stores-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stores-grid.visible {
    display: grid;
    animation: fadeIn 0.3s ease;
}

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

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .stores-grid.visible {
        animation: none;
    }

    .faq-icon {
        transition: none;
    }

    .faq-question.active .faq-icon {
        transform: none;
    }

    .filter-btn {
        transition: none;
    }

    .footer-links a {
        transition: none;
    }
}

.store-card {
    background: var(--brand-white);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.store-card h3 {
    font-size: 15px;
    font-weight: 900;
    color: var(--brand-text);
    margin-bottom: 12px;
    line-height: 1.5;
}

.store-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-link {
    display: inline-block;
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 900;
    text-decoration: underline;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-coming-soon {
    font-size: 14px;
    color: var(--brand-text-tertiary);
    font-style: italic;
    font-weight: 400;
}

/* ================================
   RULES & REGULATIONS SECTION
   ================================ */
#rules-regulations {
    padding: 80px 40px;
    background: var(--brand-white);
}

.rules-content {
    max-width: 900px;
    margin: 0 auto;
}

.rules-list {
    list-style-position: outside;
    padding-left: 20px;
    margin-bottom: 30px;
}

.rules-list li {
    font-size: 15px;
    color: var(--brand-text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.rules-disclaimer {
    font-size: 13px;
    color: var(--brand-text-secondary);
    font-style: italic;
    padding: 20px;
    background: var(--brand-light);
    border-radius: 4px;
    border-left: 4px solid var(--brand-primary);
    line-height: 1.8;
}

/* ================================
   FAQ SECTION
   ================================ */
#faq {
    padding: 80px 40px;
    background: var(--brand-light);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--brand-white);
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.faq-item h3 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: var(--brand-white);
    border: none;
    cursor: pointer;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: var(--brand-text);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-question:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px #000;
}

.faq-question.active {
    background: var(--brand-primary);
    color: var(--brand-white);
}

.faq-question.active:focus-visible {
    box-shadow: inset 0 0 0 3px #000;
}

.faq-icon {
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
}

.faq-answer.active {
    max-height: 5000px;
}

.faq-answer p {
    padding: 20px 30px 24px 30px;
    font-size: 15px;
    color: var(--brand-text-secondary);
    line-height: 1.8;
}

/* ================================
   FOOTER
   ================================ */
footer {
    background: var(--brand-dark);
    color: var(--brand-white);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 30px 40px;
    text-align: center;
}

.footer-links {
    font-size: 12px;
    color: #b3b3b3;
    margin-bottom: 12px;
}

.footer-links a {
    color: #b3b3b3;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--brand-white);
}

.footer-links a:focus-visible {
    outline: 3px solid var(--brand-white);
    outline-offset: 2px;
    color: var(--brand-white);
}

.copyright {
    font-size: 12px;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.copyright a {
    color: #b3b3b3;
    text-decoration: underline;
}

.disclaimer {
    font-size: 11px;
    color: #b3b3b3;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Tablet */
@media (max-width: 1024px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 32px;
    }

    .hero-content {
        gap: 40px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stores-grid.visible {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .goals-table th,
    .goals-table td {
        padding: 16px;
        font-size: 14px;
    }

    .participate-steps {
        padding: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    #hero,
    #how-it-works,
    #rewards,
    #participating-stores,
    #rules-regulations,
    #faq {
        padding: 50px 20px;
    }

    h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }

    h3 {
        font-size: 16px;
    }

    .hero-text p {
        font-size: 16px;
    }

    header {
        padding: 15px 20px;
    }

    .logo img {
        max-width: 150px;
    }

    #hero {
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .hero-image {
        flex: 1;
        max-width: 100%;
    }

    .package-box {
        padding: 30px 24px;
    }

    .package-name {
        font-size: 20px;
    }

    .package-price {
        font-size: 32px;
    }

    .stores-instruction {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .stores-grid.visible {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .store-card {
        padding: 16px;
    }

    .store-card h3 {
        font-size: 14px;
    }

    .store-link {
        font-size: 12px;
    }

    .filter-btn {
        font-size: 13px;
        padding: 10px 18px;
    }

    .store-filters {
        gap: 10px;
        margin-bottom: 40px;
    }

    .faq-question {
        padding: 20px 24px;
        font-size: 14px;
    }

    .faq-answer p {
        padding: 16px 24px 20px 24px;
        font-size: 14px;
    }

    .footer-bottom {
        padding: 20px;
    }

    .goals-table th,
    .goals-table td {
        padding: 12px;
        font-size: 13px;
    }

    .table-title,
    .steps-title {
        font-size: 20px;
    }

    .participate-steps {
        padding: 24px;
    }

    .steps-list li {
        font-size: 15px;
        padding-left: 50px;
    }

    .steps-list li:before {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 22px;
    }

    header {
        padding: 10px 20px;
    }

    .logo img {
        max-width: 120px;
    }

    .package-box {
        padding: 24px 20px;
    }

    .package-icon {
        font-size: 40px;
    }

    .package-name {
        font-size: 18px;
    }

    .package-price {
        font-size: 28px;
    }

    .package-items li {
        font-size: 13px;
    }

    .stores-instruction {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .stores-grid.visible {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .store-card {
        padding: 16px;
    }

    .store-card h3 {
        font-size: 13px;
    }

    .store-link {
        font-size: 11px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 8px 14px;
    }

    .store-filters {
        gap: 8px;
        margin-bottom: 30px;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 13px;
    }

    .faq-icon {
        font-size: 24px;
    }

    .faq-answer p {
        padding: 14px 20px 16px 20px;
        font-size: 13px;
    }

    .goals-table th,
    .goals-table td {
        padding: 10px;
        font-size: 12px;
    }

    .table-title,
    .steps-title {
        font-size: 18px;
    }

    .participate-steps {
        padding: 20px;
    }

    .steps-list li {
        font-size: 14px;
        padding-left: 45px;
        margin-bottom: 20px;
    }

    .steps-list li:before {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
