/**
 * Cake House Global Theme Styles
 * Applies consistent branding across non-template pages
 */

/* ==========================================================================
   FULL PAGE COLOR SCHEME
   ========================================================================== */

/* Dark background with white text */
body.cake-house-global {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%) !important;
    color: #ffffff !important;
    min-height: 100vh;
}

/* Main content area */
body.cake-house-global #page,
body.cake-house-global .site,
body.cake-house-global #content,
body.cake-house-global .site-content,
body.cake-house-global main,
body.cake-house-global .entry-content,
body.cake-house-global article {
    background: transparent !important;
    color: #ffffff !important;
}

/* Headings */
body.cake-house-global h1,
body.cake-house-global h2,
body.cake-house-global h3,
body.cake-house-global h4,
body.cake-house-global h5,
body.cake-house-global h6 {
    font-family: Oswald, Georgia, serif !important;
    color: #ffffff !important;
}

/* Teal accent for special headings */
body.cake-house-global h1 {
    background: linear-gradient(135deg, #2DCCD3 0%, #5DD9DE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Paragraphs and text */
body.cake-house-global p,
body.cake-house-global li,
body.cake-house-global span,
body.cake-house-global div {
    color: #ffffff;
}

body.cake-house-global .entry-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.7;
}

/* Links - Teal accent for content areas */
body.cake-house-global a {
    color: #2DCCD3;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.cake-house-global a:hover {
    color: #5DD9DE;
}

/* Nav links must be dark on teal header */
body.cake-house-global .nav a,
body.cake-house-global .desktop-nav a,
body.cake-house-global .desktop-nav button {
    color: #0a0a0a !important;
}
body.cake-house-global .desktop-nav a:hover,
body.cake-house-global .desktop-nav button:hover {
    color: #0a0a0a !important;
    opacity: 0.8;
}

/* Mobile menu links white */
body.cake-house-global .mobile-menu a {
    color: #ffffff !important;
}
body.cake-house-global .mobile-menu a:hover {
    color: #5DD9DE !important;
}

/* Buttons */
body.cake-house-global button:not(.hamburger):not(#chLocationBtn):not(#chHamburger),
body.cake-house-global .button,
body.cake-house-global .btn:not(.nav-cta),
body.cake-house-global input[type="submit"],
body.cake-house-global input[type="button"],
body.cake-house-global .wp-block-button__link {
    background: linear-gradient(135deg, #2DCCD3 0%, #5DD9DE 100%) !important;
    color: #0a0a0a !important;
    border: none !important;
    padding: 0.875rem 1.75rem !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

body.cake-house-global button:not(.hamburger):not(#chLocationBtn):not(#chHamburger):hover,
body.cake-house-global .button:hover,
body.cake-house-global .btn:not(.nav-cta):hover,
body.cake-house-global input[type="submit"]:hover,
body.cake-house-global input[type="button"]:hover,
body.cake-house-global .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 204, 211, 0.4) !important;
}

/* Secondary/outline buttons */
body.cake-house-global .btn-secondary,
body.cake-house-global .button-secondary {
    background: transparent !important;
    border: 2px solid #2DCCD3 !important;
    color: #2DCCD3 !important;
}

body.cake-house-global .btn-secondary:hover,
body.cake-house-global .button-secondary:hover {
    background: rgba(45, 204, 211, 0.1) !important;
}

/* Cards and content boxes */
body.cake-house-global .card,
body.cake-house-global .box,
body.cake-house-global .panel,
body.cake-house-global .widget,
body.cake-house-global aside,
body.cake-house-global .sidebar .widget {
    background: rgba(14, 14, 14, 0.95) !important;
    border: 1px solid rgba(45, 204, 211, 0.2) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    color: #ffffff !important;
}

/* Elementor sections - alternating backgrounds */
body.cake-house-global .elementor-section:nth-child(odd) {
    background: linear-gradient(135deg, #0a0a0a 0%, #141414 100%) !important;
}

body.cake-house-global .elementor-section:nth-child(even) {
    background: #000000 !important;
}

/* Light sections (if explicitly marked) */
body.cake-house-global .section-light,
body.cake-house-global .bg-light,
body.cake-house-global .elementor-section.light {
    background: #f8fafc !important;
}

body.cake-house-global .section-light *,
body.cake-house-global .bg-light *,
body.cake-house-global .elementor-section.light * {
    color: #0a0a0a !important;
}

body.cake-house-global .section-light a,
body.cake-house-global .bg-light a,
body.cake-house-global .elementor-section.light a {
    color: #0891a1 !important;
}

/* Forms */
body.cake-house-global input[type="text"],
body.cake-house-global input[type="email"],
body.cake-house-global input[type="tel"],
body.cake-house-global input[type="url"],
body.cake-house-global input[type="password"],
body.cake-house-global input[type="search"],
body.cake-house-global input[type="number"],
body.cake-house-global textarea,
body.cake-house-global select {
    background: rgba(14, 14, 14, 0.95) !important;
    border: 1px solid rgba(45, 204, 211, 0.3) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem !important;
}

body.cake-house-global input[type="text"]:focus,
body.cake-house-global input[type="email"]:focus,
body.cake-house-global input[type="tel"]:focus,
body.cake-house-global textarea:focus,
body.cake-house-global select:focus {
    border-color: #2DCCD3 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(45, 204, 211, 0.2) !important;
}

body.cake-house-global input::placeholder,
body.cake-house-global textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.cake-house-global label {
    color: #ffffff !important;
    font-weight: 600;
}

/* Tables */
body.cake-house-global table {
    background: rgba(14, 14, 14, 0.95) !important;
    border: 1px solid rgba(45, 204, 211, 0.2) !important;
    border-radius: 12px;
    overflow: hidden;
}

body.cake-house-global th {
    background: rgba(45, 204, 211, 0.1) !important;
    color: #2DCCD3 !important;
    font-weight: 600;
    padding: 1rem !important;
    text-align: left;
}

body.cake-house-global td {
    padding: 1rem !important;
    border-bottom: 1px solid rgba(45, 204, 211, 0.1) !important;
    color: #ffffff !important;
}

body.cake-house-global tr:last-child td {
    border-bottom: none !important;
}

/* Blockquotes */
body.cake-house-global blockquote {
    background: rgba(45, 204, 211, 0.1) !important;
    border-left: 4px solid #2DCCD3 !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

body.cake-house-global blockquote p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Code blocks */
body.cake-house-global code,
body.cake-house-global pre {
    background: #000000 !important;
    color: #2DCCD3 !important;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

body.cake-house-global pre {
    padding: 1.5rem !important;
    border-radius: 12px;
    overflow-x: auto;
}

/* Lists */
body.cake-house-global ul,
body.cake-house-global ol {
    color: #ffffff;
}

body.cake-house-global ul li::marker {
    color: #2DCCD3;
}

body.cake-house-global ol li::marker {
    color: #2DCCD3;
}

/* HR / Dividers */
body.cake-house-global hr {
    border: none !important;
    border-top: 1px solid rgba(45, 204, 211, 0.2) !important;
    margin: 2rem 0 !important;
}

/* Images - subtle glow on hover */
body.cake-house-global img {
    border-radius: 12px;
    transition: all 0.3s ease;
}

body.cake-house-global a img:hover {
    box-shadow: 0 8px 30px rgba(45, 204, 211, 0.3);
}

/* WordPress specific elements */
body.cake-house-global .wp-block-group {
    background: transparent !important;
}

body.cake-house-global .has-background {
    border-radius: 12px;
}

/* Navigation/Breadcrumbs */
body.cake-house-global .breadcrumb,
body.cake-house-global .breadcrumbs,
body.cake-house-global nav.woocommerce-breadcrumb {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.cake-house-global .breadcrumb a,
body.cake-house-global .breadcrumbs a {
    color: #2DCCD3 !important;
}

/* Pagination */
body.cake-house-global .pagination a,
body.cake-house-global .nav-links a,
body.cake-house-global .page-numbers {
    background: rgba(14, 14, 14, 0.95) !important;
    border: 1px solid rgba(45, 204, 211, 0.3) !important;
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
}

body.cake-house-global .pagination a:hover,
body.cake-house-global .nav-links a:hover {
    background: rgba(45, 204, 211, 0.2) !important;
    border-color: #2DCCD3 !important;
}

body.cake-house-global .pagination .current,
body.cake-house-global .page-numbers.current {
    background: linear-gradient(135deg, #2DCCD3 0%, #5DD9DE 100%) !important;
    color: #0a0a0a !important;
    border-color: transparent !important;
}

/* ==========================================================================
   HEADER & NAVIGATION (Same as template pages)
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(135deg, #2DCCD3, #5DD9DE);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (min-width: 1920px) {
    .nav-inner { max-width: 1600px; padding: 1rem 3rem; }
}
@media (min-width: 2560px) {
    .nav-inner { max-width: 1920px; padding: 1rem 4rem; }
}
.nav-logo img { height: 56px; width: auto; }
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.desktop-nav a, .desktop-nav button {
    color: #0a0a0a !important;
    text-decoration: none !important;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    background: none !important;
    border: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.desktop-nav a:hover, .desktop-nav button:hover { 
    color: #0a0a0a !important; 
    opacity: 0.8;
    transform: none !important;
    box-shadow: none !important;
}
/* Location button specific */
#chLocationBtn {
    color: #0a0a0a !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}
#chLocationBtn span {
    color: #0a0a0a !important;
}
#chLocationBtn svg {
    stroke: #0a0a0a !important;
}

/* Nav Order Online button */
.desktop-nav .nav-cta,
.desktop-nav .btn-primary {
    background: linear-gradient(135deg, #2DCCD3 0%, #5DD9DE 100%) !important;
    color: #0a0a0a !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
}
.desktop-nav .nav-cta:hover,
.desktop-nav .btn-primary:hover {
    opacity: 1 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(45, 204, 211, 0.4) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}
.hamburger:hover {
    transform: none !important;
    box-shadow: none !important;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #000000 !important;
    border-radius: 3px;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: #000000;
    padding: 100px 2rem 2rem;
    transition: right 0.3s;
    z-index: 999;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}
.mobile-menu.active { right: 0; }
.mobile-menu a {
    display: block;
    color: #fff !important;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(45, 204, 211, 0.15);
}
.mobile-menu a:hover {
    color: #5DD9DE !important;
}
/* Order Online button in mobile menu - black text */
.mobile-menu a.btn-primary,
.mobile-menu .btn-primary {
    color: #0a0a0a !important;
    background: linear-gradient(135deg, #2DCCD3 0%, #5DD9DE 100%);
    border-radius: 9999px;
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem !important;
    border-bottom: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 998;
    pointer-events: none;
    touch-action: none;
}
.overlay.active { 
    opacity: 1; 
    visibility: visible; 
    pointer-events: auto;
    touch-action: auto;
}

@media (max-width: 1023px) {
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
}
@media (min-width: 1024px) {
    .mobile-menu, .overlay { display: none; }
}

/* Current Location Display */
.current-location {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(45, 204, 211, 0.1);
    border: 1px solid rgba(45, 204, 211, 0.3);
    border-radius: 12px;
}
.current-location-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.current-location-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2DCCD3;
}

/* Content spacing for fixed header */
body.cake-house-global #page,
body.cake-house-global .site,
body.cake-house-global main,
body.cake-house-global .site-content {
    padding-top: 90px !important;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ==========================================================================
   FOOTER (Same as template pages)
   ========================================================================== */
.footer {
    display: block !important;
    visibility: visible !important;
    background: #000000;
    padding: 4rem 1.5rem 2rem;
    border-top: 1px solid #2DCCD3;
}
.footer .container {
    max-width: 1400px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
}
.footer-column h4,
.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    display: block;
}
.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-column li {
    margin-bottom: 0.5rem;
}
.footer-column a {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-column a:hover {
    color: #2DCCD3 !important;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(45, 204, 211, 0.15);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}
.footer-legal a {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none;
    margin-left: 1.5rem;
}
.footer-legal a:hover {
    color: #2DCCD3 !important;
}
@media (max-width: 480px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-legal a {
        margin: 0 0.75rem;
    }
}
