/* ==========================================
   SICKBOY - BASE STYLES
   Professional Foundation - 2026
   ======================================== */

/* ==========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* COLORS */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-grey-light: #F5F5F5;
    --color-grey-mid: #999999;
    --color-grey-dark: #333333;
    --color-accent: #000000;

    /* TYPOGRAPHY */
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-size-base: 1rem;
    --font-size-small: 0.9rem;
    --font-size-large: 1.2rem;
    --line-height-base: 1.6;
    --line-height-heading: 1.2;

    /* SPACING */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* LAYOUT */
    --max-width: 1400px;
    --nav-height: 100px; /* Compact navbar */

    /* TRANSITIONS */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-black);
    background: var(--color-white);
    min-height: 100vh;
}

/* ==========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: var(--line-height-heading);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

a:hover {
    opacity: 0.7;
}

strong, b {
    font-weight: 600;
}

em, i {
    font-style: italic;
}

/* ==========================================
   LAYOUT & SPACING
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.page-content {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    padding: var(--spacing-sm) 0;
}

/* ==========================================
   NAVIGATION
   ======================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--color-black); /* Inverted to black */
    border-bottom: 1px solid var(--color-white); /* White border */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-sm); /* Reduced padding */
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 180px; /* 3x bigger logo, overflows nav intentionally */
    z-index: 1001;
    margin: -40px 0; /* Allow overflow */
}

.temple-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: invert(1); /* Invert black temple to white */
}

.nav-items {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: var(--font-size-small);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base);
    color: var(--color-white); /* White text */
}

.nav-link:hover {
    opacity: 1;
    border-bottom: 1px solid var(--color-white); /* White underline */
}

.nav-flash {
    color: var(--color-white); /* White like others */
    font-weight: 700; /* Bold */
}

/* LPHD ICONS - Right Side */
.lphd-icons {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-right: var(--spacing-sm);
    z-index: 1001;
}

.lphd-disabled {
    cursor: default;
    pointer-events: none;
}

.footer-legal {
    padding-top: 30px;
}

.lphd-disabled img {
    filter: grayscale(1) brightness(0.15) !important;
}

.lphd-reel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lphd-icons img {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-base);
    filter: grayscale(1) brightness(3);
}

/* Love icon 25% bigger total, moved up 5px */
.lphd-reel img:first-child {
    height: 151px;
    transform: translateY(-5px);
}

.lphd-icons:hover img {
    opacity: 0.7;
}

/* LPHD Glitch Effect */
.lphd-icons.glitch-active {
    animation: lphd-glitch 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes lphd-glitch {
    0%, 100% {
        transform: translate(0, 0);
        filter: hue-rotate(0deg) brightness(1);
    }
    10% {
        transform: translate(-5px, 2px);
        filter: hue-rotate(90deg) brightness(1.5) contrast(1.5);
    }
    20% {
        transform: translate(5px, -2px);
        filter: hue-rotate(180deg) brightness(0.8) contrast(2);
    }
    30% {
        transform: translate(-3px, -3px);
        filter: hue-rotate(270deg) brightness(1.8) invert(0.3);
    }
    40% {
        transform: translate(4px, 3px);
        filter: hue-rotate(45deg) brightness(1.2) saturate(3);
    }
    50% {
        transform: translate(-4px, 1px);
        filter: hue-rotate(315deg) brightness(1.5) contrast(1.8) invert(0.5);
    }
    60% {
        transform: translate(3px, -2px);
        filter: hue-rotate(135deg) brightness(0.9) saturate(2);
    }
    70% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(225deg) brightness(1.6) contrast(1.5);
    }
    80% {
        transform: translate(2px, -1px);
        filter: hue-rotate(180deg) brightness(1.3) invert(0.2);
    }
    90% {
        transform: translate(-1px, 1px);
        filter: hue-rotate(90deg) brightness(1.1);
    }
}

/* HAMBURGER MENU (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-white); /* White hamburger lines */
    transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ==========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: var(--font-size-small);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--color-black);
    background: var(--color-white);
    color: var(--color-black);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.btn:hover {
    background: var(--color-black);
    color: var(--color-white);
    opacity: 1;
}

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

.btn-primary:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* ==========================================
   FORMS
   ======================================== */
input,
textarea,
select {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-black);
    background: var(--color-white);
    width: 100%;
    transition: border-color var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: var(--font-size-small);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   FOOTER
   ======================================== */
.site-footer {
    background: #1a1a1a;
    color: var(--color-white);
    padding: var(--spacing-xs) 0;
    margin-top: var(--spacing-sm);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-sm);
    align-items: start;

}

.footer-section h3 {
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section ul {
    list-style: none;
}

/* Two-column list layout */
.footer-two-col {
    column-count: 2;
    column-gap: var(--spacing-md);
}

.footer-two-col li {
    margin-bottom: 0.15rem;
    font-size: 0.65rem;
    line-height: 1.4;
    break-inside: avoid;
}

/* Manual column layout for precise control */
.footer-manual-cols {
    display: flex;
    gap: var(--spacing-md);
}

.footer-col {
    list-style: none;
    flex: 1;
}

.footer-col li {
    margin-bottom: 0.15rem;
    font-size: 0.65rem;
    line-height: 1.4;
}

.footer-col-offset {
    margin-top: -1.5rem; /* Move right column up to balance */
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: var(--color-white);
    opacity: 1;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0.4rem auto 0;
    padding: 0.4rem var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   MONOGRAM BACKGROUND EFFECT
   ======================================== */
.monogram-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url('assets/background-transparent.png');
    background-repeat: no-repeat;
    background-size: 150%;
    background-position: center;
    /* Static filter — blur in keyframes forces repaint every frame */
    filter: brightness(1.2) grayscale(1) blur(3px) contrast(0.6);
    animation: monogramBreathe 16s ease-in-out infinite alternate;
}

@keyframes monogramBreathe {
    0%   { opacity: 0.05; transform: scale(1) rotate(0deg); }
    50%  { opacity: 0.05; transform: scale(1.05) rotate(2deg); }
    100% { opacity: 0.05; transform: scale(1.03) rotate(-1deg); }
}

/* ==========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    :root {
        --nav-height: 85px;
        --spacing-md: 1rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }

    .nav-logo {
        height: 128px; /* 33% smaller than previous 192px */
        margin: -22px 0 -22px -30px; /* Overflow recalculated for 85px nav */
    }

    /* TYPOGRAPHY */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }

    /* NAVIGATION - Mobile Menu */
    .nav-toggle {
        display: flex;
        order: 2; /* Move hamburger to right of LPHD icons */
        align-self: center;
    }

    .nav-items {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-black); /* Match inverted nav */
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 0;
        border-bottom: 1px solid var(--color-white);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform var(--transition-base), opacity var(--transition-base);
        pointer-events: none;
    }

    .nav-items.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-items li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Subtle white borders */
    }

    .nav-items li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        border-bottom: none !important;
    }

    /* LPHD ICONS - Slot machine (one at a time) */
    .lphd-icons {
        height: 76px; /* Love's height — tallest icon, prevents clipping */
        overflow: hidden;
        padding-right: var(--spacing-xs);
        align-items: flex-start;
        align-self: center;
        margin-top: 7px;
    }

    .lphd-reel {
        flex-direction: column;
        gap: 0;
        animation: lphd-slot 10s infinite;
    }

    .lphd-icons img {
        height: 66px !important; /* 20% bigger than previous 55px */
        flex-shrink: 0;
    }

    .lphd-reel img:first-child {
        height: 76px !important; /* Love: extra 15% to match visual weight */
        transform: none !important;
    }

    /* FOOTER */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .footer-newsletter {
        grid-column: auto;
    }

    .footer-two-col {
        column-count: 1;
    }

    .footer-legal {
        padding-top: 0;
    }

    .footer-legal .footer-two-col {
        column-count: unset;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.15rem 0.5rem;
        font-size: 0.65rem;
    }

    .footer-manual-cols {
        flex-direction: column;
    }

    .footer-col-offset {
        margin-top: 0; /* Reset offset on mobile */
    }
}

/* ==========================================
   LPHD SLOT MACHINE (Mobile)
   Each icon shown for ~2s, snaps to next
   ======================================== */
@keyframes lphd-slot {
    0%,  19% { transform: translateY(0); }       /* Love    (76px tall) */
    24%, 44% { transform: translateY(-76px); }   /* Peace   (66px tall) */
    49%, 69% { transform: translateY(-142px); }  /* Happiness (66px tall) */
    74%, 99% { transform: translateY(-208px); }  /* Death   (66px tall) */
    100%     { transform: translateY(0); }        /* Loop */
}
