/*
Theme Name: DobarGablec Blank
Theme URI: https://dobargablec.hr
Author: Marco / dobargablec
Author URI: https://dobargablec.hr
Description: Minimal blank theme — plugin dm-restoran-portal handles all frontend templates, headers, footers, and styles. This theme only provides wp_head/wp_footer hooks and global resets.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dobargablec
License: Private
*/

/* ══════════════════════════════════════════════════
   GLOBAL RESET — nur das Nötigste
   ══════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #FAF7F4; /* Cream */
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1A1410; /* Warm Black */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

/* ══════════════════════════════════════════════════
   KILL DEFAULT WORDPRESS THEME CHROME
   Covers: Twenty Twenty-Four, Twenty Twenty-Five,
   block themes, and classic themes
   ══════════════════════════════════════════════════ */

/* Block theme header/footer parts */
.wp-site-blocks > header,
.wp-site-blocks > footer,
.wp-block-template-part,
header.wp-block-template-part,
footer.wp-block-template-part {
  display: none !important;
}

/* Classic theme header/footer */
.site-header,
.site-footer,
#masthead,
#colophon,
.site-branding,
.main-navigation {
  display: none !important;
}

/* ══════════════════════════════════════════════════
   FULL-WIDTH CONTENT — no theme constraints
   ══════════════════════════════════════════════════ */

.entry-content,
.wp-site-blocks,
.wp-block-post-content,
main.wp-block-group,
.site-main,
.site-content,
#primary,
#content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove default page title WordPress renders */
.wp-block-post-title,
.entry-title,
h1.wp-block-post-title,
h1.entry-title,
.page .entry-header {
  display: none !important;
}

/* Remove default spacing around main content */
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group {
  padding: 0 !important;
  margin: 0 !important;
}

/* Shortcode wrapper should not be constrained */
.wp-block-shortcode {
  max-width: 100% !important;
}

/* ══════════════════════════════════════════════════
   ADMIN BAR FIX — Plugin sticky nav offset
   ══════════════════════════════════════════════════ */

body.admin-bar .dm-site-nav {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .dm-site-nav {
    top: 46px;
  }
}

/* ══════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════ */

@media print {
  .dm-site-nav,
  .dm-mobile-menu,
  .dm-mobile-menu-overlay,
  #dmp-devnotice-backdrop {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
