/* Common Closet — site header. Loads site-wide; everything scoped under .cc-header. */

/* Hide the theme's default header wherever this header shows. */
#masthead,
header.site-header,
.ast-mobile-header-wrap,
.ast-above-header-wrap,
.ast-below-header-wrap{ display:none !important; }

/* Front page (home) hero: remove the dead beige space so it sits just below the
   header. Targets only the home page's full-width Cover block. */
body.home .wp-block-cover.alignfull{ padding-top:12px !important; min-height:0 !important; }
body.home .wp-block-cover.alignfull .wp-block-cover__inner-container > .wp-block-spacer:first-child{ height:0 !important; min-height:0 !important; }
body.home .wp-block-cover.alignfull .wp-block-cover__inner-container > h3.wp-block-heading:first-of-type{ margin-top:0 !important; }

.cc-header{
  --paper:#f4efe9; --ink:#141414; --soft:#3c3a37; --red:#a43135; --line:rgba(20,18,16,.20); --cream:#fbf7f1;
  background:var(--paper); color:var(--ink); border-bottom:1px solid var(--line);
  font-family:'GFS Didot','Playfair Display',Georgia,serif; -webkit-font-smoothing:antialiased;
}
.cc-header *{ box-sizing:border-box; }
.cc-header a{ color:inherit; text-decoration:none; }
.cc-header-inner{ max-width:1180px; margin:0 auto; padding:10px 24px 12px; }

/* utility cluster (upper-left): buttons, then search under them */
.cc-header .cc-util{ display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.cc-header .cc-util-actions{ display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.cc-header .cc-btn{ font-family:Arial,Helvetica,sans-serif; font-weight:700; font-size:11px; letter-spacing:1.4px;
  text-transform:uppercase; padding:9px 18px; border-radius:2px; border:1px solid var(--red); line-height:1; cursor:pointer;
  display:inline-block; transition:filter .15s, background .15s, color .15s; }
.cc-header .cc-btn-solid{ background:var(--red); color:#fff; }
.cc-header .cc-btn-solid:hover{ filter:brightness(1.08); }
.cc-header .cc-btn-ghost{ background:transparent; color:var(--red); }
.cc-header .cc-btn-ghost:hover{ background:var(--red); color:#fff; }
.cc-header .cc-search{ display:flex; align-items:center; gap:8px; width:210px; max-width:100%; height:34px;
  border:1px solid var(--line); background:#fff; border-radius:3px; padding:0 12px; color:#9b968d; }
.cc-header .cc-search svg{ flex:0 0 auto; }
/* Force a compact input height (the theme otherwise inflates search fields). */
.cc-header .cc-search input{ border:0 !important; outline:0; background:transparent; width:100%;
  height:32px !important; min-height:0 !important; padding:0 !important; line-height:32px !important;
  font-family:'GFS Didot',Georgia,serif; font-size:14px; color:var(--ink); }
.cc-header .cc-search input::placeholder{ color:#b0a99d; }

/* main row: nav | logo | nav */
.cc-header .cc-main{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:22px;
  padding-top:10px; margin-top:8px; border-top:1px solid var(--line); position:relative; }
.cc-header .cc-nav{ display:flex; gap:26px; font-size:18px; }
.cc-header .cc-nav-left{ justify-content:flex-end; }
.cc-header .cc-nav-right{ justify-content:flex-start; }
.cc-header .cc-nav a{ white-space:nowrap; padding-bottom:2px; border-bottom:1px solid transparent;
  transition:border-color .15s, color .15s; }
.cc-header .cc-nav a:hover{ color:var(--red); border-bottom-color:var(--red); }

/* logo */
.cc-header .cc-logo{ text-align:center; line-height:0; }
.cc-header .cc-logo a{ display:inline-block; line-height:0; }
/* Force proportional sizing so the theme's fixed logo width can't squish the crest. */
.cc-header .cc-logo img,
.cc-header .cc-logo .custom-logo{ height:84px !important; width:auto !important; max-width:none !important; display:block; margin:0 auto; }

/* burger (mobile only) + mobile drawer */
.cc-header .cc-burger{ display:none; }
.cc-header .cc-nav-mobile{ display:none; }

@media (max-width:900px){
  .cc-header .cc-nav-left, .cc-header .cc-nav-right{ display:none; }
  .cc-header .cc-main{ display:flex; align-items:center; justify-content:center; }
  .cc-header .cc-burger{ display:inline-flex; flex-direction:column; justify-content:center; gap:5px;
    position:absolute; left:0; top:50%; transform:translateY(-45%);
    width:42px; height:42px; background:transparent; border:1px solid var(--line); border-radius:3px; cursor:pointer; }
  .cc-header .cc-burger span{ display:block; height:2px; width:20px; margin:0 auto; background:var(--ink); }
  .cc-header .cc-logo img,
  .cc-header .cc-logo .custom-logo{ height:76px !important; }
  .cc-header.cc-nav-open .cc-nav-mobile{ display:flex; flex-direction:column; margin-top:14px;
    border-top:1px solid var(--line); padding-top:8px; }
  .cc-header .cc-nav-mobile a{ padding:12px 4px; font-size:19px; border-bottom:1px solid rgba(20,18,16,.08); }
  .cc-header .cc-nav-mobile a:last-child{ border-bottom:0; }
  .cc-header .cc-search{ width:100%; }
}
