/* ============================================
   LAYOUT SYSTEM v3 (Clean Rewrite)
   Fixed-header + body-padding modeli kaldirildi.
   Sticky header + normal document flow kullanilir.
   ============================================ */

:root {
    --growzy-header-height-desktop: 70px;
    --growzy-header-height-mobile: 60px;
}

/* Global document flow */
html,
body {
    margin: 0;
    padding: 0;
}

body:not(.wp-admin):not(.wp-customizer) {
    padding-top: 0 !important;
}

/* Main wrappers */
#content,
.site-content,
#primary,
main#primary,
.site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* First block spacing rule for regular pages (hero haric) */
.site-main > section:first-child:not(.hero-modern):not(.hero-section):not(.landing-hero),
#primary > section:first-child:not(.hero-modern):not(.hero-section):not(.landing-hero),
main > section:first-child:not(.hero-modern):not(.hero-section):not(.landing-hero) {
    padding-top: 1.5rem;
}

/* Hero sections touch header area directly */
.hero-modern,
.hero-section,
.landing-hero {
    margin-top: 0 !important;
}

body.home .site-main > section.hero-modern:first-child,
body.home #primary > section.hero-modern:first-child,
body.home main > section.hero-modern:first-child,
body.page-template-front-page .site-main > section.hero-modern:first-child,
body.page-template-front-page #primary > section.hero-modern:first-child,
body.page-template-front-page main > section.hero-modern:first-child {
    margin-top: 0 !important;
}

/* Community feed top rhythm */
body.page-id-47 .community-feed-container:first-child,
body.page-id-47 .growzy-community-feed:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media screen and (max-width: 768px) {
    .site-main > section:first-child:not(.hero-modern):not(.hero-section):not(.landing-hero),
    #primary > section:first-child:not(.hero-modern):not(.hero-section):not(.landing-hero),
    main > section:first-child:not(.hero-modern):not(.hero-section):not(.landing-hero) {
        padding-top: 1rem;
    }
}
