/**
 * @file
 * SR06 - Larger logo in the header.
 *
 * Location: themes/custom/levelplus/css/components/header-logo.css
 * Registered in levelplus.libraries.yml ("local-stylesheets" library).
 *
 * Desktop (1200px+): from 240 x 49 px to ~335 x 69 px.
 * Header height stays the same (~102 px): the empty space below the
 * logo is used instead of making the header taller.
 *
 * Tablet and mobile (< 992px): the logo is an SVG with no intrinsic
 * width/height (viewBox only). Inside the theme's inline-block wrapper
 * it collapses to 0px, so it gets an explicit fluid width here,
 * matching how the PNG logo behaves on sr32.
 */

/* ---------- Large desktop (1200px+) ---------- */
@media (min-width: 1200px) {
  /* Wider logo column (Bootstrap: 25% / 75%) */
  .header #header-inside > .row > .col-md-3 { width: 32%; }
  .header #header-inside > .row > .col-md-9 { width: 68%; }

  /* Remove extra spacing around the logo (site-branding.css) */
  .header .logo {
    width: auto;
    padding-top: 0;
    margin-right: 0;
    margin-bottom: 0;
  }

  /* Larger logo */
  .header .site-branding__logo img {
    width: 340px;
    max-width: 100%;
    height: auto;
  }

  /* Less vertical padding so the header doesn't grow (layout.css) */
  .header .header-inside-second {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  /* Slightly tighter menu so the social icons don't wrap
     to a second line (menu.css) */
  .header-container .header .with-search-bar ul.menu li a {
    padding-left: 8px;
    padding-right: 8px;
  }
  .header-container .header .with-search-bar .block-superfish ul.sf-menu > li.menuparent > a {
    padding-right: 20px;
  }
}

/* ---------- Medium desktop / laptops (992px - 1199px) ---------- */
@media (min-width: 992px) and (max-width: 1199px) {
  .header #header-inside > .row > .col-md-3 { width: 30%; }
  .header #header-inside > .row > .col-md-9 { width: 70%; }

  .header .logo {
    width: auto;
    padding-top: 0;
    margin-right: 0;
    margin-bottom: 0;
  }

  .header .site-branding__logo img {
    width: 290px;
    max-width: 100%;
    height: auto;
  }

  .header .header-inside-second {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .header-container .header .with-search-bar ul.menu li a {
    padding-left: 7px;
    padding-right: 7px;
  }
  .header-container .header .with-search-bar .block-superfish ul.sf-menu > li.menuparent > a {
    padding-right: 18px;
  }
}

/* ---------- Tablet and mobile (< 992px) ---------- */
@media (max-width: 991px) {
  /* Block wrapper so the logo can use a percentage width
     (site-branding.css sets it to inline-block, which collapses the SVG) */
  .header .logo-and-site-name-wrapper {
    display: block;
    max-width: 100%;
  }

  /* site-branding.css keeps .logo as a floated inline-block down to 481px,
     which also collapses the SVG. Make it a full-width block. */
  .header .logo {
    display: block;
    float: none;
    width: auto;
    margin-right: 0;
  }

  .header .site-branding__logo {
    display: block;
  }

  /* Fluid logo, capped at the desktop size and centered */
  .header .site-branding__logo img {
    width: 100%;
    max-width: 340px;
    height: auto;
    margin: 0 auto;
  }
}

/* ---------- Sticky header on scroll ----------
   Keep the original compact padding (fixed-header.css). */
@media (min-width: 992px) {
  .onscroll .header .header-inside-second {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}
