/* ═══════════════════════════════════════════════════════════════
   HUSTLE AND HABIT — PREMIUM STYLES v1.0
   Editorial/magazine polish on top of Truth FSE parent.
   Brand: Navy #1A1A2E / Amber #F59E0B / Teal #14B8A6
   ═══════════════════════════════════════════════════════════════ */

/* ── GLOBAL TYPE ── */
body,
.wp-site-blocks {
    font-feature-settings: "ss01", "kern";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #2D2D3F;
}
.wp-site-blocks p, .wp-site-blocks li { line-height: 1.7; }

/* H tags: Montserrat 800 Navy */
.wp-site-blocks h1, .wp-site-blocks h2,
.wp-site-blocks h3, .wp-site-blocks h4 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.015em;
    color: #1A1A2E;
}

/* ── STICKY HEADER WITH BLUR ── */
.hh-site-header {
    position: sticky !important;
    top: 0;
    z-index: 100;
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    background: rgba(255, 255, 255, 0.92) !important;
    transition: box-shadow 0.2s ease;
}
.hh-site-header.is-scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Nav links: underline-on-hover animation */
.hh-primary-nav .wp-block-navigation-item__content {
    position: relative;
    padding: 6px 2px !important;
    transition: color 0.2s;
}
.hh-primary-nav .wp-block-navigation-item__content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #F59E0B;
    transition: width 0.25s ease;
}
.hh-primary-nav .wp-block-navigation-item__content:hover::after { width: 100%; }
.hh-primary-nav .wp-block-navigation-item__content:hover { color: #D97706 !important; }

/* Submenu polish */
.hh-primary-nav .wp-block-navigation__submenu-container {
    border: 1px solid #EEE !important;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(26, 26, 46, 0.12);
    padding: 12px 0;
    min-width: 240px;
}
.hh-primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    padding: 8px 18px !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.hh-primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }
.hh-primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
    background: #FEF3C7;
    color: #1A1A2E !important;
}

/* ── BUTTONS ── */
.wp-block-button.is-style-fill .wp-block-button__link,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background-color: #F59E0B !important;
    color: #1A1A2E !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    padding: 14px 28px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 0 rgba(26, 26, 46, 0.12);
    border: none !important;
}
.wp-block-button.is-style-fill .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background-color: #D97706 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.32);
}
.wp-block-button.is-style-outline .wp-block-button__link {
    border-color: #1A1A2E !important;
    color: #1A1A2E !important;
    border-width: 2px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em;
    padding: 12px 26px !important;
    border-radius: 6px !important;
    background: transparent !important;
    transition: all 0.2s;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: #1A1A2E !important;
    color: #FFFFFF !important;
}

/* ── POST CARDS (ARCHIVE + HOMEPAGE GRID) ── */
.wp-block-post-template.is-layout-grid > li,
.wp-block-query .wp-block-post-template > li {
    transition: transform 0.25s ease;
}
.wp-block-query .wp-block-post-featured-image {
    overflow: hidden;
    border-radius: 8px;
    display: block;
}
.wp-block-query .wp-block-post-featured-image img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
    display: block;
}
.wp-block-query .wp-block-post-template > li:hover .wp-block-post-featured-image img {
    transform: scale(1.04);
}
.wp-block-query .wp-block-post-title a {
    text-decoration: none !important;
    transition: color 0.2s;
}
.wp-block-query .wp-block-post-template > li:hover .wp-block-post-title a {
    color: #D97706 !important;
}

/* Category badges on cards */
.wp-block-post-terms a,
.hh-post-category a {
    color: #D97706 !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.wp-block-post-terms a:hover,
.hh-post-category a:hover { color: #1A1A2E !important; }

/* ── READING-OPTIMIZED SINGLE POST ── */
.wp-site-blocks .entry-content > p,
main.wp-block-group .wp-block-post-content > p {
    font-size: 18px;
    line-height: 1.75;
    color: #2D2D3F;
    margin-bottom: 1.35em;
}
main.wp-block-group .wp-block-post-content > h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 2em;
    margin-bottom: 0.5em;
}
main.wp-block-group .wp-block-post-content > h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-top: 1.6em;
    margin-bottom: 0.4em;
}
main.wp-block-group .wp-block-post-content blockquote,
main.wp-block-group .wp-block-post-content .wp-block-quote {
    border-left: 4px solid #F59E0B !important;
    padding: 8px 0 8px 24px !important;
    margin: 2em 0 !important;
    font-style: italic;
    color: #4B4B5C;
    font-size: 1.125rem;
    line-height: 1.65;
    background: transparent !important;
}
main.wp-block-group .wp-block-post-content a {
    color: #1A1A2E;
    text-decoration: underline;
    text-decoration-color: #F59E0B;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: background 0.2s;
}
main.wp-block-group .wp-block-post-content a:hover {
    background: #FEF3C7;
}
main.wp-block-group .wp-block-post-content strong { color: #1A1A2E; font-weight: 700; }
main.wp-block-group .wp-block-post-content ul,
main.wp-block-group .wp-block-post-content ol {
    font-size: 18px;
    line-height: 1.7;
    padding-left: 1.4em;
}
main.wp-block-group .wp-block-post-content li { margin-bottom: 0.5em; }
main.wp-block-group .wp-block-post-content figure img { border-radius: 8px; }
main.wp-block-group .wp-block-post-content figcaption {
    font-size: 14px;
    color: #6B7280;
    text-align: center;
    margin-top: 10px;
}

/* Drop cap inside editorial posts */
.has-drop-cap:not(:focus)::first-letter {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
    color: #F59E0B !important;
    font-size: 4.5em !important;
    line-height: 0.85 !important;
    padding: 0.08em 0.12em 0 0 !important;
    font-weight: 900 !important;
    margin-top: 0.04em !important;
}

/* ── PAGINATION ── */
.wp-block-query-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 4px;
    padding: 0 12px;
    border-radius: 6px;
    color: #1A1A2E;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #E5E7EB;
}
.wp-block-query-pagination .page-numbers:hover {
    background: #FEF3C7;
    border-color: #F59E0B;
}
.wp-block-query-pagination .page-numbers.current {
    background: #1A1A2E;
    color: #F59E0B;
    border-color: #1A1A2E;
}

/* ── FOOTER: link visibility fix ── */
.hh-site-footer a,
.hh-site-footer .wp-block-list-item a,
.hh-site-footer .hh-footer-links a {
    color: rgba(255, 255, 255, 0.78) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.hh-site-footer a:hover,
.hh-site-footer .hh-footer-links a:hover { color: #F59E0B !important; }

/* ── NEWSLETTER SHORTCODE STYLING ── */
.hh-newsletter-form,
.hh-newsletter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 520px;
    margin: 0 auto;
}
.hh-newsletter-form input[type="email"],
.hh-newsletter input[type="email"] {
    flex: 1 1 260px;
    padding: 14px 16px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.hh-newsletter-form input[type="email"]::placeholder,
.hh-newsletter input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.55); }
.hh-newsletter-form input[type="email"]:focus,
.hh-newsletter input[type="email"]:focus {
    outline: none;
    border-color: #F59E0B;
    background: rgba(255, 255, 255, 0.12);
}
.hh-newsletter-form button,
.hh-newsletter button[type="submit"],
.hh-newsletter input[type="submit"] {
    background: #F59E0B !important;
    color: #1A1A2E !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    border: none !important;
    padding: 14px 24px !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.hh-newsletter-form button:hover,
.hh-newsletter button[type="submit"]:hover,
.hh-newsletter input[type="submit"]:hover {
    background: #D97706 !important;
    transform: translateY(-1px);
}

/* ── CATEGORY GRID CARDS (on homepage) ── */
.hh-category-card,
.hh-category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #FFFFFF;
    transition: all 0.25s ease;
    text-decoration: none !important;
    min-height: 160px;
    justify-content: center;
}
.hh-category-card:hover,
.hh-category-tile:hover {
    border-color: #F59E0B;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(26, 26, 46, 0.08);
    background: #FFFDF7;
}
.hh-category-card .icon,
.hh-category-tile .icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}
.hh-category-card .label,
.hh-category-tile .label {
    color: #1A1A2E;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 4px;
}
.hh-category-card .count,
.hh-category-tile .count {
    color: #9CA3AF;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── HERO SECTION ── */
.hh-hero-eyebrow {
    color: #D97706 !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
}
.hh-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: #1A1A2E;
}

/* ── EDITORIAL POP: quoted testimonial / callout ── */
.hh-pull-quote {
    border-top: 2px solid #1A1A2E;
    border-bottom: 2px solid #1A1A2E;
    padding: 32px 0;
    margin: 48px 0;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    color: #1A1A2E;
}

/* ── RESPONSIVE ── */
@media (max-width: 780px) {
    main.wp-block-group .wp-block-post-content > p { font-size: 17px; line-height: 1.72; }
    main.wp-block-group .wp-block-post-content > h2 { font-size: 1.55rem; }
    .hh-primary-nav { font-size: 13px !important; }
}

/* ── SMALL FINISHING TOUCHES ── */
::selection { background: #F59E0B; color: #1A1A2E; }
a:focus-visible, button:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Scrollbar in webkit */
html { scroll-behavior: smooth; }
