/*
Theme Name: Maybeshewill
Theme URI: https://maybeshewill.net
Author: John Helps
Version: 1.1.5
Description: Custom theme for Maybeshewill
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */

:root {
    --bg:           #1a1c1f;
    --bg-2:         #1f2226;
    --bg-3:         #24282d;
    --text:         #f0ede8;
    --text-muted:   rgba(240, 237, 232, 0.5);
    --accent:       #b8b4ae;
    --accent-light: #d0ccc6;
    --border:       rgba(240, 237, 232, 0.1);
    --border-warm:  rgba(184, 180, 174, 0.25);
    --max-width:    1140px;
    --prose-width:  720px;
}

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

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 400;
    text-transform: none;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    color: rgba(240, 237, 232, 0.85);
    margin-bottom: 1.25rem;
}

p:last-child { margin-bottom: 0; }

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.container--prose {
    max-width: var(--prose-width);
}

.section {
    padding: 6rem 0;
}

.section--tight {
    padding: 4rem 0;
}

.section-label {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: block;
}

.section-title {
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.news-single {
    display: flex;
    justify-content: center;
}

.news-card--single {
    max-width: 560px;
    width: 100%;
    text-align: center;
    align-items: center;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.is-scrolled {
    background: rgba(26, 28, 31, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    gap: 2rem;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 28px;
    width: auto;
    transition: opacity 0.2s ease;
}

.site-logo:hover img {
    opacity: 0.75;
}

/* Nav */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    color: rgba(240, 237, 232, 0.75);
    padding: 0.45rem 0.85rem;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--text);
    background: rgba(240, 237, 232, 0.08);
}

/* Sub-menu */
.main-nav .menu-item-has-children {
    position: relative;
}

.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 6px;
    min-width: 160px;
    padding: 0.4rem;
    padding-top: 0.9rem;
    display: none;
    flex-direction: column;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children.is-open > .sub-menu {
    display: flex;
}

.main-nav .sub-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.main-nav .sub-menu a:hover {
    background: rgba(240, 237, 232, 0.06);
    color: var(--text);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* =========================================================
   HERO
   ========================================================= */

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

.site-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    transform: scale(1.04);
    transition: transform 12s ease;
}

.site-hero__bg.is-loaded {
    transform: scale(1);
}

.site-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26,28,31,0.35) 0%,
        rgba(26,28,31,0.1)  40%,
        rgba(26,28,31,0.55) 75%,
        rgba(26,28,31,1)    100%
    );
}

.site-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.site-hero__logo {
    width: clamp(260px, 40vw, 520px);
    height: auto;
    filter: drop-shadow(0 2px 24px rgba(0,0,0,0.6));
}

.site-hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(240, 237, 232, 0.5);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    animation: bounce 2.5s ease infinite;
}

.site-hero__scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(240,237,232,0.5), transparent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* =========================================================
   SHOWS SECTION
   ========================================================= */

.shows-section {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.shows-list {
    display: flex;
    flex-direction: column;
    max-width: 720px;
    margin: 0 auto;
}

.show-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.show-item:first-child {
    border-top: 1px solid var(--border);
}

.show-date {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    color: var(--accent);
    white-space: nowrap;
}

.show-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.show-venue {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.04em;
    color: var(--text);
}

.show-location {
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.show-ticket-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--accent);
    border: 1px solid var(--border-warm);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.show-ticket-btn:hover {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
}

.shows-no-dates {
    padding: 3rem 0;
    color: var(--text-muted);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0.01em;
    text-align: center;
}

.shows-all-link {
    margin-top: 2.5rem;
    display: flex;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--outline {
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn--outline:hover {
    border-color: var(--text);
    color: var(--text);
}

.btn--accent {
    background: var(--accent);
    color: #111;
    border: 1px solid var(--accent);
}

.btn--accent:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

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

.news-section {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

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

.news-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: opacity 0.2s ease;
}

.news-card:hover {
    opacity: 0.8;
}

.news-card__thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-3);
}

.news-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card__thumb img {
    transform: scale(1.04);
}

.news-card__meta {
    font-size: 0.75rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--text-muted);
}

.news-card__title {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: var(--text);
    transition: color 0.15s ease;
}

.news-card:hover .news-card__title {
    color: var(--accent);
}

.news-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.news-footer {
    display: flex;
    justify-content: flex-end;
}

/* =========================================================
   NEWSLETTER SECTION
   ========================================================= */

.newsletter-section {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 5rem 0;
}

.newsletter-inner {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-inner .section-label {
    justify-content: center;
    display: flex;
}

.newsletter-inner h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.newsletter-inner p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    background: rgba(240, 237, 232, 0.06);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.75rem 1.25rem;
    color: var(--text);
    font-family: 'Lora', Georgia, serif;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--accent);
}

.newsletter-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.newsletter-form button:hover {
    background: var(--accent-light);
}

.newsletter-notice {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.newsletter-notice.success { color: #6fcf97; }
.newsletter-notice.error   { color: #eb5757; }

/* =========================================================
   STORE SECTION
   ========================================================= */

.store-section {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 5rem 0;
}

.store-inner {
    text-align: center;
}

.store-inner h2 {
    margin-bottom: 0.75rem;
}

.store-inner p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.store-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    padding: 0.9rem 2.25rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--text);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.store-btn:hover {
    border-color: var(--accent);
    background: rgba(232, 116, 58, 0.08);
    color: var(--text);
}

.store-btn__flag {
    font-size: 1.1em;
}

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

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

.site-footer .container {
    display: flex;
    justify-content: center;
}

.footer-logo img {
    height: 20px;
    width: auto;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.footer-logo:hover img {
    opacity: 0.85;
}

.footer-social {
    display: flex;
    gap: 0.25rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.footer-social a:hover {
    color: var(--text);
    background: rgba(240, 237, 232, 0.06);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* =========================================================
   NEWS / BLOG PAGES
   ========================================================= */

.news-page {
    padding: 10rem 0 6rem;
}

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

.page-heading {
    margin-bottom: 3rem;
}

/* =========================================================
   SINGLE POST
   ========================================================= */

.single-post-wrap {
    padding: 10rem 0 6rem;
}

.single-post-wrap .container {
    max-width: var(--prose-width);
}

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

.post-header__meta {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.post-header__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 0;
}

.post-hero-img {
    margin: 0 0 3rem;
    overflow: hidden;
}

.post-hero-img img {
    width: 100%;
    height: auto;
}

.post-content {
    font-size: 1.0625rem;
    line-height: 1.85;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote {
    margin-bottom: 1.5rem;
    color: rgba(240, 237, 232, 0.85);
}

.post-content h2,
.post-content h3 {
    margin: 2.5rem 0 1rem;
}

.post-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
}

/* =========================================================
   SHOWS PAGE
   ========================================================= */

.shows-page {
    padding: 10rem 0 6rem;
}

.shows-page .shows-list {
    margin-top: 0;
}

/* =========================================================
   GENERIC PAGE
   ========================================================= */

.generic-page {
    padding: 10rem 0 6rem;
}

.generic-page .container {
    max-width: var(--prose-width);
}

.generic-page h1 {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.page-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: rgba(240, 237, 232, 0.85);
}

.page-content p { margin-bottom: 1.5rem; }
.page-content a { color: var(--accent); }

/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
    background: rgba(240, 237, 232, 0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-family: 'Lora', Georgia, serif;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-muted);
}

.form-field textarea {
    resize: vertical;
    min-height: 160px;
}

.contact-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-notice {
    padding: 1rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-notice--success {
    background: rgba(111, 207, 151, 0.1);
    border: 1px solid rgba(111, 207, 151, 0.3);
    color: #6fcf97;
}

.form-notice--error {
    background: rgba(235, 87, 87, 0.1);
    border: 1px solid rgba(235, 87, 87, 0.3);
    color: #eb5757;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
    display: flex;
    gap: 0.35rem;
    margin-top: 4rem;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-muted);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.pagination a:hover {
    border-color: var(--text);
    color: var(--text);
}

.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-page-grid {
        grid-template-columns: 1fr;
    }

    .show-item {
        grid-template-columns: 100px 1fr;
        grid-template-rows: auto auto;
    }

    .show-ticket-btn {
        grid-column: 2;
    }
}

@media (max-width: 640px) {
    :root { font-size: 15px; }

    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .section { padding: 4rem 0; }

    .main-nav { display: none; }

    .nav-toggle { display: flex; }

    .main-nav.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 13, 13, 0.97);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border);
        padding: 1rem 1.25rem 1.5rem;
    }

    .main-nav.is-open ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .main-nav.is-open a {
        padding: 0.75rem 0.5rem;
        font-size: 1.1rem;
    }

    .main-nav .sub-menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 1rem;
        margin-top: 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .show-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
        padding: 0.85rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .news-page,
    .shows-page,
    .generic-page,
    .single-post-wrap {
        padding-top: 8rem;
    }
}
