/* ==========================================================================
   SweatTheory – Main Stylesheet
   ========================================================================== */

/* ---------- Reset & Base ---------- */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: hsl(0, 0%, 5%);
    --color-fg: hsl(40, 20%, 92%);
    --color-primary: hsl(43, 40%, 55%);
    --color-primary-fg: hsl(0, 0%, 5%);
    --color-secondary: hsl(0, 0%, 12%);
    --color-muted: hsl(0, 0%, 55%);
    --color-border: hsl(0, 0%, 18%);
    --color-surface: hsl(0, 0%, 10%);
    --color-gold-glow: hsl(43, 60%, 45%);
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 0.25rem;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-fg);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* ---------- Utilities ---------- */

.section-label {
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.text-gradient-gold {
    background: linear-gradient(135deg, hsl(43, 60%, 60%), hsl(43, 40%, 45%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-gold {
    box-shadow: 0 0 40px hsl(43, 40%, 55%, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn svg {
    transition: transform 0.2s;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
}

/* ---------- Fade-up animation ---------- */

.hero__label,
.hero__heading,
.hero__sub,
.hero__cta {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__heading { transition-delay: 0.1s; }
.hero__sub { transition-delay: 0.2s; }
.hero__cta { transition-delay: 0.3s; }

.hero__label.is-visible,
.hero__heading.is-visible,
.hero__sub.is-visible,
.hero__cta.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsl(0, 0%, 5%, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(0, 0%, 18%, 0.5);
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo__text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-logo__accent {
    color: var(--color-primary);
}

/* WordPress custom-logo */
.custom-logo-link img {
    height: 2rem;
    width: auto;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.site-nav__list a {
    font-size: 0.875rem;
    color: var(--color-muted);
    transition: color 0.2s;
}

.site-nav__list a:hover {
    color: var(--color-fg);
}

.site-nav__cta a {
    color: var(--color-primary);
    font-weight: 500;
}

.site-nav__cta a:hover {
    opacity: 0.8;
}

/* Mobile toggle */
.site-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.site-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-fg);
    transition: transform 0.3s, opacity 0.3s;
}

.site-nav-toggle--active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle--active span:nth-child(2) {
    opacity: 0;
}

.site-nav-toggle--active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .site-nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 4rem;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        padding: 1.5rem;
    }

    .site-nav--open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: hsl(0, 0%, 5%, 0.7);
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg), hsl(0, 0%, 5%, 0.4), transparent);
}

.hero__content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.hero__label {
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
}

.hero__heading {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.hero__sub {
    color: var(--color-muted);
    font-size: 1.125rem;
    font-weight: 300;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
}

.hero__bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to top, var(--color-bg), transparent);
}

/* ==========================================================================
   Philosophy
   ========================================================================== */

.philosophy {
    padding: 6rem 0;
}

.philosophy__inner {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.philosophy__border {
    border-top: 1px solid hsl(43, 40%, 55%, 0.2);
    border-bottom: 1px solid hsl(43, 40%, 55%, 0.2);
    padding: 4rem 0;
}

.philosophy__heading {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.philosophy__text {
    color: var(--color-muted);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
}

/* ==========================================================================
   Articles
   ========================================================================== */

.articles {
    padding: 6rem 0;
}

.articles__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.articles__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.articles__heading {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
}

.articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.articles__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-muted);
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .articles__grid {
        grid-template-columns: 1fr;
    }
}

/* Article Card */

.article-card {
    cursor: pointer;
}

.article-card__image {
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    background: var(--color-secondary);
}

.article-card__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .article-card__image img {
    transform: scale(1.05);
}

.article-card__category {
    color: var(--color-primary);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

.article-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-card__title a {
    transition: color 0.2s;
}

.article-card:hover .article-card__title a {
    color: var(--color-primary);
}

.article-card__excerpt {
    color: var(--color-muted);
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-muted);
    transition: color 0.2s;
}

.article-card:hover .article-card__link {
    color: var(--color-primary);
}

.article-card__link svg {
    transition: transform 0.2s;
}

.article-card:hover .article-card__link svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Coach / About
   ========================================================================== */

.coach {
    padding: 6rem 0;
    background: hsl(0, 0%, 12%, 0.5);
}

.coach__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.coach__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .coach__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.coach__image {
    overflow: hidden;
    border-radius: var(--radius);
}

.coach__image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.coach__heading {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.coach__bio {
    color: var(--color-muted);
    font-weight: 300;
    line-height: 1.8;
}

.coach__bio p {
    margin-bottom: 1rem;
}

.coach__stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.coach__stat-value {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-primary);
}

.coach__stat-label {
    font-size: 0.75rem;
    color: var(--color-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.coach__stat-divider {
    width: 1px;
    height: 3rem;
    background: var(--color-border);
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
    padding: 6rem 0 8rem;
}

.cta__inner {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.cta__heading {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta__text {
    color: var(--color-muted);
    font-weight: 300;
    font-size: 1.125rem;
    max-width: 32rem;
    margin: 0 auto 2.5rem;
}

.cta__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 28rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .cta__form {
        flex-direction: row;
    }
}

.cta__input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-fg);
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.cta__input::placeholder {
    color: var(--color-muted);
}

.cta__input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
}

.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__copy {
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-footer__links a {
    font-size: 0.75rem;
    color: var(--color-muted);
    transition: color 0.2s;
}

.site-footer__links a:hover {
    color: var(--color-fg);
}

/* ==========================================================================
   Blog / Single Templates
   ========================================================================== */

.site-main--blog,
.site-main--single,
.site-main--page {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.blog-container,
.single-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.single-container {
    max-width: 48rem;
}

.blog-header {
    margin-bottom: 3rem;
}

.blog-header__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

.blog-header__desc {
    color: var(--color-muted);
    margin-top: 0.5rem;
}

.blog-pagination {
    margin-top: 3rem;
    text-align: center;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--color-muted);
    background: var(--color-secondary);
    transition: background 0.2s, color 0.2s;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--color-primary);
    color: var(--color-primary-fg);
}

/* Single Post */

.single-post__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.single-post__meta {
    color: var(--color-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.single-post__meta-sep {
    margin: 0 0.5rem;
}

.single-post__hero {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.single-post__hero img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.single-post__content {
    color: var(--color-fg);
    font-weight: 300;
    line-height: 1.8;
}

.single-post__content p {
    margin-bottom: 1.5rem;
}

.single-post__content h2,
.single-post__content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post__content h2 {
    font-size: 1.5rem;
}

.single-post__content h3 {
    font-size: 1.25rem;
}

.single-post__content img {
    border-radius: var(--radius);
    margin: 2rem 0;
}

.single-post__content blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--color-muted);
    font-style: italic;
}

.single-post__content ul,
.single-post__content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.single-post__content li {
    margin-bottom: 0.5rem;
}

.single-post__tags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.single-post__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-secondary);
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: var(--color-muted);
}

.single-post__nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.single-post__nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-muted);
    transition: color 0.2s;
}

.single-post__nav-link:hover {
    color: var(--color-primary);
}

.single-post__nav-link--next {
    text-align: right;
    margin-left: auto;
}

.single-post__nav-title {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-fg);
}

/* ==========================================================================
   Widget Area
   ========================================================================== */

.widget-area {
    padding: 2rem 0;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}
