/* Golden Brixx Header Footer Styles - Luxury Edition */

:root {
    --gb-background: #FAFAFA;
    --gb-foreground: #101010;
    /* Soft rich black */
    --gb-card: #FFFFFF;

    /* Luxury Gold Palette */
    --gb-primary: #C9A24D;
    --gb-primary-dark: #B08D3C;
    --gb-primary-light: #E0C06E;
    --gb-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);

    --gb-primary-foreground: #FFFFFF;

    /* Neutrals */
    --gb-muted: #F8F8F8;
    --gb-muted-foreground: #666666;
    --gb-border: #EAEAEA;

    /* Footer specific */
    --gb-footer-bg: #121212;
    /* Deep charcoal/black */
    --gb-footer-text: #E5E5E5;

    /* Dimensions */
    --gb-header-height: 90px;
}

/* Serif font utility */
.gb-font-serif {
    font-family: "Playfair Display", serif;
}

/* Typography Enhancements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */

.gb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: rgba(255, 255, 255, 0.85);
    /* Increased opacity for legibility */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    font-family: "Inter", sans-serif;
    transition: all 0.3s ease;
}

.gb-header-container {
    max-width: 1400px;
    /* Wider container for luxury feel */
    margin: 0 auto;
    padding: 0 2rem;
}

.gb-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--gb-header-height);
    padding: 0.5rem 0;
}

/* Logo */
.gb-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.gb-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gb-gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gb-primary-foreground);
    font-weight: 700;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(201, 162, 77, 0.2);
    transition: transform 0.4s ease;
}

.gb-logo:hover .gb-logo-icon {
    transform: scale(1.05);
}

.gb-logo-text {
    display: flex;
    flex-direction: column;
}

.gb-logo-title {
    font-size: 1.5rem;
    font-weight: 600;
    /* Lighter weight for elegance */
    color: var(--gb-foreground);
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.gb-logo-subtitle {
    font-size: 0.7rem;
    color: var(--gb-primary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 500;
}

/* Navigation */
.gb-nav {
    display: none;
    gap: 2.5rem;
    align-items: center;
}

.gb-nav>a,
.gb-nav .gb-nav-item>a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gb-foreground);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

/* Luxury underline effect */
.gb-nav>a::after,
.gb-nav .gb-nav-item>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--gb-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gb-nav>a:hover::after,
.gb-nav .gb-nav-item>a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.gb-nav>a:hover,
.gb-nav .gb-nav-item>a:hover {
    color: var(--gb-primary-dark);
}

/* Dropdown */
.gb-nav-item.gb-has-submenu {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.gb-nav-item.gb-has-submenu .gb-submenu {
    position: absolute;
    top: calc(100% - 10px);
    left: -1rem;
    min-width: 220px;
    background-color: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #c9a24d;
    /* Subtle border */
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 99999;
    border-radius: 25px;
}

.gb-nav-item.gb-has-submenu .gb-submenu a {
    display: block;
    padding: 0.75rem 2rem;
    font-size: 0.85rem;
    color: var(--gb-muted-foreground);
    text-decoration: none;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0.02em;
    transition: all 0.2s;
    border-radius: 25px;

}

.gb-nav-item.gb-has-submenu .gb-submenu a::after {
    display: none;
    /* No underline for submenu items, just color shift */
}

.gb-nav-item.gb-has-submenu .gb-submenu a:hover {
    background-color: var(--gb-muted);
    color: var(--gb-foreground);
    padding-left: 2.25rem;
    /* Slight slide interaction */
}

/* Show submenu */
.gb-nav-item.gb-has-submenu:hover .gb-submenu,
.gb-nav-item.gb-has-submenu .gb-submenu.active,
.gb-submenu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* CTA Buttons */
.gb-desktop-cta {
    display: none;
}

.gb-btn {
    padding: 0.85rem 2.25rem;
    background: var(--gb-foreground);
    /* Black elegant button */
    color: #fff;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    font-family: "Inter", sans-serif;
}

.gb-btn:hover {
    background: var(--gb-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gb-btn-outline {
    background-color: transparent;
    border: 1px solid var(--gb-foreground);
    color: var(--gb-foreground);
}

.gb-btn-outline:hover {
    background-color: var(--gb-foreground);
    color: #fff;
}

/* Mobile Menu */
.gb-mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--gb-foreground);
    transition: color 0.3s;
}

.gb-mobile-menu-btn:hover {
    color: var(--gb-primary);
}

.gb-mobile-menu {
    display: block;
    position: fixed;
    top: var(--gb-header-height);
    left: 0;
    width: 100%;
    height: 0;
    background: #fff;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.gb-mobile-menu.active {
    height: calc(100vh - var(--gb-header-height));
    border-top: 1px solid var(--gb-border);
}

.gb-mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 0rem 2rem;
    gap: 0;
}

.gb-mobile-nav a {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    padding: 1rem 0;
    color: var(--gb-foreground);
    text-decoration: none;
    border-bottom: 1px solid var(--gb-border);
    transition: color 0.3s, padding-left 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s, padding-left 0.3s;
}

/* Stagger animation setup would require JS, simple CSS fade-in for now */
.gb-mobile-menu.active .gb-mobile-nav a {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays manually */
.gb-mobile-menu.active .gb-mobile-nav a:nth-child(1) {
    transition-delay: 0.1s;
}

.gb-mobile-menu.active .gb-mobile-nav a:nth-child(2) {
    transition-delay: 0.15s;
}

.gb-mobile-menu.active .gb-mobile-nav a:nth-child(3) {
    transition-delay: 0.2s;
}

.gb-mobile-menu.active .gb-mobile-nav a:nth-child(4) {
    transition-delay: 0.25s;
}

.gb-mobile-menu.active .gb-mobile-nav a:nth-child(5) {
    transition-delay: 0.3s;
}

.gb-mobile-menu.active .gb-mobile-nav a:nth-child(6) {
    transition-delay: 0.35s;
}

.gb-mobile-menu.active .gb-mobile-nav a:last-child {
    margin-top: 2rem;
    border-bottom: none;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    text-align: center;
    background: var(--gb-primary);
    color: white;
    transition-delay: 0.4s;
    width: auto;
    align-self: flex-start;
    padding: 1rem 2rem;
}

.gb-mobile-nav a:hover {
    color: var(--gb-primary);
    padding-left: 1rem;
}

/* Footer Styles - Premium Dark */

.gb-footer {
    background-color: var(--gb-footer-bg);
    color: var(--gb-footer-text);
    padding: 6rem 0 2rem;
    /* Increased top padding */
    font-family: "Inter", sans-serif;
    position: relative;
    overflow: hidden;
}

/* Subtle background accent for footer */
.gb-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gb-gold-gradient);
}

.gb-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gb-footer-grid {
    display: grid;
    gap: 4rem;
    margin-bottom: 5rem;
}

.gb-footer-brand .gb-logo {
    margin-bottom: 2rem;
}

.gb-footer-brand .gb-logo-title {
    color: #fff;
}

.gb-footer-brand .gb-logo-subtitle {
    color: var(--gb-primary);
}

.gb-footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 300;
    max-width: 320px;
}

/* Social links */
.gb-social-links {
    display: flex;
    gap: 0.75rem;
}

.gb-social-link {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
    border-radius: 50%;
    /* Fully round */
}

.gb-social-link:hover {
    background-color: var(--gb-primary);
    border-color: var(--gb-primary);
    transform: translateY(-3px);
}

.gb-social-link svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.7);
    fill: none;
    transition: stroke 0.3s;
}

.gb-social-link:hover svg {
    stroke: #fff;
}

/* Use fill for some icons */
.gb-social-link svg path,
.gb-social-link svg polygon {
    fill: rgba(255, 255, 255, 0.7);
    stroke: none;
    transition: fill 0.3s;
}

.gb-social-link:hover svg path,
.gb-social-link:hover svg polygon {
    fill: #fff;
}

/* Footer columns */
.gb-footer-column h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #fff;
    letter-spacing: 0.05em;
    font-family: "Playfair Display", serif;
}

.gb-footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gb-footer-column li {
    margin-bottom: 1rem;
}

.gb-footer-column a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
    display: inline-block;
}

.gb-footer-column a:hover {
    color: var(--gb-primary);
    transform: translateX(5px);
}

/* Newsletter */
.gb-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gb-newsletter-form input {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: "Inter", sans-serif;
    transition: border-color 0.3s;
}

.gb-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.gb-newsletter-form input:focus {
    outline: none;
    border-color: var(--gb-primary);
    background-color: rgba(255, 255, 255, 0.08);
}

.gb-newsletter-form button {
    padding: 1rem;
    width: 100%;
    background: var(--gb-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    transition: hover 0.3s;
}

.gb-newsletter-form button:hover {
    background: var(--gb-primary-dark);
}

/* Footer bottom */
.gb-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0.7;
}

.gb-footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

.gb-footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.8rem;
}

.gb-footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.gb-footer-links a:hover {
    color: #fff;
}

/* Icons generic */
.gb-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    /* Thinner strokes */
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Responsive Design */
@media (min-width: 768px) {
    .gb-nav {
        display: flex;
    }

    .gb-desktop-cta {
        display: block;
    }

    .gb-mobile-menu-btn {
        display: none;
    }

    .gb-mobile-menu.active {
        display: none;
        /* Hide if resized to desktop */
    }

    .gb-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .gb-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {

    .gb-header-container,
    .gb-footer-container {
        padding: 0 4rem;
        /* More generous side padding */
    }

    .gb-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
        gap: 4rem;
    }
}

/* Theme Overrides (moved from PHP) */
body {
    padding-top: var(--gb-header-height) !important;
}

/* Hide common theme headers/footers */
header.ct-header,
.site-header,
.masthead,
footer.ct-footer,
.site-footer,
.colophon {
    display: none !important;
}