/* ==========================================
   Ashbury Gardening — header.css
   Desktop header layout + basic mobile tweaks
   Fonts & tagline spacing live in style.css
========================================== */



/* ---------- Tunables ---------- */
:root{
  --ag-container: 960px;

  --brand-gap: 12px;

  --logo-h-desktop: 145px;
  --logo-h-mobile: 100px;

  --title-size-desktop: 28px;
  --title-size-mobile: 20px;

  /* The two things you said were wrong */
  --header-air-below-logo: 26px;    /* space below logo before menu strip */
  --brand-text-drop: 18px;  /* lowers title/tagline beside the logo */
}

/* Drop the whole text stack a touch, regardless of wrapper */
#masthead .site-branding{
  position: relative;
  top: 20px;
}

#masthead .site-branding{
  position: relative !important;
  top: 40px !important;
  transform: translateY(0) !important;
}


/* Homepage main title (page content heading, not site title) */
.homepage-main-title{
  font-family: "Ropa Sans", sans-serif;
  font-weight: 300;
  font-size: 25px;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  color: #2f4657;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

/* ----- Header core layout ----- */
.header-inner{
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-wrapper{
  display: flex;
  align-items: center;
  gap: var(--brand-gap);
  padding: 20px 15px;
}

/* Logo */
#masthead .custom-logo,
.site-header .custom-logo,
.site-header img.custom-logo{
  height: var(--logo-h-desktop);
  width: auto;
  display: block;
  max-width: none;

  /* restore breathing room (this is what you lost) */
  margin: 8px 0 var(--header-air-below-logo) 0 !important;
}

/* Brand text stack (title + strapline) */
.brand-text{
  display: flex;
  flex-direction: column;
  padding-top: var(--brand-text-drop) !important;
}

/* Title sizes only (font-family/weight handled in style.css) */
.site-header .site-branding h1.site-title,
.site-header .site-branding p.site-title{
  margin: 0;
  line-height: 1.1;
}

.site-header .site-branding h1.site-title a,
.site-header .site-branding p.site-title a{
  font-size: var(--title-size-desktop);
  line-height: 1.1;
  text-decoration: none;
}

/* If some templates output <p class="site-title">, style it like the H1 */
h1.site-title,
p.site-title{
  display: block;
}

/* Ensure title link inherits colour */
.site-header .site-branding .site-title a{
  color: inherit;
}

.site-title,
.site-title a {
  letter-spacing: 0.08em;
}

/* ===== Desktop (≥769px) ===== */
@media (min-width: 769px){

  .site-header{
    overflow: visible;
    padding-top: 10px;
    margin-top: 0;
  }

  /* Keep internal pages aligned to the container */
  body:not(.home) .brand-wrapper{
    width: var(--ag-container);
    margin: 0 auto;
    padding: 8px 0 0;
    justify-content: flex-start;
  }

  /* Make sure the menu strip sits a touch lower if needed */
  .menu-strip{
    margin-top: 30px !important;
    text-align: right;
  }

  .main-navigation{
    justify-content: flex-end;
  }
}

/* ===== Mobile (≤768px) ===== */
@media (max-width: 768px){

  .brand-wrapper{
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
  }

  #masthead .custom-logo,
  .site-header .custom-logo,
  .site-header img.custom-logo{
    height: var(--logo-h-mobile);
    margin: 0 0 12px 0 !important;
  }

  .site-header .site-branding h1.site-title a,
  .site-header .site-branding p.site-title a{
    font-size: var(--title-size-mobile);
    line-height: 1.2;
  }

  .site-strapline{
    font-size: 13px;
    line-height: 1.35;
  }
}

/* Extra-small phones */
@media (max-width: 480px){
  .site-header img.custom-logo,
  .site-header .custom-logo{
    max-height: 90px;
    height: auto;
    width: auto !important;
  }
}
