/* ============================================================
   Long Paws Records — optimised stylesheet
   ============================================================ */

/* ---------- Custom properties ---------- */
:root {
    --bg-primary: #669fab;
    --bg-secondary: #4a7a8a;
    --text-dark: #111111;
    --text-light: #eeeeee;
    --border: #111111;
    --white: #ffffff;
    --black: #000000;
    --header-h: 145px;
    --footer-h: 50px;
    --radius: 12px;
    --border-w: 5px;
    --transition: 0.3s ease;
    --font-sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    --font-brand: marcfont, var(--font-sans);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

a, body, button, h1, h2, h3, h4, h5, h6, input, p, textarea, select {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: 0.04em;
}

body {
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-h);
    padding-bottom: calc(var(--footer-h) + 20px); /* clear fixed footer */
    color: var(--text-dark);
}

.container,
footer .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
header {
    background: var(--bg-primary);
    border-bottom: 3px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    padding: 16px 24px;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Logo (left) */
.logo {
    flex-shrink: 0;
    z-index: 2;
}

.header-logo {
    height: 140px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Center logo — truly centred regardless of side widths */
.header-center-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none; /* clicks pass through if needed */
}

.center-logo {
    height: 300px;
    width: auto;
    max-width: 400px;
    display: block;
    object-fit: contain;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 6px;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 38px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

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

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: rgba(74, 122, 138, 0.97);
    border: 3px solid var(--border);
    padding: 0;
    z-index: 1000;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

.mobile-menu.show {
    max-height: 480px;
    opacity: 1;
    padding: 1.25rem 0.75rem;
}

.mobile-menu a {
    padding: 1rem 2rem;
    color: var(--text-dark);
    text-decoration: none;
    font-family: var(--font-brand);
    font-size: 1.5rem;
    font-weight: 400;
    text-align: right;
    transition: color 0.3s ease, background 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
    color: var(--white);
    background: rgba(0, 0, 0, 0.12);
    outline: none;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 90vh;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 20px;
    padding-bottom: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-primary);
}

.hero-left {
    text-align: left;
}

.hero-left h3,
.hero-left .hero-description {
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 400;
    color: var(--text-dark);
    margin: 0 0 1.5rem;
}

.hero-left p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.hero-right {
    text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    border: 3px solid var(--border);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.btn:hover,
.btn:focus-visible {
    background: transparent;
    color: var(--text-dark);
    outline: none;
}

.apple-music-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--black);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 25px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.apple-music-btn:hover,
.apple-music-btn:focus-visible {
    background: #1c1c1c;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    outline: none;
}

/* ---------- Sections ---------- */
.section {
    padding: 40px 0 80px;
    background-color: var(--bg-primary);
}

.section.dark {
    background-color: var(--bg-secondary);
    color: var(--text-light);
}

.heading {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 20px 0 2.5rem;
    color: var(--text-dark);
    letter-spacing: 2px;
    font-family: var(--font-brand);
}

.section.dark .heading {
    color: var(--text-light);
}

/* ---------- Grids & cards ---------- */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.artist-card {
    font-size: 1rem;
    line-height: 1.55;
    text-align: left;
    font-weight: 400;
    color: var(--text-dark);
    margin: 0 0 1.5rem;
    background: var(--bg-primary);
    padding: 1.5rem;
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius);
}

.artist-card.mixes {
    padding: 1rem;
}

.artist-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 3px solid var(--border);
    margin-bottom: 1rem;
    background: var(--white);
    padding: 5px;
}

.releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.release-card {
    background: var(--white);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition);
}

.release-card:hover {
    transform: translateY(-8px);
}

.soundcloud-credit {
    padding: 10px 15px;
    background: var(--bg-primary);
    font-size: 11px;
    color: var(--white);
    line-break: anywhere;
    word-break: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: Interstate, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Garuda, Verdana, Tahoma, sans-serif;
    font-weight: 100;
    border-top: 3px solid var(--border);
}

.soundcloud-credit a {
    color: #ccc;
    text-decoration: none;
}

.soundcloud-credit a:hover,
.soundcloud-credit a:focus-visible {
    text-decoration: underline;
    outline: none;
}

/* ---------- Contact ---------- */
.contact-card {
    background: var(--bg-primary);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card .form-group {
    margin-bottom: 1.8rem;
}

.contact-card label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-card input,
.contact-card select,
.contact-card textarea {
    width: 100%;
    padding: 14px;
    border: 3px solid var(--border);
    background: var(--white);
    font-size: 1rem;
    color: var(--text-dark);
    font-family: inherit;
    border-radius: 0;
}

.contact-card input:focus-visible,
.contact-card select:focus-visible,
.contact-card textarea:focus-visible {
    outline: 2px solid var(--bg-secondary);
    outline-offset: 2px;
}

.contact-card textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-card .btn {
    width: 100%;
    margin-top: 1rem;
    padding: 16px;
    font-size: 1.1rem;
}

/* ---------- Footer ---------- */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--black);
    color: var(--white);
    height: var(--footer-h);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    font-size: 0.9rem;
    text-align: center;
    border-top: 3px solid var(--border);
}

/* ---------- Loading screen ---------- */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.8s ease;
}

.loading-content {
    position: relative;
    width: 300px;
    height: 300px;
}

.loading-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    opacity: 1;
    transition: opacity 1.2s ease;
}

#main-content {
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* ---------- Mixes iframes ---------- */
.artist-card.mixes iframe {
    margin-bottom: 18px;
    border-radius: 8px;
    width: 100%;
}

/* ---------- Branding & links ---------- */
.links {
    color: var(--text-dark);
    text-decoration: underline;
    font-weight: 400;
    line-height: 2.75;
    letter-spacing: 0.02em;
    font-family: var(--font-brand);
    font-size: 1em;
    transition: color 0.3s ease;
    display: inline;
}

.section.dark .links {
    color: var(--text-light);
}

.links:hover,
.links:focus-visible {
    color: var(--black);
    outline: none;
}

.section.dark .links:hover,
.section.dark .links:focus-visible {
    color: var(--white);
}

.hero-left strong,
.heading strong {
    font-family: var(--font-brand);
    font-weight: 400;
    font-size: 1.5em;
}

/* ---------- Custom font ---------- */
@font-face {
    font-family: 'marcfont';
    src: url('./fonts/marcfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* prevents invisible text during load */
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-left {
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 105px;
    }

    .center-logo,
    .header-center-logo img {
        max-height: 70px !important;
        max-width: 240px !important;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .header-logo {
        height: 62px;
    }

    .nav-container {
        padding: 12px 16px;
        min-height: 85px;
    }

    .hero {
        padding-top: 20px;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 95%;
        padding: 30px 20px;
    }

    .hero-left h3,
    .hero-left .hero-description {
        font-size: 1.05rem;
    }

    .mobile-menu {
        width: 100%;
        right: 0;
        left: 0;
        border-left: none;
        border-right: none;
    }

    .heading {
        font-size: 1.65rem;
    }

    .artists-grid,
    .releases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .apple-music-btn {
        padding: 12px 22px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .nav-container {
        padding: 6px 12px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
