/* Shared header and footer chrome, matched to sophiewellsart.com */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    padding: 20px 0;
    background-color: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.site-header .logo {
    z-index: 10;
}

.site-header .logo img {
    height: 50px;
    width: auto;
    max-width: min(220px, 48vw);
    object-fit: contain;
    filter: invert(0);
    transition: height 0.3s ease, filter 0.3s ease;
}

.site-header.scrolled .logo img {
    height: 40px;
    filter: invert(1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #fff;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.site-header.scrolled .menu-toggle .bar,
.menu-toggle.active .bar {
    background-color: #4a4a4a;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.site-header .main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    margin-left: 40px;
}

.nav-menu a {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffd6dc;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.site-header.scrolled .nav-menu a {
    color: #4a4a4a;
}

.events-main,
.auction-main {
    padding-top: var(--chrome-offset, 108px);
}

body.menu-open {
    overflow: hidden;
}

.site-footer-new {
    background: #1a1a1a;
    color: #fff;
    margin-top: 0;
}

.footer-top-border {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.footer-border-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(224, 195, 252, 0.3), transparent);
}

.footer-border-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    margin: -25px 2rem 0;
    position: relative;
    z-index: 1;
    padding: 5px;
    box-sizing: border-box;
    overflow: hidden;
}

.footer-palette-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.footer-main {
    padding: 50px 0 40px;
}

.site-footer-new .container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-brand-col {
    padding-right: 20px;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo-new {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover .footer-logo-new {
    opacity: 1;
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #999;
    margin-bottom: 20px;
}

.footer-social-icons {
    display: flex;
    gap: 10px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-social-icon:hover {
    background: linear-gradient(135deg, #e0c3fc 0%, #ffd6dc 100%);
    border-color: transparent;
    color: #1a1a1a;
    transform: translateY(-3px);
}

.footer-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #e0c3fc, #ffd6dc);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 10px;
}

.footer-links-list a {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links-list a i {
    font-size: 10px;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-links-list a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-links-list a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #e0c3fc;
    font-size: 16px;
    flex-shrink: 0;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
}

.footer-contact-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

.footer-contact-info a {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: #e0c3fc;
}

.footer-newsletter {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 5px;
}

.footer-newsletter-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.footer-newsletter-form {
    margin: 0;
}

.footer-newsletter-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-newsletter-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.footer-newsletter-field-row input {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.footer-newsletter-field-row input::placeholder,
.footer-newsletter-input-wrap input::placeholder {
    color: #666;
}

.footer-newsletter-field-row input:focus,
.footer-newsletter-input-wrap:focus-within {
    outline: none;
    border-color: rgba(224, 195, 252, 0.5);
}

.footer-newsletter-input-wrap {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.footer-newsletter-input-wrap input {
    flex: 1;
    padding: 12px 18px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.footer-newsletter-input-wrap input:focus {
    outline: none;
}

.footer-newsletter-input-wrap button {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #e0c3fc 0%, #ffd6dc 100%);
    border: none;
    border-radius: 50%;
    margin: 3px;
    cursor: pointer;
    color: #1a1a1a;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.footer-newsletter-input-wrap button:hover {
    transform: scale(1.05);
}

.footer-newsletter-input-wrap button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.footer-newsletter-message {
    display: none;
    margin-top: 1rem;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.footer-newsletter-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.footer-newsletter-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.footer-bottom-bar {
    background: #111;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.footer-payment-icons {
    display: flex;
    gap: 15px;
}

.footer-payment-icons i {
    font-size: 24px;
    color: #666;
    transition: color 0.3s ease;
}

.footer-payment-icons i:hover {
    color: #999;
}

.footer-powered-bar {
    background: linear-gradient(135deg, #e0c3fc 0%, #ffd6dc 100%);
    padding: 10px 0;
    text-align: center;
}

.footer-powered-bar p {
    margin: 0;
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

.footer-powered-bar a {
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-powered-bar a:hover {
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .nav-menu li {
        margin-left: 20px;
    }

    .header-container {
        padding: 0 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }

    .footer-social-icons {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }

    .site-header .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 100px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .site-header .main-nav.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-menu a,
    .site-header.scrolled .nav-menu a {
        font-size: 20px;
        color: #4a4a4a;
    }

    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-newsletter-field-row {
        grid-template-columns: 1fr;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links-list a {
        justify-content: center;
    }

    .footer-links-list a i {
        display: none;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-border-icon {
        width: 40px;
        height: 40px;
        margin: -20px 15px 0;
    }
}
