/*
Theme Name: Generatepress — ASEO Design Layer
Template: generatepress
Version: 1.0
*/
html body, html body p, html body li, html body a {
    font-family: 'Inter', -apple-system, sans-serif;
}
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body .wp-block-heading {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-weight: 700;
}
/* Found live testing GeneratePress AND Astra: _install_site_branding
   always sets a real custom_logo (see that method), but nothing ever
   told the theme to stop ALSO rendering its own separate site-title
   text next to it — confirmed live on both themes, side by side ("Vpn
   Services" logo image + "VPN services" text). .main-title
   (GeneratePress) and .site-title (Astra's own class for the same
   element, confirmed via its real DOM: <span class="site-title"> inside
   .ast-site-identity) both needed !important — a plain override lost to
   each theme's own more specific selector (e.g. Astra's own
   .ast-site-identity .site-title rule). This is exactly the deliberate
   "must always win" case: a logo is always present by the time this
   loads (branding runs during provisioning, before any real traffic),
   so hiding the redundant text is never wrong. */
.site-branding .main-title, .site-title {
    display: none !important;
}
/* Found live testing Neve (magazine layout) and Kadence (hero_grid): both
   auto-render their own page-title element showing the current page's
   post_title — for the homepage specifically, that post_title is the
   niche name, which the seeded homepage block content (its own H1)
   already states, so it appeared twice. Neve uses .nv-page-title,
   Kadence uses .entry-title (a real, confirmed <h1 class="entry-title">
   on a live Kadence site, not a guess). Scoped to body.home only
   (WordPress core's own is_front_page() body class, reliable regardless
   of theme) — unlike the site-title fix above, this must NOT be global:
   individual article pages genuinely need their own page-title element
   to show that article's real title, since article body content never
   re-states it. .page-title/.entry-header are the common naming
   convention other themes may additionally use for the same concept —
   not independently confirmed beyond Neve/Kadence, kept as reasonable,
   low-risk coverage. */
body.home .nv-page-title, body.home .entry-title, body.home .page-title, body.home .entry-header {
    display: none !important;
}
/* Nav bar polish — .menu-item is a WordPress-core class added by every
   wp_nav_menu() walker regardless of theme (confirmed: it's core's own
   convention, not a GeneratePress-specific class), so this is reliably
   theme-agnostic unlike the branding/title selectors above. Plain black
   text links with no spacing/hover treatment read as unfinished — this
   doesn't use the niche's dynamic accent color (that's static CSS here,
   shared across every niche on this theme; the per-niche color already
   has its own mechanism in aseo-brand-override.php) so hover uses a
   neutral, always-legible treatment instead. */
.main-navigation .menu-item > a, #primary-menu .menu-item > a {
    padding: 8px 4px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}
.main-navigation .menu-item > a:hover, #primary-menu .menu-item > a:hover {
    border-bottom-color: currentColor;
    opacity: 0.75;
}
/* Scoped to .is-layout-grid specifically (the class Gutenberg adds when
   a post-template block uses a grid-type layout attribute) — NOT every
   wp-block-post-template. Found while extending this to the other 4
   seeded layouts: the minimal layout's whole design intent is
   restraint/generous whitespace with a plain list, and magazine's
   secondary list column is deliberately plain too — a bare
   .wp-block-post-template > li selector would have boxed those into
   cards as well, directly contradicting layouts whose entire point is
   NOT looking like a grid of cards. */
.wp-block-post-template.is-layout-grid > li {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    list-style: none;
}
.wp-block-post-template.is-layout-grid > li:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.wp-block-post-template.is-layout-grid .wp-block-post-featured-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}
.wp-block-post-template.is-layout-grid .wp-block-post-featured-image img {
    transition: transform 0.3s ease;
}
.wp-block-post-template.is-layout-grid > li:hover .wp-block-post-featured-image img {
    transform: scale(1.04);
}
.wp-block-button__link, .wp-element-button {
    border-radius: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wp-block-button__link:hover, .wp-element-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
