/*
Theme Name:   WOLF
Theme URI:    https://upvising.io/
Description:  Upvising's base theme for Elementor builds. Ships the site chrome — header, footer, mobile menu and side panel — with a Theme Settings screen for colours, sizes, contact details and footer copy. Page content is built in Elementor (free). Configured for Step Rental Japan.
Author:       Upvising Limited
Author URI:   https://upvising.io/
Version:      1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  wolf
Tags:         custom-menu, custom-logo, featured-images, translation-ready, threaded-comments
*/

/* -------------------------------------------------------
   Overrides and integration fixes only.
   The design system lives in css/shared.css.
   ------------------------------------------------------- */

/* ---- Undo WordPress global styles and any boxed-layout default ----
   Width only. The margin is left alone so WordPress can keep offsetting the
   page for the admin bar. */
body {
  max-width: none !important;
  width: 100% !important;
}

/* Beat WP .is-layout-constrained max-width:800px + margin:auto !important
   WITHOUT using .alignfull (which forces width:100vw on the element). */
.site-header,
.site-footer,
.site-main,
.is-layout-constrained > .site-header,
.is-layout-constrained > .site-footer,
.is-layout-constrained > .site-main {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* Stop WP stretching chrome imagery (the logo sizes itself). */
.site-header img:not(.site-brand__logo),
.site-footer img,
.mobile-menu img:not(.site-brand__logo),
.side-panel img:not(.site-brand__logo) {
  width: auto !important;
  max-width: 100% !important;
}

/* ---- Chrome buttons: strip WP/Elementor button styling ---- */
.burger,
.panel-toggle,
.mobile-menu__close,
.side-panel__close,
.lang-pill,
.to-top {
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
  font-family: inherit;
}
.burger,
.panel-toggle,
.mobile-menu__close,
.side-panel__close,
.burger:hover,
.panel-toggle:hover,
.mobile-menu__close:hover,
.side-panel__close:hover {
  background: transparent !important;
}
.side-panel__close,
.side-panel__close:hover {
  background: var(--wolf-accent) !important;
}
.side-panel__close:hover {
  background: var(--wolf-accent-hover) !important;
}
.burger:focus-visible,
.panel-toggle:focus-visible,
.mobile-menu__close:focus-visible,
.side-panel__close:focus-visible,
.lang-pill:focus-visible,
.to-top:focus-visible,
.site-header a:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--wolf-accent);
  outline-offset: 3px;
}

/* ---- WordPress nav menu resets ---- */
.nav-list,
.mobile-nav-list,
.footer-nav-list,
.side-panel__nav-list,
.dropdown,
.lang-menu {
  list-style: none;
}
.nav-list li,
.mobile-nav-list li,
.footer-nav-list li,
.side-panel__nav-list li,
.dropdown li,
.lang-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header a,
.site-footer a,
.mobile-menu a,
.side-panel a {
  text-decoration: none;
}

/* Skip link: visible once focused. */
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10010;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  padding: 12px 20px;
  background: var(--wolf-dark);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
}

/* ---- Block editor / Elementor integration ---- */
.wp-site-blocks {
  padding: 0 !important;
}
.entry-content > .alignwide,
.entry-content > .alignfull {
  max-width: none;
}
.elementor {
  max-width: none !important;
}

.site-main {
  padding: 0;
  min-height: 40vh;
}
