/**
 * Header & Footer — WOW Effects
 * Photography-themed animations, glass-morphism, bokeh
 */

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

@keyframes ef-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(5deg); }
    66% { transform: translateY(6px) rotate(-3deg); }
}

@keyframes ef-float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-18px) rotate(8deg) scale(1.05); }
}

@keyframes ef-shutter-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ef-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(224, 122, 95, 0.4); }
    50% { box-shadow: 0 0 20px 6px rgba(224, 122, 95, 0.15); }
}

@keyframes ef-slide-down {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes ef-fade-in-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes ef-bokeh-drift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    25% { transform: translate(30px, -20px) scale(1.2); opacity: 0.25; }
    50% { transform: translate(-10px, -40px) scale(0.9); opacity: 0.1; }
    75% { transform: translate(-30px, 10px) scale(1.1); opacity: 0.2; }
}

@keyframes ef-progress-enter {
    from { transform: scaleX(0); }
}

@keyframes ef-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

@keyframes ef-slide-in-right {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes ef-link-underline {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

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

.ef-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    animation: ef-slide-down 0.6s ease-out;
}

.ef-header--scrolled {
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.ef-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
}

/* Floating Particles */
.ef-header__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ef-particle {
    position: absolute;
    color: rgba(224, 122, 95, 0.2);
    animation: ef-float 8s ease-in-out infinite;
}
.ef-particle--1 { top: 12px; left: 8%; animation-delay: 0s; animation-duration: 10s; }
.ef-particle--2 { top: 20px; left: 25%; animation-delay: -2s; animation-duration: 7s; }
.ef-particle--3 { top: 8px; right: 30%; animation-delay: -4s; animation-duration: 12s; }
.ef-particle--4 { top: 16px; right: 15%; animation-delay: -1s; animation-duration: 9s; }
.ef-particle--5 { top: 24px; right: 5%; animation-delay: -3s; animation-duration: 11s; }

/* Brand / Logo */
.ef-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    position: relative;
    z-index: 2;
}

.ef-header__logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ef-accent);
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 8px rgba(224, 122, 95, 0.3));
}

.ef-header__brand:hover .ef-header__logo-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 16px rgba(224, 122, 95, 0.5));
}

.ef-shutter-ring {
    animation: ef-shutter-spin 12s linear infinite;
    transform-origin: center;
}

.ef-header__brand:hover .ef-shutter-ring {
    animation-duration: 2s;
}

.ef-header__brand-text {
    display: flex;
    flex-direction: column;
}

.ef-header__title {
    font-family: var(--ef-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.ef-header__tagline {
    font-family: var(--ef-font-sans);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
}

/* Navigation */
.ef-header__nav {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ef-header__menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ef-header__link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-family: var(--ef-font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ef-header__link-line {
    position: absolute;
    bottom: 4px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--ef-accent);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ef-header__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.ef-header__link:hover .ef-header__link-line {
    transform: scaleX(1);
}

.ef-header__link--active {
    color: #fff;
}

.ef-header__link--active .ef-header__link-line {
    transform: scaleX(1);
}

/* CTA Button */
.ef-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    background: var(--ef-accent);
    color: #fff;
    text-decoration: none;
    font-family: var(--ef-font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    animation: ef-pulse-glow 3s ease-in-out infinite;
    margin-left: 0.5rem;
}

.ef-header__cta:hover {
    background: var(--ef-accent-hover);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(224, 122, 95, 0.4);
    animation: none;
}

.ef-header__cta svg {
    transition: transform 0.3s ease;
}

.ef-header__cta:hover svg {
    transform: rotate(90deg);
}

/* Hamburger */
.ef-header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10;
}

.ef-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.ef-hamburger span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}

.ef-header__toggle[aria-expanded="true"] .ef-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.ef-header__toggle[aria-expanded="true"] .ef-hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.ef-header__toggle[aria-expanded="true"] .ef-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Scroll Progress */
.ef-header__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
}

.ef-header__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--ef-accent), #f4a261, var(--ef-accent));
    background-size: 200% 100%;
    animation: ef-shimmer 3s linear infinite;
    transition: width 0.1s linear;
    border-radius: 0 1px 1px 0;
}

@keyframes ef-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Body offset for fixed header */
body:not(.wp-admin) {
    padding-top: 72px;
}

/* WP admin bar fix */
.admin-bar .ef-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .ef-header {
        top: 46px;
    }
}

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

.ef-footer {
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.ef-footer__wave {
    color: var(--ef-primary);
    line-height: 0;
    margin-bottom: -1px;
}

.ef-footer__wave svg {
    width: 100%;
    height: 50px;
}

.ef-footer__main {
    background: var(--ef-primary);
    padding: 4rem 0 3rem;
    position: relative;
}

.ef-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
}

/* Brand column */
.ef-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #fff;
    font-family: var(--ef-font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.ef-footer__brand:hover {
    transform: translateX(4px);
}

.ef-footer__logo {
    color: var(--ef-accent);
    filter: drop-shadow(0 0 6px rgba(224, 122, 95, 0.3));
}

.ef-footer__desc {
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--ef-font-sans);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

/* Social links */
.ef-footer__social {
    display: flex;
    gap: 0.75rem;
}

.ef-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ef-footer__social-link:hover {
    background: var(--ef-accent);
    color: #fff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(224, 122, 95, 0.4);
    border-color: transparent;
}

/* Footer headings */
.ef-footer__heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-family: var(--ef-font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(224, 122, 95, 0.3);
}

.ef-footer__heading svg {
    color: var(--ef-accent);
    flex-shrink: 0;
}

/* Footer links */
.ef-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ef-footer__links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-family: var(--ef-font-sans);
    font-size: 0.9rem;
    transition: all 0.25s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.ef-footer__links a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: var(--ef-accent);
    vertical-align: middle;
    margin-right: 0;
    transition: all 0.3s ease;
}

.ef-footer__links a:hover {
    color: #fff;
    padding-left: 14px;
}

.ef-footer__links a:hover::before {
    width: 8px;
    margin-right: 6px;
}

/* Tags style */
.ef-footer__links--tags {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ef-footer__links--tags a {
    padding: 0.3rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 0.8rem;
}

.ef-footer__links--tags a::before {
    display: none;
}

.ef-footer__links--tags a:hover {
    padding-left: 0.75rem;
    background: rgba(224, 122, 95, 0.15);
    border-color: rgba(224, 122, 95, 0.3);
    color: var(--ef-accent);
}

/* Bottom bar */
.ef-footer__bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.25rem 0;
    position: relative;
}

.ef-footer__bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ef-footer__copy {
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--ef-font-sans);
    font-size: 0.8rem;
    margin: 0;
}

.ef-footer__bottom-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Bokeh decorations */
.ef-footer__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ef-footer__bokeh {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 122, 95, 0.15) 0%, transparent 70%);
}

.ef-footer__bokeh--1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: -40px;
    animation: ef-bokeh-drift 15s ease-in-out infinite;
}

.ef-footer__bokeh--2 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 5%;
    animation: ef-bokeh-drift 12s ease-in-out infinite reverse;
    animation-delay: -3s;
}

.ef-footer__bokeh--3 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 40%;
    animation: ef-bokeh-drift 18s ease-in-out infinite;
    animation-delay: -7s;
}

/* ========================================
   BACK TO TOP
   ======================================== */

.ef-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ef-primary);
    color: #fff;
    border: 2px solid rgba(224, 122, 95, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 9000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ef-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ef-back-to-top:hover {
    background: var(--ef-accent);
    border-color: var(--ef-accent);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 30px rgba(224, 122, 95, 0.4);
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

.ef-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ef-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.ef-reveal--delay-1 { transition-delay: 0.1s; }
.ef-reveal--delay-2 { transition-delay: 0.2s; }
.ef-reveal--delay-3 { transition-delay: 0.3s; }
.ef-reveal--delay-4 { transition-delay: 0.4s; }

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

@media (max-width: 768px) {
    .ef-header__inner {
        height: 64px;
    }

    body:not(.wp-admin) {
        padding-top: 64px;
    }

    .ef-header__toggle {
        display: block;
    }

    .ef-header__menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 5rem 1.5rem 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    }

    .ef-header__menu.open {
        transform: translateX(0);
    }

    .ef-header__link {
        padding: 0.9rem 1rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .ef-header__item--cta {
        margin-top: 1rem;
    }

    .ef-header__cta {
        justify-content: center;
        margin-left: 0;
        padding: 0.75rem 1.5rem;
    }

    .ef-header__particles {
        display: none;
    }

    .ef-header__tagline {
        display: none;
    }

    .ef-footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ef-footer__desc {
        max-width: 100%;
    }

    .ef-footer__bottom-icons {
        display: none;
    }
}
