/*
Theme Name: Ukrainian Arts
Theme URI: https://ukrainian-arts.afuo.org.au
Author: Yaryk
Description: Custom theme for Ukrainian Arts Council
Version: 1.0
*/


/* =====================
   FONTS
===================== */

@font-face {
    font-family: 'Nastup';
    src: url('/wp-content/uploads/fonts/Nastup-Basic.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mariupol';
    src: url('/wp-content/uploads/fonts/Mariupol-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mariupol';
    src: url('/wp-content/uploads/fonts/Mariupol-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mariupol';
    src: url('/wp-content/uploads/fonts/Mariupol-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =====================
   RESET & BASE
===================== */

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

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Mariupol', Arial, sans-serif;
    font-weight: 400;
    background-color: #ffffff;
    color: #000000;
    font-size: 16px;
    line-height: 1.6;
}

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


/* =====================
   TYPOGRAPHY
===================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: #000000;
    line-height: 1.2;
}

h1 {
    font-family: 'Nastup', Arial, sans-serif;
    font-weight: 400;
    font-size: 4rem;
    margin-bottom: 20px;
}

h2 {
    font-family: 'Mariupol', Arial, sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

h3 {
    font-family: 'Mariupol', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 14px;
}

h4 {
    font-family: 'Mariupol', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

h5 {
    font-family: 'Mariupol', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

h6 {
    font-family: 'Mariupol', Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}

p {
    font-family: 'Mariupol', Arial, sans-serif;
    font-weight: 400;
    margin-bottom: 16px;
}

a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #C9A84C;
}


/* =====================
   SITE HEADER
===================== */

.site-header {
    position: relative;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    width: 100%;
    padding: 20px 48px;

    background-color: #1C2B4D;
    border-bottom: 4px solid #C9A84C;

    transition: transform 0.3s ease;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}


/* BRAND / LEFT SIDE */

.site-header .header-left {
    display: flex;
    align-items: center;
    gap: 16px;

    min-width: 0;
}

.site-header .site-logo-link {
    display: block;
    flex-shrink: 0;
}

.site-header img.site-logo {
    display: block;

    width: auto;
    height: 68px;
    max-width: none;

    flex-shrink: 0;
}

.site-header .header-title-group {
    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 4px;
    min-width: 0;
}

.site-header .site-title {
    display: block;

    margin: 0;

    color: #ffffff;

    font-family: 'Mariupol', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.15;

    letter-spacing: -0.01em;
    text-decoration: none;

    transition: color 0.2s ease;
}

.site-header .site-title:hover {
    color: #C9A84C;
}

.site-header .site-subtitle {
    margin: 0;

    color: rgba(255, 255, 255, 0.62);

    font-family: 'Mariupol', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* =====================
   NAVIGATION — DESKTOP
===================== */

.site-header nav {
    display: flex;
    align-items: center;

    gap: 32px;

    margin-left: auto;
}

.site-header nav a {
    position: relative;

    padding: 8px 0;

    color: rgba(255, 255, 255, 0.92);

    font-family: 'Mariupol', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;

    text-decoration: none;
    white-space: nowrap;

    transition: color 0.2s ease;
}

.site-header nav a:hover {
    color: #ffffff;
}

.site-header nav a::after {
    content: '';

    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 2px;

    background-color: #C9A84C;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.2s ease;
}

.site-header nav a:hover::after {
    transform: scaleX(1);
}

.site-header nav .current-menu-item > a,
.site-header nav .current_page_item > a {
    color: #ffffff;
}

.site-header nav .current-menu-item > a::after,
.site-header nav .current_page_item > a::after {
    transform: scaleX(1);
}
/* =====================
   HEADER NAV SEPARATORS
===================== */

.site-header nav > a + a::before {
    content: '';

    position: absolute;
    left: -16px;
    top: 50%;

    width: 1px;
    height: 22px;

    background: rgba(255, 255, 255, 0.28);

    transform: translateY(-50%);
}


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

.site-header nav .header-cta {
    padding: 11px 18px;

    background-color: #C9A84C;
    color: #000000;

    font-weight: 700;
    white-space: nowrap;
}

.site-header nav .header-cta:hover {
    background-color: #ffffff;
    color: #000000;
}


/* Don't use normal nav underline on CTA */

.site-header nav .header-cta::after {
    display: none;
}

/* =====================
   HAMBURGER BUTTON
===================== */

.site-header .hamburger {
    display: none;

    flex-direction: column;
    justify-content: space-between;

    width: 30px;
    height: 22px;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;

    cursor: pointer;
}

.site-header .hamburger span {
    display: block;

    width: 100%;
    height: 2px;

    background-color: #ffffff;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.site-header .hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

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

.site-header .hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}
/* =====================
   BUTTONS
===================== */

.btn {
    display: inline-block;

    background-color: #C9A84C;
    color: #000000;

    font-family: 'Mariupol', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95em;
    line-height: 1.2;

    padding: 12px 28px;

    text-decoration: none;
    border: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.btn:hover {
    background-color: #a8882e;
    color: #000000;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #C9A84C;
    color: #C9A84C;
}

.btn-outline:hover {
    background-color: #C9A84C;
    color: #000000;
}


/* =====================
   MAIN CONTENT

   Main controls the horizontal content grid.
   Individual content blocks should not add their
   own max-width or horizontal padding unless
   deliberately designed to be different.
===================== */

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

.page-title {
    padding-top: 60px;
    margin-bottom: 20px;
}

.page-content {
    margin-bottom: 40px;
}


/* =====================
   CUSTOM BLOCKS

   Keep all standard custom blocks aligned to
   the same horizontal grid controlled by main.
===================== */

.block-one-column,
.block-two-column,
.block-three-column {
    width: 100%;
}


/* =====================
   FOOTER
===================== */

.site-footer {
    background-color: #1C2B4D;
    color: #ffffff;
    padding: 56px 40px 28px;
    font-family: 'Mariupol', Arial, sans-serif;
    text-align: left;
}


/* =====================
   MAIN FOOTER LAYOUT
===================== */

.footer-inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(140px, 0.6fr) minmax(140px, 0.6fr);
    gap: 72px;
    align-items: start;
}


/* =====================
   FOOTER BRAND
===================== */

.footer-brand {
    max-width: 520px;
    text-align: left;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 20px;
}

/* More specific than WooCommerce's generic image rules. */
.site-footer .footer-logo {
    display: block;
    width: auto;
    height: 64px;
    max-width: none;
}

.footer-title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.footer-tagline {
    max-width: 480px;
    margin: 0;
    color: #B8C2D6;
    font-size: 1rem;
    font-style: normal;
    line-height: 1.65;
}


/* =====================
   FOOTER LINKS
===================== */

.footer-column {
    text-align: left;
}

.footer-heading {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.footer-links a {
    color: #B8C2D6;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-links a:hover {
    color: #C9A84C;
    transform: translateX(2px);
}


/* =====================
   FOOTER BOTTOM BAR
===================== */

.footer-bottom {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1120px;
    margin: 52px auto 0;
    padding-top: 22px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-copy,
.footer-org {
    margin: 0;
    color: #8996B0;
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-org a {
    color: #C9A84C;
    text-decoration: none;
}

.footer-org a:hover {
    color: #ffffff;
}


/* =====================
   MOBILE FOOTER
===================== */

@media (max-width: 768px) {
    .site-footer {
        padding: 48px 20px 28px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .site-footer .footer-logo {
        height: 54px;
    }

    .footer-title {
        font-size: 1.4rem;
    }

    .footer-column {
        padding-top: 4px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-bottom {
        margin-top: 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
/* =====================
   MOBILE
===================== */

@media (max-width: 768px) {

    /* TYPOGRAPHY */

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.55rem;
    }

    h4 {
        font-size: 1.3rem;
    }

    h5 {
        font-size: 1.1rem;
    }

    h6 {
        font-size: 1rem;
    }


    /* =====================
       SITE HEADER
    ===================== */

    .site-header {
        padding: 16px 20px;
        gap: 16px;
        flex-wrap: wrap;
    }

    .site-header .site-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
    }

    .site-header img.site-logo {
        height: 56px;
    }

    .site-header .site-title {
        font-size: 1.05rem;
    }

    .site-header .hamburger {
        display: flex;
        margin-left: auto;
    }

    .site-header nav > a + a::before {
        display: none;
    }

    .site-header nav .header-cta {
        margin-top: 12px;
        padding: 14px 18px;
        text-align: center;
        border-bottom: 0;
    }

    /* =====================
       MOBILE NAV
    ===================== */

    .site-header nav {
        display: none;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        width: 100%;
        margin: 0;
        padding: 8px 0 0;

        background: transparent;

        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .site-header nav.open {
        display: flex;
    }

    .site-header nav a {
        width: 100%;

        padding: 14px 0;

        color: rgba(255, 255, 255, 0.92);

        border-bottom: 1px solid rgba(255, 255, 255, 0.10);

        font-size: 1.05rem;
        font-weight: 500;

        white-space: normal;
    }

    .site-header nav a:last-child {
        border-bottom: 0;
    }

    .site-header nav a:hover {
        color: #C9A84C;
    }


    /* =====================
       MAIN
    ===================== */

    main {
        padding-left: 20px;
        padding-right: 20px;
    }

    .page-title {
        padding-top: 40px;
    }

}
/* =====================
   CONTENT LISTS
===================== */

main ul,
main ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

main ul {
    list-style-type: disc;
    list-style-position: outside;
}

main ol {
    list-style-type: decimal;
    list-style-position: outside;
}

main li {
    display: list-item;
    margin-bottom: 6px;
}
/* =====================
   SPACER
===================== */

.block-spacer {
    position: relative;
    width: 100%;
    height: 64px;
}

.block-spacer--visible::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #dddddd;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .block-spacer {
        height: 48px;
    }
}


/* =====================
   NEWS
===================== */

.news-title-group {
    margin-top: 40px;
    margin-bottom: 40px;
}

.news-title-group .news-date {
    margin: 0 0 12px;
    font-size: 0.9rem;
    opacity: 0.65;
}

.news-title-group .page-title {
    margin-top: 0;
    padding-top: 0;
}
/* =====================
   EVENTS
===================== */

.event-title-group {
    margin-top: 40px;
    margin-bottom: 30px;
}

.event-title-group .event-date {
    margin: 0 0 12px;
    font-size: 0.9rem;
    opacity: 0.65;
}

.event-title-group .page-title {
    margin-top: 0;
    padding-top: 0;
}

.event-details {
    margin-bottom: 40px;
}

.event-details p {
    margin: 0 0 8px;
}

.event-ticket {
    margin-top: 24px !important;
}
/* Individual event featured image */

.event-featured-image {
    width: 100%;
    max-width: 800px;

    margin: 0 0 32px;

    overflow: hidden;
}

.event-featured-image img {
    display: block;

    width: 100%;
    height: auto;
}
/* =====================
   EVENT ARCHIVE
===================== */

.event-card-image {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 18px;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================
   SMALL MOBILE
===================== */

@media (max-width: 480px) {

    .site-header img.site-logo {
        height: 50px;
    }

    .site-header .site-title {
        font-size: 0.95rem;
    }

    .news-title-group {
        margin-top: 30px;
    }
}


/* =====================
   NEWS ARCHIVE
===================== */

.archive-news {
    padding-bottom: 80px;
}


/* Intro content */

.archive-news .page-content {
    max-width: 900px;
    margin-bottom: 70px;
}


/* =====================
   LATEST NEWS
===================== */

.news-archive-list {
    margin-top: 20px;
}

.news-archive-heading {
    margin: 0 0 28px;
    padding-bottom: 16px;

    border-bottom: 3px solid #C9A84C;

    font-size: 2rem;
    line-height: 1.15;
}


/* =====================
   NEWS LIST
===================== */

.news-list {
    width: 100%;
}

.news-item {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;

    width: 100%;
    padding: 30px 0;

    border-bottom: 1px solid #d9d9d9;
}

.news-item:first-child {
    border-top: 1px solid #d9d9d9;
}


/* If article has no featured image */

.news-item > .news-content:first-child:last-child {
    grid-column: 1 / -1;
}


/* Featured image */

.news-image {
    display: block;

    width: 100%;
    aspect-ratio: 4 / 3;

    overflow: hidden;
}

.news-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Article content */

.news-content {
    min-width: 0;
}

.news-date {
    margin: 0 0 8px;

    color: #C9A84C;

    font-size: 0.85rem;
    font-weight: 500;
}

.news-item-title {
    margin: 0 0 12px;

    font-size: 2rem;
    line-height: 1.1;
}

.news-item-title a {
    color: #000000;
    text-decoration: none;
}

.news-item-title a:hover {
    color: #1C2B4D;
}

.news-excerpt {
    max-width: 700px;
    margin-bottom: 18px;

    color: rgba(0, 0, 0, 0.72);
}

.news-excerpt p {
    margin: 0;
}

.news-link {
    display: inline-block;

    color: #000000;

    font-size: 0.9rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.news-link:hover {
    color: #C9A84C;
    transform: translateX(4px);
}


/* Pagination */

.archive-news .nav-links,
.archive-news .pagination {
    margin-top: 36px;
}


/* =====================
   NEWS ARCHIVE — MOBILE
===================== */

@media (max-width: 768px) {

    .archive-news {
        padding-bottom: 60px;
    }

    .archive-news .page-content {
        margin-bottom: 50px;
    }

    .news-archive-heading {
        padding-bottom: 14px;
        font-size: 1.7rem;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 18px;

        padding: 24px 0;
    }

    .news-item > .news-content {
        grid-column: 1;
    }

    .news-item-title {
        font-size: 1.5rem;
    }

    .news-image {
        aspect-ratio: 16 / 9;
    }
}
