/*
Theme Name: Twenty Twenty-Five Child
Author: AP Strikwerda
Description: Dog Fashion by JetFuel — A hybrid child theme for Twenty Twenty-Five.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.6.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: twentytwentyfive-child
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, woocommerce
*/

/* ==========================================================================
   Global Styles (Reset, Typography, Header, Footer)
   ========================================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
    --color-orange: #FA4500;
    --color-seashellpink: #ffcfc4;
    --color-brandpink: #FF86CD;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-yellow: #FCFB12;
    --color-green: #A6CE39;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ano', sans-serif;
    font-synthesis: none;
    background-color: var(--color-orange);
    color: #000;
    overflow-x: hidden;
    padding-top: 40px;
    /* Offset for fixed header */
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== BLOCK TEMPLATE WRAPPERS ===== */
.wp-site-blocks {
    display: contents;
}

.wp-site-blocks > .wp-block-template-part {
    display: contents;
}

/* ===== NAVBAR (Global) ===== */
.nav {
    display: flex;
    align-items: center;
    padding: 0px 40px;
    background-color: var(--color-orange);
    border-bottom: 2px solid #000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* height: 80px; */
    /* Explicit height for layout stability */
    gap: 20px;
}

/* Ensure admin bar doesn't hide key content if showing */
.admin-bar .nav {
    top: 32px;
}

.nav-link {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
}

.nav-link:hover,
.nav-link.current {
    font-style: normal;
    transform: skewX(-10deg);
}

.nav-link.brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 6px 0;
    color: #000;
    min-width: 64px;
}

.nav-link.brand:hover,
.nav-link.brand.current {
    font-style: normal;
    opacity: 0.7;
}

.nav-logo {
    display: block;
    height: 28px;
    width: auto;
    max-height: 28px;
    max-width: 120px;
    object-fit: contain;
    flex-shrink: 0;
    color: #000;
}

.nav-logo .cls-1,
.nav-logo path,
.nav-logo polygon {
    fill: #000;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    flex: 1;
    justify-content: center;
}

.nav-close {
    font-size: 32px;
    font-weight: 400;
    cursor: pointer;
    background: none;
    border: none;
    display: none;
}

/* Menu links fill the bar. The line box no longer follows the webfont's own leading. */
.nav .nav-link:not(.brand) {
    flex: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Push icons to the right */
.nav .nav-icon:first-of-type {
    margin-left: auto;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.nav-icon:hover {
    opacity: 0.6;
}

.nav-icon svg {
    width: 28px;
    height: 28px;
    stroke: #000;
    stroke-width: 2.5;
}

.nav-icon-cart {
    position: relative;
}

.nav-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--color-black);
    color: var(--color-white);
    font-family: 'Ano', sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}


/* ===== FOOTER (Global) ===== */
.footer {
    padding: 40px;
    background-color: #000;
    color: #fff;
    text-align: center;
}

.footer-company {
    font-family: 'Ano', sans-serif;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 28px auto 20px;
    max-width: 720px;
}

.footer-company-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: 0.06em;
}

.footer-company-line {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 6px;
    opacity: 0.75;
}

.footer-company a {
    color: #fff;
    text-decoration: none;
}

.footer-company a:hover {
    color: var(--color-orange);
    font-style: italic;
}

.footer-text {
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.7;
}

.footer-credit {
    margin: 12px 0 0;
    font-family: 'Ano', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0.55;
}

.footer-credit a {
    color: #fff;
    text-decoration: none;
}

.footer-credit a:hover {
    color: var(--color-orange);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 0;
    padding-bottom: 24px;
    border-bottom: 2px solid #fff;
}

.footer-links a {
    font-family: 'Ano', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-orange);
}

/* ===== PAYOFF (reusable colour block) ===== */
.jf-payoff {
    padding: 80px 40px;
    text-align: center;
    border-top: 2px solid var(--color-black);
    border-bottom: 2px solid var(--color-black);
}

.jf-payoff--orange {
    background-color: var(--color-orange);
}

.jf-payoff--seashellpink {
    background-color: var(--color-seashellpink);
}

.jf-payoff--yellow {
    background-color: var(--color-yellow);
}

.jf-payoff--green {
    background-color: var(--color-green);
}

.jf-payoff--white {
    background-color: var(--color-white);
}

.jf-payoff--black {
    background-color: var(--color-black);
}

.jf-payoff--black .jf-payoff-title,
.jf-payoff--black .jf-payoff-text {
    color: var(--color-white);
}

.jf-payoff-title {
    font-family: 'Ano', sans-serif;
    font-size: clamp(36px, 7vw, 80px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--color-black);
    margin: 0 0 24px;
}

/* Card set collage is portrait — contain so all four cards stay visible. */
a.shop-product-card--contain .shop-product-image,
a.shop-product-card--contain .home-product-image,
.shop-product-card--contain .shop-product-image,
.shop-product-card--contain .home-product-image {
    object-fit: contain;
    background-color: var(--color-orange);
}

a.shop-product-card--packshot .shop-product-image,
a.shop-product-card--packshot .home-product-image,
.shop-product-card--packshot .shop-product-image,
.shop-product-card--packshot .home-product-image {
    object-fit: cover;
    background-color: #fff;
}

.shop-product-card--lifestyle .shop-product-image,
.shop-product-card--lifestyle .home-product-image {
    background-color: var(--color-seashellpink);
}

.shop-product-media {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.shop-product-media .shop-product-image,
.shop-product-media .home-product-image {
    display: block;
    margin-bottom: 0;
}

.jf-preorder-ribbon {
    --jf-ribbon-inset: 54px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    height: 26px;
    padding: 0 72px;
    background: var(--color-black);
    color: var(--color-white);
    font-family: 'Ano', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 26px;
    text-align: center;
    text-indent: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    /* Center sits on the corner bisector (equal inset from the top and the right), then turns 45°. */
    transform: translate(calc(50% - var(--jf-ribbon-inset)), calc(-50% + var(--jf-ribbon-inset))) rotate(45deg);
}

.card-color-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.shop-product-card .color-swatch,
.home-product-card .color-swatch,
.card-color-swatch {
    display: block;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0 2px var(--color-orange);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-clip: padding-box;
}

.shop-product-card .color-swatch:hover,
.shop-product-card .color-swatch.active,
.shop-product-card .color-swatch:focus-visible,
.home-product-card .color-swatch:hover,
.home-product-card .color-swatch.active,
.home-product-card .color-swatch:focus-visible,
.card-color-swatch:hover,
.card-color-swatch.active,
.card-color-swatch:focus-visible {
    outline: none;
    cursor: pointer;
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--color-orange), 0 0 0 5px #000;
}

.jf-payoff-text {
    font-family: 'Ano', sans-serif;
    font-size: clamp(18px, 2.4vw, 28px);
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-black);
    max-width: 28ch;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .jf-payoff {
        padding: 56px 20px;
    }
}

/* ===== HAMBURGER BUTTON ===== */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
}

/* ===== MOBILE OVERLAY ===== */
.nav-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-orange);
    z-index: 1001;
    flex-direction: column;
}

.nav-mobile-overlay.is-open {
    display: flex;
}

.nav-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 2px solid var(--color-black);
}

.nav-mobile-header .brand {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-mobile-close {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit; 
    padding: 4px;
    line-height: 0;
}

.nav-mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 24px;
}

.nav-mobile-links .nav-link {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ===== RESPONSIVE NAV — 1100px ===== */
@media (max-width: 1100px) {
    /* Hide desktop menu links and icons */
    .nav .nav-link:not(.brand) {
        display: none;
    }

    .nav .nav-icon {
        display: none;
    }

    /* Show hamburger */
    .nav-hamburger {
        display: block;
        margin-left: auto;
    }

    .nav {
        padding: 0 20px;
    }
}