/* =========================================================
   PFK ATMOSPHERE GLOBAL SYSTEM
   Theme layer only. Header structure remains untouched.
========================================================= */

:root {
    --pfk-primary: #4A4A4A;
    --pfk-secondary: #282828;
    --pfk-text: #4A4A4A;
    --pfk-white: #FFFFFF;
    --pfk-accent: #007BFF;
    --pfk-blue-deep: #002A66;
    --pfk-blue: #0047AB;
    --pfk-grey: #BDBDBD;
    --pfk-soft: #F7F7F7;

    --pfk-radius-sm: 12px;
    --pfk-radius-md: 16px;
    --pfk-radius-lg: 24px;
    --pfk-radius-xl: 32px;

    --pfk-shadow-soft:
        8px 8px 20px rgba(0,0,0,0.05),
        -8px -8px 20px rgba(255,255,255,0.95);

    --pfk-shadow-hover:
        12px 12px 24px rgba(0,0,0,0.06),
        -12px -12px 24px rgba(255,255,255,1);

    --pfk-shadow-pressed:
        inset 5px 5px 12px rgba(0,0,0,0.08),
        inset -5px -5px 12px rgba(255,255,255,0.9);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--pfk-text);
    background: linear-gradient(45deg, #ffffff 0%, #ececec 50%, #ffffff 100%);
    background-size: 400% 400%;
    animation: pfkGradientFlow 18s ease infinite;
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.80) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.40) 2px, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,0.50) 1.5px, transparent 1.5px);
    background-size: 220px 220px, 340px 340px, 480px 480px;
    animation: pfkFloatParticles 90s linear infinite;
    opacity: 0.25;
    filter: blur(0.3px);
}

body::after {
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.45) 0%, transparent 60%),
        radial-gradient(circle, rgba(255,255,255,0.30) 0%, transparent 70%);
    background-size: 700px 700px, 900px 900px;
    animation: pfkDriftGlow 140s linear infinite;
    opacity: 0.30;
    filter: blur(20px);
}

/* Keep content above the atmospheric background. */
.site,
.elementor,
.elementor-location-header,
.elementor-location-footer,
.ast-container,
#content,
#page {
    position: relative;
    z-index: 1;
}

h1,
h2,
h3,
h4,
h5,
h6,
.elementor-heading-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body,
p,
li,
a,
button,
input,
textarea,
select {
    font-family: 'Manrope', sans-serif;
}

.pfk-editorial,
.pfk-serif,
blockquote,
.elementor-heading-title em {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* =========================================================
   SURFACE CLASSES
========================================================= */

.pfk-glass,
.pfk-card,
.pfk-panel,
.pfk-archive-card,
.pfk-gallery-card {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.70);
    border-radius: var(--pfk-radius-lg);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.04),
        inset 0 1px 0 rgba(255,255,255,0.70);
}

.pfk-elevated {
    box-shadow: var(--pfk-shadow-soft);
}

.pfk-soft-section {
    border-radius: var(--pfk-radius-xl);
    background: rgba(255,255,255,0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* =========================================================
   BUTTON SYSTEM
========================================================= */

button,
.elementor-button,
.wp-element-button,
input[type="submit"],
input[type="button"] {
    font-family: 'Manrope', sans-serif !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 71, 171, 0.72) !important;
    padding: 1rem 2rem;
    border-radius: var(--pfk-radius-md);
    border: 1px solid rgba(255,255,255,0.60);
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--pfk-shadow-soft);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}

button:hover,
.elementor-button:hover,
.wp-element-button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    color: rgba(0, 71, 171, 1) !important;
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(240,240,240,0.88));
    box-shadow: var(--pfk-shadow-hover);
}

button:active,
.elementor-button:active,
.wp-element-button:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(1px);
    box-shadow: var(--pfk-shadow-pressed);
}

button::before,
.elementor-button::before,
.wp-element-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.8s ease;
    pointer-events: none;
}

button:hover::before,
.elementor-button:hover::before,
.wp-element-button:hover::before {
    left: 140%;
}

/* =========================================================
   MONTHLY EXPANDING GALLERY BASE
   Use this for generated monthly pages.
========================================================= */

.pfk-month-gallery-wrap {
    width: min(1140px, calc(100% - 32px));
    margin: 48px auto;
}

.pfk-month-gallery-title {
    text-align: center;
    margin-bottom: 8px;
}

.pfk-month-gallery-subtitle {
    max-width: 680px;
    margin: 0 auto 32px;
    text-align: center;
    opacity: 0.72;
}

.pfk-month-gallery {
    display: flex;
    align-items: stretch;
    gap: 12px;
    height: 420px;
    width: 100%;
}

.pfk-month-gallery-item {
    position: relative;
    flex: 1 1 0;
    min-width: 74px;
    overflow: hidden;
    border-radius: var(--pfk-radius-lg);
    background: rgba(255,255,255,0.55);
    box-shadow: var(--pfk-shadow-soft);
    transition: flex 0.55s cubic-bezier(.2,.8,.2,1), transform 0.35s ease, box-shadow 0.35s ease;
}

.pfk-month-gallery-item:hover {
    flex: 4 1 0;
    transform: translateY(-4px);
    box-shadow: var(--pfk-shadow-hover);
}

.pfk-month-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.75s cubic-bezier(.2,.8,.2,1), filter 0.35s ease;
}

.pfk-month-gallery-item:hover img {
    transform: scale(1.035);
}

.pfk-month-gallery-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.46));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.pfk-month-gallery-item:hover .pfk-month-gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.pfk-month-gallery-caption strong {
    display: block;
    font-weight: 700;
}

.pfk-month-gallery-caption span {
    display: block;
    font-size: 13px;
    opacity: 0.85;
}

@media (max-width: 920px) {
    .pfk-month-gallery {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
    }

    .pfk-month-gallery-item {
        min-height: 280px;
    }

    .pfk-month-gallery-item:hover {
        flex: initial;
    }
}

@media (max-width: 620px) {
    .pfk-month-gallery {
        grid-template-columns: 1fr;
    }

    .pfk-month-gallery-item {
        min-height: 340px;
    }

    button,
    .elementor-button,
    .wp-element-button,
    input[type="submit"],
    input[type="button"] {
        letter-spacing: 1px;
        font-size: 14px;
        padding: 0.9rem 1.35rem;
    }
}

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

.pfk-site-footer {
    position: relative;
    z-index: 1;
    margin-top: 80px;
    padding: 64px 24px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,0.70);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.04);
}

.pfk-footer-inner {
    width: min(1140px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 32px;
}

.pfk-footer-brand p {
    margin: 0 0 12px;
    max-width: 340px;
    opacity: 0.76;
}

.pfk-footer-kicker {
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pfk-blue);
    margin-bottom: 12px;
}

.pfk-footer-credit {
    font-size: 13px;
}

.pfk-footer-col h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 14px;
    color: var(--pfk-secondary);
}

.pfk-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pfk-footer-menu li {
    margin-bottom: 9px;
}

.pfk-footer-menu a,
.pfk-site-footer a {
    color: var(--pfk-primary);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.pfk-footer-menu a:hover,
.pfk-site-footer a:hover {
    color: var(--pfk-blue);
}

@media (max-width: 920px) {
    .pfk-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pfk-footer-brand {
        grid-column: 1 / -1;
    }
}

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

    .pfk-footer-inner {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes pfkGradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pfkFloatParticles {
    from { transform: translateY(0px); }
    to { transform: translateY(-400px); }
}

@keyframes pfkDriftGlow {
    from { transform: translateX(0px) translateY(0px); }
    to { transform: translateX(-120px) translateY(-80px); }
}

@media (prefers-reduced-motion: reduce) {
    body,
    body::before,
    body::after,
    .pfk-month-gallery-item,
    .pfk-month-gallery-item img,
    button,
    .elementor-button,
    .wp-element-button {
        animation: none !important;
        transition: none !important;
    }
}
