/* Company head: solid dark field-green band, same family as .article-head in news.css. Text only: logo, name and place
   on the left, quick actions on the right (desktop).
   Needs styles.css, news.css and directory-results.css. */

.co-head {
  position: relative;
  overflow: clip;
  background: var(--field-deep);
  color: var(--paper);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3rem);
}

.co-head__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--content-wide));
  margin-inline: auto;
}

/* Breadcrumb sits on the dark band: light links, same swap as .article-head */
.co-head .breadcrumb a {
  color: var(--yolk-bright);
}

.co-head .breadcrumb__sep,
.co-head .breadcrumb__current {
  color: rgba(245, 241, 228, 0.7);
}

/* Name block on the left, actions on the right from desktop; stacked on phones */
.co-head__row {
  display: grid;
  gap: 1.75rem 2.5rem;
  align-items: center;
}

.co-head__main {
  display: grid;
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.co-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.co-head__logo {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--feed);
  border: 3px solid var(--paper);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--field);
}

.co-head__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.co-head h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(2rem, 4.2vw, 2.85rem);
}

.co-head__where {
  margin: 0.5rem 0 0;
  color: rgba(245, 241, 228, 0.78);
  font-size: 0.95rem;
}

@media (min-width: 62rem) {
  /* Same columns and gap as .co-layout in company-body.css, so the buttons sit exactly over the Contact card below */
  .co-head__row {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 2.75rem;
  }

  .co-head__main {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  /* Enquiry button full width, Website and Call share the row under it: a block about as tall as the logo */
  .co-head__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .co-head__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .co-head__actions .btn:first-child {
    grid-column: 1 / -1;
  }

  .co-head__logo {
    width: 6rem;
    height: 6rem;
    font-size: 2rem;
  }
}

/* "Send an enquiry": the site's white-on-yolk .btn--secondary is only 2.97:1, so here the yolk is darkened
   to #9a6a14 (white text 4.72:1). Hover goes darker still (#85590e, 6.1:1) rather than lighter, which would drop below 4.5:1. */
.co-head .btn--secondary {
  background: #9a6a14;
}

.co-head .btn--secondary:hover {
  background: #85590e;
}

/* Phone: enquiry button on its own full-width row, Website and Call share the row below */
@media (max-width: 36rem) {
  .co-head__actions .btn { flex: 1 1 0; }
  .co-head__actions .btn:first-child { flex-basis: 100%; }
}
