/*
Theme Name: Rivowear Child
Description: Premium socks delivery website - child theme of Astra
Version: 1.5.1 (Site-wide Golden Headings)
Template: astra
*/

/*------------------------------------------------------------------
[Table of Contents]

1.  Global & Root Variables
2.  Base Typography & Astra Overrides
3.  Global & Blog/Post Styles
4.  Layout & Helpers (Container, Buttons)
5.  Custom Header & Footer
6.  Homepage Section Styles
    - 6.1 Hero Section
    - 6.2 Value Proposition
    - 6.3 Product Section
    - 6.4 Social Proof (Testimonials)
    - 6.5 FAQ Section (Accordion Style)
    - 6.6 Final CTA
7.  Animations & Accessibility
8.  Responsive (Mobile) Styles
-------------------------------------------------------------------*/

/* Force Full-Width Layout on Homepage */
body.home .site-content > .ast-container,
body.front-page .site-content > .ast-container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}


/* 1. Global & Root Variables
--------------------------------------------- */
:root {
    --pitch-black: #0B0B0B;
    --charcoal-grey: #1E1E1E;
    --steel-grey: #4F4F4F;
    --pure-white: #FFFFFF;
    --saffron-gold: #FFC832;
    --emerald-green: #3ECF8E;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --container-max-width: 1140px;
    --section-padding: 100px 0;
    --section-padding-mobile: 70px 0;
}


/* 2. Base Typography & Astra Overrides
--------------------------------------------- */
html { scroll-behavior: smooth; }

body {
    background-color: var(--pitch-black);
    color: #b0b0b0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: var(--saffron-gold);
}

h1 { font-size: clamp(2.8rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { margin: 0 0 20px 0; }
a { color: var(--saffron-gold); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--pure-white); }
.text-highlight { color: var(--saffron-gold); }


/* 3. Global & Blog/Post Styles
--------------------------------------------- */

/* Set the base background for the entire page container */
#page, .site-content {
    background-color: var(--pitch-black);
}

/* Style for the dark card on archive/blog pages */
body:not(.home):not(.front-page) article.post {
    background-color: var(--pitch-black);
    border: 1px solid var(--charcoal-grey);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

body:not(.home):not(.front-page) article.post:hover {
    border-color: var(--steel-grey);
    transform: translateY(-5px);
}

/* Remove Astra's default white inner card on archive/blog pages */
body:not(.home):not(.front-page) .ast-article-post,
body:not(.home):not(.front-page) .ast-article-inner {
    background-color: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

/* Style the category link on archive/blog pages */
.ast-blog-post-meta .cat-links a {
    color: var(--saffron-gold);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: capitalize;
    background: none !important;
    padding: 0;
    margin-bottom: 15px;
    display: inline-block;
}

/* Style the post title on archive/blog pages */
.entry-title a {
    color: var(--saffron-gold);
    font-size: 1.75rem;
    line-height: 1.3;
}
.entry-title a:hover {
    color: var(--pure-white);
}

/* Style post meta (author, date) */
.entry-meta, .entry-meta a, .entry-meta span {
    color: var(--steel-grey) !important;
    font-size: 0.9em;
}
.entry-meta a:hover {
    color: var(--saffron-gold) !important;
}

/* Style the excerpt text on archive/blog pages */
.entry-summary p {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.7;
}

/* Ensure single post/page content still has a dark card wrapper */
body.single-post .site-content article.post,
body.page .site-content article.page,
body:not(.home):not(.front-page) .ast-archive-description {
    background-color: var(--charcoal-grey);
    border: 1px solid var(--steel-grey);
    padding: 40px;
    border-radius: 12px;
}

/* Style headings specifically for single post pages */
body.single-post .entry-title {
    color: var(--pure-white);
}

body.single-post .entry-content h1,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4,
body.single-post .entry-content h5,
body.single-post .entry-content h6 {
    color: var(--saffron-gold);
}


/* Only hide the main H1 title on the custom front page */
body.home .entry-header,
body.front-page .entry-header {
    display: none;
}
body.home #primary.site-main,
body.front-page #primary.site-main {
    margin: 0 !important;
}
body.home .site-content,
body.front-page .site-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 4. Layout & Helpers */
.container { max-width: var(--container-max-width); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 800px; }
.riv-section { padding: var(--section-padding); }
.section-title { margin-bottom: 1.5rem; text-align: center; }
.section-subtitle { font-size: 1.125rem; max-width: 650px; margin: 0 auto 3rem auto; color: #b0b0b0; text-align: center; }
.btn { display: inline-block; padding: 16px 32px; border: none; border-radius: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center; transition: all 0.3s ease; cursor: pointer; }
.btn--primary { background-color: var(--saffron-gold); color: var(--pitch-black); }
.btn--primary:hover { background-color: #E6B52E; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 200, 50, 0.2); }
.btn--secondary { background-color: transparent; color: var(--pure-white); border: 2px solid var(--steel-grey); }
.btn--secondary:hover { border-color: var(--saffron-gold); color: var(--saffron-gold); transform: translateY(-2px); }
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; }

/* 5. Custom Header & Footer */
.riv-site-header { padding: 20px 0; background-color: var(--pitch-black); border-bottom: 1px solid var(--charcoal-grey); position: sticky; top: 0; z-index: 1000; width: 100%; }
.riv-site-header .header-content { display: flex; justify-content: space-between; align-items: center; }
.riv-site-header .site-title-link { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--pure-white); letter-spacing: 1px; text-transform: uppercase; }
.riv-site-header .site-title-link:hover { color: var(--saffron-gold); }
.riv-site-header .btn { padding: 12px 28px; }
.riv-site-footer { padding: 40px 0; background-color: var(--charcoal-grey); border-top: 1px solid var(--steel-grey); font-size: 0.9rem; color: var(--steel-grey); }
.riv-site-footer .footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.riv-site-footer p { margin: 0; }
.riv-site-footer .footer-links a { color: var(--steel-grey); margin-left: 20px; }
.riv-site-footer .footer-links a:hover { color: var(--saffron-gold); }

/* 6. Homepage Section Styles */
/* 6.1 Hero Section */
.hero-section {
    padding-top: 60px;
    padding-bottom: 120px;
    background: radial-gradient(circle at 50% 0, var(--charcoal-grey), var(--pitch-black) 85%);
    overflow: hidden;
}
.hero__grid { display: flex; align-items: center; gap: 60px; }
.hero__text-content { flex: 1 1 50%; text-align: left; }
.hero__image-content { flex: 1 1 50%; position: relative; }
.hero__image-content::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, var(--charcoal-grey) 0%, transparent 40%); pointer-events: none; border-radius: 12px; }
.hero__image-content img { display: block; width: 100%; height: auto; border-radius: 12px; }
.hero__sub-tagline { font-size: 1.25rem; color: #b0b0b0; max-width: 100%; margin: 0 0 40px 0; text-align: left; }
.hero__actions { display: flex; gap: 20px; justify-content: flex-start; flex-wrap: wrap; }

/* 6.2 Value Proposition */
.value-prop-section { background-color: var(--pitch-black); }
.value-prop-section .section-title { max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 60px; }
.value-prop__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.value-prop__item { text-align: center; padding: 40px 20px; background-color: var(--charcoal-grey); border-radius: 12px; border: 1px solid rgba(79, 79, 79, 0.3); transition: transform 0.3s ease, border-color 0.3s ease; }
.value-prop__item:hover { transform: translateY(-5px); border-color: var(--saffron-gold); }
.value-prop__item h3 { color: var(--saffron-gold); margin-bottom: 10px; }
.value-prop__item p { color: #b0b0b0; margin: 0; }

/* 6.3 Product Section */
.product-section { background: linear-gradient(180deg, var(--pitch-black) 0%, var(--charcoal-grey) 50%, var(--pitch-black) 100%); }
.product__grid { display: grid; gap: 30px; align-items: stretch; }
.product-card { background-color: var(--pitch-black); border: 2px solid var(--charcoal-grey); border-radius: 16px; padding: 40px 30px; text-align: left; transition: all 0.3s ease; display: flex; flex-direction: column; position: relative; }
.product-card:hover { border-color: var(--saffron-gold); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.product-card--popular { border-color: var(--saffron-gold); box-shadow: 0 0 30px rgba(255, 200, 50, 0.15); }
.product-card__badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background-color: var(--saffron-gold); color: var(--pitch-black); padding: 6px 20px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.product-card__title { margin-bottom: 10px; }
.product-card__price { font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 800; color: var(--saffron-gold); font-family: var(--font-heading); margin-bottom: 25px; }
.product-card__price-meta { font-size: 1rem; color: var(--steel-grey); font-weight: 400; font-family: var(--font-body); }
.product-card__features { list-style: none; padding: 0; margin: 0 0 30px 0; flex-grow: 1; }
.product-card__features li { padding: 8px 0 8px 30px; color: #b0b0b0; position: relative; }
.product-card__features li::before { content: '✓'; color: var(--emerald-green); font-weight: bold; position: absolute; left: 0; top: 10px; }
.btn--full-width { display: block; width: 100%; }

/* NEW: Styles for new purchase option buttons */
.product-card__actions {
    margin-top: auto; /* Pushes buttons to the bottom */
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.btn__price-meta {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

/* 6.4 Social Proof (Testimonials) */
.social-proof-section { background-color: var(--pitch-black); }
.testimonial__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.testimonial-card { background-color: var(--charcoal-grey); padding: 40px 30px; border-radius: 12px; border: 1px solid #2a2a2a; transition: transform 0.3s ease; }
.testimonial-card:hover { transform: translateY(-3px); }
.testimonial__quote { color: var(--pure-white); font-size: 1.1rem; line-height: 1.6; margin-bottom: 25px; font-style: italic; }
.testimonial__author { color: var(--saffron-gold); font-weight: 600; font-size: 1rem; font-style: normal; }

/* 6.5 FAQ Section */
.faq-section {
    background: linear-gradient(180deg, var(--charcoal-grey) 0%, var(--pitch-black) 100%);
}
.faq__list { margin-top: 4rem; text-align: left; }
.faq__item { border-bottom: 1px solid var(--steel-grey); padding: 25px 0; }
.faq__question { font-size: 1.25rem; font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 40px; color: var(--pure-white); }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: '+'; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); font-size: 1.75rem; font-weight: 300; color: var(--saffron-gold); transition: transform 0.3s ease; }
.faq__item[open] .faq__question::after { transform: translateY(-50%) rotate(45deg); }
.faq__answer { padding-top: 1.5rem; }
.faq__answer p { color: #b0b0b0; margin: 0; }

/* 6.6 Final CTA */
.rivowear-final-cta { padding: var(--section-padding); background: linear-gradient(135deg, var(--pitch-black) 0%, var(--charcoal-grey) 100%); text-align: center; }
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-content h2 { margin-bottom: 15px; }
.cta-content p { font-size: 1.125rem; color: #b0b0b0; margin-bottom: 40px; line-height: 1.6; }
.delivery-note { display: block; margin-top: 8px; color: var(--emerald-green); font-weight: 700; }
.cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 25px; }
.contact-alternative { color: var(--steel-grey); font-size: 0.9rem; }
.contact-alternative a { color: var(--saffron-gold); text-decoration: none; font-weight: 600; }
.contact-alternative a:hover { text-decoration: underline; }

/* 7. Animations & Accessibility */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero__text-content, .hero__image-content, .value-prop__item, .product-card, .testimonial-card, .faq__item { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; }
.hero__image-content { animation-delay: 0.1s; }
.value-prop__item:nth-child(2) { animation-delay: 0.1s; }
.value-prop__item:nth-child(3) { animation-delay: 0.2s; }
.value-prop__item:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.testimonial-card:nth-child(2) { animation-delay: 0.1s; }
.testimonial-card:nth-child(3) { animation-delay: 0.2s; }
.btn:focus, details:focus, summary:focus { outline: 2px solid var(--saffron-gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition-duration: 0.01ms !important; } html { scroll-behavior: auto; } }

/* 8. Responsive (Mobile) Styles */
@media (max-width: 992px) {
    .hero__grid { flex-direction: column; text-align: center; }
    .hero__text-content { text-align: center; order: 2; }
    .hero__image-content { order: 1; margin-bottom: 40px; }
    .hero__sub-tagline { text-align: center; margin-left: auto; margin-right: auto; max-width: 600px; }
    .hero__actions { justify-content: center; }
    .hero__image-content::after { background: none; }
}
@media (max-width: 768px) {
    :root { --section-padding: var(--section-padding-mobile); }
    .hero__actions, .cta-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 320px; }
    .product__grid { grid-template-columns: 1fr; max-width: 400px; }
    body:not(.home):not(.front-page) article.post, body:not(.home):not(.front-page) article.page, body:not(.home):not(.front-page) .ast-archive-description { padding: 25px; }
}
@media (max-width: 480px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero__sub-tagline { font-size: 1.1rem; }
    .riv-site-header .site-title-link { font-size: 1.2rem; }
    .riv-site-header .btn { padding: 10px 20px; font-size: 0.9rem; }
    .riv-site-footer .footer-content { flex-direction: column; text-align: center; }
    .riv-site-footer .footer-links a { margin: 0 10px; }
}