/*
Theme Name:   HUMEN
Description:  HUMEN theme, built on the Nebula Orbit starter.
Theme URI:    https://nebula.design
Author:       Nebula
Author URI:   https://nebula.design
Update URI:   false
Version:      1.0.10
License:      GPL-2.0+
License URI:  http://www.gnu.org/licenses/gpl-2.0.html

Table of Contents:
1. Site Footer
2. Footer Navigation
3. Copyright Bar
4. 404 / No Results
5. Responsive Styles

Header / nav styles live in assets/css/main.css (section 6).
*/


/* ==========================================================================
   1. SITE FOOTER
   ========================================================================== */

.site-footer {
    padding: 0 var(--wp--preset--spacing--gutter) 40px;
    background: var(--wp--preset--color--ink);
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--small);
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--wp--preset--color--primary);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 40px;
    padding-top: 80px;
}

/* Brand block plus four link columns on one row. */
@media (min-width: 1024px) {
    .footer-main {
        grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-brand p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--wp--custom--color--on-dark-text);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-weight: 700;
}


/* ==========================================================================
   2. FOOTER NAVIGATION
   ========================================================================== */

.footer-nav-col__title {
    margin: 0 0 18px;
    font-family: var(--wp--preset--font-family--archivo);
    font-stretch: 125%;
    font-size: var(--wp--preset--font-size--tiny);
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--wp--preset--color--white);
}

.footer-nav-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav-col li {
    margin: 0;
}

.footer-nav-col a {
    font-weight: 500;
    color: var(--wp--custom--color--on-dark-text);
}


/* ==========================================================================
   3. COPYRIGHT BAR
   ========================================================================== */

#copyright {
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: var(--wp--preset--font-size--tiny);
    color: var(--wp--custom--color--on-dark-mute);
}

.copyright-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
}

#copyright p {
    margin: 0;
}

.copyright-text {
    flex: 1 1 420px;
    max-width: 760px;
}

.copyright-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.legal-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#copyright .copyright-credit {
    opacity: 0.7;
}

#copyright .copyright-credit a {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ==========================================================================
   6. 404 / NO RESULTS
   ========================================================================== */

.error-404,
.no-results {
    padding: var(--wp--preset--spacing--xx-large) 0;
    text-align: center;
}

.error-404 .search-form,
.no-results .search-form {
    max-width: 480px;
    margin: var(--wp--preset--spacing--medium) auto 0;
}


/* ==========================================================================
   7. IMAGE STYLES
   ========================================================================== */
figure {
    position: relative;
}

figcaption.wp-element-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(-30%, -50%);
    padding: 10px 30px;
    background: var(--wp--preset--color--primary);
    color: white;
    border-radius: var(--wp--custom--border--radius--medium);
    margin: 0;
}


/* ==========================================================================
   8. animate numbers css
   ========================================================================== */
/*  */

.digit-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
    vertical-align: baseline;
    line-height: 1;
    margin-bottom: -6px;
}

.roller {
    display: flex;
    flex-direction: column;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    transform: translateY(5px);
}

.digit {
    display: flex;
    flex-shrink: 0;
    line-height: 1;
    justify-content: center;
}

/* Base styles - text visible by default for SEO */
.is-style-fading {
    opacity: 1;
    visibility: visible;
}

/* Word animation styles */
.is-style-fading span {
    display: inline-block;
    opacity: 0;
    filter: blur(4px);
    animation: fadeInWord 0.8s cubic-bezier(0.11, 0, 0.5, 0) forwards;
}

/* Keyframe animation */
@keyframes fadeInWord {
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .is-style-fading span {
        animation: none;
        opacity: 1;
        filter: none;
    }
}

/* Fallback for users without JavaScript */
.no-js .is-style-fading span {
    opacity: 1;
    filter: none;
    animation: none;
}

.posts.grid.columns-3 {
    margin: var(--wp--preset--spacing--large) 0;
}

.posts.grid.columns-3 .type-post img {
    aspect-ratio: 4/3;
    width: 100%;
    height: 100%;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
}

.posts.grid.columns-3 .card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 999;
    background: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: var(--wp--preset--font-size--min);
    font-weight: bold;
}

.posts.grid.columns-3 .card-thumbnail {
    position: relative;
}

.posts.grid.columns-3 .card-title {
    font-size: var(--wp--preset--font-size--medium);
    text-decoration: none;
}

.posts.grid.columns-3 .type-post a {
    text-decoration: none;
}

.posts.grid.columns-3 .card-excerpt {
    font-size: var(--wp--preset--font-size--tiny);
}

.posts.grid.columns-3 .card-date {
    font-size: var(--wp--preset--font-size--tiny);
}

.posts.grid.columns-3 .card-meta {
    padding: var(--wp--preset--spacing--small);
}

.posts.grid.columns-3 .type-post {
    border-radius: 12px;
    border: 2px solid #0000000f;
}

.posts.grid.columns-3 .card-readmore {
    font-size: var(--wp--preset--font-size--tiny);
    text-align: right;
    width: 100%;
    display: block;
}

/* ==========================================================================
   9. BLOCKQUOTE STYLES
   ========================================================================== */

blockquote.wp-block-quote {
    margin: var(--wp--preset--spacing--medium) 0;
    padding: 4px 0 4px var(--wp--preset--spacing--medium);
    border-left: 2px solid var(--wp--preset--color--primary);
    background: none;
    border-radius: 0;
    box-shadow: none;
}

blockquote.wp-block-quote p {
    margin: 0 0 var(--wp--preset--spacing--small) 0;
    font-size: var(--wp--preset--font-size--large);
    font-weight: 500;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: inherit;
}

blockquote.wp-block-quote p:last-child {
    margin-bottom: 0;
}

blockquote.wp-block-quote cite {
    display: block;
    margin-top: var(--wp--preset--spacing--small);
    font-size: var(--wp--preset--font-size--tiny);
    font-weight: 500;
    font-style: normal;
    color: var(--wp--preset--color--charcoal);
}

blockquote.wp-block-quote cite::before {
    content: "\2014 ";
    color: var(--wp--preset--color--charcoal);
    margin-right: 4px;
}


/* ==========================================================================
   10. CORE ELEMENT STYLES
   ========================================================================== */

/* --- Body + typography niceties --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

/* --- Selection --- */
::selection {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

/* --- Focus ring (keyboard only) --- */
:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 3px;
    border-radius: 2px;
}

/* --- Lists --- */
.wp-block-list {
    padding-left: 1.25em;
    margin: 0 0 var(--wp--preset--spacing--medium) 0;
}

.wp-block-list > li {
    margin: 0.4em 0;
    padding-left: 0.25em;
}

.wp-block-list > li::marker {
    color: var(--wp--preset--color--primary);
}

.wp-block-list .wp-block-list {
    margin: 0.25em 0 0.25em 0;
}

/* Checklist list-style variation (registered in inc/block-styles.php) */
.wp-block-list.is-style-checklist,
ul.is-style-checklist {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.wp-block-list.is-style-checklist > li,
ul.is-style-checklist > li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0.5em 0;
    padding-left: 0;
}

.wp-block-list.is-style-checklist > li::before,
ul.is-style-checklist > li::before {
    content: "";
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--primary);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    margin-top: calc((1.55em - 22px) / 2);
}

/* --- Tables --- */
.wp-block-table {
    margin: 0 0 var(--wp--preset--spacing--medium) 0;
}

.wp-block-table table,
table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.wp-block-table th,
.wp-block-table td,
table th,
table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--wp--custom--color--neutral--300);
}

.wp-block-table th,
table th {
    font-size: var(--wp--preset--font-size--min);
    font-weight: 500;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    color: var(--wp--preset--color--charcoal);
    border-bottom-color: var(--wp--preset--color--ink);
}

.wp-block-table thead th {
    border-top: 1px solid var(--wp--custom--color--neutral--300);
}

.wp-block-table tbody tr:last-child td,
.wp-block-table tr:last-child td,
table tbody tr:last-child td,
table tr:last-child td {
    border-bottom: none;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
    background: var(--wp--custom--color--neutral--50);
}

.wp-block-table figcaption {
    font-size: var(--wp--preset--font-size--tiny);
    color: var(--wp--preset--color--charcoal);
    margin-top: var(--wp--preset--spacing--tiny);
    text-align: left;
}

/* --- Code + preformatted --- */
:not(pre) > code {
    font-family: monospace;
    font-size: 0.9em;
    padding: 2px 8px;
    border-radius: var(--wp--custom--border--radius--small);
    background: var(--wp--custom--color--neutral--100);
    color: inherit;
}

pre,
.wp-block-code,
.wp-block-preformatted {
    font-family: monospace;
    background: var(--wp--custom--color--neutral--100);
    padding: 20px 24px;
    border-radius: var(--wp--custom--border--radius--small);
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 var(--wp--preset--spacing--medium) 0;
}

.wp-block-code > code,
pre > code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.wp-block-preformatted {
    white-space: pre-wrap;
}

/* --- Mark --- */
mark {
    background: rgba(214, 18, 84, 0.14);
    color: inherit;
    border-radius: 3px;
    display: inline-block;
    position: relative;
    z-index: 5;
}

mark em {
    padding: 5px 10px;
    line-height:1;
    font-style:normal;
    display: inline-block;
}

mark[style*="rgba(0, 0, 0, 0)"],
mark[style*="rgba(0,0,0,0)"],
mark[style*="background-color:transparent"],
mark[style*="background-color: transparent"] {
    background: transparent;
    display: inline;
    border-radius: 0;
    padding: 0;
    z-index: auto;
}

/* --- Keyboard --- */
kbd {
    display: inline-block;
    font-family: monospace;
    font-size: 0.85em;
    line-height: 1;
    padding: 3px 7px 4px;
    border: 1px solid var(--wp--custom--color--neutral--300);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--ink);
    vertical-align: baseline;
}

/* --- Separator (default) --- */
hr.wp-block-separator {
    border: none;
    border:0;
    background: none;
    height: 1px;
    margin-top: var(--wp--preset--spacing--large);
    margin-bottom: var(--wp--preset--spacing--large);
    opacity: 1;
}

/* --- Pullquote --- */
.wp-block-pullquote {
    border-top: 1px solid var(--wp--custom--color--neutral--300);
    border-bottom: 1px solid var(--wp--custom--color--neutral--300);
    padding: var(--wp--preset--spacing--large) 0;
    margin: var(--wp--preset--spacing--large) 0;
    text-align: left;
    color: inherit;
    background: none;
}

.wp-block-pullquote p {
    font-size: var(--wp--preset--font-size--jumbo);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

.wp-block-pullquote cite {
    display: block;
    margin-top: var(--wp--preset--spacing--small);
    font-size: var(--wp--preset--font-size--min);
    font-weight: 500;
    letter-spacing: 0.25px;
    color: var(--wp--preset--color--charcoal);
    font-style: normal;
}


/* ==========================================================================
   11. RESPONSIVE STYLES
   ========================================================================== */

/* Mobile (600px) */
@media (max-width: 600px) {
    .copyright-links {
        align-items: flex-start;
    }
}
