/*
Theme Name:   Davis & Grill
Description:  Child theme of Twenty Twenty-Five — full layout override to match davisfashion.in
Template:     twentytwentyfive
Version:      2.0.0
*/

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red:      #b71c1c;
    --red-dark: #8e1515;
    --navy:     #0d47a1;
    --dark:     #1a1a1a;
    --border:   #e0e0e0;
}

body {
    font-family: Arial, Helvetica, sans-serif !important;
    background: #f5f5f5 !important;
    color: #222 !important;
    margin: 0 !important;
    padding: 0 !important;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

/* ═══════════════════════════════════════════════════════════════
   TOP ANNOUNCEMENT BAR
═══════════════════════════════════════════════════════════════ */
body::before {
    content: "Free Shipping on All Prepaid Orders  |  COD Available  |  Worldwide Shipping  |  Easy 7-Day Returns";
    display: block;
    background: var(--red);
    color: #fff;
    text-align: center;
    font-size: 11px;
    padding: 6px 12px;
    letter-spacing: .2px;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   HIDE TWENTY TWENTY-FIVE DEFAULT ELEMENTS WE DON'T NEED
═══════════════════════════════════════════════════════════════ */
.wp-block-template-part.header,
.wp-block-template-part[class*="header"],
header.wp-block-template-part,
.site-header,
#masthead { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   OUR CUSTOM HEADER (injected via functions.php)
═══════════════════════════════════════════════════════════════ */
#davis-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#davis-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 12px;
}

#davis-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

#davis-brand-logo {
    width: 48px;
    height: 48px;
    background: var(--red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

#davis-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--red);
    display: block;
}

#davis-brand-sub {
    font-size: 10px;
    color: #888;
    letter-spacing: .5px;
    text-transform: uppercase;
    display: block;
}

#davis-search {
    flex: 1;
    max-width: 400px;
}

#davis-search input {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: Arial, sans-serif;
}

#davis-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

#davis-home-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    font-family: Arial, sans-serif;
    text-decoration: none;
}

#davis-cart-btn {
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: Arial, sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

#davis-cart-btn:hover { background: var(--red-dark); color: #fff; }

.davis-cart-count {
    background: #fff;
    color: var(--red);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION BAR
═══════════════════════════════════════════════════════════════ */
#davis-nav {
    background: var(--dark);
    display: flex;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#davis-nav::-webkit-scrollbar { display: none; }

#davis-nav a {
    color: #fff !important;
    font-size: 12px;
    padding: 11px 18px;
    white-space: nowrap;
    text-decoration: none;
    border-right: 1px solid #2a2a2a;
    font-weight: 500;
    display: block;
}

#davis-nav a:hover,
#davis-nav a.active {
    background: var(--red) !important;
    color: #fff !important;
}

/* Hide TwentyTwentyFive nav */
.wp-block-navigation,
.wp-block-navigation__container,
nav.main-navigation { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT WRAPPER
═══════════════════════════════════════════════════════════════ */
.wp-site-blocks,
.site-content,
#content,
main,
.is-layout-flow {
    background: #f5f5f5 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove TT5 default padding/margins */
.wp-block-group.is-layout-constrained,
.entry-content,
.wp-block-post-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════════
   WOOCOMMERCE SHOP — PRODUCT GRID
═══════════════════════════════════════════════════════════════ */
.woocommerce,
.woocommerce-page {
    padding: 20px !important;
    max-width: 1200px;
    margin: 0 auto;
}

.woocommerce-products-header__title,
.woocommerce .woocommerce-result-count,
h1.page-title,
h2.woocommerce-loop-category__title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    padding-left: 12px !important;
    border-left: 3px solid var(--red) !important;
    margin-bottom: 20px !important;
    background: none !important;
}

/* Trust bar above products */
.woocommerce-page .davis-trust-bar {
    background: #fff;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    margin: 0 0 20px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.davis-trust-tag {
    background: var(--navy);
    color: #fff;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.davis-trust-text {
    font-size: 12px;
    color: #555;
    line-height: 1.6;
}

/* Product grid */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

@media (max-width: 900px) {
    ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 600px) {
    ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

ul.products li.product {
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
    transition: border-color .15s, box-shadow .15s !important;
    display: flex !important;
    flex-direction: column !important;
}

ul.products li.product:hover {
    border-color: var(--red) !important;
    box-shadow: 0 3px 12px rgba(183,28,28,.1) !important;
}

ul.products li.product a img,
ul.products li.product img {
    width: 100% !important;
    height: 190px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
    font-size: 12px !important;
    color: #444 !important;
    line-height: 1.45 !important;
    padding: 10px 12px 4px !important;
    font-weight: 400 !important;
    flex: 1 !important;
    margin: 0 !important;
    background: none !important;
}

ul.products li.product .price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--red) !important;
    padding: 0 12px 8px !important;
    display: block !important;
    background: none !important;
    margin: 0 !important;
}

ul.products li.product .price del {
    color: #bbb !important;
    font-size: 11px !important;
    margin-left: 5px !important;
    font-weight: 400 !important;
}

ul.products li.product .price ins {
    text-decoration: none !important;
    font-weight: 700 !important;
}

ul.products li.product a.button,
ul.products li.product a.add_to_cart_button {
    display: block !important;
    width: 100% !important;
    background: #fff !important;
    color: var(--red) !important;
    border: 1px solid var(--red) !important;
    border-radius: 0 !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-family: Arial, sans-serif !important;
    margin: 0 !important;
    transition: background .15s, color .15s !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

ul.products li.product a.button:hover,
ul.products li.product a.add_to_cart_button:hover {
    background: var(--red) !important;
    color: #fff !important;
}

/* Sale badge */
ul.products li.product .onsale,
span.onsale {
    background: var(--red) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    border-radius: 3px !important;
    min-width: auto !important;
    padding: 3px 8px !important;
    min-height: auto !important;
    line-height: 1.6 !important;
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE PRODUCT PAGE
═══════════════════════════════════════════════════════════════ */
.woocommerce div.product .product_title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    line-height: 1.4 !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--red) !important;
}

.woocommerce div.product p.price del {
    font-size: 14px !important;
    color: #bbb !important;
}

.woocommerce div.product .cart .single_add_to_cart_button {
    background: var(--red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 13px 28px !important;
    cursor: pointer !important;
    font-family: Arial, sans-serif !important;
    transition: background .15s !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.woocommerce div.product .cart .single_add_to_cart_button:hover {
    background: var(--red-dark) !important;
}

/* Free shipping note */
.davis-free-ship {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    margin: 10px 0;
}

/* ═══════════════════════════════════════════════════════════════
   CART PAGE
═══════════════════════════════════════════════════════════════ */
.woocommerce-cart table.cart th {
    background: #f5f5f5 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: .3px !important;
    padding: 10px 16px !important;
    border-bottom: 1px solid var(--border) !important;
}

.woocommerce-cart table.cart td {
    border-color: #f5f5f5 !important;
    padding: 14px 16px !important;
    vertical-align: middle !important;
}

.woocommerce-cart .cart_totals h2 {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #888 !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: var(--red) !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px !important;
    display: block !important;
    text-align: center !important;
    border: none !important;
    font-family: Arial, sans-serif !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--red-dark) !important;
    color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT PAGE
═══════════════════════════════════════════════════════════════ */
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout h3#ship-to-different-address,
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout h3 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    margin-bottom: 16px !important;
}

.woocommerce-checkout .form-row label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: .4px !important;
    margin-bottom: 5px !important;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    padding: 10px 12px !important;
    font-family: Arial, sans-serif !important;
    color: #333 !important;
    background: #fff !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: var(--red) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(183,28,28,.1) !important;
}

/* Payment section */
.woocommerce-checkout #payment {
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 6px !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 14px 16px !important;
    border-bottom: 1px solid #f5f5f5 !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
}

.woocommerce-checkout #payment div.payment_box {
    background: #fff8f8 !important;
    border: none !important;
    font-size: 12px !important;
    color: #888 !important;
    margin: 0 !important;
}

.woocommerce-checkout #payment .place-order {
    padding: 16px !important;
}

#place_order,
.woocommerce-checkout #payment .place-order .button {
    background: var(--red) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 15px !important;
    width: 100% !important;
    border-radius: 4px !important;
    border: none !important;
    font-family: Arial, sans-serif !important;
    cursor: pointer !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: background .15s !important;
}

#place_order:hover,
.woocommerce-checkout #payment .place-order .button:hover {
    background: var(--red-dark) !important;
}

/* Secure payment badge */
.davis-secure-badge {
    background: #e3f2fd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 11px;
    color: var(--navy);
    text-align: center;
    line-height: 1.6;
    margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   ORDER CONFIRMATION
═══════════════════════════════════════════════════════════════ */
.woocommerce-order-received .woocommerce-thankyou-order-received {
    color: #2e7d32 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

.woocommerce-thankyou-order-details {
    background: #f9f9f9 !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 6px !important;
}

/* ═══════════════════════════════════════════════════════════════
   WOOCOMMERCE NOTICES
═══════════════════════════════════════════════════════════════ */
.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--red) !important;
}
.woocommerce-message::before { color: var(--red) !important; }
.woocommerce-message a.button,
.woocommerce-info a.button {
    background: var(--red) !important;
    color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMBS
═══════════════════════════════════════════════════════════════ */
.woocommerce-breadcrumb {
    font-size: 12px !important;
    color: #888 !important;
    padding: 10px 0 14px !important;
}
.woocommerce-breadcrumb a { color: var(--red) !important; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer,
footer.site-footer,
.wp-block-template-part[class*="footer"] {
    background: var(--dark) !important;
    color: #ccc !important;
    padding: 24px 20px !important;
    margin-top: 40px !important;
}

.site-footer a,
footer a {
    color: #aaa !important;
    text-decoration: none !important;
}

.site-footer a:hover,
footer a:hover { color: #fff !important; }

/* ═══════════════════════════════════════════════════════════════
   HIDE THINGS WE DON'T WANT
═══════════════════════════════════════════════════════════════ */
.woocommerce-ordering,
.woocommerce-result-count { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   HERO SLIDER
═══════════════════════════════════════════════════════════════ */
#davis-slider {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #222;
}

.davis-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .7s ease;
}

.davis-slide.active { opacity: 1; }

.davis-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.davis-slide-content {
    color: #fff;
    max-width: 480px;
}

.davis-slide-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    color: #fff;
}

.davis-slide-content p {
    font-size: 15px;
    opacity: .9;
    margin-bottom: 22px;
    line-height: 1.6;
    color: #fff;
}

.davis-slide-btn {
    display: inline-block;
    background: #b71c1c;
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
}

.davis-slide-btn:hover {
    background: #8e1515;
    color: #fff;
}

.davis-slide-prev,
.davis-slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.35);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 2px;
    z-index: 10;
    transition: background .15s;
}

.davis-slide-prev { left: 14px; }
.davis-slide-next { right: 14px; }
.davis-slide-prev:hover,
.davis-slide-next:hover { background: rgba(183,28,28,.8); }

.davis-slide-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.davis-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background .2s;
}

.davis-dot.active { background: #fff; }

@media (max-width: 600px) {
    #davis-slider { height: 260px; }
    .davis-slide-overlay { padding: 0 24px; }
    .davis-slide-content h1 { font-size: 22px; }
    .davis-slide-content p { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE PRODUCT STRIP
═══════════════════════════════════════════════════════════════ */
#davis-homepage {
    background: #f5f5f5;
    padding: 0;
}

.davis-section {
    padding: 24px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.davis-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.davis-section-head h2 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    padding-left: 12px;
    border-left: 3px solid #b71c1c;
    margin: 0;
}

.davis-section-head a {
    font-size: 12px;
    color: #b71c1c;
    text-decoration: none;
}

.davis-product-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .davis-product-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .davis-product-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.davis-pcard {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: border-color .15s, box-shadow .15s;
    display: flex;
    flex-direction: column;
}

.davis-pcard:hover {
    border-color: #b71c1c;
    box-shadow: 0 3px 12px rgba(183,28,28,.1);
}

.davis-pcard img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.davis-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #b71c1c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 2;
}

.davis-pcard-body {
    padding: 10px 12px 6px;
    flex: 1;
}

.davis-pcard-name {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 5px;
    min-height: 34px;
}

.davis-pcard-name a {
    color: #444;
    text-decoration: none;
}

.davis-pcard-name a:hover { color: #b71c1c; }

.davis-pcard-price {
    font-size: 15px;
    font-weight: 700;
    color: #b71c1c;
}

.davis-pcard-price del {
    font-size: 11px;
    color: #bbb;
    font-weight: 400;
    margin-left: 4px;
}

.davis-pcard-atc {
    display: block;
    width: 100%;
    background: #fff;
    color: #b71c1c;
    border: 1px solid #b71c1c;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
    margin-top: auto;
}

.davis-pcard-atc:hover {
    background: #b71c1c;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE HERO SECTION
═══════════════════════════════════════════════════════════════ */
#davis-hero-section {
    background: #f5f5f5;
}

/* Intro row */
.davis-hero-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 20px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.davis-hero-intro-text {
    flex: 1;
    min-width: 260px;
}

.davis-hero-intro-text h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 10px !important;
    border: none !important;
    padding: 0 !important;
}

.davis-hero-intro-text p {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
}

.davis-hero-shop-btn {
    display: inline-block;
    background: #b71c1c;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .15s;
}

.davis-hero-shop-btn:hover {
    background: #8e1515;
    color: #fff !important;
}

.davis-hero-stats {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.davis-stat {
    padding: 18px 22px;
    border-radius: 6px;
    text-align: center;
    min-width: 90px;
    color: #fff;
}

.davis-stat-num {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.davis-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .88;
}

/* Category tiles */
.davis-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    height: 160px;
}

@media (max-width: 600px) {
    .davis-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }
    .davis-cat-tile { padding: 24px 16px !important; }
}

.davis-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    text-decoration: none !important;
    color: #fff !important;
    transition: opacity .15s, transform .15s;
    gap: 6px;
}

.davis-cat-tile:hover {
    opacity: .9;
    color: #fff !important;
}

.davis-cat-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 4px;
}

.davis-cat-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
}

.davis-cat-sub {
    font-size: 11px;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* Promo banner */
.davis-promo-banner {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.davis-promo-text {
    font-size: 13px;
    color: #ccc;
    line-height: 1.6;
}

.davis-promo-text strong {
    color: #fff;
}

.davis-promo-btn {
    background: #b71c1c;
    color: #fff !important;
    padding: 9px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.davis-promo-btn:hover {
    background: #8e1515;
    color: #fff !important;
}

@media (max-width: 600px) {
    .davis-hero-intro { flex-direction: column; }
    .davis-hero-stats { justify-content: center; }
    .davis-promo-banner { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   FULL WIDTH FIX — break out of TT5 content constraints
═══════════════════════════════════════════════════════════════ */

/* Force the main site blocks to have no padding/margin */
.wp-site-blocks {
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

/* TT5 wraps everything in constrained groups — break them */
.is-layout-constrained,
.is-layout-flow,
.wp-block-group,
.wp-block-post-content,
.entry-content {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* The actual page template wrapper */
.wp-block-template-part,
.wp-block-post,
.wp-block-query,
main.wp-block-group {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Force slider full width and proper height */
#davis-slider {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 480px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
    left: 0 !important;
    overflow: hidden !important;
    display: block !important;
}

/* Force hero section full width */
#davis-hero-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Constrain inner content but not the containers */
.davis-hero-intro,
.davis-section,
.davis-cat-grid,
.davis-promo-banner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.davis-hero-intro {
    padding: 32px 40px !important;
}

.davis-promo-banner {
    padding: 14px 40px !important;
}

/* Fix Twenty Twenty-Five adding top padding to body content */
body .wp-site-blocks > * {
    margin-block-start: 0 !important;
}

/* Remove any gap between header and slider */
#davis-header + * {
    margin-top: 0 !important;
}

#davis-nav {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    #davis-slider { height: 300px !important; }
    .davis-hero-intro { padding: 24px 20px !important; }
    .davis-promo-banner { padding: 14px 20px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   FIX HORIZONTAL OVERFLOW
═══════════════════════════════════════════════════════════════ */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

#davis-slider {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
}

#davis-nav {
    width: 100% !important;
    max-width: 100% !important;
}

#davis-header {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   HIDE TT25 DEFAULT FOOTER
═══════════════════════════════════════════════════════════════ */
.wp-block-template-part[class*="footer"],
.wp-block-template-part footer,
footer.wp-block-template-part,
[class*="footer-inner-group"],
.wp-block-group.is-style-section-1,
.wp-block-group.is-style-section-2 {
    display: none !important;
}

/* Hide TT25 site info / credit line */
.site-info,
.wp-block-site-title + *,
p.wp-block-paragraph:last-child {
    display: none !important;
}

/* Make our footer show properly */
footer.davis-footer {
    display: block !important;
    background: #1a1a1a !important;
    color: #ccc !important;
    padding: 24px 20px !important;
    margin-top: 40px !important;
}

footer.davis-footer h4 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 10px !important;
}

footer.davis-footer a {
    color: #aaa !important;
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 4px !important;
    font-size: 12px !important;
}

footer.davis-footer a:hover {
    color: #fff !important;
}

.davis-footer-inner {
    display: flex !important;
    gap: 40px !important;
    flex-wrap: wrap !important;
    max-width: 1200px !important;
    margin: 0 auto 16px !important;
}

.davis-footer-bottom {
    border-top: 1px solid #333 !important;
    padding-top: 14px !important;
    font-size: 11px !important;
    color: #666 !important;
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}
