/*
Theme Name:     The Parallel Theory
Theme URI:      https://theparalleltheory.com/
Description:    A funnel-optimized, minimal-modern WooCommerce child theme for TheParallelTheory — a fictional considered-essentials apparel brand. Built as a Direct & Digital Marketing course project. Child theme of Storefront.
Author:         Salaar Mubasher
Author URI:     https://theparalleltheory.com/
Template:       storefront
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    theparalleltheory
*/

/* ===========================================================
   Design tokens
   =========================================================== */
:root {
    --tpt-bg: #f5f4ef;            /* warm off-white */
    --tpt-surface: #ffffff;
    --tpt-fg: #111111;
    --tpt-muted: #6b6b66;
    --tpt-border: #e6e3da;
    --tpt-accent: #111111;
    --tpt-accent-contrast: #ffffff;
    --tpt-radius: 0px;
    --tpt-max: 1280px;
    --tpt-font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
    --tpt-font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ===========================================================
   Base
   =========================================================== */
body,
button, input, select, textarea {
    font-family: var(--tpt-font-body);
    color: var(--tpt-fg);
    background: var(--tpt-bg);
    font-weight: 400;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6, .site-title {
    font-family: var(--tpt-font-display);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--tpt-fg);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.15; }

a {
    color: var(--tpt-fg);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}
a:hover { border-bottom-color: var(--tpt-fg); }

.site-content,
.site-header .col-full,
.site-footer .col-full,
.col-full {
    max-width: var(--tpt-max);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ===========================================================
   Header
   =========================================================== */
.site-header {
    background: var(--tpt-bg);
    border-bottom: 1px solid var(--tpt-border);
    padding: 1.25rem 0;
}
.site-header .site-branding .site-title a,
.site-header .site-branding .custom-logo-link {
    color: var(--tpt-fg);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 1rem;
}
.main-navigation ul li a {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 500;
}

/* Announcement bar (above header) - drives conversions via offer salience */
.tpt-announce {
    background: var(--tpt-fg);
    color: var(--tpt-accent-contrast);
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.tpt-announce a { color: inherit; border-bottom: 1px solid currentColor; }

/* ===========================================================
   Buttons (high-contrast, conversion-tuned)
   =========================================================== */
button, input[type="submit"], .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt {
    background: var(--tpt-accent);
    color: var(--tpt-accent-contrast);
    border: 1px solid var(--tpt-accent);
    border-radius: var(--tpt-radius);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.95rem 1.6rem;
    transition: opacity .15s ease, background .15s ease, color .15s ease;
    box-shadow: none;
    text-shadow: none;
}
button:hover, .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
    background: var(--tpt-bg);
    color: var(--tpt-accent);
    opacity: 1;
}

.tpt-btn-ghost {
    background: transparent !important;
    color: var(--tpt-fg) !important;
    border: 1px solid var(--tpt-fg) !important;
}
.tpt-btn-ghost:hover {
    background: var(--tpt-fg) !important;
    color: var(--tpt-bg) !important;
}

/* ===========================================================
   Homepage funnel sections
   =========================================================== */

/* Hero */
.tpt-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    overflow: hidden;
    margin-bottom: 0;
}
.tpt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,0.04) 79px 80px),
        repeating-linear-gradient(0deg,  transparent 0 79px, rgba(255,255,255,0.04) 79px 80px);
    pointer-events: none;
}
.tpt-hero__inner {
    position: relative;
    max-width: var(--tpt-max);
    margin: 0 auto;
    padding: 6rem 1.5rem;
    width: 100%;
}
.tpt-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
}
.tpt-hero h1 {
    color: #fff;
    max-width: 18ch;
    margin: 0 0 1.5rem;
    font-weight: 400;
}
.tpt-hero p {
    max-width: 42ch;
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 2.5rem;
}
.tpt-hero .button { margin-right: .75rem; }
.tpt-hero .tpt-btn-ghost { color: #fff !important; border-color: #fff !important; }
.tpt-hero .tpt-btn-ghost:hover { background: #fff !important; color: #111 !important; }

/* Trust strip — under-the-fold credibility row */
.tpt-trust {
    background: var(--tpt-surface);
    border-bottom: 1px solid var(--tpt-border);
    padding: 1.25rem 0;
}
.tpt-trust__row {
    max-width: var(--tpt-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}
.tpt-trust__item {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tpt-muted);
}
.tpt-trust__item strong { color: var(--tpt-fg); display: block; margin-bottom: .2rem; font-weight: 600; }
@media (max-width: 720px) {
    .tpt-trust__row { grid-template-columns: repeat(2, 1fr); }
}

/* Section wrapper */
.tpt-section {
    max-width: var(--tpt-max);
    margin: 0 auto;
    padding: 5rem 1.5rem;
}
.tpt-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}
.tpt-section__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    color: var(--tpt-muted);
    margin-bottom: 0.5rem;
}
.tpt-section__title { margin: 0; }
.tpt-section__link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--tpt-fg);
}

/* Testimonials */
.tpt-testimonials {
    background: var(--tpt-surface);
    border-top: 1px solid var(--tpt-border);
    border-bottom: 1px solid var(--tpt-border);
}
.tpt-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--tpt-max);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}
.tpt-testimonial {
    padding: 0;
}
.tpt-testimonial p {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--tpt-fg);
    margin: 0 0 1.25rem;
}
.tpt-testimonial cite {
    font-style: normal;
    font-size: 0.8rem;
    color: var(--tpt-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.tpt-testimonial::before {
    content: "“";
    display: block;
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--tpt-fg);
}
@media (max-width: 900px) {
    .tpt-testimonials__grid { grid-template-columns: 1fr; }
}

/* Email capture — primary funnel asset */
.tpt-capture {
    background: var(--tpt-fg);
    color: var(--tpt-accent-contrast);
    text-align: center;
    padding: 5rem 1.5rem;
}
.tpt-capture h2 {
    color: #fff;
    margin: 0 0 .75rem;
    font-weight: 400;
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
}
.tpt-capture p {
    color: rgba(255,255,255,0.7);
    max-width: 44ch;
    margin: 0 auto 2rem;
}
.tpt-capture__form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    gap: .5rem;
}
.tpt-capture__form input[type="email"] {
    flex: 1;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
}
.tpt-capture__form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.tpt-capture__form button {
    background: #fff;
    color: var(--tpt-fg);
    border-color: #fff;
}
.tpt-capture__form button:hover { background: transparent; color: #fff; }
.tpt-capture__note {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ===========================================================
   Product grid (shop + homepage)
   =========================================================== */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    text-align: left;
    background: transparent;
    padding: 0;
    margin-bottom: 3rem;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 0 0.25rem;
    color: var(--tpt-fg);
    letter-spacing: 0.02em;
}
.woocommerce ul.products li.product .price {
    font-size: 0.9rem;
    color: var(--tpt-muted);
    font-weight: 400;
}
.woocommerce ul.products li.product img {
    border-radius: var(--tpt-radius);
    transition: opacity .2s ease;
    margin-bottom: 0;
}
.woocommerce ul.products li.product:hover img { opacity: 0.85; }
.woocommerce ul.products li.product .button { display: none; }

.woocommerce span.onsale {
    background: var(--tpt-fg);
    color: var(--tpt-bg);
    border-radius: 0;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    min-height: 0; min-width: 0; line-height: 1;
    top: 12px; left: 12px; margin: 0;
    font-weight: 500;
}

/* ===========================================================
   Single product (conversion-optimized PDP)
   =========================================================== */
.single-product div.product .product_title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.single-product div.product p.price,
.single-product div.product span.price {
    color: var(--tpt-fg);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.single-product div.product .woocommerce-product-details__short-description {
    color: var(--tpt-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.woocommerce div.product form.cart .variations select {
    border: 1px solid var(--tpt-border);
    border-radius: 0;
    padding: 0.85rem;
    background: var(--tpt-surface);
}

/* PDP trust badges row */
.tpt-pdp-trust {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--tpt-border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tpt-muted);
}
.tpt-pdp-trust strong {
    display: block;
    color: var(--tpt-fg);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

/* Sticky mobile add-to-cart */
@media (max-width: 768px) {
    .single-product .tpt-sticky-cta {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: var(--tpt-bg);
        border-top: 1px solid var(--tpt-border);
        padding: 0.75rem 1rem;
        z-index: 50;
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }
    .single-product .tpt-sticky-cta .price { flex: 0 0 auto; font-size: 0.9rem; font-weight: 600; }
    .single-product .tpt-sticky-cta .button { flex: 1; padding: 0.85rem 1rem; }
    .single-product { padding-bottom: 5rem; }
}

/* ===========================================================
   Forms
   =========================================================== */
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="search"],
textarea, select {
    border: 1px solid var(--tpt-border);
    border-radius: var(--tpt-radius);
    background: var(--tpt-surface);
    padding: 0.75rem;
    font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--tpt-fg);
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
    background: var(--tpt-surface);
    color: var(--tpt-muted);
    border-top: 1px solid var(--tpt-border);
    padding: 3rem 0 2rem;
    font-size: 0.85rem;
}
.site-footer a { color: var(--tpt-muted); }
.site-footer a:hover { color: var(--tpt-fg); }

/* ===========================================================
   Misc
   =========================================================== */
.storefront-breadcrumb {
    background: transparent;
    border: 0;
    padding: 1rem 0 0.5rem;
    font-size: 0.75rem;
    color: var(--tpt-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
