/*
Theme Name: Star Custom Child
Theme URI: https://containerhousescanada.ca/
Description: Child theme for Rufous. Keeps the original Rufous structure, menu, submenu, and asset pipeline while applying Container Houses Canada branding and safe style refinements.
Author: Container Houses Canada Inc.
Author URI: https://containerhousescanada.ca/
Template: rufous
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: star-custom-child
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root{
  --chc-brand-red:#681212;
  --chc-brand-green:#314B39;
  --chc-brand-dark:#171717;
}

body{
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{
  text-underline-offset: 0.15em;
}

.custom-logo,
.site-branding img,
[class*="logo"] img{
  max-height: 72px;
  width: auto;
}

.site-title,
h1,h2,h3,h4,h5,h6{
  letter-spacing: -0.01em;
}

/* Do not reset Rufous/Kubio menu lists globally.
   That was causing submenu visibility issues. */
.kubio-menu .sub-menu,
.menu .sub-menu{
  display: none;
}

.kubio-menu li:hover > .sub-menu,
.kubio-menu li:focus-within > .sub-menu,
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu{
  display: block;
}

.kubio-menu .sub-menu,
.menu .sub-menu{
  min-width: 220px;
}

.topbar,
[class*="top-bar"],
[class*="topbar"]{
  background: var(--chc-brand-dark);
}

button,
.wp-element-button,
input[type="submit"],
input[type="button"],
input[type="reset"]{
  border-radius: 999px;
}

.wp-element-button,
button,
input[type="submit"]{
  background: var(--chc-brand-red);
  color: #fff;
  border: 0;
}

.wp-element-button:hover,
button:hover,
input[type="submit"]:hover{
  opacity: 0.95;
}

footer,
.site-footer{
  background: #111;
}

@media (max-width: 991px){
  .custom-logo,
  .site-branding img,
  [class*="logo"] img{
    max-height: 58px;
  }

  /* Leave mobile/offcanvas submenu behavior to Rufous/Kubio JS */
  .kubio-offscreen .sub-menu,
  .offscreen .sub-menu{
    display: block;
    min-width: 0;
  }
}
