/*
Theme Name: Dennodojo
Theme URI: https://dennodojo.com
Author: Bucky & Stal (via Gemini)
Author URI: https://dennodojo.com
Description: v6.0 (Custom Logo & Header Fix) - A custom, high-tech theme.
Version: 6.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: dennodojo
*/

/* --- [ 1.0 ] Global Styles & Variables --- */
:root {
    --bg-color: #101018; 
    --primary-card-color: #1B1B2B;
    --secondary-card-color: #2C2C3E;
    --text-color: #E0E0E0;
    --headline-color: #FFFFFF;
    --accent-color: #9D00FF; 
    --accent-hover-color: #BD5AFF;
    --accent-cyan: #00FFFF; 
    --font-headline: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background-color: var(--bg-color); }
body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(27, 27, 43, 0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 27, 43, 0.7) 1px, transparent 1px);
    background-size: 35px 35px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { padding-top: 80px; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    color: var(--headline-color);
    margin-bottom: 20px;
    line-height: 1.2;
}
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 20px; }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-hover-color); }
img { max-width: 100%; height: auto; }
.section-title { text-align: center; font-size: 3rem; margin-bottom: 60px; }

/* ==============================
NEW: [ 1.5 ] CUSTOM LOGO STYLING
This controls the size of your new logo.
==============================
*/
.site-logo .custom-logo-link {
    display: inline-block;
    vertical-align: middle;
}

/* ==============================
GUIDE: THIS IS THE LINE YOU CAN EDIT
Change '180px' to '150px' or '200px'
to make your logo smaller or bigger.
==============================
*/
.site-logo .custom-logo {
    max-width: 180px !important; /* Force this size */
    height: auto !important;     /* Let the height adjust automatically */
}

/* This styles the fallback "dennodojo" text if no logo is set */
.site-logo a[class*="glitch-hover"] {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--headline-color);
    text-decoration: none;
}


/* --- [ 2.0 ] Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%; z-index: 1000;
    background-color: rgba(16, 16, 24, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--secondary-card-color);
    
    /* FIX: Made header smaller (was 20px) */
    padding: 5px 0; 
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.main-navigation { display: flex; align-items: center; }
.main-navigation ul { display: flex; list-style: none; }
.main-navigation li { margin-left: 30px; }
.main-navigation a {
    font-family: var(--font-headline); font-weight: 700; color: var(--headline-color); text-decoration: none; position: relative; padding-bottom: 5px;
}
.main-navigation a:hover { color: var(--accent-color); }
.contact-button a {
    background-color: var(--accent-color); color: var(--headline-color); padding: 10px 20px; border-radius: 5px;
    font-weight: 700; transition: all 0.3s ease;
}
.contact-button a:hover {
    background-color: var(--accent-hover-color); color: var(--headline-color); box-shadow: 0 0 15px var(--accent-hover-color);
}
.desktop-contact { margin-left: 30px; }

/* --- [ 2.1 ] Hamburger Menu & Mobile --- */
.hamburger-menu { display: none; width: 30px; height: 24px; position: relative; z-index: 1002; background: none; border: none; cursor: pointer; }
.hamburger-menu .line {
    display: block; position: absolute; width: 100%; height: 4px; background-color: var(--accent-color); border-radius: 3px; transition: all 0.3s ease-in-out;
}
.hamburger-menu .line1 { top: 0; }
.hamburger-menu .line2 { top: 50%; transform: translateY(-50%); }
.hamburger-menu .line3 { bottom: 0; }
.hamburger-menu.is-open .line1 { top: 50%; transform: translateY(-50%) rotate(45deg); background-color: var(--accent-color); }
.hamburger-menu.is-open .line2 { opacity: 0; }
.hamburger-menu.is-open .line3 { bottom: 50%; transform: translateY(50%) rotate(-45deg); background-color: var(--accent-color); }
.mobile-contact { display: none; }
@media (max-width: 768px) {
    
    /* FIX: Made mobile header smaller */
    .site-header { 
        padding: 5px 0; 
    }
    
    .main-navigation {
        position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background-color: var(--bg-color);
        flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transform: translateX(100%); transition: all 0.4s ease;
    }
    .main-navigation.is-open { opacity: 1; visibility: visible; transform: translateX(0); }
    .main-navigation.is-open .mobile-contact { display: block; margin-top: 15px; }
    .main-navigation.is-open .mobile-contact a { padding: 12px 25px; font-size: 1.2rem; }
    .main-navigation ul { flex-direction: column; align-items: center; }
    .main-navigation li { margin: 20px 0; }
    .main-navigation a { font-size: 2rem; }
    .hamburger-menu { display: block; }
    .desktop-contact { display: none; }
}

/* --- [ 3.0 ] Footer --- */
.site-footer {
    background-color: var(--primary-card-color); padding: 60px 0 20px 0; margin-top: 80px;
    border-top: 1px solid var(--secondary-card-color);
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px;
}
.footer-widget h4 {
    font-size: 1.2rem; color: var(--headline-color); margin-bottom: 20px; position: relative;
}
.footer-widget h4::after {
    content: ''; display: block; width: 30px; height: 3px; background-color: var(--accent-color); margin-top: 5px;
}
.footer-widget p { font-size: 0.9rem; opacity: 0.8; }
.footer-widget ul { list-style: none; }
.footer-widget li { margin-bottom: 10px; }
.footer-widget a { font-size: 0.9rem; color: var(--text-color); opacity: 0.8; }
.footer-widget a:hover { opacity: 1; color: var(--accent-color); }
.social-links a { font-size: 1.5rem; margin-right: 15px; }
.footer-bottom {
    border-top: 1px solid var(--secondary-card-color); padding-top: 20px; text-align: center; font-size: 0.8rem; opacity: 0.7;
}

/* --- [ 4.0 ] WordPress Core Styles --- */
.aligncenter { text-align: center; margin: 10px auto; }
.alignleft { float: left; margin: 10px 20px 10px 0; }
.alignright { float: right; margin: 10px 0 10px 20px; }

/* --- [ 5.0 ] Homepage: Hero Section --- */
.hero-section {
    min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 100px 0;
}
.hero-title {
    font-size: 5rem; font-weight: 700; color: var(--headline-color); letter-spacing: -2px;
}
.hero-subtitle {
    font-size: 1.25rem; max-width: 650px; margin: 20px auto 30px; opacity: 0.8;
}
.cta-button {
    background-color: var(--accent-color); color: var(--headline-color); padding: 15px 35px; border-radius: 5px;
    font-weight: 700; font-size: 1.1rem; font-family: var(--font-headline); transition: all 0.3s ease;
    display: inline-block; animation: pulse-glow 2.5s infinite ease-out;
}
.cta-button:hover {
    background-color: var(--accent-hover-color); transform: scale(1.05); box-shadow: 0 0 20px var(--accent-hover-color); animation-play-state: paused;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(157, 0, 255, 0.3), 0 0 15px rgba(157, 0, 255, 0.2); }
    50% { box-shadow: 0 0 25px rgba(157, 0, 255, 0.7), 0 0 35px rgba(157, 0, 255, 0.5); }
    100% { box-shadow: 0 0 10px rgba(157, 0, 255, 0.3), 0 0 15px rgba(157, 0, 255, 0.2); }
}
.shuriken-icon {
    display: inline-block; animation: spin 3s linear infinite; margin-left: 10px;
}
@keyframes spin {
    from { transform: rotate(0deg); } to { transform: rotate(360deg); }
}

/* --- [ 6.0 ] Homepage: Services Section --- */
.services-section { padding: 80px 0; background-color: var(--primary-card-color); }
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px;
}
.service-card {
    background-color: var(--bg-color); border: 1px solid var(--secondary-card-color); border-radius: 8px; padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; overflow: hidden;
    transform-style: preserve-3d; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.service-card.popular {
    border-color: var(--accent-color); box-shadow: 0 0 20px rgba(157, 0, 255, 0.3);
}
.popular-badge {
    position: absolute; top: 20px; right: -30px; background-color: var(--accent-color); color: var(--headline-color);
    padding: 5px 30px; font-weight: 700; transform: rotate(45deg); font-size: 0.9rem; z-index: 2;
}
.service-timer {
    text-align: center; margin-bottom: 20px; background-color: var(--primary-card-color); padding: 8px; border-radius: 4px;
}
.timer-headline {
    color: var(--accent-cyan); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; margin: 0; margin-bottom: 10px;
}
.service-title { color: var(--headline-color); text-align: center; margin-bottom: 20px; }
.service-rating {
    text-align: center; margin-bottom: 15px; font-size: 0.9rem; color: var(--text-color);
}
.service-rating .stars {
    color: #FFD700; font-size: 1.2rem; letter-spacing: 1px;
}
.service-rating .review-count { opacity: 0.7; }
.service-price { text-align: center; margin-bottom: 25px; }
.service-price .price-old {
    font-size: 1.2rem; color: var(--text-color); opacity: 0.5; text-decoration: line-through; margin-right: 10px;
}
.service-price .price-new {
    font-size: 2.2rem; font-weight: 700; color: var(--headline-color);
}
.service-features { list-style: none; margin-bottom: 30px; }
.service-features li {
    position: relative; padding-left: 30px; margin-bottom: 12px;
}
.service-features li::before {
    content: '✓'; color: var(--accent-cyan); font-weight: 700; position: absolute; left: 0; top: 0;
}
.service-button { text-align: center; width: 100%; margin-top: auto; animation: none; }

/* --- [ 7.0 ] Homepage: Testimonials Section --- */
.testimonials-section { padding: 80px 0; }
.testimonials-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px;
}
.testimonial-card {
    background-color: var(--primary-card-color); border: 1px solid var(--secondary-card-color); border-radius: 8px; padding: 30px; transform-style: preserve-3d;
}
.testimonial-header { display: flex; align-items: center; margin-bottom: 20px; }
.testimonial-avatar {
    width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--accent-color); margin-right: 15px;
}
.testimonial-author .author-name { color: var(--headline-color); margin: 0; }
.testimonial-author .author-title { font-size: 0.9rem; opacity: 0.7; }
.testimonial-text {
    font-size: 1.1rem; font-style: italic; opacity: 0.9; border-left: 3px solid var(--accent-color); padding-left: 15px;
}

/* --- [ 8.0 ] Homepage: FAQ Section --- */
.faq-section { padding: 80px 0; background-color: var(--primary-card-color); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background-color: var(--bg-color); border: 1px solid var(--secondary-card-color); border-radius: 5px; margin-bottom: 15px;
}
.faq-question {
    background: none; border: none; width: 100%; padding: 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    font-family: var(--font-headline); font-size: 1.25rem; color: var(--headline-color); text-align: left;
}
.faq-icon { color: var(--accent-color); transition: transform 0.3s ease; }
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding: 0 20px 20px 20px; margin: 0; opacity: 0.9; }

/* =================================================================
[ 9.0 ] ANIMATION FIX
=================================================================
*/

.anim-fade-up { opacity: 0; transform: translateY(30px); }
.anim-hero-scramble { opacity: 0; }
.anim-hero-fade-up { opacity: 0; transform: translateY(30px); }


/* --- [ 10.0 ] Mobile Responsiveness (Updates) --- */
@media (max-width: 768px) {
    h2 { font-size: 2.0rem; }
    .section-title { font-size: 2.2rem; margin-bottom: 40px; }
    .hero-title { font-size: 2.8rem; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
}

/* --- [ 11.0 ] HurryTimer Plugin Overrides --- */
.service-timer .timer-headline {
    color: var(--accent-cyan); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; text-align: center;
}
.hurrytimer-shortcode-timer { margin-bottom: 10px !important; text-align: center; }
.hurrytimer-shortcode-timer .hurrytimer-message {
    color: var(--headline-color) !important; font-size: 1.5rem !important; font-family: var(--font-headline) !important; margin-bottom: 10px !important;
}
.hurrytimer-shortcode-timer .hurrytimer-cell { background: none !important; padding: 0 5px !important; }
.hurrytimer-shortcode-timer .hurrytimer-cell-number {
    color: var(--headline-color) !important; 
    font-size: 2.2rem !important;
    font-family: var(--font-headline) !important;
    line-height: 1.1 !important;
}
.hurrytimer-shortcode-timer .hurrytimer-cell-label {
    color: var(--text-color) !important; opacity: 0.7; font-size: 0.7rem !important; text-transform: uppercase !important;
}

/* =================================================================
[ 12.0 ] WOOCOMMERCE STYLES (FINAL CLASSIC CART FIX)
=================================================================
*/

/* --- This fixes the giant "Cart" and "Checkout" titles (PC) --- */
.woo-page .entry-title {
    font-size: 1.8rem; 
    color: var(--headline-color);
    margin-bottom: 40px;
    text-align: left;
}

/* "Home / Uncategorized / 7-Day..." breadcrumbs */
.woocommerce-breadcrumb { color: var(--text-color); opacity: 0.7; margin-bottom: 30px; }
.woocommerce-breadcrumb a { color: var(--text-color); }
.woocommerce-breadcrumb a:hover { color: var(--accent-color); }

/* ==============================
   PRODUCT PAGE STYLES
   ==============================
*/
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.woocommerce div.product h1.product_title { font-size: 3rem; color: var(--headline-color); margin-bottom: 20px; }
.woocommerce div.product p.price { font-size: 2rem; font-weight: 700; font-family: var(--font-headline); color: var(--headline-color); }
.woocommerce div.product p.price del { font-size: 1.5rem; opacity: 0.5; color: var(--text-color); }
.woocommerce div.product p.price ins { text-decoration: none; color: var(--headline-color); }
.woocommerce span.onsale {
    background-color: var(--accent-color) !important; border-radius: 4px !important; min-height: 0 !important; padding: 5px 10px !important; line-height: 1.2 !important;
}
.woocommerce div.product form.cart .button {
    background-color: var(--accent-color); color: var(--headline-color); padding: 15px 35px; border-radius: 5px; font-weight: 700; font-size: 1.1rem; font-family: var(--font-headline); transition: all 0.3s ease;
}
.woocommerce div.product form.cart .button:hover { background-color: var(--accent-hover-color); box-shadow: 0 0 15px var(--accent-hover-color); }
.woocommerce .quantity .qty {
    background-color: var(--secondary-card-color); border: 1px solid var(--primary-card-color); color: var(--headline-color); border-radius: 5px; padding: 10px;
}
.product_meta { color: var(--text-color); }
.product_meta a { color: var(--accent-color); }
.woocommerce-tabs ul.tabs li a { color: var(--text-color); }
.woocommerce-tabs ul.tabs li.active a { color: var(--headline-color); }
.woocommerce-tabs ul.tabs::before { border-bottom-color: var(--secondary-card-color); }

/* ==============================
   CART PAGE STYLES (FINAL FIX)
   ==============================
*/
.woocommerce-cart .woocommerce { color: var(--text-color); }
.woocommerce-cart-form {
    border: 1px solid var(--secondary-card-color); background-color: var(--primary-card-color); border-radius: 8px; padding: 20px;
}
.woocommerce table.shop_table { border: none; background: none; }
.woocommerce table.shop_table th {
    color: var(--headline-color); text-transform: uppercase; font-family: var(--font-headline); border-bottom-color: var(--secondary-card-color);
}
.woocommerce table.shop_table td {
    border-bottom-color: var(--secondary-card-color); color: var(--text-color); vertical-align: middle;
}
.woocommerce table.shop_table .product-name a { color: var(--accent-cyan); font-weight: 700; }
.woocommerce table.shop_table .product-price .save-amount {
    font-size: 0.8rem; color: var(--accent-cyan); font-weight: 700; display: block;
}
.woocommerce .coupon .input-text {
    background-color: var(--secondary-card-color); border: 1px solid var(--primary-card-color); color: var(--headline-color); border-radius: 5px; padding: 12px;
}
.woocommerce .coupon .button {
    background-color: var(--accent-color); color: var(--headline-color); border-radius: 5px; font-weight: 700; transition: all 0.3s ease; padding: 12px 20px;
}
.woocommerce .coupon .button:hover { background-color: var(--accent-hover-color); }
.cart-collaterals { margin-top: 30px; }
.cart-collaterals .cart_totals {
    background-color: var(--primary-card-color); border: 1px solid var(--secondary-card-color); border-radius: 8px; padding: 20px;
}
.cart-collaterals .cart_totals h2 { color: var(--headline-color); }
.cart-collaterals .cart_totals table th { color: var(--text-color); }
.cart-collaterals .cart_totals table td { color: var(--headline-color); font-weight: 700; font-size: 1.2rem; }
.wc-proceed-to-checkout .button {
    background-color: var(--accent-color); color: var(--headline-color) !important; padding: 15px 35px !important; border-radius: 5px;
    font-weight: 700; font-size: 1.1rem !important; font-family: var(--font-headline); transition: all 0.3s ease;
    display: block !important; width: 100%; text-align: center; animation: pulse-glow 2.5s infinite ease-out;
}
.wc-proceed-to-checkout .button:hover {
    background-color: var(--accent-hover-color); box-shadow: 0 0 20px var(--accent-hover-color); animation-play-state: paused;
}

/* ==============================
   CHECKOUT PAGE STYLES
   ==============================
*/
.woocommerce-checkout h3 {
    color: var(--headline-color); border-bottom: 2px solid var(--accent-color); padding-bottom: 10px;
}
.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    background-color: var(--secondary-card-color); border: 1px solid var(--primary-card-color); color: var(--headline-color); border-radius: 5px; padding: 12px;
}
.woocommerce-checkout #payment { background-color: var(--primary-card-color); border-radius: 8px; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--secondary-card-color); }
.woocommerce-checkout #payment div.payment_box { background-color: var(--bg-color) !important; color: var(--text-color) !important; }
.woocommerce-checkout #place_order {
    background-color: var(--accent-color); color: var(--headline-color) !important; padding: 15px 35px !important;
    border-radius: 5px; font-weight: 700; font-size: 1.1rem !important; font-family: var(--font-headline);
    transition: all 0.3s ease; width: 100%; animation: pulse-glow 2.5s infinite ease-out;
}
.woocommerce-checkout #place_order:hover {
    background-color: var(--accent-hover-color); box-shadow: 0 0 20px var(--accent-hover-color); animation-play-state: paused;
}

/* ==============================
   MOBILE FIXES
   ==============================
*/
@media (max-width: 768px) {
    /* CRITICAL FIX: This targets the page title on all Woo pages and fixes the huge mobile size */
    .woo-page .entry-title { font-size: 1.8rem !important; }
    
    .woocommerce div.product { grid-template-columns: 1fr; }
    .woocommerce div.product h1.product_title { font-size: 2.2rem; }
    .hero-title { font-size: 2.8rem; }
}

/* --- [ 14.0 ] FINAL BLOCK CART BUTTON FIX --- */
.wc-block-cart__submit-button,
.wc-block-components-button {
    background-color: var(--accent-color) !important; 
    color: var(--headline-color) !important;
    font-family: var(--font-headline) !important;
    font-weight: 700 !important;
    padding: 15px 35px !important;
    border-radius: 5px !important;
    width: 100% !important;
    text-align: center !important;
    animation: pulse-glow 2.5s infinite ease-out;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-button:hover {
    background-color: var(--accent-hover-color) !important;
    box-shadow: 0 0 20px var(--accent-hover-color) !important;
    animation-play-state: paused;
}
.wc-block-components-button__text {
    color: var(--headline-color) !important; /* FIX for invisible text */
}
.wc-block-checkout__header .wc-block-components-title {
    font-size: 2.2rem !important;
}

/* --- [ 15.0 ] "ABOUT US" PAGE BUTTON FIX --- */
.wp-block-button.cta-button {
    background-color: var(--accent-color) !important;
    border-radius: 5px !important;
    animation: pulse-glow 2.5s infinite ease-out;
    transition: all 0.3s ease;
    padding: 0 !important; /* Resets the block's default padding */
}
.wp-block-button.cta-button p .wp-block-button__link {
    background: none !important;
    border: none !important;
    color: var(--headline-color) !important; 
    font-family: var(--font-headline) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 15px 35px !important; 
}
.wp-block-button.cta-button:hover {
    background-color: var(--accent-hover-color) !important;
    box-shadow: 0 0 20px var(--accent-hover-color);
    animation-play-state: paused;
}
.wp-block-button.cta-button p {
    margin: 0 !important;
    padding: 0 !important;
}

/* =================================================================
[ 16.0 ] NEW: CUSTOM AD SPACE
This styles your "Sponsored Partner" section.
=================================================================
*/

.custom-ad-space {
    padding-top: 60px;
    text-align: center; /* THIS FIXES THE CENTERING */
}

.ad-space-title {
    color: var(--accent-cyan); /* THIS FIXES THE COLOR */
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.ad-space-banner img {
    width: 100%;
    max-width: 728px; /* Standard banner ad size */
    border-radius: 8px;
    border: 1px solid var(--secondary-card-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.ad-space-banner:hover img {
    opacity: 1;
}